Oops. thats a big commit
This commit is contained in:
parent
dfcb53a44e
commit
c5ed13b511
25 changed files with 393 additions and 303 deletions
|
@ -9,6 +9,11 @@ in {
|
|||
type = types.nullOr (types.enum ["x11" "wayland"]);
|
||||
description = "What display protocol to use";
|
||||
};
|
||||
execOnStart = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = "List of commands to run on startup";
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
|
@ -16,8 +21,25 @@ in {
|
|||
modules.desktop.fonts.enable = true;
|
||||
modules.desktop.fonts.baseFonts = true;
|
||||
|
||||
# mounting and trash functionality, the recommended solution for most file managers
|
||||
# bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# speed up boot
|
||||
# https://discourse.nixos.org/t/boot-faster-by-disabling-udev-settle-and-nm-wait-online/6339
|
||||
systemd.services.systemd-udev-settle.enable = false;
|
||||
systemd.services.NetworkManager-wait-online.enable = false;
|
||||
|
||||
# mounting, trash, and mtp support
|
||||
services.gvfs.enable = true;
|
||||
|
||||
# various evironment variables that are needed for everything desktop related
|
||||
environment.sessionVariables = {
|
||||
MOZ_DISABLE_RDD_SANDBOX = "1";
|
||||
};
|
||||
}
|
||||
(mkIf (cfg.envProto == "wayland") {
|
||||
environment.sessionVariables = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue