about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-07-24 12:11:57 +0200
committerBaitinq <[email protected]>2022-07-24 12:11:57 +0200
commitc63df12c2abc0e695a4a6688326f7291fd724533 (patch)
tree5c20ae0d5c8ab54dde5719283b1a41bd7b5222ef
parentAdded Wallpapers as flake input (diff)
downloadnixos-config-c63df12c2abc0e695a4a6688326f7291fd724533.tar.gz
nixos-config-c63df12c2abc0e695a4a6688326f7291fd724533.tar.bz2
nixos-config-c63df12c2abc0e695a4a6688326f7291fd724533.zip
Move user declaration outside flake.nix
-rw-r--r--flake.nix4
-rw-r--r--hosts/default.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 4aa6f6e..902324e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -22,12 +22,10 @@
   };
 
   outputs = inputs @ { self, nixpkgs, home-manager, ... }:
-    let user = "baitinq";
-    in
     {
       nixosConfigurations = import ./hosts {
         inherit (nixpkgs) lib;
-        inherit inputs nixpkgs home-manager user;
+        inherit inputs nixpkgs home-manager;
       };
     };
 }
diff --git a/hosts/default.nix b/hosts/default.nix
index d249bcb..9c23363 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -1,5 +1,7 @@
-{ user, lib, nixpkgs, inputs, home-manager, ... }:
+{ lib, nixpkgs, inputs, home-manager, ... }:
 let
+  user = "baitinq";
+
   secrets = import ../secrets;
 
   hosts = [