Commit cbba8948a7fc

Vincent Demeester <vincent@sbr.pm>
2020-05-25 13:06:22
nix: clean home.nix
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3bcec9b
Changed files (1)
home.nix
@@ -1,21 +1,18 @@
 # This configuration file simply determines the hostname and then import both
 # the default configuration (common for all machine) and specific machine
 # configuration.
-{ sources ? import ./nix/sources.nix
-, pkgs ? import sources.nixpkgs { }
-, ...
-}:
 let
   hostName = "${builtins.readFile ./hostname}";
+  home-manager = (import ./nix/sources.nix).home-manager;
 in
 {
   programs = {
     home-manager = {
       enable = true;
-      path = "${sources.home-manager}";
+      path = "${home-manager}";
     };
   };
-  imports = with sources; [
+  imports = [
     # Default profile with default configuration
     ./modules/module-list.nix
     # Set the machine to home