infrastructure/graphical.nix

154 lines
4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ pkgs, pkgs-unstable, ... }:
{
boot = {
consoleLogLevel = 0;
# For ddcutil.
kernelModules = [ "i2c-dev" ];
kernelParams = [ "splash" "quiet" ];
plymouth.enable = true;
};
hardware.bluetooth.enable = true;
environment.systemPackages = with pkgs; [
adw-gtk3
adwaita-icon-theme
blanket
dconf-editor
# TODO: Consider replacing with ddcutil-service.
ddcutil
spotify
sublime-merge
wl-clipboard
pkgs-unstable.overskride
];
programs = {
firefox.enable = true;
gnome-terminal.enable = true;
niri.enable = true;
thunderbird.enable = true;
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";
gtk-theme = "adw-gtk3";
monospace-font-name = "Fira Mono 10";
};
"org/gnome/desktop/interface".accent-color = "purple";
"org/gnome/desktop/wm/preferences".button-layout = "";
"org/gnome/nautilus/icon-view".default-zoom-level = "large";
"org/gnome/nautilus/list-view".default-zoom-level = "small";
"org/gnome/nautilus/preferences" = {
default-folder-viewer = "list-view";
show-hidden-files = true;
};
"org/gnome/terminal/legacy".default-show-menubar = false;
};
} ];
};
};
fonts = {
packages = with pkgs; [
fira
noto-fonts
# google-fonts
];
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"
"L /home/rei/.config/nwg-bar - - - - /etc/nwg-bar"
];
environment = {
persistence = {
"/mnt/persistent-data".users.rei.directories = [
"backups"
"downloads"
"projects"
"screenshots"
".config/mozilla/firefox"
".config/spotify"
".thunderbird"
];
"/mnt/machine-state".directories = [
"/var/lib/bluetooth"
];
};
etc."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>
# }
'';
};
}