52 lines
904 B
Nix
52 lines
904 B
Nix
{
|
|
conf,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
} @ inputs: let
|
|
inherit (conf) system;
|
|
|
|
pkgs = import ./nixpkgs.nix {inherit system nixpkgs;};
|
|
|
|
specialArgs = inputs;
|
|
in {
|
|
base = nixpkgs.lib.nixosSystem {
|
|
inherit system specialArgs;
|
|
|
|
modules = [
|
|
./common.nix
|
|
./options.nix
|
|
|
|
conf.extraConfig
|
|
conf.hardware-configuration
|
|
|
|
./base.nix
|
|
./boot.nix
|
|
];
|
|
};
|
|
|
|
full = nixpkgs.lib.nixosSystem {
|
|
inherit system specialArgs;
|
|
|
|
modules = [
|
|
./common.nix
|
|
./options.nix
|
|
./packages.nix
|
|
|
|
conf.extraConfig
|
|
conf.hardware-configuration
|
|
|
|
./full.nix
|
|
./boot.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
({config, ...}: {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = specialArgs // {system-config = config;};
|
|
};
|
|
})
|
|
];
|
|
};
|
|
}
|