diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-18 23:39:42 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-18 23:39:42 -0700 |
| commit | 65174b4b5c05bb143e6681a4cbcd0a95f04987e2 (patch) | |
| tree | 35383af43f2aa972b316dd12e1d5d1bd5df84086 /roles/desktop/default.nix | |
| parent | 15c5050590415fd64e984e994ec77186918cf7b7 (diff) | |
Begin modularization!
Diffstat (limited to 'roles/desktop/default.nix')
| -rw-r--r-- | roles/desktop/default.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/roles/desktop/default.nix b/roles/desktop/default.nix new file mode 100644 index 0000000..c2fae92 --- /dev/null +++ b/roles/desktop/default.nix @@ -0,0 +1,61 @@ +{ config, pkgs, lib, ... }: +with lib; + +let cfg = config.roles.desktop; in { + imports = [ + ./input.nix + ./xserver.nix + ]; + + options.roles.desktop = { + enable = mkEnableOption "desktop"; + }; + + config = mkIf cfg.enable { + security.rtkit.enable = true; + + i18n.inputMethod.enable = true; + + services = { + displayManager.enable = true; + + xserver = { + enable = true; + displayManager.lightdm.enable = true; + windowManager.i3.enable = true; + }; + + keyd.enable = true; + + pipewire = { + enable = true; + + pulse.enable = true; + alsa.enable = true; + alsa.support32Bit = true; + #jack.enable = true; + }; + }; + + fonts = { + packages = with pkgs; [ + nerdfonts + noto-fonts + noto-fonts-cjk + noto-fonts-cjk-sans + noto-fonts-cjk-serif + noto-fonts-emoji + + minecraftia + ]; + + fontconfig = { + defaultFonts = { + monospace = [ "CaskaydiaMono Nerd Font" ]; + sansSerif = [ "DejaVu Sans" "Noto Sans CJK JP" "Noto Sans" ]; + serif = [ "DejaVu Serif" "Noto Serif CJK JP" "Noto Serif" ]; + }; + }; + }; + }; +} |