From 4547e75868cba2a265b78661ddc386b5e81c1bb0 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 7 Oct 2024 11:47:06 +0300 Subject: init --- nixos/desktop/default.nix | 26 ++++++++++++++++++++++++++ nixos/desktop/fonts.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 nixos/desktop/default.nix create mode 100644 nixos/desktop/fonts.nix (limited to 'nixos/desktop') diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix new file mode 100644 index 0000000..dc34f11 --- /dev/null +++ b/nixos/desktop/default.nix @@ -0,0 +1,26 @@ +{ + imports = [./fonts.nix]; + + services.xserver = { + enable = true; + xkb.layout = "us"; + + desktopManager = { + xterm.enable = false; + xfce.enable = true; + }; + }; + + services.displayManager.defaultSession = "xfce"; + services.libinput.enable = true; + + # For trash + #services.gvfs.enable = true; + + #virtualisation.waydroid.enable = true; + + console = { + font = "Lat2-Terminus16"; + keyMap = "us"; + }; +} diff --git a/nixos/desktop/fonts.nix b/nixos/desktop/fonts.nix new file mode 100644 index 0000000..38b3ca7 --- /dev/null +++ b/nixos/desktop/fonts.nix @@ -0,0 +1,42 @@ +{pkgs, ...}: { + fonts = { + enableDefaultPackages = true; + fontconfig = { + enable = true; + defaultFonts = { + emoji = ["Noto Color Emoji"]; + monospace = [ + "Liberation Mono" + ]; + sansSerif = [ + "Liberation Sans" + ]; + serif = [ + "Liberation Serif" + ]; + }; + hinting = { + enable = true; + style = "full"; + autohint = true; + }; + }; + fontDir.enable = true; + enableGhostscriptFonts = true; + packages = with pkgs; [ + fira + fira-mono + fira-code + hack-font + inter + iosevka + liberation_ttf + nerdfonts + noto-fonts + noto-fonts-color-emoji + roboto + roboto-mono + roboto-serif + ]; + }; +} -- cgit v1.2.3