about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-09-09 01:13:51 +0200
committerBaitinq <[email protected]>2022-09-09 01:13:51 +0200
commit7b30c43ed8d2c960910519de946cd6e6da9e847d (patch)
tree3874e64dff0fc6b6ffb993b59e8aab2a139478e5 /flake.nix
parentPhobos: Add element-desktop program (diff)
downloadnixos-config-7b30c43ed8d2c960910519de946cd6e6da9e847d.tar.gz
nixos-config-7b30c43ed8d2c960910519de946cd6e6da9e847d.tar.bz2
nixos-config-7b30c43ed8d2c960910519de946cd6e6da9e847d.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.nix8
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;