refactor(flake.nix): refactor special args to be less wordy
This commit is contained in:
parent
1a3ef0605b
commit
024852c8bf
1 changed files with 16 additions and 20 deletions
36
flake.nix
36
flake.nix
|
@ -7,27 +7,23 @@
|
|||
let
|
||||
mkSystem = type: hostname: bootDisk: {
|
||||
name = "${hostname}";
|
||||
value =
|
||||
let
|
||||
args = {
|
||||
inherit
|
||||
self
|
||||
inputs
|
||||
type
|
||||
hostname
|
||||
bootDisk
|
||||
;
|
||||
};
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = args;
|
||||
modules = [
|
||||
./modules/nixos
|
||||
./modules/hm
|
||||
./hosts/common.nix
|
||||
./hosts/${hostname}.nix
|
||||
];
|
||||
value = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit
|
||||
self
|
||||
inputs
|
||||
type
|
||||
hostname
|
||||
bootDisk
|
||||
;
|
||||
};
|
||||
modules = [
|
||||
./modules/nixos
|
||||
./modules/hm
|
||||
./hosts/common.nix
|
||||
./hosts/${hostname}.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue