nix-config/nixos/_mixins/desktop/default.nix
2023-10-02 14:23:52 -04:00

49 lines
1 KiB
Nix

{ desktop, lib, pkgs, ... }: {
imports = [
../services/cups.nix
]
++ lib.optional (builtins.pathExists (./. + "/${desktop}.nix")) ./${desktop}.nix;
boot = {
kernelParams = [
"loglevel=3"
"mitigations=off"
"quiet"
"rd.udev.log_level=3"
"systemd.show_status=auto"
"udev.log_level=3"
"vt.global_cursor_default=0"
];
plymouth.enable = true;
consoleLogLevel = 0;
initrd.verbose = false;
};
hardware = {
opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk ];
driSupport = true;
driSupport32Bit = true;
};
};
programs.dconf.enable = true;
# Disable xterm
services.xserver.excludePackages = [ pkgs.xterm ];
services.xserver.desktopManager.xterm.enable = false;
systemd.services.disable-wifi-powersave = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.iw ];
script = ''
iw dev wlp0s20f3 set power_save off
'';
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
};
}