diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-09 01:13:51 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-09 01:13:51 +0200 |
commit | dcbd89aa224dd1f1fb37026b31954f5c0dcf8999 (patch) | |
tree | 547ba1886a563b84ef800536133fc73c405a8e60 /flake.nix | |
parent | Phobos: Add element-desktop program (diff) | |
download | nixos-config-dcbd89aa224dd1f1fb37026b31954f5c0dcf8999.tar.gz nixos-config-dcbd89aa224dd1f1fb37026b31954f5c0dcf8999.tar.bz2 nixos-config-dcbd89aa224dd1f1fb37026b31954f5c0dcf8999.zip |
ISO: Set user as nixos
We now declare the user in the flake.nix, overriding this in the isoConfigurations output
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index de8a701..a5414df 100644 --- a/flake.nix +++ b/flake.nix @@ -24,13 +24,16 @@ }; outputs = inputs @ { self, nixpkgs, home-manager, ... }: + let + user = "baitinq"; + in { nixosConfigurations = import ./hosts { isNixOS = true; extraModules = [ ]; isIso = false; inherit (nixpkgs) lib; - inherit inputs nixpkgs home-manager; + inherit inputs user nixpkgs home-manager; }; homeConfigurations = import ./hosts { @@ -39,13 +42,14 @@ isIso = false; #no COde duplication here: TODO inherit (nixpkgs) lib; - inherit inputs nixpkgs home-manager; + inherit inputs user nixpkgs home-manager; }; isoConfigurations = import ./hosts { isNixOS = true; extraModules = [ ]; isIso = true; + user = "nixos"; #no COde duplication here: TODO inherit (nixpkgs) lib; inherit inputs nixpkgs home-manager; |