Compare commits

...

2 Commits

Author SHA1 Message Date
d63b34e2cd Fix no package. 2024-02-14 20:38:42 +01:00
1762d53397 Testing new config. 2024-02-14 20:33:50 +01:00
4 changed files with 21 additions and 25 deletions

View File

@ -15,19 +15,25 @@
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
outputs = inputs@{ self, nixpkgs, home-manager, ... }: {
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/default/configuration.nix
inputs.home-manager.nixosModules.default
./nixos/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = {inherit inputs;};
home-manager.users.crony = {
imports = [
./home-manager/home.nix
];
};
}
];
};
};
};
}

View File

@ -1,11 +1,10 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, ... }:
{
# Imports
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
# Bootloader.
@ -274,15 +273,6 @@
shell = pkgs.zsh;
};
# Enable home manager for my user
home-manager = {
useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs;};
users = {
"crony" = import ./home.nix;
};
};
# Allow appimages to run manually
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;