Compare commits

..

14 commits

Author SHA1 Message Date
Andre 33efba78de refactor(system): fix conflicts between desktop environment login managers
Some checks failed
Code Check / Run nixfmt and statix (push) Has been cancelled
Code Check / Run nixfmt and statix (pull_request) Has been cancelled
2024-07-09 20:09:03 -04:00
Andre 1ff80eed70 fix(system): fix aux.system.ui.desktops namespacing in desktop and flatpak modules 2024-07-09 20:09:03 -04:00
Andre e11982a0ac fix(system): add initrd settings for tpm2 2024-07-09 20:09:03 -04:00
Andre ae5c57087b chore(system): update video driver syntax to match upstream 2024-07-09 20:09:03 -04:00
Andre a5ba014019 refactor(system): simplify Nix config file 2024-07-09 20:09:03 -04:00
Andre e598b4460b feat(system): Use Lix in place of Nix in new user template 2024-07-09 20:09:03 -04:00
Andre d7c8dc7079 chore(system): Cleanup template readme and options 2024-07-09 20:09:03 -04:00
Andre e91383e2b0 fix(system): fix funky unicode quotes 2024-07-09 20:09:03 -04:00
Andre 6a9ddcf0fc chore(system): remove Aux libs as they're still in Labs 2024-07-09 20:09:03 -04:00
Andre 03fc24f588 feat(system): add Flatpak support 2024-07-09 20:09:03 -04:00
Andre e787e42400 feat(system): Add Nvidia, Intel, and AMD GPU support to new user template 2024-07-09 20:09:03 -04:00
Andre 04fe94d274 chore(system): Change template namespace from 'aux' to 'aux.system' 2024-07-09 20:09:03 -04:00
Andre ef5fd7ef2a feat(system): add modules for bluetooth, networking, system config, Budgie, Hyprland, and XFCE to system template 2024-07-09 20:09:03 -04:00
Andre 5184f31f41 feat(system): initial commit for new user system templates 2024-07-09 20:09:02 -04:00

View file

@ -45,11 +45,11 @@ in
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = (cfg.busIDs.nvidia == "");
assertion = (cfg.hybrid.busIDs.nvidia != "");
message = "You need to define a bus ID for your Nvidia GPU. To learn how to find the bus ID, see https://nixos.wiki/wiki/Nvidia#Configuring_Optimus_PRIME:_Bus_ID_Values_.28Mandatory.29.";
}
{
assertion = (cfg.busIDs.intel == "" && cfg.busIDs.amd == "");
assertion = (cfg.hybrid.busIDs.intel != "" || cfg.busIDs.amd != "");
message = "You need to define a bus ID for your non-Nvidia GPU. To learn how to find your bus ID, see https://nixos.wiki/wiki/Nvidia#Configuring_Optimus_PRIME:_Bus_ID_Values_.28Mandatory.29.";
}
];
@ -73,8 +73,8 @@ in
sync.enable = lib.mkIf cfg.hybrid.sync true;
nvidiaBusId = cfg.hybrid.busIDs.nvidia;
intelBusId = lib.mkIf (cfg.hybrid.busIDs.intel != "") cfg.hybrid.busIDs.intel;
amdgpuBusId = lib.mkIf (cfg.hybrid.busIDs.amd != "") cfg.hybrid.busIDs.amd;
intelBusId = cfg.hybrid.busIDs.intel;
amdgpuBusId = cfg.hybrid.busIDs.amd;
};
};
};