system
This commit is contained in:
parent
231cb21334
commit
c8f7273dd0
5 changed files with 33 additions and 20 deletions
15
flake.nix
15
flake.nix
|
|
@ -31,9 +31,20 @@
|
|||
|
||||
hosts = builtins.filter (host: builtins.pathExists ./hosts/${host}/configuration.nix) (builtins.attrNames (builtins.readDir ./hosts));
|
||||
|
||||
mkHostConfig = host:
|
||||
mkHostConfig = host: let
|
||||
defaultConf = rec {
|
||||
hostname = host;
|
||||
|
||||
uid = 1000;
|
||||
user = "lilith";
|
||||
home = /home/${user};
|
||||
};
|
||||
in
|
||||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
conf = defaultConf;
|
||||
};
|
||||
modules = [
|
||||
./hosts/${host}/configuration.nix
|
||||
./hosts/${host}/hardware-configuration.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue