Tidy up flake args
This commit is contained in:
@@ -15,28 +15,29 @@
|
|||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = {nixpkgs, nixunstable, agenix, home-manager, nur, self}@inputs:
|
||||||
let
|
let
|
||||||
local_overlay = import ./overlays;
|
local_overlay = import ./overlays;
|
||||||
|
|
||||||
mods = hostname: [
|
mods = hostname: [
|
||||||
{ nixpkgs.overlays = [ inputs.nur.overlay local_overlay ]; }
|
{ nixpkgs.overlays = [ nur.overlay local_overlay ]; }
|
||||||
inputs.agenix.nixosModule
|
agenix.nixosModule
|
||||||
./modules
|
./modules
|
||||||
./profiles/base
|
./profiles/base
|
||||||
./hosts/${hostname}
|
./hosts/${hostname}
|
||||||
inputs.home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.greg = import ./home/home.nix "greg";
|
home-manager.users.greg = import ./home/home.nix "greg";
|
||||||
home-manager.users.root = import ./home/home.nix "root";
|
home-manager.users.root = import ./home/home.nix "root";
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
nixunstable = inputs.nixunstable;
|
inherit nixunstable;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
machine = system: name: inputs.nixpkgs.lib.nixosSystem {
|
machine = system: name: nixpkgs.lib.nixosSystem {
|
||||||
system = system;
|
inherit system;
|
||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = mods name;
|
modules = mods name;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user