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,29 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.sysd.session.xserver.amd;
in {
options = {
modules.sysd.session.xserver.amd.enable = mkEnableOption "Enables xserver with amdgpu";
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
videoDrivers = ["amdgpu"];
# xkb = {
# extraLayouts.hhkbse = {
# description = "HHKBse by cnst";
# languages = ["se"];
# symbolsFile = /home/cnst/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse;
# };
# layout = "hhkbse";
# # dir = "/home/cnst/.nix-config/nixos/xkb";
# variant = "";
# options = "lv3:rwin_switch";
# };
};
};
}