laptop config, flakes config (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -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)];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user