2026-09-23 12:12:34 +02:00
|
|
|
{ pkgs, pkgs-unstable, ... }:
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
{
|
2026-09-23 12:10:52 +02:00
|
|
|
boot = {
|
|
|
|
|
consoleLogLevel = 0;
|
|
|
|
|
kernelParams = [ "splash" "quiet" ];
|
|
|
|
|
plymouth.enable = true;
|
|
|
|
|
};
|
2026-09-21 11:14:42 +02:00
|
|
|
|
2026-09-29 12:11:23 +02:00
|
|
|
# For ddcutil.
|
|
|
|
|
users.users.rei.extraGroups = [ "i2c" ];
|
|
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
|
bluetooth.enable = true;
|
|
|
|
|
# For ddcutil.
|
|
|
|
|
i2c.enable = true;
|
|
|
|
|
};
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2026-10-13 15:34:21 +02:00
|
|
|
# CLI programs.
|
|
|
|
|
|
2026-11-01 22:44:25 +01:00
|
|
|
android-tools
|
2026-09-21 11:44:17 +02:00
|
|
|
# TODO: Consider replacing with ddcutil-service.
|
|
|
|
|
ddcutil
|
2026-10-13 15:34:21 +02:00
|
|
|
wl-clipboard
|
|
|
|
|
|
|
|
|
|
# Graphical programs.
|
|
|
|
|
|
|
|
|
|
blanket
|
2026-10-24 12:39:52 +02:00
|
|
|
celluloid
|
2026-09-24 13:03:06 +02:00
|
|
|
gnome-calculator
|
2026-09-29 11:54:16 +02:00
|
|
|
loupe
|
2026-09-30 14:49:20 +02:00
|
|
|
# We don't use programs.nm-applet.enable because that also creates an enabled systemd unit for
|
|
|
|
|
# the applet. We just want nm-connection-editor.
|
|
|
|
|
networkmanagerapplet
|
2026-09-03 11:54:20 +02:00
|
|
|
spotify
|
|
|
|
|
sublime-merge
|
2026-09-23 12:12:34 +02:00
|
|
|
pkgs-unstable.overskride
|
2026-10-13 15:34:21 +02:00
|
|
|
pkgs-unstable.pwvucontrol
|
2026-10-24 12:39:52 +02:00
|
|
|
pkgs-unstable.yt-dlp
|
2026-10-13 15:34:21 +02:00
|
|
|
|
|
|
|
|
# Icon themes.
|
|
|
|
|
|
|
|
|
|
adw-gtk3
|
|
|
|
|
adwaita-icon-theme
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
|
firefox.enable = true;
|
|
|
|
|
gnome-terminal.enable = true;
|
|
|
|
|
niri.enable = true;
|
2026-09-30 21:52:57 +02:00
|
|
|
|
|
|
|
|
thunderbird = {
|
|
|
|
|
enable = true;
|
|
|
|
|
policies = {
|
|
|
|
|
ExtensionSettings."langpack-en-GB@thunderbird.mozilla.org" = {
|
|
|
|
|
installation_mode = "force_installed";
|
|
|
|
|
install_url = let inherit (pkgs.thunderbird) version; in
|
|
|
|
|
"https://releases.mozilla.org/pub/thunderbird/releases/${version}/linux-x86_64/xpi/en-GB.xpi";
|
|
|
|
|
};
|
|
|
|
|
RequestedLocales = [ "en-GB" ];
|
|
|
|
|
};
|
|
|
|
|
};
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
dconf = {
|
|
|
|
|
enable = true;
|
|
|
|
|
profiles.user.databases = [ {
|
|
|
|
|
settings = {
|
|
|
|
|
"ca/desrt/dconf-editor".show-warning = false;
|
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
|
font-hinting = "none";
|
|
|
|
|
font-name = "Fira Sans Condensed 11";
|
2026-09-23 13:13:55 +02:00
|
|
|
gtk-theme = "adw-gtk3";
|
2026-09-03 11:54:20 +02:00
|
|
|
monospace-font-name = "Fira Mono 10";
|
|
|
|
|
};
|
2026-09-10 17:31:48 +02:00
|
|
|
"org/gnome/desktop/interface".accent-color = "purple";
|
2026-09-03 11:54:20 +02:00
|
|
|
"org/gnome/desktop/wm/preferences".button-layout = "";
|
2026-09-10 17:31:48 +02:00
|
|
|
"org/gnome/nautilus/icon-view".default-zoom-level = "large";
|
|
|
|
|
"org/gnome/nautilus/list-view".default-zoom-level = "small";
|
2026-09-23 14:15:27 +02:00
|
|
|
"org/gnome/nautilus/preferences".default-folder-viewer = "list-view";
|
2026-09-03 11:54:20 +02:00
|
|
|
"org/gnome/terminal/legacy".default-show-menubar = false;
|
2026-09-23 14:15:27 +02:00
|
|
|
"org/gtk/gtk4/settings/file-chooser".show-hidden = true;
|
2026-09-03 11:54:20 +02:00
|
|
|
};
|
|
|
|
|
} ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2026-09-23 13:52:47 +02:00
|
|
|
services.gvfs.enable = true;
|
|
|
|
|
|
2026-09-03 11:54:20 +02:00
|
|
|
fonts = {
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
fira
|
2026-09-29 12:16:30 +02:00
|
|
|
# Hopefully temporary, for Ironbar.
|
2026-09-29 12:00:09 +02:00
|
|
|
font-awesome
|
2026-09-03 11:54:20 +02:00
|
|
|
# google-fonts
|
2026-09-29 12:00:09 +02:00
|
|
|
noto-fonts
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
fontconfig = {
|
|
|
|
|
defaultFonts = {
|
|
|
|
|
sansSerif = [ "Fira Sans Condensed" ];
|
|
|
|
|
monospace = [ "Fira Mono" ];
|
|
|
|
|
};
|
|
|
|
|
hinting.enable = false;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
systemd.user.tmpfiles.rules = [
|
|
|
|
|
"d /home/rei/.config/niri 0755 rei users"
|
|
|
|
|
"L /home/rei/.config/niri/config.kdl - - - - /etc/niri/config.kdl"
|
2026-09-23 13:14:13 +02:00
|
|
|
"L /home/rei/.config/nwg-bar - - - - /etc/nwg-bar"
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
|
persistence = {
|
|
|
|
|
"/mnt/persistent-data".users.rei.directories = [
|
2026-09-08 12:21:37 +02:00
|
|
|
"backups"
|
|
|
|
|
"downloads"
|
|
|
|
|
"projects"
|
|
|
|
|
"screenshots"
|
2026-09-03 11:54:20 +02:00
|
|
|
".config/mozilla/firefox"
|
|
|
|
|
".config/spotify"
|
|
|
|
|
".thunderbird"
|
|
|
|
|
];
|
|
|
|
|
"/mnt/machine-state".directories = [
|
|
|
|
|
"/var/lib/bluetooth"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2026-09-30 14:49:20 +02:00
|
|
|
etc = {
|
|
|
|
|
"xdg/autostart/nm-applet.desktop".text = ''
|
|
|
|
|
[Desktop Entry]
|
|
|
|
|
Hidden=true
|
|
|
|
|
'';
|
|
|
|
|
"xdg/hypr/hyprlock.conf".text = ''
|
|
|
|
|
background {
|
|
|
|
|
path = /home/rei/projects/infrastructure/nixos/assets/wallpaper-macos-swirlies
|
|
|
|
|
blur_passes = 4
|
|
|
|
|
blur_size = 4
|
|
|
|
|
contrast = 1.0
|
|
|
|
|
brightness = 1.0
|
|
|
|
|
vibrancy = 0.0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
animations {
|
|
|
|
|
animation = fade, 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Clock.
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
halign = center
|
|
|
|
|
valign = center
|
|
|
|
|
position = 0, 140
|
|
|
|
|
|
|
|
|
|
# TODO: Get the letter spacing identical to the explicit font name version.
|
|
|
|
|
# text = <span font="sans-serif 220" color="white" weight="400">$TIME</span>
|
|
|
|
|
text = <span font="Fira Sans Condensed 220" color="white">$TIME</span>
|
|
|
|
|
text_align = center
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Password textbox.
|
|
|
|
|
|
|
|
|
|
input-field {
|
|
|
|
|
halign = center
|
|
|
|
|
valign = center
|
|
|
|
|
position = 0, -180
|
|
|
|
|
|
|
|
|
|
size = 450, 75
|
|
|
|
|
placeholder_text = <span font="Fira Sans Condensed Bold 20" color="grey">Password</span>
|
|
|
|
|
fail_text = <span font="Fira Sans Condensed Bold 20" color="white">Incorrect</span>
|
|
|
|
|
inner_color = rgb(FFFFFF)
|
|
|
|
|
font_color = rgb(000000)
|
|
|
|
|
check_color = rgb(FF9800)
|
|
|
|
|
outline_thickness = 0
|
|
|
|
|
rounding = 10
|
|
|
|
|
fade_on_empty = false
|
|
|
|
|
# TODO: Doesn't exist anymore, what did this use to achieve?
|
|
|
|
|
# fail_timeout = 500
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Keyboard layout indicator.
|
|
|
|
|
# TODO: Why does this not work anymore?
|
|
|
|
|
|
|
|
|
|
# label {
|
|
|
|
|
# halign = center
|
|
|
|
|
# valign = center
|
|
|
|
|
# position = 0, -600
|
|
|
|
|
|
|
|
|
|
# text = <span font="Fira Sans Condensed Bold 30" color="white">$LAYOUT[!,Keyboard layout: български,Keyboard layout: Ελληνικά]</span>
|
|
|
|
|
# }
|
|
|
|
|
'';
|
|
|
|
|
};
|
2026-09-03 11:54:20 +02:00
|
|
|
};
|
2026-09-29 23:28:51 +02:00
|
|
|
|
|
|
|
|
security.soteria.enable = true;
|
2026-09-03 11:54:20 +02:00
|
|
|
}
|