mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
Isolate common nix into lib.nix
This commit is contained in:
parent
2fdf57226a
commit
08bfaa4e88
6 changed files with 93 additions and 85 deletions
|
|
@ -30,15 +30,5 @@ in
|
|||
./current-location.nix
|
||||
];
|
||||
};
|
||||
|
||||
lib.mkLinuxSystem = mod: inputs.nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
# Arguments to pass to all modules.
|
||||
specialArgs = {
|
||||
inherit system inputs;
|
||||
flake = { inherit config; };
|
||||
};
|
||||
modules = [ mod ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue