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
commitde4dc57ca76ec543e36a6d7440493bd31730d7ca (patch)
tree0f0b70c67ad7642f6e0fc4fc712f472bb4dbf989
parentAdded Wallpapers as flake input (diff)
downloadnixos-config-de4dc57ca76ec543e36a6d7440493bd31730d7ca.tar.gz
nixos-config-de4dc57ca76ec543e36a6d7440493bd31730d7ca.tar.bz2
nixos-config-de4dc57ca76ec543e36a6d7440493bd31730d7ca.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 = [