mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
50 lines
1 KiB
Nix
50 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 wlan0 set power_save off
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
xdg.portal = {
|
||
|
enable = true;
|
||
|
xdgOpenUsePortal = true;
|
||
|
};
|
||
|
}
|