Commit 3bcec9b22449

Vincent Demeester <vincent@sbr.pm>
2020-05-25 13:02:31
nix: clean some unusued header args
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 44efff0
machines/wakasu.nixos.nix
@@ -1,8 +1,3 @@
-{ sources ? import ../nix/sources.nix
-, pkgs ? import sources.nixos { }
-, ...
-}:
-
 with import ../assets/machines.nix; {
   imports = [ ../hardware/lenovo-p50.nix ./home.nixos.nix ];
   boot = {
configuration.nix
@@ -1,20 +1,13 @@
 # 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.nixos-unstable
-, ...
-}:
 let
   hostName = "${builtins.readFile ./hostname}";
-  sources = import ./nix/sources.nix;
 in
 {
-  imports = with sources; [
+  imports = [
     # Generated hardware configuration
     ./hardware-configuration.nix
-    # Load home-manager nixos module
-    "${home-manager}/nixos"
     # Default profile with default configuration
     ./modules/module-list.nixos.nix
     # Set the machine to nixos
home.nix
@@ -1,13 +1,12 @@
 # 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
+{ sources ? import ./nix/sources.nix
 , pkgs ? import sources.nixpkgs { }
 , ...
 }:
 let
   hostName = "${builtins.readFile ./hostname}";
-  sources = import ./nix/sources.nix;
 in
 {
   programs = {