some more housecleaning and changing swap on cnixpad

This commit is contained in:
cnst
2024-09-06 21:21:00 +02:00
parent 865c8c4ba9
commit 5d5b6fe8c8
29 changed files with 285 additions and 198 deletions

View File

@@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.sysd.session.xserver.nvidia;
in {
options = {
modules.sysd.session.xserver.nvidia.enable = mkEnableOption "Enables xserver with nvidia";
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
videoDrivers = ["nvidia"];
xkb.layout = "se";
};
};
}