The reason for the move away is that even though now you have to specify the system you're on in the CLI - you no longer have to have a settings.nix which you have to keep updated with what system you're on while trying to keep it away from git and flake's weird interactions with git.
XYVOW54TWIJYX7VDWOTXFNM27C2ODJKTGUZ3LXVDURPHHLBKXS6QC
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"settings": "settings"
}
},
"settings": {
"flake": false,
"locked": {
"narHash": "sha256-RvJCJqhIQFzqy/TpFEG8dcLeHKRIdAs/MFxnPryvzVk=",
"path": "./settings.nix",
"type": "path"
},
"original": {
"path": "./settings.nix",
"type": "path"
outputs = { home-manager, nixpkgs, ... }:
let settings = import ./settings.nix;
outputs = { home-manager, nixpkgs, settings, ... }:
let
baseModules = [
(home-manager.nixosModules.home-manager)
{
config = {
home-manager.users.bender = import ./bender/home.nix;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
nixpkgs.overlays = import ./bender/overlays;
};
}
];
modules = ([
(home-manager.nixosModules.home-manager)
{
config = {
home-manager.users.bender = import ./bender/home.nix;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
nixpkgs.overlays = import ./bender/overlays;
};
}
] ++ (if settings.machine == "laptop" then
[ ./system/laptop/configuration.nix ]
else if settings.machine == "desktop" then
[ ./system/desktop/configuration.nix ]
else
throw "Please pass in a machine to settings.nix"));
modules = baseModules ++ [ ./system/desktop/configuration.nix ];