home.nix (613B)
1 # This configuration file simply determines the hostname and then import both 2 # the default configuration (common for all machine) and specific machine 3 # configuration. 4 let 5 hostName = "${builtins.readFile ./hostname}"; 6 home-manager = (import ./nix/sources.nix).home-manager; 7 in 8 { 9 programs = { 10 home-manager = { 11 enable = true; 12 path = "${home-manager}"; 13 }; 14 }; 15 nixpkgs.overlays = [ 16 (import ./overlays/sbr.nix) 17 (import ./overlays/unstable.nix) 18 (import ./nix).emacs 19 ]; 20 imports = [ 21 # Machine specific configuration files 22 (./systems + "/${hostName}.home.nix") 23 ]; 24 }