diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 760026e..31cff64 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -12,6 +12,7 @@ ./roles/sway ./roles/emacs ./roles/git + ./roles/fonts ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -79,9 +80,9 @@ file usbutils # for lsusb pciutils # for lspci - mesa-demos # for glxgears - vulkan-tools # for vkcube - xorg.xeyes # to test which windows are using x11 + mesa-demos # for glxgears TODO move to better role + vulkan-tools # for vkcube TODO move to better role + xorg.xeyes # to test which windows are using x11 TODO move to better role ]; services.openssh = { diff --git a/nix/configuration/roles/blank/default.nix b/nix/configuration/roles/blank/default.nix new file mode 100644 index 0000000..108e102 --- /dev/null +++ b/nix/configuration/roles/blank/default.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + imports = []; + + +} diff --git a/nix/configuration/roles/fonts/default.nix b/nix/configuration/roles/fonts/default.nix new file mode 100644 index 0000000..9808e45 --- /dev/null +++ b/nix/configuration/roles/fonts/default.nix @@ -0,0 +1,118 @@ +{ config, lib, pkgs, ... }: + +{ + imports = []; + + fonts = { + enableDefaultPackages = true; + packages = with pkgs; [ + cascadia-code + source-sans-pro + source-serif-pro + ]; + + fontconfig = { + localConf = '' + + + + + + + + + + + + + false + + + + + /usr/share/fonts/gsfonts/* + + + + + + serif + + Source Serif Pro + Source Sans Pro + + + + + + sans-serif + + Source Sans Pro + Source Serif Pro + + + + + + monospace + + Cascadia Mono + Cascadia Code + + + + + + + Liberation Mono + Cascadia Mono + + + + + monospace + Cascadia Mono + + + + + + Cascadia Code + + + liga off + dlig off + + + + + + + rgb + + + + + true + + + + + hintslight + + + + + true + + + + + lcddefault + + + + ''; + }; + }; +}