2026-09-03 11:54:20 +02:00
|
|
|
{ pkgs, pkgs-unstable, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
environment = {
|
|
|
|
|
systemPackages = [
|
|
|
|
|
pkgs-unstable.jetbrains.rust-rover
|
2026-09-08 12:27:20 +02:00
|
|
|
pkgs.cartero
|
2026-09-08 12:27:39 +02:00
|
|
|
pkgs.darktable
|
|
|
|
|
pkgs.loupe
|
2026-09-08 12:26:39 +02:00
|
|
|
pkgs.signal-desktop
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
persistence = {
|
|
|
|
|
"/mnt/persistent-data" = {
|
|
|
|
|
users.rei = {
|
|
|
|
|
directories = [
|
|
|
|
|
".config/JetBrains"
|
2026-09-08 22:26:51 +02:00
|
|
|
".config/sublime-merge"
|
2026-09-03 11:54:20 +02:00
|
|
|
".local/share/JetBrains"
|
|
|
|
|
".java"
|
|
|
|
|
".claude"
|
2026-09-08 12:25:51 +02:00
|
|
|
".mc"
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
files = [
|
|
|
|
|
".claude.json"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
"/mnt/machine-state".users.rei.directories = [
|
|
|
|
|
".cargo"
|
2026-09-08 12:26:39 +02:00
|
|
|
".config/Signal"
|
2026-09-08 17:14:14 +02:00
|
|
|
".local/share/direnv"
|
2026-09-03 11:54:20 +02:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
etc = {
|
|
|
|
|
"niri/config.kdl".text = ''
|
|
|
|
|
spawn-at-startup "${pkgs.swaybg}/bin/swaybg" "--image" \
|
2026-09-08 22:40:06 +02:00
|
|
|
"~/projects/infrastructure/nixos/assets/wallpaper-macos-swirlies"
|
2026-09-03 11:54:20 +02:00
|
|
|
spawn-at-startup "${pkgs.ironbar}/bin/ironbar"
|
|
|
|
|
spawn-at-startup "${pkgs.wl-gammarelay-rs}/bin/wl-gammarelay-rs"
|
2026-09-08 12:23:05 +02:00
|
|
|
spawn-at-startup "${pkgs.swayidle}/bin/swayidle" "timeout" "600" \
|
2026-09-03 13:57:05 +02:00
|
|
|
"${pkgs.hyprlock}/bin/hyprlock"
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prefer-no-csd
|
2026-09-08 12:21:37 +02:00
|
|
|
screenshot-path "~/screenshots/niri-%Y-%m-%d-%H:%M:%S.png"
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
hotkey-overlay { skip-at-startup; }
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
disable-power-key-handling
|
|
|
|
|
|
|
|
|
|
keyboard {
|
|
|
|
|
xkb {
|
|
|
|
|
layout "us,bg(phonetic),gr"
|
|
|
|
|
options "compose:ralt"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
mouse { accel-profile "flat"; }
|
|
|
|
|
touchpad {
|
|
|
|
|
click-method "clickfinger"
|
|
|
|
|
natural-scroll
|
|
|
|
|
accel-speed 0.2
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cursor { xcursor-theme "Adwaita"; }
|
|
|
|
|
|
|
|
|
|
layout {
|
|
|
|
|
gaps 60
|
|
|
|
|
center-focused-column "on-overflow"
|
|
|
|
|
always-center-single-column
|
|
|
|
|
empty-workspace-above-first
|
|
|
|
|
|
|
|
|
|
// struts { top -60; }
|
|
|
|
|
focus-ring { off; }
|
|
|
|
|
preset-column-widths {
|
|
|
|
|
proportion 0.5
|
|
|
|
|
proportion 1.0
|
|
|
|
|
}
|
|
|
|
|
insert-hint { color "#9141AC88"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
overview { backdrop-color "#181821"; }
|
|
|
|
|
recent-windows { off; }
|
|
|
|
|
animations { slowdown 0.5; }
|
|
|
|
|
gestures { hot-corners { off; }; }
|
|
|
|
|
|
|
|
|
|
// Internal laptop screen.
|
|
|
|
|
output "BOE 0x0BCA Unknown" { scale 1.125; }
|
|
|
|
|
// LG monitor TandemDrive.
|
|
|
|
|
output "LG Electronics LG Ultra HD 0x00020FEA" { scale 1.25; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
binds {
|
|
|
|
|
Super+Q { close-window; }
|
|
|
|
|
Super+W { spawn "${pkgs.rofi}/bin/rofi" "-show" "drun"; }
|
|
|
|
|
Super+E { spawn "${pkgs.gnome-terminal}/bin/gnome-terminal"; }
|
|
|
|
|
Super+R { spawn "${pkgs.nautilus}/bin/nautilus"; }
|
|
|
|
|
|
|
|
|
|
Super+T { spawn "${pkgs.firefox}/bin/firefox"; }
|
|
|
|
|
Super+Shift+T { spawn "${pkgs.firefox}/bin/firefox" "--private-window"; }
|
|
|
|
|
|
|
|
|
|
Super+A { center-column; }
|
|
|
|
|
Super+S { switch-preset-column-width; }
|
|
|
|
|
Super+D { toggle-window-floating; }
|
|
|
|
|
|
|
|
|
|
Super+U allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "-2%"
|
|
|
|
|
}
|
|
|
|
|
Super+I allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "+2%"
|
|
|
|
|
}
|
|
|
|
|
Super+Shift+I allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "100%"
|
|
|
|
|
}
|
|
|
|
|
Super+O allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-mute" "@DEFAULT_SINK@" "toggle"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Super+P allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.wlr-randr}/bin/wlr-randr" "--output" "eDP-1" "--toggle"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: Replace with toggle script.
|
|
|
|
|
Super+H { spawn "${pkgs.networkmanager}/bin/nmcli" "connection" "up" "airvpn-serbia"; }
|
|
|
|
|
Super+Shift+H {
|
|
|
|
|
spawn "${pkgs.networkmanager}/bin/nmcli" "connection" "down" "airvpn-serbia"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Super+J { spawn "${pkgs.emote}/bin/emote"; }
|
|
|
|
|
// TODO: Put this in linux-utils as Nix package.
|
|
|
|
|
// Super+K allow-when-locked=true { spawn "wl-gammarelay-toggle-temperature"; }
|
|
|
|
|
Super+K allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.systemd}/bin/busctl" "--user" "set-property" "rs.wl-gammarelay" "/" \
|
|
|
|
|
"rs.wl.gammarelay" "Temperature" "q" "4500"
|
|
|
|
|
}
|
|
|
|
|
Super+Shift+K allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.systemd}/bin/busctl" "--user" "set-property" "rs.wl-gammarelay" "/" \
|
|
|
|
|
"rs.wl.gammarelay" "Temperature" "q" "6500"
|
|
|
|
|
}
|
|
|
|
|
// TODO: Set up session-based locking like on Arch.
|
|
|
|
|
// Super+L { spawn "${pkgs.systemd}/bin/loginctl" "lock-session"; }
|
|
|
|
|
Super+L { spawn "${pkgs.hyprlock}/bin/hyprlock"; }
|
|
|
|
|
|
|
|
|
|
// I.e. the Non-Screeching Earwarmers.
|
|
|
|
|
Super+B { spawn "${pkgs.bluez}/bin/bluetoothctl" "connect" "58:18:62:1F:E3:33"; }
|
|
|
|
|
Super+Shift+B { spawn "${pkgs.bluez}/bin/bluetoothctl" "disconnect" "58:18:62:1F:E3:33"; }
|
|
|
|
|
|
|
|
|
|
Super+M { spawn "${pkgs.playerctl}/bin/playerctl" "play-pause"; }
|
|
|
|
|
Super+Comma { spawn "${pkgs.playerctl}/bin/playerctl" "previous"; }
|
|
|
|
|
Super+Period { spawn "${pkgs.playerctl}/bin/playerctl" "next"; }
|
|
|
|
|
|
|
|
|
|
// TODO: Turn in to Nix package.
|
|
|
|
|
// Super+BracketLeft allow-when-locked=true { spawn "ddc-brightness" "down"; }
|
|
|
|
|
// Super+BracketRight allow-when-locked=true { spawn "ddc-brightness" "up"; }
|
|
|
|
|
// Super+Shift+BracketRight allow-when-locked=true { spawn "ddc-brightness" "max"; }
|
|
|
|
|
|
|
|
|
|
Super+Tab { toggle-overview; }
|
|
|
|
|
Super+Space { switch-layout "next"; }
|
|
|
|
|
Super+Escape { spawn "${pkgs.nwg-bar}/bin/nwg-bar"; }
|
|
|
|
|
Super+F11 { fullscreen-window; }
|
|
|
|
|
|
|
|
|
|
Super+Left { focus-column-left; }
|
|
|
|
|
Super+Right { focus-column-right; }
|
|
|
|
|
Super+Up { focus-workspace-up; }
|
|
|
|
|
Super+Down { focus-workspace-down; }
|
|
|
|
|
Super+Home { focus-column-first; }
|
|
|
|
|
Super+End { focus-column-last; }
|
|
|
|
|
|
|
|
|
|
Super+Shift+Left { move-column-left; }
|
|
|
|
|
Super+Shift+Right { move-column-right; }
|
|
|
|
|
Super+Shift+Up { move-column-to-workspace-up; }
|
|
|
|
|
Super+Shift+Down { move-column-to-workspace-down; }
|
|
|
|
|
Super+Shift+Home { move-column-to-first; }
|
|
|
|
|
Super+Shift+End { move-column-to-last; }
|
|
|
|
|
|
|
|
|
|
Super+Control+Shift+Left { move-column-to-monitor-left; }
|
|
|
|
|
Super+Control+Shift+Right { move-column-to-monitor-right; }
|
|
|
|
|
Super+Control+Shift+Up { move-column-to-monitor-up; }
|
|
|
|
|
Super+Control+Shift+Down { move-column-to-monitor-down; }
|
|
|
|
|
|
|
|
|
|
Super+1 { set-column-width "40%"; }
|
|
|
|
|
Super+2 { set-column-width "50%"; }
|
|
|
|
|
Super+3 { set-column-width "66.667%"; }
|
|
|
|
|
Super+4 { set-column-width "75%"; }
|
|
|
|
|
Super+5 { set-column-width "100%"; }
|
|
|
|
|
|
|
|
|
|
// TODO: Add back rectangle screenshot selection.
|
|
|
|
|
Print { screenshot; }
|
|
|
|
|
Super+Print { screenshot-window; }
|
|
|
|
|
|
|
|
|
|
XF86MonBrightnessDown allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.brightnessctl}/bin/brightnessctl" "set" "10%-"
|
|
|
|
|
}
|
|
|
|
|
XF86MonBrightnessUp allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.brightnessctl}/bin/brightnessctl" "set" "+10%"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XF86AudioLowerVolume allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "-2%"
|
|
|
|
|
}
|
|
|
|
|
XF86AudioRaiseVolume allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "+2%"
|
|
|
|
|
}
|
|
|
|
|
XF86AudioMute allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-mute" "@DEFAULT_SINK@" "toggle"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
XF86AudioPlay allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.playerctl}/bin/playerctl" "play-pause"
|
|
|
|
|
}
|
|
|
|
|
XF86AudioPause allow-when-locked=true {
|
|
|
|
|
spawn "${pkgs.playerctl}/bin/playerctl" "play-pause"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window-rule {
|
|
|
|
|
match app-id="firefox" is-floating=false
|
|
|
|
|
match app-id="jetbrains-rustrover" is-floating=false
|
|
|
|
|
match app-id="spotify" is-floating=false
|
2026-09-03 13:57:05 +02:00
|
|
|
match app-id="sublime_merge" is-floating=false
|
2026-09-03 11:54:20 +02:00
|
|
|
|
|
|
|
|
default-column-width { proportion 0.75; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window-rule {
|
|
|
|
|
match app-id="jetbrains-rustrover" is-floating=false
|
|
|
|
|
|
|
|
|
|
clip-to-geometry true
|
|
|
|
|
}
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
"nwg-bar/bar.json".text = ''
|
|
|
|
|
[ {
|
|
|
|
|
"label": "_Lock",
|
|
|
|
|
"exec": "${pkgs.systemd}/bin/loginctl lock-session",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-lock-screen-symbolic.svg"
|
|
|
|
|
}, {
|
|
|
|
|
"label": "Log out",
|
|
|
|
|
"exec": "wayland-logout",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-log-out-symbolic.svg"
|
|
|
|
|
}, {
|
|
|
|
|
"label": "_Suspend",
|
|
|
|
|
"exec": "${pkgs.systemd}/bin/systemctl suspend",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-suspend-symbolic.svg"
|
|
|
|
|
}, {
|
|
|
|
|
"label": "_Hibernate",
|
|
|
|
|
"exec": "${pkgs.systemd}/bin/systemctl hibernate",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-suspend-symbolic.svg"
|
|
|
|
|
}, {
|
|
|
|
|
"label": "Shut down",
|
|
|
|
|
"exec": "${pkgs.systemd}/bin/systemctl poweroff",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-shutdown-symbolic.svg"
|
|
|
|
|
}, {
|
|
|
|
|
"label": "Reboot",
|
|
|
|
|
"exec": "${pkgs.systemd}/bin/systemctl reboot",
|
|
|
|
|
"icon": "/usr/local/share/icons/kernelmaft/scalable/system-restart-symbolic.svg"
|
|
|
|
|
} ]
|
|
|
|
|
'';
|
|
|
|
|
"nwg-bar/style.css".text = ''
|
|
|
|
|
window { background-color: black; }
|
|
|
|
|
|
|
|
|
|
#outer-box { margin: 30px; }
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
padding: 14px;
|
|
|
|
|
background-color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button:hover { background-color: #444; }
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|