Hi all, I’m new to Nix and I have been trying to set up my NixOS + Home Manager.
I currently have successfully set up home manager as a nix os module
nixosConfigurations = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./machines/${hostName}/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.gapuchi = import ./common/home.nix;
home-manager.extraSpecialArgs = {
stateVersion = "23.11";
includeGuiPkgs = true;
};
};
];
};
and have my home.nix
{ pkgs, stateVersion, includeGuiPkgs, ... }: {
...
but I want to make includeGuiPkgs
optional and have a default value like
{ pkgs, stateVersion, includeGuiPkgs ? true, ... }: {
...
When I try this with
home-manager.extraSpecialArgs = {
stateVersion = "23.11";
};
It fails saying
error: attribute 'includeGuiPkgs' missing
Am I misunderstanding how this works?