laptop config, flakes config (#1)

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2023-08-11 18:59:35 -04:00
parent 18adcedbbf
commit 72c822cd29
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)];
}
];
};
}