laptop config, flakes config

This commit is contained in:
2023-08-11 18:57:56 -04:00
parent 18adcedbbf
commit a20395c2c1
19 changed files with 2134 additions and 97 deletions
+38
View File
@@ -0,0 +1,38 @@
{ lib, inputs, nixpkgs, home-manager, username, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
lib = nixpkgs.lib;
in
{
desktop = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs username; };
modules = [
./desktop
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit username; };
home-manager.users.${username}.imports = [(import ./home.nix)] ++ [(import ./desktop/home.nix)];
}
];
};
laptop = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs username; };
modules = [
./laptop
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit username; };
home-manager.users.${username}.imports = [(import ./home.nix)] ++ [(import ./laptop/home.nix)];
}
];
};
}