Personal Nix setup

Move fonts to home config

+2 -1
home/apps/ghostty.nix
···
window-theme = ghostty
window-colorspace = display-p3
window-save-state = always
-
window-decoration = client
+
window-decoration = server
window-inherit-working-directory = true
unfocused-split-opacity = 0.9
freetype-load-flags = no-monochrome
···
macos-titlebar-style = tabs
adw-toolbar-style = flat
+
gtk-titlebar = false
shell-integration-features = no-cursor,sudo,title
shell-integration = zsh
+1
home/default.nix
···
./development
./desktop
./apps
+
./fonts
];
}
+5 -1
home/desktop/hyprland.nix
···
config = mkIf cfg.hyprland.enable {
wayland.windowManager.hyprland = {
enable = true;
+
+
package = null;
+
portalPackage = null;
systemd.enable = false;
-
xwayland.enable = true;
+
xwayland.enable = false;
+
settings = {
"$mod" = "SUPER";
-1
machines/fanta/configuration.nix
···
imports = [ ];
modules = {
-
fonts.enable = true;
nvim.enable = true;
};
-1
machines/pepper/configuration.nix
···
modules = {
desktop.enable = true;
-
fonts.enable = true;
server = {
enable = true;
sshd.enable = true;
-1
machines/sodacream/configuration.nix
···
rawaccel.enable = false;
affinity.performanceCores = [ 4 5 6 7 ];
};
-
fonts.enable = true;
server = {
enable = true;
tailscale.enable = true;
-1
machines/sprite/configuration.nix
···
imports = [ ];
modules = {
-
fonts.enable = true;
nvim.enable = true;
};
-1
modules/default.nix
···
./base
./apps
./desktop
-
./fonts
./nvim
./router
./server
-1
modules/desktop/fonts.nix
···
};
config = mkIf cfg.fonts.enable {
-
fonts = {
fontDir.enable = true;
+4 -3
modules/fonts/default.nix home/fonts/default.nix
···
with lib;
let
cfg = config.modules.fonts;
-
fontsPath = if helpers.isDarwin then "/Library/Fonts" else "/usr/share/fonts/nonfree";
+
fontsPath = if helpers.isDarwin then "Library/Fonts" else "${config.xdg.dataHome}/fonts";
in {
options.modules.fonts = {
enable = mkOption {
-
default = false;
-
example = true;
+
default = true;
description = "Whether to enable fonts options.";
type = types.bool;
};
};
config = mkIf cfg.enable {
+
fonts.fontconfig.enable = true;
+
age.secrets."DankMono-Regular.otf" = {
symlink = false;
file = ./encrypt/DankMono-Regular.otf.age;
modules/fonts/encrypt/DankMono-Bold.otf.age home/fonts/encrypt/DankMono-Bold.otf.age
modules/fonts/encrypt/DankMono-Italic.otf.age home/fonts/encrypt/DankMono-Italic.otf.age
modules/fonts/encrypt/DankMono-Regular.otf.age home/fonts/encrypt/DankMono-Regular.otf.age
modules/fonts/encrypt/codicon.otf.age home/fonts/encrypt/codicon.otf.age
modules/fonts/encrypt/faicon.ttf.age home/fonts/encrypt/faicon.ttf.age
+6 -6
secrets.nix
···
{
"./modules/base/encrypt/nix-access-tokens.conf.age".publicKeys = keys;
-
"./modules/fonts/encrypt/DankMono-Regular.otf.age".publicKeys = keys;
-
"./modules/fonts/encrypt/DankMono-Bold.otf.age".publicKeys = keys;
-
"./modules/fonts/encrypt/DankMono-Italic.otf.age".publicKeys = keys;
-
"./modules/fonts/encrypt/codicon.otf.age".publicKeys = keys;
-
"./modules/fonts/encrypt/faicon.ttf.age".publicKeys = keys;
-
"./modules/server/encrypt/tailscale.age".publicKeys = keys;
"./modules/server/encrypt/rclone.conf.age".publicKeys = keys;
+
+
"./home/fonts/encrypt/DankMono-Regular.otf.age".publicKeys = keys;
+
"./home/fonts/encrypt/DankMono-Bold.otf.age".publicKeys = keys;
+
"./home/fonts/encrypt/DankMono-Italic.otf.age".publicKeys = keys;
+
"./home/fonts/encrypt/codicon.otf.age".publicKeys = keys;
+
"./home/fonts/encrypt/faicon.ttf.age".publicKeys = keys;
"./home/base/encrypt/pubring.kbx.age".publicKeys = keys;
"./home/base/encrypt/75EF1DBB30A59CFB56BCE06A88CCF363DA63B1A7.key.age".publicKeys = keys;