This commit is contained in:
Spectre 2024-06-07 01:29:44 +02:00
parent 231cb21334
commit c8f7273dd0
5 changed files with 33 additions and 20 deletions

View file

@ -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