Compare commits

...

348 commits

Author SHA1 Message Date
dbc99ec132
alien: configure proton vars and add steam big picture entry 2026-03-26 11:25:07 -04:00
4baab41f2c
use stable openmw 2026-03-26 11:24:34 -04:00
50e1adbbf5
add dearrow firefox extension 2026-03-26 11:24:18 -04:00
d427471309
remove copilot from neovim 2026-03-23 19:02:36 -04:00
5a0d1fa6c8
add dolphin emu 2026-03-23 09:06:01 -04:00
d7074bec8f
add comments and more settings to spotifyd 2026-03-20 15:19:52 -04:00
f813e3853b
update flake 2026-03-20 14:51:02 -04:00
0fc6174d47
refactor widevine 2026-03-16 17:18:51 -04:00
42005cb380
remove custom gamescope & bottles 2026-03-16 17:07:56 -04:00
92d44f4419
update flake 2026-03-16 17:01:03 -04:00
4c7d54629a
changes to gamescope 2026-03-16 12:05:19 -04:00
3c83c0a928
use noctalia's new blur support 2026-03-11 15:13:33 -04:00
476538c4cb
niri: disable xray, make fuzzel transparent 2026-03-11 13:38:17 -04:00
e9e0cc6624
remove hyprland 2026-03-11 13:25:27 -04:00
2b4acb3dd9
remove plasma 2026-03-11 13:24:26 -04:00
63b568c914
generate man caches again 2026-03-09 21:50:44 -04:00
46cb66802f
update flake 2026-03-09 21:49:25 -04:00
30419caa35
remove base16-discord 2026-03-09 21:47:14 -04:00
185963a9c5
fix bibata cursor position ??? 2026-03-09 21:38:27 -04:00
27c26f4ef7
update apple-silicon 2026-03-09 21:09:15 -04:00
95f11b1bc7
changes 2026-03-09 11:24:58 -04:00
28bffa0b68
alien: add factorio server 2026-03-08 10:16:46 -04:00
903cc34632
terminal refactor, move packages to default, inline btop theme 2026-03-05 21:41:12 -05:00
b61c42aeba
turn home/default.nix into skeleton, configure git 2026-03-05 10:22:41 -05:00
984cff894e
kanagawa-dragon -> materiak-dark 2026-03-04 13:44:26 -05:00
1e5b22274a
move ananicy to systemwide 2026-03-03 23:22:53 -05:00
7f8a4c443f
add tinted bibata cursors 2026-03-03 20:40:48 -05:00
60cc37b97a
switch to swaylock-effects 2026-03-03 18:05:01 -05:00
bfe8141a86
remove sunshine and gamescope nested session 2026-03-03 17:49:52 -05:00
3bad9cb4a7
move mimeapps to home/services, add handler for kitty 2026-03-03 17:45:40 -05:00
bfb60a0ff6
disable kde, enable autologin with swaylock 2026-03-03 17:32:22 -05:00
ee71554e6f
fix noctalia battery widget 2026-03-03 16:19:52 -05:00
f258beb032
use gamescope for all systems 2026-03-03 16:19:44 -05:00
51f28a74d6
update niri 2026-03-03 13:05:05 -05:00
bd35a64a27
disable qbittorrent 2026-03-03 12:31:10 -05:00
684a6eea14
remove spicetify 2026-03-02 18:04:28 -05:00
628166f8f0
disable discord 2026-03-02 13:46:28 -05:00
53c2df23d0
switch icon theme to adwaita 2026-03-02 13:46:10 -05:00
3e61bdcd8b
disable hyprland for now 2026-03-01 19:48:40 -05:00
dc69c8e6f6
wip: add hyprland 2026-02-28 12:41:55 -05:00
cb394d1634
drop later: calibre is currently broken 2026-02-28 11:53:15 -05:00
22ff823804
update niri, rename openmw, remove cat-discord, refactor flake inputs 2026-02-28 11:40:56 -05:00
813840b6cc
remove aerothemeplasma 2026-02-27 16:43:55 -05:00
94bdffcf2b
update kernels 2026-02-27 14:24:56 -05:00
bdd356790c
remove discord font override, pnevma -> banana-blueberry 2026-02-27 14:20:50 -05:00
9b15e8df5b
update niri 2026-02-26 19:42:08 -05:00
df7026b59e
add obs 2026-02-26 16:34:23 -05:00
e554c3b752
unfloat firefox picture-in-picture 2026-02-25 13:54:21 -05:00
299b90d1f2
reduce dependence on noctalia ipc 2026-02-25 13:47:21 -05:00
50b664d46b
add mute and toggle opacity keys to niri 2026-02-25 12:28:42 -05:00
8d8943977f
edit noctalia systemd service 2026-02-25 12:28:24 -05:00
9b2d9cfedb
move macbook display to its home/hosts 2026-02-24 11:16:50 -05:00
ca3d16bed7
changes to niri & firefox 2026-02-23 18:43:22 -05:00
7487cd0a7a
peach -> hopscotch theme 2026-02-23 16:30:44 -05:00
7b31387d3c
change niri and noctalia opacities 2026-02-22 16:27:15 -05:00
6a8af8942b
fix VM 2026-02-22 13:02:46 -05:00
14eb4fd425
colorize wallpaper 2026-02-22 12:17:46 -05:00
c5426c573a
switch from awww to wbg, fight over? 2026-02-22 11:54:32 -05:00
b7a580ca5c
reformat niri 2026-02-22 11:49:11 -05:00
c6ca2cccae
wallpaper updates in prep to switch to wbg 2026-02-22 11:48:53 -05:00
15d6d34ef7
refactor session vars 2026-02-21 20:00:16 -05:00
b91bf4779c
add niri blur 2026-02-21 09:58:07 -05:00
1ecf9fa51a
make systemd services more robust 2026-02-21 09:48:03 -05:00
63b96ffd43
peach: frappe -> mocha 2026-02-20 22:01:49 -05:00
05b2f188f5
switch from mpvpaper to awww, refactor wallpaper 2026-02-20 21:56:56 -05:00
f8bec21820
fix: wallpaper aspect ratio 2026-02-20 18:30:49 -05:00
af13cb972a
add torrenting config 2026-02-20 16:44:06 -05:00
00778aadbb
move searxng to port 5364 2026-02-20 16:43:31 -05:00
d92a7428c7
switch from wpaperd to mpvpaper 2026-02-20 14:56:55 -05:00
5a4e06d465
use nixpkgs-unstable again 2026-02-19 13:12:38 -05:00
435a46ac0e
lock tt-schemes to good catppuccin version 2026-02-19 11:44:48 -05:00
18f33e6b8f
remove riff for now 2026-02-19 11:43:12 -05:00
bc73ba1721
change searxng weights 2026-02-19 11:34:13 -05:00
4f00eac45d
update kitty theme 2026-02-19 11:34:00 -05:00
ab17e1f300
use base16 for fish 2026-02-19 11:30:42 -05:00
57101322bd
redo neovim theme 2026-02-19 11:08:42 -05:00
236a4833f9
fix cachyos kernel cache 2026-02-18 13:49:50 -05:00
9705e9f47c
add aerothemeplasma 2026-02-17 19:44:10 -05:00
a381fd79a9
aaa 2026-02-16 11:19:04 -05:00
d114f30429
update openmw 2026-02-13 13:23:52 -05:00
0b2734b053
improve firefox theme 2026-02-12 22:27:08 -05:00
15d45f9c49
add git repo to bookmarks 2026-02-12 22:04:21 -05:00
7a6fbff426
aaa 2026-02-11 21:12:00 -05:00
840e3e1398
fix apple-silicon not building 2026-02-09 09:09:46 -05:00
5b0df97764
fix mpv accent color 2026-02-09 20:44:02 -05:00
2c18755ee7
switch back to firefox and use searxng 2026-02-09 09:47:58 -05:00
c32c8fcc50
set fuzzel icons to colloid 2026-02-09 09:47:30 -05:00
5ec404194a
refactor noctalia 2026-02-09 09:03:55 -05:00
a2b7ab0444
add power profiles daemon 2026-02-09 00:01:42 -05:00
a5fd0bf597
fix accents 2026-02-08 21:32:44 -05:00
94c1f574cb
changes 2026-02-08 18:15:27 -05:00
b7c561136b
configure dconf 2026-02-07 17:49:17 -05:00
452b03f6f9
add niri shadow 2026-02-07 17:05:34 -05:00
7784a952a9
add more default apps 2026-02-07 15:46:08 -05:00
64256689f2
alien: add gamemode and proton-ge 2026-02-07 13:22:06 -05:00
53f864d037
fix xwayland in niri 2026-02-07 13:21:53 -05:00
c2f01cf31d
update openmw 2026-02-06 22:00:45 -05:00
7e322b21f8
changes to niri/noctalia, add fuzzel 2026-02-06 21:49:13 -05:00
fcd82c39b5
handle default apps with xdg 2026-02-06 14:05:07 -05:00
637cdfe16e
alien: switch to stable kernel+nvidia, everywhere: add chromium 2026-02-06 13:59:51 -05:00
a26f9784b3
add vintagestory 1.21.4 2026-02-06 13:40:51 -05:00
7bc2a3370b
update apple-silicon flake 2026-02-05 14:06:51 -05:00
73f27bda56
changes 2026-02-05 14:01:03 -05:00
0acdd9936a
disable forced flag in noctalia night light 2026-02-02 10:33:36 -05:00
ccc140beea
alien: re-enable ddc 2026-02-01 19:38:21 -05:00
53df4ce2c3
alien: fix gamescope in steam 2026-02-01 19:37:59 -05:00
e26702b83d
changes 2026-02-01 10:56:22 -05:00
c384d4a44c
move pinentry package to system-declaration 2026-01-30 15:20:39 -05:00
b59dc3c933
add umask=0077 to boot partitions 2026-01-30 15:20:25 -05:00
6e903422bb
make niri resizing more precise 2026-01-30 13:38:46 -05:00
53d35f6349
add lazy{git,sql} and neovim autocomplete 2026-01-30 13:38:17 -05:00
94991e6ad7
use home-manager mpv config 2026-01-30 13:28:41 -05:00
03cfc3ab73
peach: refactor hardwarre 2026-01-29 20:49:07 -05:00
b8c4831a4c
add html to files handled by prettier in neovim 2026-01-29 20:20:45 -05:00
141f7e28e6
set gpg pinentry to curses 2026-01-29 20:20:07 -05:00
4eb7321460
alien: adjust hardware setup 2026-01-29 20:19:50 -05:00
69a1bf179f
switch up nixpkgs decs 2026-01-29 20:25:42 -05:00
dda84d948c
alien: add hard drives in raid0 2026-01-29 13:09:39 -05:00
81cca7b7bd
changes 2026-01-29 08:52:21 -05:00
567de5ca7d
update flake 2026-01-28 08:46:52 -05:00
0374b37e55
updates for peach reinstall 2026-01-28 00:04:13 -05:00
2a7d450284
update flake 2026-01-26 15:41:31 -05:00
e617b539e4
switch to limine boot 2026-01-25 13:42:22 -05:00
d1b4a4c179
re-add catppuccin discord 2026-01-25 13:41:23 -05:00
f271f86d15
changes 2026-01-24 12:32:53 -05:00
0368b5ff69
refactor wallpaper 2026-01-24 01:43:15 -05:00
16cdb91f7d
add niri blur 2026-01-24 01:43:03 -05:00
a66c88c379
switch to unstable 2026-01-22 12:40:17 -05:00
fb18ff7455
switch to base16 project-wide 2026-01-21 14:04:21 -05:00
b46e8dbb37
changes 2026-01-21 10:07:43 -05:00
ec8c0bea85
add spotify: riff 2026-01-20 22:50:30 -05:00
565d248c71
add prowlarr stack 2026-01-20 19:57:32 -05:00
2952135ab1
switch peach back to mocha/peach 2026-01-20 19:57:21 -05:00
2f5f16ec1c
update niri config 2026-01-20 19:57:02 -05:00
62032eab6d
switch back to nixfmt 2026-01-19 22:27:28 -05:00
6d30e0a9f5
move openmw to overlay.nix 2026-01-19 21:57:56 -05:00
ac2399c9aa
wallpaper: use wpaperd 2026-01-19 14:34:26 -05:00
963fe175cd
disable kde for now 2026-01-19 13:47:24 -05:00
72a9b9e892
use upstream noctalia-shell theming 2026-01-19 13:30:34 -05:00
e228035134
refactor home/tiling
refactor home/terminal

refactor home/apps

refactor home/services

refactor home/games
2026-01-19 12:40:30 -05:00
c241155b93
update niri config 2026-01-19 12:35:29 -05:00
ca7d6de714
update flake 2026-01-17 15:10:11 -05:00
02a3d5ae44
add git aliases, remove redundant line in catppuccin-discord 2026-01-16 12:03:35 -05:00
7c4e07af40
move custom noctalia shell to packages/ 2026-01-16 11:18:25 -05:00
4d1e348f38
revert to pure sddm & peach: add ddc support 2026-01-16 11:03:50 -05:00
687c61c4b6
get rid of mkSource 2026-01-16 10:00:31 -05:00
b381e1785d
move all url fetches into main flake 2026-01-15 22:39:47 -05:00
61799a275e
remove altserver 2026-01-15 22:21:08 -05:00
9c4d353ef5
changes 2026-01-15 18:32:50 -05:00
59c15a65ad
add custom openmw 2026-01-15 18:08:10 -05:00
9ab5a2ce66
update flake 2026-01-15 17:18:19 -05:00
255745d4a3
switch to asahi kernel overlay 2026-01-15 17:16:55 -05:00
11a8f3e009
changes to niri 2026-01-15 17:06:17 -05:00
fdda29ecb9
wip: altserver from source 2026-01-15 16:27:18 -05:00
26899f676f
add custom altserver package 2026-01-15 12:46:01 -05:00
d9a219fa10
avoid regenerating man cache for every rebuild 2026-01-15 11:42:28 -05:00
7129246178
configure bat 2026-01-15 11:33:33 -05:00
620a906c3e
changes to niri 2026-01-15 11:33:14 -05:00
b3b2cddabe
fix spotifyd volume & remove unecessary catppuccin cursors 2026-01-15 11:32:24 -05:00
5b736e0248
move hostname dec to flake 2026-01-15 11:31:50 -05:00
719ec8949c
switch to librewolf & finish its theme 2026-01-15 09:21:06 -05:00
730f7fbceb
various catppuccin changes 2026-01-14 16:54:50 -05:00
766115ee4b
misc changes 2026-01-14 15:48:07 -05:00
9ef9476f80
configure firefoxpwa 2026-01-14 14:50:25 -05:00
0913501ba3
write kitty's color theme ourselves 2026-01-14 12:38:57 -05:00
0c1cab042c
peach: update fairydust to 6.18.4 2026-01-14 12:11:45 -05:00
ebc0421b21
use sddm for alien and gdm for peach (fairydust problem) 2026-01-14 11:58:34 -05:00
390f164d4a
asahi: switch to fairydust kernel, alien: switch to vanilla kernel 2026-01-14 11:50:02 -05:00
225c73dd43
remove v4l2loopback 2026-01-13 20:04:40 -05:00
02aba5b7c1
massive structural changes 2026-01-13 14:46:30 -05:00
5f7200bf6b
add unstable nixpkgs 2026-01-13 13:11:31 -05:00
8c6a7296f5
changes 2026-01-11 15:23:27 -05:00
0d7f0ef4dc
remove spotifyd overlay 2026-01-11 15:15:41 -05:00
077989a154
changes 2026-01-09 15:04:51 -05:00
cc5d8acf32
pin to 25.11 2026-01-08 14:59:26 -05:00
b4de545e03
update flake 2026-01-07 20:37:02 -05:00
0fe2dff27c
changes 2026-01-07 19:41:09 -05:00
a40d9a0b86
refactor gtk and qt themes 2026-01-07 14:04:41 -05:00
6e2f381a6b
ugh gtk 2026-01-07 13:44:43 -05:00
b3aa736113
update terminal 2026-01-07 13:23:11 -05:00
9d91f0dba4
finally fix gtk3 theme and home-manager split from system 2026-01-06 14:07:05 -05:00
6da37f70b3
update fish prompt 2026-01-06 12:50:26 -05:00
f6f8af69c6
add more VM configs 2026-01-06 12:26:05 -05:00
f6dbc88abb
make vm architecture agnostic 2026-01-06 11:03:26 -05:00
a6ddd527d4
move tailscale setting to its proper place 2026-01-05 17:48:23 -05:00
fcd9e04432
update flake, changes 2026-01-03 14:55:42 -05:00
6aa4fe8d09
update flake 2025-12-30 20:48:59 -05:00
7b3da66748
use noctalia ipc for brightness 2025-12-29 19:21:46 -05:00
d3665d35c1
update neovim 2025-12-28 15:40:34 -05:00
bb8af61737
alien: remove games 2025-12-27 08:25:33 -05:00
36f85a49dd
add nixd to neovim 2025-12-27 08:15:07 -05:00
63d7ffc2fc
update niri and keybinds 2025-12-27 08:14:04 -05:00
28043aded9
format with alejandra 2025-12-24 11:29:41 -05:00
9915af6522
update flake 2025-12-24 10:38:14 -05:00
a2beaca5f9
update flake 2025-12-19 13:07:24 -05:00
2207d0ca62
switch to helium from nur 2025-12-19 13:05:41 -05:00
1666d20a66
spin off games folder 2025-12-19 12:54:45 -05:00
1faa92d85b
add ssh pubkey 2025-12-18 11:53:14 -05:00
db11319668
alien: remove autologin 2025-12-18 10:50:27 -05:00
06c8c267e6
modify font vars and add emojis 2025-12-18 10:49:43 -05:00
433d976629
wip: update firefox theme 2025-12-18 10:49:20 -05:00
92614f1c05
wip: fix gtk, qt themes 2025-12-17 21:21:20 -05:00
24b57f18df
attempt to fix wallpaper applying with noctalia 2025-12-17 15:35:08 -05:00
e08062939f
update flake 2025-12-17 15:33:57 -05:00
d7210506a9
alien: fix ddc again 2025-12-17 15:08:14 -05:00
f1810eb104
fix discord catppuccin theme packaging 2025-12-17 12:20:17 -05:00
a3d91c2d46
remove teal button hover in noctalia 2025-12-17 11:38:30 -05:00
e2912337ab
remove old tiling configs 2025-12-17 11:08:25 -05:00
65be83623e
fix nixvim formatters 2025-12-17 11:03:34 -05:00
e18d4b2770
nix-native config for discord/vesktop 2025-12-17 10:55:13 -05:00
10dc026185
updates to firefox 2025-12-16 11:20:12 -05:00
2201b838bf
add spotify webapp 2025-12-15 21:22:46 -05:00
db416ee93a
update kitty 2025-12-15 16:15:20 -05:00
78b9c84e62
alien: enable and use i2c and ddcutil 2025-12-15 15:25:15 -05:00
8eb28c23ee
alien: use cachyos kernel 2025-12-15 15:11:10 -05:00
88285e396f
alien: add gamescope 2025-12-15 14:36:26 -05:00
3431f28102
alien: configure 4k dp monitor 2025-12-15 12:55:38 -05:00
9980c7fa8e
changes, add mpv 2025-12-14 17:53:34 -05:00
644c291b69
go to by-label for peach 2025-12-14 15:38:43 -05:00
dc8d6c3db3
modify structure 2025-12-14 15:35:13 -05:00
86f63580fc
fix firefox widevine 2025-12-14 15:23:45 -05:00
71a0139aaf
use colloid gtk theme 2025-12-14 13:55:15 -05:00
94930a13b8
use upstream equivalent of linux-6.17-11 declaration 2025-12-14 13:09:51 -05:00
32ccf53258
updates to qt theming 2025-12-14 13:09:27 -05:00
6ff58e0ae6
other mesa fix didn't work 2025-12-14 12:31:53 -05:00
1f4a269d40
set up 26.05 home manager qt config 2025-12-14 12:31:45 -05:00
2932d8a443
rebase to unstable
update lock (12/15/2025)
2025-12-14 10:38:46 -05:00
61eb9ef02c
changes to niri 2025-12-14 10:36:02 -05:00
7772bb6b67
fix cursors 2025-12-14 10:13:58 -05:00
7d3236a75f
use noctalia for wallpaper 2025-12-14 03:00:53 -05:00
fe82f49c7d
fix niri overlay 2025-12-14 02:01:59 -05:00
6641cfac30
many changes 2025-12-14 00:38:59 -05:00
f513a28414
fix asahi niri bug 2025-12-13 23:57:04 -05:00
39bcaddfeb
limit amount of configurations 2025-12-13 23:56:38 -05:00
362df45987
fully remove flavor and accent-specific catppuccin configs 2025-12-13 22:49:47 -05:00
679b37b1ea
rebase flake back to 25.11/rolling 2025-12-13 21:39:18 -05:00
229e201897
switch niri config to nix format 2025-12-13 21:31:54 -05:00
a305327dc5
add bing wallpaper for niri 2025-12-13 19:44:24 -05:00
9ee186f340
add noctalia 2025-12-13 13:48:33 -05:00
fcac084248
further changes to niri 2025-12-13 13:43:00 -05:00
a728e3b0eb
if it ain't broke 2025-12-13 13:09:33 -05:00
d94bd6d7d0
redo tiling theming 2025-12-13 12:54:44 -05:00
f3648ea211
update flake and disable main catppuccin 2025-12-13 12:35:11 -05:00
53973bbfb1
updates to tiling 2025-12-13 12:09:17 -05:00
8a7dd224f9
updates 2025-12-12 13:23:24 -05:00
7d9fc767db
updates to tiling and neovim 2025-12-11 22:26:19 -05:00
7e17ef312d
updates 2025-12-08 12:18:05 -05:00
a82e6b789f
switch vm to by-label 2025-12-04 15:03:03 -05:00
f35d65f94d
add sunshine/moonlight streaming 2025-12-04 13:39:41 -05:00
bd6c1d60ae
changes 2025-12-04 12:57:22 -05:00
c9f757e4bd
modify fish, kitty and neovim 2025-12-04 12:40:08 -05:00
20225b4295
pin flake to stable 25.11 2025-12-03 16:49:54 -05:00
f00a845f2c
remove catppuccin window decorations 2025-12-03 16:46:55 -05:00
373f1b85cc
make sure widevine-firefox is only applied to aarch64 2025-12-03 16:28:25 -05:00
559df9da6b
changes 2025-12-03 16:19:39 -05:00
0cd61c0a9d
add bitwarden 2025-12-03 13:28:11 -05:00
fb429f8293
changes 2025-12-03 11:04:34 -05:00
2bfae6b6c1
pin flake to unstable 2025-12-02 18:21:51 -05:00
3751597ca2
more firefox changes 2025-12-02 16:03:32 -05:00
c62024f426
update helium 2025-12-02 14:07:10 -05:00
18b1d057c0
various updates to firefox 2025-12-02 12:09:46 -05:00
e1f8d9d466
update fish prompt 2025-12-02 09:53:47 -05:00
68049b7893
switch vm to parallels 2025-12-01 20:27:42 -05:00
ec0108af66
add calibre 2025-12-01 19:34:30 -05:00
d437c762fd
add spotifyd 2025-12-01 15:59:05 -05:00
27d3704a6a
fix mesa 25.3 regression 2025-12-01 14:36:31 -05:00
f75527e426
add java again 2025-12-01 14:36:31 -05:00
a00ffd43b9
update fish prompt 2025-12-01 13:23:20 -05:00
37bbb9695d
switch back to upstream prismlauncher 2025-12-01 13:09:44 -05:00
01b07aa0ff
switch back to upstream strawberry 2025-12-01 13:08:45 -05:00
365a03bad6
switch back to rolling 2025-12-01 12:47:12 -05:00
7e657cddc1
add aarch64 vm 2025-12-01 12:23:07 -05:00
9a381083f1
changes 2025-11-30 15:27:45 -05:00
cb9e4508e6
add daggerfall and zelda 2025-11-29 12:25:01 -05:00
be8e5e6407
add hash for new helium 2025-11-24 09:38:05 -05:00
1ff39e94b6
add compose2nix to alien 2025-11-24 09:36:32 -05:00
38e4f2320b
fix helium widevine x86_64 2025-11-24 09:32:57 -05:00
61e020288c
switch noto to nerd font variant 2025-11-23 16:39:19 -05:00
b977829277
changes to nvim and kde 2025-11-23 13:25:59 -05:00
c2ab4f76cc
wip: add niri wm 2025-11-23 13:13:32 -05:00
278f87f4c7
use newer tag for prism-launcher 2025-11-23 10:24:35 -05:00
e0ce786646
update plasma 2025-11-23 10:02:55 -05:00
6693299535
improve home-manager catppuccin 2025-11-22 15:22:12 -05:00
4f15e4623c
update fish 2025-11-22 13:16:23 -05:00
f2610a0432
mitigate mesa 25.3 issue 2025-11-21 10:39:04 -05:00
7ca285280e
update flake.lock 2025-11-21 10:36:34 -05:00
7361a02755
changes 2025-11-21 09:49:32 -05:00
82a65fab84
update systemd 2025-11-21 09:48:07 -05:00
ef0ac2dab4
update helium 2025-11-19 20:54:57 -05:00
8eeb0669e5
update vscode 2025-11-19 14:36:10 -05:00
94cf39da75
wip: aarch64 widevine for helium 2025-11-19 13:51:39 -05:00
69b7fb4cec
add binfmt emulation 2025-11-18 16:53:32 -05:00
d87b0b45cd
update strawberry and lock its commit 2025-11-18 11:43:15 -05:00
26977f99d8
update flake.lock 2025-11-18 11:16:01 -05:00
db238bda7a
wip: add vscode 2025-11-18 11:03:56 -05:00
88c4990578
update helium 2025-11-17 10:09:56 -05:00
f7f4061085
add virtualization 2025-11-14 09:47:05 -05:00
42651d51c0
fix firmware directory 2025-11-14 08:53:43 -05:00
227a48500e
add rc and caching for rclone 2025-11-13 23:27:02 -05:00
4b1245fea3
fix and update rclone 2025-11-13 22:28:35 -05:00
b3b0c86d3e
update kitty 2025-11-13 22:32:16 -05:00
24961c4333
add btop and update kitty 2025-11-13 21:36:37 -05:00
7d86fc8027
fix helium gsettings warning 2025-11-13 20:18:07 -05:00
fdbfd8d6a6
remove firefox from taskbar 2025-11-13 19:47:27 -05:00
1b5af61002
fix pip rule for chromium browsers 2025-11-13 19:10:30 -05:00
a7a25b1d7b
switch helium-browser to non-appimage 2025-11-13 17:54:50 -05:00
7dba6d3bf4
wip: aarch64 widevine for helium 2025-11-13 17:00:09 -05:00
c52381a6d0
fix pwas for firefox 2025-11-13 16:04:54 -05:00
2a541c3504
edit helium package 2025-11-13 16:01:41 -05:00
2c4481ac72
fix firefox text 2025-11-13 15:50:09 -05:00
f1a03a7f5f
fix rclone 2025-11-13 15:09:03 -05:00
4e1e0edfb5
update flake.lock 2025-11-13 14:54:14 -05:00
ec7197316a
finish current refactor 2025-11-13 14:50:12 -05:00
c11f713e34
firefox refactor 2025-11-13 13:41:00 -05:00
5b648d9784
wip: refactor structure 2025-11-13 11:29:01 -05:00
32ab27ac62
add helium browser 2025-11-13 10:04:30 -05:00
8c1b135dbc
changes 2025-11-12 16:36:45 -05:00
1abf84fca2
add synology mount 2025-11-12 13:30:49 -05:00
c5c9789c6a
autostart input-leap 2025-11-12 11:09:56 -05:00
56a3a55239
add autologin for alien 2025-11-12 10:54:17 -05:00
a0181c5e0b
aaa 2025-11-11 21:20:43 -05:00
3a3884cc9e
update plasma config 2025-11-11 11:16:21 -05:00
9395e3ea49
enable widevine for chromium and firefox 2025-11-10 15:01:55 -05:00
5573293a41
add extensions 2025-11-08 19:40:55 -05:00
d232c420b4
more plasma changes 2025-11-08 12:59:18 -05:00
cac2d82f46
more plasma changes 2025-11-08 11:31:05 -05:00
60ce56a055
add strawberry from git 2025-11-08 09:52:26 -05:00
16dc6466a9
add chromium 2025-11-08 09:13:00 -05:00
e075cbd912
add asahi packages 2025-11-08 08:04:09 -05:00
6fff736006
more panel changes 2025-11-07 22:41:58 -05:00
6970ae6974
broken: add firmware to tracking 2025-11-07 22:31:10 -05:00
4e5ba99872
remove rclone 2025-11-07 20:56:01 -05:00
1a7e251874
remove asahi firmware extraction 2025-11-07 20:55:01 -05:00
279c1ef2ce
flake update 2025-11-07 20:53:35 -05:00
bee9d7c135
changes to both panel alts 2025-11-07 19:58:11 -05:00
92b9b80af5
minor changes 2025-11-07 19:31:14 -05:00
a6cb436754
add workaround for broken key 2025-11-07 19:14:22 -05:00
54954912a1
split off systray into 2 areas 2025-11-07 19:09:37 -05:00
31a49353d2
add wallpaper 2025-11-07 18:55:52 -05:00
b3934cfd7d
add kate and alien global menu 2025-11-07 18:42:22 -05:00
34eb7fd06a
fix alien formatting 2025-11-07 17:48:05 -05:00
439a1ad75c
fix rclone 2025-11-07 17:44:38 -05:00
83dfbf9260
add nixvim config 2025-11-07 15:44:57 -05:00
1da91f0176
plasma-manager and other changes 2025-11-06 12:33:16 -05:00
315e7eb23e
add openmw 2025-11-05 15:28:43 -05:00
c25871e480
fix asahi audio 2025-11-05 15:03:47 -05:00
27a75b03c7
spin off all.nix 2025-11-05 13:40:27 -05:00
aee51814ae
updates 2025-11-05 13:26:16 -05:00
58 changed files with 7079 additions and 371 deletions

5
.gitignore vendored
View file

@ -1,2 +1,3 @@
firmware
hardware-configuration.nix
system/hosts/peach/firmware/*
result
*.qcow2

View file

@ -1,208 +0,0 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
#./apple-silicon-support
];
# Bootloader.
# boot.loader.systemd-boot = {
# enable = true;
# # configurationLimit = null;
# };
# boot.loader.efi.canTouchEfiVariables = false;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.sckova = {
imports = [
./home.nix
];
};
boot = {
loader = {
timeout = 3;
systemd-boot = {
enable = true;
configurationLimit = null;
# consoleMode = "max";
};
efi = {
canTouchEfiVariables = false;
};
};
# Silent Boot
# https://wiki.archlinux.org/title/Silent_boot
kernelParams = [
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"boot.shell_on_fail"
"apple_dcp.show_notch=1"
];
consoleLogLevel = 0;
# https://github.com/NixOS/nixpkgs/pull/108294
initrd.verbose = false;
};
swapDevices = [{
device = "/swapfile";
size = 32000; # 32GB
}];
# networking.hostName = "peach"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable OpenGL
hardware.graphics = {
enable = true;
};
services = {
desktopManager.plasma6.enable = true;
displayManager.sddm = {
enable = true;
wayland.enable = true;
enableHidpi = true;
};
libinput.enable = true;
tailscale = {
enable = true;
useRoutingFeatures = "client";
};
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users.users.sckova = {
isNormalUser = true;
description = "Sean Kovacs";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
hashedPassword = "$6$bvwRUFaJNMpH8rm3$FGDWFN6tBScJ/2DynAjnlZE8JRfyADN78d6c4GawxpAjyNLNE/AjQzMA09tLRqpKX7WnN5PIUZLAm2bT9/RbG0";
};
security.sudo.wheelNeedsPassword = false;
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment = {
systemPackages = with pkgs; [
rclone
git
];
};
fileSystems."/mnt/nas" = {
device = "synology:/home";
fsType = "rclone";
options = [
"nodev"
"nofail"
"allow_other"
"args2env"
"config=/etc/nixos/configs/rclone.conf"
];
};
# programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [
# # Add any missing dynamic libraries for unpackaged programs
# # here, NOT in environment.systemPackages
# ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.05"; # Did you read the comment?
}

556
flake.lock generated
View file

@ -3,16 +3,14 @@
"apple-silicon": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1761514810,
"narHash": "sha256-rOEir3x37RRWO+lFia8C9HAThARg+pubRF2hrWQeeEE=",
"lastModified": 1773418853,
"narHash": "sha256-ELGvz8LW3fEzBTO1FpojRAPqp7+9xs5lspZb9NoZrbY=",
"owner": "nix-community",
"repo": "nixos-apple-silicon",
"rev": "e01011ebc0aa7a0ae6444a8429e91196addd45f4",
"rev": "2fbdf62451bcd9fc83ca99c56a6e379df8c47c8d",
"type": "github"
},
"original": {
@ -21,33 +19,63 @@
"type": "github"
}
},
"catppuccin": {
"base16": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
"fromYaml": "fromYaml"
},
"locked": {
"lastModified": 1762198582,
"narHash": "sha256-P9giW/1Crn7ekQt4YIbONJ/hKFaHkTwyhz82FCjh+OM=",
"owner": "catppuccin",
"repo": "nix",
"rev": "08716214674ca27914daa52e6fa809cc022b581e",
"lastModified": 1755819240,
"narHash": "sha256-qcMhnL7aGAuFuutH4rq9fvAhCpJWVHLcHVZLtPctPlo=",
"owner": "SenchoPens",
"repo": "base16.nix",
"rev": "75ed5e5e3fce37df22e49125181fa37899c3ccd6",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "nix",
"owner": "SenchoPens",
"repo": "base16.nix",
"type": "github"
}
},
"cachyos-kernel": {
"flake": false,
"locked": {
"lastModified": 1773637879,
"narHash": "sha256-hFKu2SaRoqt6+zbmcFW6A0AbBENIX8XooJLXQWa3sLc=",
"owner": "CachyOS",
"repo": "linux-cachyos",
"rev": "fa09a5bc69d3e7feeed9b1402c7df06c8170402a",
"type": "github"
},
"original": {
"owner": "CachyOS",
"repo": "linux-cachyos",
"type": "github"
}
},
"cachyos-kernel-patches": {
"flake": false,
"locked": {
"lastModified": 1773635524,
"narHash": "sha256-JErpxWTdoHq4JuDerfsbPA60FmWOxK4oX9UL9CcsP/Q=",
"owner": "CachyOS",
"repo": "kernel-patches",
"rev": "5544a0679fd6f6fb714e275514449c4ab9db2a53",
"type": "github"
},
"original": {
"owner": "CachyOS",
"repo": "kernel-patches",
"type": "github"
}
},
"flake-compat": {
"locked": {
"lastModified": 1746162366,
"narHash": "sha256-5SSSZ/oQkwfcAz/o/6TlejlVGqeK08wyREBQ5qFFPhM=",
"lastModified": 1761640442,
"narHash": "sha256-AtrEP6Jmdvrqiv4x2xa5mrtaIp3OEe8uBYCDZDS+hu8=",
"owner": "nix-community",
"repo": "flake-compat",
"rev": "0f158086a2ecdbb138cd0429410e44994f1b7e4b",
"rev": "4a56054d8ffc173222d09dad23adf4ba946c8884",
"type": "github"
},
"original": {
@ -56,6 +84,98 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1767039857,
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "NixOS",
"repo": "flake-compat",
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1772408722,
"narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1769996383,
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"fromYaml": {
"flake": false,
"locked": {
"lastModified": 1731966426,
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
"owner": "SenchoPens",
"repo": "fromYaml",
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "fromYaml",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -63,11 +183,11 @@
]
},
"locked": {
"lastModified": 1762351818,
"narHash": "sha256-0ptUDbYwxv1kk/uzEX4+NJjY2e16MaAhtzAOJ6K0TG0=",
"lastModified": 1774007980,
"narHash": "sha256-FOnZjElEI8pqqCvB6K/1JRHTE8o4rer8driivTpq2uo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "b959c67241cae17fc9e4ee7eaf13dfa8512477ea",
"rev": "9670de2921812bc4e0452f6e3efd8c859696c183",
"type": "github"
},
"original": {
@ -76,13 +196,100 @@
"type": "github"
}
},
"niri": {
"inputs": {
"niri-stable": "niri-stable",
"niri-unstable": [
"niri-blur"
],
"nixpkgs": [
"nixpkgs-unstable"
],
"nixpkgs-stable": [
"nixpkgs-stable"
],
"xwayland-satellite-stable": "xwayland-satellite-stable",
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1771682768,
"narHash": "sha256-RJ9RVJSAktCgWiqLDCjYmx9KgMuLaszUrI28k92Pa2I=",
"owner": "sckova",
"repo": "niri-flake",
"rev": "383bd9d32706b163807b05983418069b2e692310",
"type": "github"
},
"original": {
"owner": "sckova",
"ref": "feat/blur",
"repo": "niri-flake",
"type": "github"
}
},
"niri-blur": {
"flake": false,
"locked": {
"lastModified": 1773732451,
"narHash": "sha256-ky0eBF/zoiJTIoLSpV1EmupVCEZMSp9pQIlHOpvDoMU=",
"owner": "niri-wm",
"repo": "niri",
"rev": "17577e7db0e530d56e74ec244a185cdd1b9ad6cc",
"type": "github"
},
"original": {
"owner": "niri-wm",
"ref": "wip/branch",
"repo": "niri",
"type": "github"
}
},
"niri-stable": {
"flake": false,
"locked": {
"lastModified": 1756556321,
"narHash": "sha256-RLD89dfjN0RVO86C/Mot0T7aduCygPGaYbog566F0Qo=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "01be0e65f4eb91a9cd624ac0b76aaeab765c7294",
"type": "github"
},
"original": {
"owner": "YaLTeR",
"ref": "v25.08",
"repo": "niri",
"type": "github"
}
},
"nix-cachyos-kernel": {
"inputs": {
"cachyos-kernel": "cachyos-kernel",
"cachyos-kernel-patches": "cachyos-kernel-patches",
"flake-compat": "flake-compat_2",
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1773804995,
"narHash": "sha256-LL6EG35pbxgjsqYIpwUnpHGDmKFYttE+BILBNhsEaJk=",
"owner": "xddxdd",
"repo": "nix-cachyos-kernel",
"rev": "3286b7ecf1d864e2be050af78aa633d4e3ae8fdb",
"type": "github"
},
"original": {
"owner": "xddxdd",
"ref": "release",
"repo": "nix-cachyos-kernel",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1762111121,
"narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=",
"lastModified": 1768305791,
"narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b3d51a0365f6695e7dd5cdf3e180604530ed33b4",
"rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e",
"type": "github"
},
"original": {
@ -92,12 +299,305 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1772328832,
"narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1773814637,
"narHash": "sha256-GNU+ooRmrHLfjlMsKdn0prEKVa0faVanm0jrgu1J/gY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fea3b367d61c1a6592bc47c72f40a9f3e6a53e96",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1773821835,
"narHash": "sha256-TJ3lSQtW0E2JrznGVm8hOQGVpXjJyXY2guAxku2O9A4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b40629efe5d6ec48dd1efba650c797ddbd39ace0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1773738184,
"narHash": "sha256-zWRjT5oPabNCiC1A3QkFXpfnsgUjyg6fUZWC+IiiZH0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "41a2715cc472025a19bc0eb9dc4ee8b7406bfa6f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1770107345,
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
},
"locked": {
"lastModified": 1772402258,
"narHash": "sha256-3DmCFOdmbkFML1/G9gj8Wb+rCCZFPOQtNoMCpqOF8SA=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "21ae25e13b01d3b4cdc750b5f9e7bad68b150c10",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixvim",
"type": "github"
}
},
"noctalia": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"noctalia-qs": "noctalia-qs"
},
"locked": {
"lastModified": 1774029401,
"narHash": "sha256-pM4U3rRPs+QUh/qfPFhcpmN2g9Nb91eIro1xcLdEYnA=",
"owner": "noctalia-dev",
"repo": "noctalia-shell",
"rev": "56457b140047e96a7a1e3bae6cf00cb9485d49a1",
"type": "github"
},
"original": {
"owner": "noctalia-dev",
"repo": "noctalia-shell",
"type": "github"
}
},
"noctalia-qs": {
"inputs": {
"nixpkgs": [
"noctalia",
"nixpkgs"
],
"systems": "systems_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1773842483,
"narHash": "sha256-oRqz+5AbNKfUWWwN5c83CsSOsUWVGITh0HZg+wX5Q/8=",
"owner": "noctalia-dev",
"repo": "noctalia-qs",
"rev": "3962ff1e0b59ef067c57199d31271ddbf23b29cd",
"type": "github"
},
"original": {
"owner": "noctalia-dev",
"repo": "noctalia-qs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts_3",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1774025645,
"narHash": "sha256-JotdqxIxeLhCxwDlciC8nvwABpJF/b5MQd2O16cjd7A=",
"owner": "nix-community",
"repo": "NUR",
"rev": "c01705bad7cf4d0c6838e7e46de8d4accc9c2f89",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"openmw": {
"flake": false,
"locked": {
"lastModified": 1770694146,
"narHash": "sha256-zTN+f21TF0Y53J+BAPDo3pvcI1+f3cc/7xG4AAK/+gs=",
"owner": "OpenMW",
"repo": "openmw",
"rev": "01bcd6a6369fe461caaf900354967b4751aede7a",
"type": "gitlab"
},
"original": {
"owner": "OpenMW",
"ref": "01bcd6",
"repo": "openmw",
"type": "gitlab"
}
},
"root": {
"inputs": {
"apple-silicon": "apple-silicon",
"catppuccin": "catppuccin",
"base16": "base16",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
"niri": "niri",
"niri-blur": "niri-blur",
"nix-cachyos-kernel": "nix-cachyos-kernel",
"nixpkgs": [
"nixpkgs-unstable"
],
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim",
"noctalia": "noctalia",
"nur": "nur",
"openmw": "openmw",
"tt-schemes": "tt-schemes"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1772660329,
"narHash": "sha256-IjU1FxYqm+VDe5qIOxoW+pISBlGvVApRjiw/Y/ttJzY=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "3710e0e1218041bbad640352a0440114b1e10428",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"tt-schemes": {
"flake": false,
"locked": {
"lastModified": 1770951657,
"narHash": "sha256-A9KDJ0/yL3iek7mN6p0BF+1+dVGi4l/YCquRmTGFO7I=",
"owner": "tinted-theming",
"repo": "schemes",
"rev": "b9f335ad6a0b7d85b9c2eb932c3215f7429f7d11",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "schemes",
"rev": "b9f335ad6a0b7d85b9c2eb932c3215f7429f7d11",
"type": "github"
}
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {
"lastModified": 1755491097,
"narHash": "sha256-m+9tUfsmBeF2Gn4HWa6vSITZ4Gz1eA1F5Kh62B0N4oE=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "388d291e82ffbc73be18169d39470f340707edaa",
"type": "github"
},
"original": {
"owner": "Supreeeme",
"ref": "v0.7",
"repo": "xwayland-satellite",
"type": "github"
}
},
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
"lastModified": 1771195969,
"narHash": "sha256-BUE41HjLIGPjq3U8VXPjf8asH8GaMI7FYdgrIHKFMXA=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"rev": "536bd32efc935bf876d6de385ec18a1b715c9358",
"type": "github"
},
"original": {
"owner": "Supreeeme",
"repo": "xwayland-satellite",
"type": "github"
}
}
},

282
flake.nix
View file

@ -2,11 +2,19 @@
description = "My NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
catppuccin = {
url = "github:catppuccin/nix";
inputs.nixpkgs.follows = "nixpkgs";
# edit this to switch between stable and unstable
nixpkgs.follows = "nixpkgs-unstable";
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
apple-silicon.url = "github:nix-community/nixos-apple-silicon";
base16.url = "github:SenchoPens/base16.nix";
tt-schemes = {
url = "github:tinted-theming/schemes/b9f335ad6a0b7d85b9c2eb932c3215f7429f7d11";
flake = false;
};
home-manager = {
@ -14,58 +22,278 @@
inputs.nixpkgs.follows = "nixpkgs";
};
apple-silicon = {
url = "github:nix-community/nixos-apple-silicon";
niri = {
url = "github:sckova/niri-flake/feat/blur";
inputs.nixpkgs.follows = "nixpkgs-unstable";
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
inputs.niri-unstable.follows = "niri-blur";
};
niri-blur = {
url = "github:niri-wm/niri/wip/branch";
flake = false;
};
noctalia = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, catppuccin, home-manager, apple-silicon, ... }:
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
openmw = {
url = "gitlab:OpenMW/openmw/01bcd6";
flake = false;
};
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
nix-cachyos-kernel,
apple-silicon,
base16,
tt-schemes,
home-manager,
niri,
noctalia,
nur,
nixvim,
openmw,
...
}:
let
mkNixosSystem = { name, system, hostModule, extraModules ? [] }:
# All systems we want to support for the generic VM
# to run the vm:
# nixos-rebuild build-vm --flake ~/nix#$(nix eval --raw --impure --expr 'builtins.currentSystem')
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
# Shared config for all package sets
pkgConfig = {
allowUnfree = true;
};
mkNixosSystem =
{
hostname,
system,
extraModules ? [ ],
extraSpecialArgs ? { },
}:
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit catppuccin; };
specialArgs = {
inherit system;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
}
// extraSpecialArgs;
modules = [
./configuration.nix
hostModule
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
] ++ extraModules;
{
nixpkgs = {
config = pkgConfig;
overlays = [
niri.overlays.niri
noctalia.overlays.default
nur.overlays.default
(final: prev: {
openmw-git = openmw;
})
(import ./packages/overlay.nix)
];
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
substituters = [
"https://attic.xuyh0120.win/lantian"
"https://cache.garnix.io"
"https://nixos-apple-silicon.cachix.org"
];
trusted-public-keys = [
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"nixos-apple-silicon.cachix.org-1:8psDu5SA5dAD7qA0zMy5UT292TxeEPzIz8VVEr2Js20="
];
trusted-users = [
"root"
"sckova"
];
# Increase file descriptor limit for builds
# sandbox = "relaxed";
# extra-sandbox-paths = [ ];
# build-users-group = "nixbld";
};
mkHomeConfig = { user, system }:
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
networking.hostName = hostname;
users.users.sckova = {
isNormalUser = true;
description = "Sean Kovacs";
extraGroups = [
"wheel"
"networkmanager"
"podman"
"pipewire"
];
hashedPassword = "$6$bvwRUFaJNMpH8rm3$FGDWFN6tBScJ/2DynAjnlZE8JRfyADN78d6c4GawxpAjyNLNE/AjQzMA09tLRqpKX7WnN5PIUZLAm2bT9/RbG0";
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCn/eXMq04vcXNqGVzlZOw2C2dQYBqzWsoigdFW09XqC2WPaGljbAIayzaD7Q1tIlPGGy10+nipAXAk1CHAnrQ2KSg4v/SwFphF48V3joeQmideC4vo0EIQEQibbMtj3oFezqRcRZINl/1hr4t0myZ3zkoTjh3HCkqJEMGUdArDMEVPA5mwcKSLsyshW9LMG/3C9YKKPU1/lVsoeDkj8AVZA0srhkApuRKF0IVu8KoPd6ldvSWgpQ1iuQ+MEMSeOUJytieBkzeY9zEVePaQ86oIMDUzqq8OTN37RyShiJKPskKyj12rJI2eFtI/viGaj8P6/yvKqMp3F4kAsPAuvMLLAIYCNa+139rDpkkIKB6lVtgq0jnJGRywaYXGIRyExNcVAr8I9wrNnNN2M4whVeYBxfLMzKZ+VvfK39AaGvnzPuFDLqUC87sN4c/1KZQo+TCtlaxcYvqowWylw5JHUt8uwFcO/dUebQxxAv8EdyPZGJ/54y19PsTbu9KyxSc2gIU= sckova"
];
};
}
./system
./system/searxng
./system/torrenting
./system/widevine
./system/shell/fish.nix
./system/tailscale
./system/hosts/${hostname}
./hardware/${hostname}
niri.nixosModules.niri
home-manager.nixosModules.home-manager
noctalia.nixosModules.default
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.sckova = {
imports = [
./home
./options.nix
./home/apps
./home/games
./home/hosts/${hostname}
./home/services
./home/terminal
./home/tiling
];
};
sharedModules = [
base16.nixosModule
(
{ config, ... }:
{
scheme = "${tt-schemes}/base24/${config.colors.scheme}.yaml";
}
)
noctalia.homeModules.default
nixvim.homeModules.nixvim
];
extraSpecialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
};
};
}
]
++ extraModules;
};
mkHomeConfig =
{
user,
hostname,
system,
}:
home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs {
inherit system;
config = pkgConfig;
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = pkgConfig;
};
home.username = user;
home.homeDirectory = "/home/${user}";
modules = [
./home.nix
catppuccin.homeModules.catppuccin
./home
./home/hosts/${hostname}.nix
home-manager.homeModules.home-manager
niri.homeModules.default
noctalia.homeModules.noctalia
nixvim.homeModules.nixvim
];
};
in
{
nixosConfigurations = {
peach = mkNixosSystem {
name = "peach";
hostname = "peach";
system = "aarch64-linux";
hostModule = ./hosts/peach.nix;
extraModules = [
apple-silicon.nixosModules.default
{ nixpkgs.overlays = [ apple-silicon.overlays.apple-silicon-overlay ]; }
];
};
alien = mkNixosSystem {
name = "alien";
hostname = "alien";
system = "x86_64-linux";
hostModule = ./hosts/alien.nix;
};
extraModules = [
{
nixpkgs.overlays = [ nix-cachyos-kernel.overlays.pinned ];
}
];
};
}
// nixpkgs.lib.genAttrs supportedSystems (
system:
mkNixosSystem {
hostname = "vm-generic";
inherit system;
}
);
homeConfigurations = {
peach = mkHomeConfig { user = "sckova"; system = "aarch64-linux"; };
alien = mkHomeConfig { user = "sckova"; system = "x86_64-linux"; };
peach = mkHomeConfig {
user = "sckova";
hostname = "peach";
system = "aarch64-linux";
};
alien = mkHomeConfig {
user = "sckova";
hostname = "alien";
system = "x86_64-linux";
};
}
// nixpkgs.lib.genAttrs supportedSystems (
system:
mkHomeConfig {
user = "sckova";
hostname = "vm-generic";
inherit system;
}
);
};
}

101
hardware/alien/default.nix Executable file
View file

@ -0,0 +1,101 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"sd_mod"
];
fileSystems = {
"/" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=root"
"compress=zstd"
"relatime"
];
};
"/boot" = {
label = "EFI";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
"umask=0077"
];
};
"/home" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=home"
"compress=zstd"
"relatime"
];
};
"/nix" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=nix"
"compress=zstd"
"noatime"
];
};
"/snapshots" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=snapshots"
"compress=zstd"
"noatime"
];
};
"/mnt/storage" = {
label = "storage";
fsType = "btrfs";
options = [
"compress=zstd"
"nofail"
"relatime"
];
};
};
swapDevices = [
{ label = "swap"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,74 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"usb_storage"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems = {
"/" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=root"
"compress=zstd"
"relatime"
];
};
"/home" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=home"
"compress=zstd"
"relatime"
];
};
"/nix" = {
label = "nixos";
fsType = "btrfs";
options = [
"subvol=nix"
"compress=zstd"
"noatime"
];
};
"/boot" = {
label = "efi";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
"umask=0077"
];
};
};
swapDevices = [
{
label = "swap";
}
];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View file

@ -0,0 +1,45 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
lib,
system,
...
}:
{
imports = [ ];
boot.initrd.availableKernelModules = [
"ehci_pci"
"xhci_pci"
"usbhid"
"sr_mod"
];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
# Set platform from the system argument passed by the flake
nixpkgs.hostPlatform = lib.mkDefault system;
# Enable Parallels tools only on aarch64
hardware.parallels.enable = lib.mkIf (system == "aarch64-linux") true;
nixpkgs.config.allowUnfreePredicate = lib.mkIf (system == "aarch64-linux") (
pkg: builtins.elem (lib.getName pkg) [ "prl-tools" ]
);
}

View file

@ -1,51 +0,0 @@
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "sckova";
home.homeDirectory = "/home/sckova";
home.packages = with pkgs; [
vesktop
fish
gh
adwsteamgtk
prismlauncher
tmux
fastfetch
btop
neovim
killall
wget
ripgrep
kitty
ncdu
fzf
wl-clipboard
kde-rounded-corners
kdePackages.partitionmanager
];
catppuccin = {
enable = true;
flavor = "mocha";
firefox = {
force = true;
};
};
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "25.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

35
home/apps/default.nix Normal file
View file

@ -0,0 +1,35 @@
{ pkgs, ... }:
{
imports = [
# ./discord.nix
./firefox.nix
./mpv.nix
# ./vscode.nix
];
home.packages = with pkgs; [
# gui applications
input-leap
libreoffice-qt-fresh
# nur.repos.forkprince.helium-nightly
nautilus
fractal
tuba
# gui applications ( multimedia )
audacity
strawberry
musescore
gimp
# calibre
# riff
dissent
loupe
spotify-player
# overrides
(chromium.override {
enableWideVine = true;
})
];
}

81
home/apps/discord.nix Normal file
View file

@ -0,0 +1,81 @@
{
config,
pkgs,
...
}:
let
mergedThemes = pkgs.runCommand "discordThemeDir" { } ''
mkdir -p $out
'';
vesktopSettings = {
discordBranch = "stable";
minimizeToTray = true;
arRPC = true;
splashColor = config.scheme.withHashtag.base05;
splashBackground = config.scheme.withHashtag.base00;
spellCheckLanguages = [
"en-US"
"en"
];
disableMinSize = true;
};
stateConfig = {
firstLaunch = false;
windowBounds = {
x = 0;
y = 0;
width = 853;
height = 1071;
};
};
in
{
home.packages = with pkgs; [ vesktop ];
home.file.".config/vesktop/settings.json" = {
text = builtins.toJSON vesktopSettings;
force = true;
};
home.file.".config/vesktop/settings/settings.json" = {
text = builtins.toJSON (import ./vencord.nix);
force = true;
};
home.file.".config/vesktop/settings/quickCss.css" = with config.scheme.withHashtag; {
text = ''
:root {
--base00: ${base00};
--base01: ${base01};
--base02: ${base02};
--base03: ${base03};
--base04: ${base04};
--base05: ${base05};
--base06: ${base06};
--base07: ${base07};
--base08: ${base08};
--base09: ${base09};
--base0A: ${base0A};
--base0B: ${base0B};
--base0C: ${base0C};
--base0D: ${base0D};
--base0E: ${base0E};
--base0F: ${base0F};
}
'';
force = true;
};
home.file.".config/vesktop/state.json" = {
text = builtins.toJSON stateConfig;
force = true;
};
home.file.".config/vesktop/themes" = {
source = mergedThemes;
recursive = true;
force = true;
};
}

388
home/apps/firefox.nix Normal file
View file

@ -0,0 +1,388 @@
# https://discourse.nixos.org/t/combining-best-of-system-firefox-and-home-manager-firefox-settings/37721
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
{
pkgs,
config,
...
}:
{
home.file.".mozilla/firefox/default/chrome/" = {
source = ./firefox_css;
force = true;
recursive = true;
};
home.file.".mozilla/firefox/default/chrome/colors.css" = with config.scheme.withHashtag; {
text = ''
* {
--accent: ${config.scheme.withHashtag.${config.colors.accent}};
--rosewater: ${base06};
--flamingo: ${base0F};
--pink: ${base17};
--mauve: ${base0E};
--red: ${base08};
--maroon: ${base12};
--peach: ${base09};
--yellow: ${base0A};
--green: ${base0B};
--teal: ${base0C};
--sky: ${base15};
--sapphire: ${base16};
--blue: ${base0D};
--lavender: ${base07};
--text: ${base05};
--subtext1: ${base04};
--subtext0: ${base04};
--overlay2: ${base03};
--overlay1: ${base03};
--overlay0: ${base03};
--surface2: ${base02};
--surface1: ${base01};
--surface0: ${base01};
--base: ${base00};
--mantle: ${base10};
--crust: ${base11};
}
'';
force = true;
};
home.file.".local/share/firefoxpwa/profiles/01KEYXH9TC4B54J5CTPNE75JP0/prefs.js" = {
text = ''
user_pref("firefoxpwa.alwaysUseNativeWindowControls", true);
user_pref("firefoxpwa.displayUrlBar", 1);
user_pref("firefoxpwa.enableHidingIconBar", true);
user_pref("firefoxpwa.dynamicWindowTitle", true);
user_pref("ui.key.menuAccessKeyFocuses", false);
user_pref("browser.aboutConfig.showWarning", false);
user_pref("browser.ml.enable", false);
'';
force = true;
};
programs = {
firefoxpwa = {
enable = true;
settings.config = {
always_patch = false;
runtime_enable_wayland = true;
runtime_use_xinput2 = true;
runtime_use_portals = true;
use_linked_runtime = false;
};
profiles = {
"01KEYXH9TC4B54J5CTPNE75JP0".sites."01KEYXHK7XQQJ0M3J7SX4VD9PG" = {
name = "WhatsApp";
url = "https://web.whatsapp.com/";
manifestUrl = "https://web.whatsapp.com/data/manifest.json";
desktopEntry = {
icon = "${pkgs.morewaita-icon-theme}/share/icons/MoreWaita/scalable/apps/whatsapp.svg";
categories = [
"Network"
"Chat"
"Telephony"
];
};
};
};
};
firefox = {
enable = true;
package = pkgs.firefox.override {
nativeMessagingHosts = with pkgs; [
firefoxpwa
];
};
policies = {
BlockAboutConfig = false;
DefaultDownloadDirectory = "\${home}/Downloads";
# Check about:support for extension/add-on ID strings.
# Valid strings for installation_mode are "allowed", "blocked",
# "force_installed" and "normal_installed".
ExtensionSettings = {
"*".installation_mode = "blocked";
"uBlock0@raymondhill.net".installation_mode = "allowed";
"gdpr@cavi.au.dk".installation_mode = "allowed";
"{5cce4ab5-3d47-41b9-af5e-8203eea05245}".installation_mode = "allowed";
"jid1-MnnxcxisBPnSXQ@jetpack".installation_mode = "allowed";
"firefoxpwa@filips.si".installation_mode = "allowed";
"sponsorBlocker@ajay.app".installation_mode = "allowed";
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".installation_mode = "allowed";
"{aecec67f-0d10-4fa7-b7c7-609a2db280cf}".installation_mode = "allowed";
"{446900e4-71c2-419f-a6a7-df9c091e268b}".installation_mode = "allowed";
"CanvasBlocker@kkapsner.de".installation_mode = "allowed";
"shinigamieyes@shinigamieyes".installation_mode = "allowed";
"deArrow@ajay.app".installation_mode = "allowed";
};
DisableTelemetry = true;
DisableFirefoxStudies = true;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
DisableFirefoxScreenshots = true;
OverrideFirstRunPage = "";
OverridePostUpdatePage = "";
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "newtab"; # alternatives: "always" or "newtab"
DisplayMenuBar = "always"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate"
};
profiles = {
default = {
id = 0;
name = "default";
isDefault = true;
extensions = {
force = true;
packages = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin
stylus
violentmonkey
consent-o-matic
privacy-badger
sponsorblock
pwas-for-firefox
control-panel-for-twitter
bitwarden
canvasblocker
shinigami-eyes
dearrow
];
settings = {
"{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}".settings = {
force = true;
settings = {
dbInChromeStorage = true;
};
};
};
};
settings = {
"extensions.autoDisableScopes" = 0; # enables all extensions automatically
"xpinstall.signatures.required" = false;
"extensions.update.autoUpdateDefault" = false;
"extensions.update.enabled" = false;
"browser.search.defaultenginename" = "searxng";
"browser.search.order.1" = "searxng";
"browser.toolbars.bookmarks.visibility" = "newtab";
"signon.rememberSignons" = false;
"widget.use-xdg-desktop-portal.file-picker" = 1;
"browser.aboutConfig.showWarning" = false;
"browser.compactmode.show" = true;
"browser.cache.disk.enable" = true; # Set to false if you have a HDD
"browser.warnOnQuitShortcut" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"widget.disable-workspace-management" = true;
"browser.contentblocking.category" = {
Value = "strict";
Status = "locked";
};
"widget.gtk.global-menu.enabled" = true;
"widget.gtk.global-menu.wayland.enabled" = true;
"browser.tabs.inTitlebar" = 0;
"extensions.pocket.enabled" = false;
"extensions.screenshots.disabled" = true;
"browser.topsites.contile.enabled" = false;
"browser.formfill.enable" = false;
"browser.search.suggest.enabled" = false;
"browser.search.suggest.enabled.private" = false;
"browser.urlbar.suggest.searches" = false;
"browser.urlbar.showSearchSuggestionsFirst" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.snippets" = false;
"browser.newtabpage.activity-stream.feeds.topsites" = false;
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.showWeather" = false;
"browser.download.autoHideButton" = false;
"browser.startup.homepage" = "http://localhost:5364/";
# Disable Firefox's machine learning (AI) features
"browser.ml.enable" = false;
# For browser toolbox/live editing user CSS
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
# Vertical tabs
"sidebar.verticalTabs" = true;
"sidebar.verticalTabs.dragToPinPromo.dismissed" = true;
"browser.uiCustomization.state" = {
placements = {
widget-overflow-fixed-list = [ ];
unified-extensions-area = [
"sponsorblocker_ajay_app-browser-action"
"ublock0_raymondhill_net-browser-action"
"jid1-mnnxcxisbpnsxq_jetpack-browser-action"
"gdpr_cavi_au_dk-browser-action"
"firefoxpwa_filips_si-browser-action"
"canvasblocker_kkapsner_de-browser-action"
"_5cce4ab5-3d47-41b9-af5e-8203eea05245_-browser-action"
"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action"
"_aecec67f-0d10-4fa7-b7c7-609a2db280cf_-browser-action"
"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action"
"dearrow_ajay_app-browser-action"
];
nav-bar = [
# "sidebar-button"
"back-button"
"forward-button"
"stop-reload-button"
"urlbar-container"
"unified-extensions-button"
"downloads-button"
];
toolbar-menubar = [ "menubar-items" ];
TabsToolbar = [ ];
vertical-tabs = [ "tabbrowser-tabs" ];
PersonalToolbar = [ "personal-bookmarks" ];
};
seen = [
"gdpr_cavi_au_dk-browser-action"
"firefoxpwa_filips_si-browser-action"
"jid1-mnnxcxisbpnsxq_jetpack-browser-action"
"canvasblocker_kkapsner_de-browser-action"
"_5cce4ab5-3d47-41b9-af5e-8203eea05245_-browser-action"
"ublock0_raymondhill_net-browser-action"
"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action"
"_aecec67f-0d10-4fa7-b7c7-609a2db280cf_-browser-action"
"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action"
"sponsorblocker_ajay_app-browser-action"
"dearrow_ajay_app-browser-action"
"developer-button"
];
dirtyAreaCache = [
"unified-extensions-area"
"nav-bar"
"TabsToolbar"
"vertical-tabs"
"PersonalToolbar"
"toolbar-menubar"
];
currentVersion = 23;
newElementCount = 1;
};
"privacy.resistFingerprinting" = false;
"privacy.clearOnShutdown.history" = false;
"privacy.clearOnShutdown.downloads" = false;
"webgl.disabled" = false;
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
};
bookmarks = {
force = true;
settings = [
{
name = "Nix sites";
toolbar = true;
bookmarks = [
{
name = "NixOS";
url = "https://nixos.org/";
}
{
name = "Home Manager Appendix A";
url = "https://nix-community.github.io/home-manager/options.xhtml";
}
{
name = "NixOS config";
url = "https://ovips.us.to/git/sckova/nix";
}
];
}
];
};
search =
let
nixIcon = "/run/current-system/sw/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
searchIcon = "${pkgs.adwaita-icon-theme}/share/icons/Adwaita/scalable/places/folder-saved-search-symbolic.svg";
in
{
force = true;
default = "searxng";
order = [
"searxng"
];
engines = {
nix-packages = {
name = "Nix Packages";
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixIcon;
definedAliases = [ "@np" ];
};
nix-options = {
name = "Nix Options";
urls = [
{
template = "https://search.nixos.org/options";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = nixIcon;
definedAliases = [ "@no" ];
};
nixos-wiki = {
name = "NixOS Wiki";
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
icon = nixIcon;
definedAliases = [ "@nw" ];
};
searxng = {
name = "SearXNG";
urls = [ { template = "http://localhost:5364/search?q={searchTerms}"; } ];
icon = searchIcon;
definedAliases = [ "@go" ];
};
wikipedia = {
name = "Wikipedia";
urls = [ { template = "https://en.wikipedia.org/w/index.php?search={searchTerms}"; } ];
definedAliases = [ "@wi" ];
};
};
};
};
};
};
};
}

View file

@ -0,0 +1,25 @@
#tracking-protection-icon-container {
display: none;
}
.bookmark-item[container] {
list-style-image: url("chrome://global/skin/dirListing/folder.png") !important;
}
#toolbar-menubar {
display: none !important;
}
#menubar-items {
visibility: hidden !important;
}
/*.browserContainer {
border-radius: 8px !important;
margin: 6px !important;
background-color: transparent !important;
}
browser {
border-radius: 8px !important;
}*/

View file

@ -0,0 +1,459 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* DO NOT EDIT this file directly, instead modify design-tokens.json
* and run `npm run build` to see your changes. */
@import "../colors.css";
@layer tokens-foundation, tokens-prefers-contrast, tokens-forced-colors;
@layer tokens-foundation {
:root,
:host(.anonymous-content-host) {
/** Background Color **/
--background-color-box: var(--base) !important;
--background-color-critical: var(--maroon) !important;
--background-color-information: var(--sapphire) !important;
--background-color-success: var(--teal) !important;
--background-color-warning: var(--peach) !important;
--promo-background-color: var(--background-color-information) !important;
--table-row-background-color: var(--mantle) !important;
/** Border **/
--border-color-card: color-mix(
in srgb,
currentColor 10%,
transparent
) !important;
--border-color-interactive-hover: var(
--border-color-interactive
) !important;
--border-color-interactive-active: var(
--border-color-interactive
) !important;
--border-color-interactive-disabled: var(
--border-color-interactive
) !important;
--border-color-selected: var(--accent) !important;
--border-color-transparent: transparent !important;
--border-radius-circle: 9999px !important;
--border-radius-xsmall: 2px !important;
--border-radius-small: 4px !important;
--border-radius-medium: 8px !important;
--border-radius-large: 16px !important;
--border-width: 0px !important;
/** Box Shadow **/
--box-shadow-card: var(--box-shadow-level-2) !important;
--box-shadow-card-hover: var(--box-shadow-level-4) !important;
--box-shadow-color-darker-layer-1: rgba(0, 0, 0, 0.15) !important;
--box-shadow-color-darker-layer-2: rgba(0, 0, 0, 0.2) !important;
--box-shadow-color-lighter-layer-1: rgba(0, 0, 0, 0.05) !important;
--box-shadow-color-lighter-layer-2: rgba(0, 0, 0, 0.1) !important;
--box-shadow-level-1:
0 0 1px var(--box-shadow-color-darker-layer-1),
0 1px 2px var(--box-shadow-color-darker-layer-2) !important;
--box-shadow-level-2:
0 0.25px 0.75px var(--box-shadow-color-lighter-layer-1),
0 2px 6px var(--box-shadow-color-lighter-layer-2) !important;
--box-shadow-level-3:
0 0.375px 1.5px var(--box-shadow-color-lighter-layer-1),
0 3px 12px var(--box-shadow-color-lighter-layer-2) !important;
--box-shadow-level-4:
0 0.5px 2px var(--box-shadow-color-lighter-layer-1),
0 4px 16px var(--box-shadow-color-lighter-layer-2) !important;
--box-shadow-popup: var(--box-shadow-level-3) !important;
--box-shadow-tab: var(--box-shadow-level-1) !important;
/** Button **/
--button-background-color-disabled: var(
--button-background-color
) !important;
--button-background-color-destructive: var(--red) !important;
--button-background-color-destructive-hover: color-mix(
in srgb,
var(--red),
var(--text) 10%
) !important;
--button-background-color-destructive-active: color-mix(
in srgb,
var(--red),
var(--text) 20%
) !important;
--button-background-color-destructive-disabled: var(
--button-background-color-destructive
) !important;
--button-background-color-destructive-selected: var(
--button-background-color-destructive-active
) !important;
--button-background-color-ghost: transparent !important;
--button-background-color-ghost-hover: var(
--button-background-color-hover
) !important;
--button-background-color-ghost-active: var(
--button-background-color-active
) !important;
--button-background-color-ghost-disabled: var(
--button-background-color-ghost
) !important;
--button-background-color-ghost-selected: var(
--button-background-color-ghost-active
) !important;
--button-background-color-primary: var(--accent) !important;
--button-background-color-primary-hover: color-mix(
in srgb,
var(--accent),
var(--text) 10%
) !important;
--button-background-color-primary-active: color-mix(
in srgb,
var(--accent),
var(--text) 20%
) !important;
--button-background-color-primary-disabled: var(
--button-background-color-primary
) !important;
--button-background-color-primary-selected: var(
--button-background-color-primary-active
) !important;
--button-background-color-selected: var(
--button-background-color-active
) !important;
--button-border: var(--border-width) solid var(--button-border-color) !important;
--button-border-color: transparent !important;
--button-border-color-hover: var(--button-border-color) !important;
--button-border-color-active: var(--button-border-color) !important;
--button-border-color-disabled: var(--button-border-color) !important;
--button-border-color-destructive: transparent !important;
--button-border-color-destructive-hover: var(
--button-border-color-destructive
) !important;
--button-border-color-destructive-active: var(
--button-border-color-destructive
) !important;
--button-border-color-destructive-disabled: var(
--button-border-color-destructive
) !important;
--button-border-color-destructive-selected: var(
--button-border-color-destructive-active
) !important;
--button-border-color-ghost: var(--button-border-color) !important;
--button-border-color-ghost-hover: var(
--button-border-color-hover
) !important;
--button-border-color-ghost-active: var(
--button-border-color-active
) !important;
--button-border-color-ghost-disabled: var(
--button-border-color-disabled
) !important;
--button-border-color-ghost-selected: var(
--button-border-color-ghost-active
) !important;
--button-border-color-primary: transparent !important;
--button-border-color-primary-hover: var(
--button-border-color-primary
) !important;
--button-border-color-primary-active: var(
--button-border-color-primary
) !important;
--button-border-color-primary-disabled: var(
--button-border-color-primary
) !important;
--button-border-color-primary-selected: var(
--button-border-color-primary-active
) !important;
--button-border-color-selected: var(
--button-border-color-active
) !important;
--button-border-radius: var(--border-radius-medium) !important;
--button-font-size: var(--font-size-root) !important;
--button-font-size-small: var(--font-size-small) !important;
--button-font-weight: var(--font-weight-semibold) !important;
--button-icon-fill: currentColor !important;
--button-icon-stroke: var(--button-icon-fill) !important;
--button-min-height: var(--size-item-large) !important;
--button-min-height-small: var(--size-item-medium) !important;
--button-opacity-disabled: 0.5 !important;
--button-padding: var(--space-xsmall) var(--space-large) !important;
--button-padding-icon: 0 !important;
--button-size-icon: var(--button-min-height) !important;
--button-size-icon-small: var(--button-min-height-small) !important;
--button-text-color-hover: var(--button-text-color) !important;
--button-text-color-active: var(--button-text-color) !important;
--button-text-color-disabled: var(--button-text-color) !important;
--button-text-color-destructive: var(--crust) !important;
--button-text-color-destructive-hover: var(
--button-text-color-destructive
) !important;
--button-text-color-destructive-active: var(
--button-text-color-destructive
) !important;
--button-text-color-destructive-disabled: var(
--button-text-color-destructive
) !important;
--button-text-color-destructive-selected: var(
--button-text-color-destructive-active
) !important;
--button-text-color-ghost: inherit !important;
--button-text-color-ghost-hover: inherit !important;
--button-text-color-ghost-active: inherit !important;
--button-text-color-ghost-disabled: inherit !important;
--button-text-color-ghost-selected: var(
--button-text-color-ghost-active
) !important;
--button-text-color-primary-hover: var(
--button-text-color-primary
) !important;
--button-text-color-primary-active: var(
--button-text-color-primary-hover
) !important;
--button-text-color-primary-disabled: var(
--button-text-color-primary
) !important;
--button-text-color-primary-selected: var(
--button-text-color-primary-active
) !important;
--button-text-color-selected: var(--button-text-color-active) !important;
/** Checkbox **/
--checkbox-margin-inline: var(--space-small) !important;
--checkbox-size: var(--size-item-small) !important;
/** Focus Outline **/
--focus-outline: var(--focus-outline-width) solid var(--focus-outline-color) !important;
--focus-outline-color: var(--accent) !important;
--focus-outline-inset: calc(-1 * var(--focus-outline-width)) !important;
--focus-outline-offset: 2px !important;
--focus-outline-width: 2px !important;
/** Font Weight **/
--font-weight: normal !important;
--font-weight-bold: 700 !important;
--font-weight-semibold: 600 !important;
/** Heading **/
--heading-font-size-medium: var(--font-size-large) !important;
--heading-font-size-large: var(--font-size-xlarge) !important;
--heading-font-size-xlarge: var(--font-size-xxlarge) !important;
--heading-font-weight: var(--font-weight-semibold) !important;
/** Icon **/
--icon-color: var(--subtext1) !important;
--icon-color-critical: var(--red) !important;
--icon-color-information: var(--sky) !important;
--icon-color-success: var(--green) !important;
--icon-color-warning: var(--yellow) !important;
--icon-size: var(--icon-size-small) !important;
--icon-size-xsmall: var(--size-item-xsmall) !important;
--icon-size-small: var(--size-item-small) !important;
--icon-size-medium: 20px !important;
--icon-size-large: var(--size-item-medium) !important;
--icon-size-xlarge: var(--size-item-large) !important;
/** Input - Text **/
--input-text-min-height: var(--button-min-height) !important;
/** Link **/
--link-focus-outline-offset: 1px !important;
/** Outline Color **/
--outline-color-error: var(--red) !important;
/** Size **/
--size-item-xsmall: 12px !important;
--size-item-small: 16px !important;
--size-item-medium: 24px !important;
--size-item-large: 32px !important;
--size-item-xlarge: 48px !important;
/** Space **/
--space-xxsmall: calc(0.5 * var(--space-xsmall)) !important;
--space-xsmall: 0.267rem !important;
--space-small: calc(2 * var(--space-xsmall)) !important;
--space-medium: calc(3 * var(--space-xsmall)) !important;
--space-large: calc(4 * var(--space-xsmall)) !important;
--space-xlarge: calc(6 * var(--space-xsmall)) !important;
--space-xxlarge: calc(8 * var(--space-xsmall)) !important;
/** Text **/
--text-color-disabled: color-mix(
in srgb,
currentColor 40%,
transparent
) !important;
--text-color-deemphasized: color-mix(
in srgb,
currentColor 69%,
transparent
) !important;
--text-color-error: var(--red) !important;
}
}
@layer tokens-prefers-contrast {
@media (prefers-contrast) {
:root,
:host(.anonymous-content-host) {
/** Attention Dot **/
--attention-dot-color: var(--accent) !important;
/** Background Color **/
--background-color-box: var(--base) !important;
--background-color-box-info: var(--base) !important;
--background-color-canvas: var(--base) !important;
--background-color-critical: var(--base) !important;
--background-color-information: var(--base) !important;
--background-color-success: var(--base) !important;
--background-color-warning: var(--base) !important;
/** Border **/
--border-color: var(--text) !important;
--border-color-card: color-mix(
in srgb,
currentColor 41%,
transparent
) !important;
--border-color-deemphasized: currentColor !important;
--border-color-interactive: var(--text) !important;
--border-color-transparent: var(--text) !important;
/** Button **/
--button-border-color: var(--button-text-color) !important;
--button-text-color-ghost-hover: var(
--button-text-color-hover
) !important;
--button-text-color-ghost-active: var(
--button-text-color-active
) !important;
/** Icon **/
--icon-color: var(--text) !important;
--icon-color-critical: var(--icon-color) !important;
--icon-color-information: var(--icon-color) !important;
--icon-color-success: var(--icon-color) !important;
--icon-color-warning: var(--icon-color) !important;
/** Outline Color **/
--outline-color-error: var(--border-color) !important;
/** Text **/
--text-color: var(--text) !important;
--text-color-deemphasized: inherit !important;
--text-color-error: inherit !important;
}
}
}
@layer tokens-forced-colors {
@media (forced-colors) {
:root,
:host(.anonymous-content-host) {
/** Background Color **/
--table-row-background-color-alternate: var(--base) !important;
/** Border **/
--border-color-card: var(--text) !important;
--border-color-deemphasized: var(--text) !important;
--border-color-interactive: var(--text) !important;
--border-color-interactive-hover: var(--accent) !important;
--border-color-interactive-active: var(--text) !important;
--border-color-interactive-disabled: var(--subtext0) !important;
--border-color-selected: var(--accent) !important;
/** Button **/
--button-background-color: var(--surface0) !important;
--button-background-color-hover: var(--crust) !important;
--button-background-color-active: var(--crust) !important;
--button-background-color-disabled: var(--surface0) !important;
--button-background-color-destructive: var(
--button-background-color-primary
) !important;
--button-background-color-destructive-hover: var(
--button-background-color-primary-hover
) !important;
--button-background-color-destructive-active: var(
--button-background-color-primary-active
) !important;
--button-background-color-destructive-disabled: var(
--button-background-color-primary-disabled
) !important;
--button-background-color-primary-disabled: var(
--button-text-color-disabled
) !important;
--button-border-color: var(--border-color-interactive) !important;
--button-border-color-hover: var(
--border-color-interactive-hover
) !important;
--button-border-color-active: var(
--border-color-interactive-active
) !important;
--button-border-color-disabled: var(
--border-color-interactive-disabled
) !important;
--button-border-color-destructive: var(
--button-border-color-primary
) !important;
--button-border-color-destructive-hover: var(
--button-border-color-primary-hover
) !important;
--button-border-color-destructive-active: var(
--button-border-color-primary-active
) !important;
--button-border-color-destructive-disabled: var(
--button-border-color-primary-disabled
) !important;
--button-border-color-primary: var(--surface0) !important;
--button-border-color-primary-hover: var(--crust) !important;
--button-border-color-primary-active: var(--text) !important;
--button-opacity-disabled: 1 !important;
--button-text-color: var(--text) !important;
--button-text-color-hover: var(--accent) !important;
--button-text-color-active: var(--accent) !important;
--button-text-color-disabled: var(--subtext0) !important;
--button-text-color-destructive: var(
--button-text-color-primary
) !important;
--button-text-color-destructive-hover: var(
--button-text-color-primary-hover
) !important;
--button-text-color-destructive-active: var(
--button-text-color-primary-active
) !important;
--button-text-color-destructive-disabled: var(
--button-text-color-primary-disabled
) !important;
--button-text-color-ghost-hover: var(
--button-text-color-hover
) !important;
--button-text-color-ghost-active: var(
--button-text-color-active
) !important;
--button-text-color-primary: var(--surface0) !important;
--button-text-color-primary-hover: var(--crust) !important;
/** Color **/
--color-accent-primary: var(--text) !important;
--color-accent-primary-hover: var(--accent) !important;
--color-accent-primary-active: var(
--color-accent-primary-hover
) !important;
--color-accent-primary-selected: var(--accent) !important;
/** Focus Outline **/
--focus-outline-color: var(--text) !important;
/** Link **/
--link-color: var(--blue) !important;
--link-color-hover: var(--blue) !important;
--link-color-active: var(--red) !important;
--link-color-visited: var(--link-color) !important;
/** Text **/
--text-color-disabled: var(--subtext0) !important;
--text-color-accent-primary-selected: var(--crust) !important;
}
}
}

View file

@ -0,0 +1,396 @@
@import "../colors.css";
/* ========================================================================
global variables
======================================================================== */
:root {
--border-color-card: 1px solid var(--surface0) !important;
--urlbar-container-border-width: 1px !important;
--urlbar-container-border-color: var(--surface0) !important;
/* arrow panels */
--arrowpanel-background: var(--surface0) !important;
--arrowpanel-border-color: var(--surface1) !important;
--arrowpanel-color: var(--text) !important;
--arrowpanel-dimmed-even-further: var(--overlay0) !important;
--arrowpanel-dimmed-further: var(--subtext1) !important;
--arrowpanel-dimmed: var(--subtext0) !important;
--default-arrowpanel-background: var(--surface0) !important;
--default-arrowpanel-border-color: var(--surface1) !important;
--default-arrowpanel-color: var(--text) !important;
/* autocomplete & popups */
--autocomplete-popup-background: var(--mantle) !important;
--autocomplete-popup-color: var(--text) !important;
--autocomplete-popup-highlight-background: var(--surface1) !important;
--autocomplete-popup-highlight-color: var(--text) !important;
--urlbar-popup-action-color: var(--accent) !important;
--urlbar-popup-url-color: var(--blue) !important;
--urlbar-separator-color: var(--surface0) !important;
/* buttons (global) */
--backbutton-active-background: var(--surface1) !important;
--backbutton-background: transparent !important;
--backbutton-border-color: transparent !important;
--backbutton-hover-background: var(--surface0) !important;
--cfr-active-color: var(--accent) !important;
--cfr-button-addons-icon: var(--text) !important;
--cfr-button-features-icon: var(--text) !important;
/* color palette (blue) */
--blue-40-a10: color-mix(in srgb, var(--blue), transparent 90%) !important;
--blue-40: var(--blue) !important;
--blue-50-a30: color-mix(in srgb, var(--blue), transparent 70%) !important;
--blue-50: var(--blue) !important;
--blue-60: var(--sapphire) !important;
--blue-70: var(--sky) !important;
--blue-80: var(--teal) !important;
/* color palette (green) */
--green-50: var(--green) !important;
--green-60: var(--green) !important;
--green-70: var(--teal) !important;
--green-80: var(--teal) !important;
--green-90: var(--teal) !important;
/* color palette (grey/overlay) */
--grey-20: var(--subtext1) !important;
--grey-30: var(--subtext0) !important;
--grey-40: var(--overlay2) !important;
--grey-60: var(--overlay0) !important;
--grey-70: var(--overlay2) !important;
--grey-80: var(--overlay2) !important;
--grey-90-a10: color-mix(
in srgb,
var(--surface1),
transparent 90%
) !important;
--grey-90-a20: color-mix(
in srgb,
var(--surface1),
transparent 80%
) !important;
--grey-90-a30: color-mix(
in srgb,
var(--surface1),
transparent 70%
) !important;
--grey-90-a50: color-mix(
in srgb,
var(--surface1),
transparent 50%
) !important;
--grey-90-a60: color-mix(
in srgb,
var(--surface1),
transparent 40%
) !important;
--grey-90: var(--surface1) !important;
/* color palette (misc) */
--orange-50: var(--peach) !important;
--purple-70: var(--mauve) !important;
/* color palette (red) */
--red-50-a30: color-mix(in srgb, var(--red), transparent 70%) !important;
--red-50: var(--red) !important;
--red-60: var(--maroon) !important;
--red-70: var(--maroon) !important;
--red-80: var(--maroon) !important;
--red-90: var(--maroon) !important;
/* color palette (yellow) */
--yellow-10: var(--yellow) !important;
--yellow-50: var(--yellow) !important;
--yellow-60-a30: color-mix(
in srgb,
var(--yellow),
transparent 70%
) !important;
--yellow-60: var(--yellow) !important;
--yellow-70: var(--peach) !important;
--yellow-80: var(--peach) !important;
--yellow-90: var(--peach) !important;
/* context menus */
--menu-background-color: var(--base) !important;
--menu-border-color: var(--surface1) !important;
--menu-color: var(--text) !important;
--menu-disabled-color: var(--overlay0) !important;
--menu-icon-opacity: 1 !important;
--menuitem-disabled-hover-background-color: transparent !important;
--menuitem-hover-background-color: var(--surface1) !important;
--panel-disabled-color: var(--overlay0) !important;
--panel-separator-color: var(--surface0) !important;
/* in-content ui (cards & boxes) */
--card-outline-color: var(--surface1) !important;
--card-shadow-focus: 0 0 0 2px var(--accent) !important;
--card-shadow-hover: 0 4px 8px
color-mix(in srgb, var(--crust), transparent 80%) !important;
--card-shadow: 0 1px 4px color-mix(in srgb, var(--crust), transparent 90%) !important;
--in-content-box-background-active: var(--surface1) !important;
--in-content-box-background-hover: var(--surface1) !important;
--in-content-box-background-odd: var(--mantle) !important;
--in-content-box-background: var(--surface0) !important;
--in-content-box-border-color: var(--surface1) !important;
--in-content-box-info-background: var(--surface0) !important;
/* in-content ui (colors & text) */
--in-content-deemphasized-text: var(--subtext0) !important;
--in-content-link-color-active: var(--sky) !important;
--in-content-link-color-hover: var(--sapphire) !important;
--in-content-link-color-visited: var(--lavender) !important;
--in-content-link-color: var(--blue) !important;
--in-content-page-background: var(--base) !important;
--in-content-page-color: var(--text) !important;
--in-content-selected-text: var(--surface2) !important;
--in-content-text-color: var(--text) !important;
/* in-content ui (forms & buttons) */
--in-content-border-active-shadow: 0 0 0 2px var(--accent) !important;
--in-content-border-active: var(--accent) !important;
--in-content-border-color: var(--surface1) !important;
--in-content-border-focus: var(--accent) !important;
--in-content-border-highlight: var(--blue) !important;
--in-content-border-hover: var(--surface2) !important;
--in-content-border-invalid-shadow: 0 0 0 2px var(--red) !important;
--in-content-border-invalid: var(--red) !important;
--in-content-button-background-active: var(--surface1) !important;
--in-content-button-background-hover: var(--surface2) !important;
--in-content-button-background: var(--surface0) !important;
--in-content-category-background-active: var(--surface1) !important;
--in-content-category-background-hover: var(--surface0) !important;
--in-content-category-background-selected-active: var(--surface2) !important;
--in-content-category-background-selected-hover: var(--surface1) !important;
--in-content-category-outline-focus: var(--accent) !important;
--in-content-category-text-selected-active: var(--accent) !important;
--in-content-category-text-selected: var(--accent) !important;
--in-content-item-hover: var(--surface0) !important;
--in-content-item-selected: var(--surface1) !important;
--in-content-primary-button-background-active: var(--maroon) !important;
--in-content-primary-button-background-hover: var(--peach) !important;
--in-content-primary-button-background: var(--accent) !important;
/* in-content ui (misc) */
--chrome-content-separator-color: var(--surface0) !important;
--in-content-dialog-header-background: var(--mantle) !important;
--in-content-tab-color: var(--subtext0) !important;
--in-content-table-background: var(--mantle) !important;
--in-content-table-border-dark-color: var(--surface1) !important;
--in-content-table-header-background: var(--surface0) !important;
--in-content-warning-container: var(--red) !important;
--shadow-10: 0 1px 2px color-mix(in srgb, var(--crust), transparent 90%) !important;
--shadow-30: 0 4px 8px color-mix(in srgb, var(--crust), transparent 80%) !important;
/* lightweight theme (lwt) */
--lwt-accent-color: var(--accent) !important;
--lwt-sidebar-background-color: var(--mantle) !important;
--lwt-sidebar-text-color: var(--text) !important;
--lwt-text-color: var(--text) !important;
--lwt-toolbar-field-background-color: var(--crust) !important;
--lwt-toolbar-field-border-color: var(--surface0) !important;
--lwt-toolbar-field-color: var(--text) !important;
--lwt-toolbar-field-focus-color: var(--text) !important;
--lwt-toolbar-field-focus: var(--accent) !important;
--lwt-toolbarbutton-icon-fill: var(--text) !important;
/* navigator tabs */
--tab-line-color: var(--accent) !important;
--tab-loading-fill: var(--accent) !important;
--tabs-border-color: var(--surface0) !important;
/* new tab page */
--newtab-background-color: var(--base) !important;
--newtab-border-primary-color: var(--surface1) !important;
--newtab-border-secondary-color: var(--surface0) !important;
--newtab-button-primary-color: var(--accent) !important;
--newtab-button-secondary-color: var(--surface0) !important;
--newtab-card-active-outline-color: var(--accent) !important;
--newtab-card-background-color: var(--surface0) !important;
--newtab-card-hairline-color: var(--surface1) !important;
--newtab-card-placeholder-color: var(--surface1) !important;
--newtab-card-shadow: 0 1px 4px
color-mix(in srgb, var(--crust), transparent 80%) !important;
--newtab-contextmenu-background-color: var(--surface0) !important;
--newtab-contextmenu-button-color: var(--text) !important;
--newtab-element-active-color: var(--surface1) !important;
--newtab-element-hover-color: var(--surface0) !important;
--newtab-feed-button-background-faded: var(--surface1) !important;
--newtab-feed-button-background: var(--surface0) !important;
--newtab-feed-button-spinner: var(--text) !important;
--newtab-feed-button-text-faded: var(--subtext0) !important;
--newtab-feed-button-text: var(--text) !important;
--newtab-icon-primary-color: var(--text) !important;
--newtab-icon-secondary-color: var(--subtext0) !important;
--newtab-icon-tertiary-color: var(--overlay0) !important;
--newtab-inner-box-shadow-color: color-mix(
in srgb,
var(--crust),
transparent 80%
) !important;
--newtab-link-primary-color: var(--blue) !important;
--newtab-link-secondary-color: var(--sapphire) !important;
--newtab-modal-color: var(--base) !important;
--newtab-overlay-color: color-mix(
in srgb,
var(--crust),
transparent 40%
) !important;
--newtab-search-border-color: var(--surface0) !important;
--newtab-search-dropdown-color: var(--mantle) !important;
--newtab-search-dropdown-header-color: var(--subtext1) !important;
--newtab-search-header-background-color: var(--base) !important;
--newtab-search-icon-color: var(--text) !important;
--newtab-search-icon: var(--text) !important;
--newtab-search-wordmark-color: var(--text) !important;
--newtab-section-active-contextmenu-color: var(--text) !important;
--newtab-section-header-text-color: var(--text) !important;
--newtab-section-navigation-text-color: var(--subtext0) !important;
--newtab-snippets-background-color: var(--surface0) !important;
--newtab-snippets-hairline-color: var(--surface1) !important;
--newtab-text-conditional-color: var(--red) !important;
--newtab-text-primary-color: var(--text) !important;
--newtab-text-secondary-color: var(--subtext0) !important;
--newtab-textbox-background-color: var(--crust) !important;
--newtab-textbox-border: var(--surface0) !important;
--newtab-textbox-focus-boxshadow: 0 0 0 2px var(--accent) !important;
--newtab-textbox-focus-color: var(--accent) !important;
--newtab-topsites-background-color: var(--base) !important;
--newtab-topsites-icon-shadow: none !important;
--newtab-topsites-label-color: var(--text) !important;
--trailhead-card-button-background-active-color: var(--accent) !important;
--trailhead-card-button-background-color: var(--surface1) !important;
--trailhead-card-button-background-hover-color: var(--surface2) !important;
--trailhead-cards-background-color: var(--surface0) !important;
--trailhead-header-text-color: var(--text) !important;
/* notifications */
--short-notification-background: var(--surface0) !important;
--short-notification-gradient: linear-gradient(
var(--surface0),
var(--surface0)
) !important;
/* sidebar */
--sidebar-background-color: var(--mantle) !important;
--sidebar-border-color: var(--surface0) !important;
--sidebar-text-color: var(--text) !important;
/* toolbar & urlbar */
--toolbar-bgcolor: var(--mantle) !important;
--toolbar-color: var(--text) !important;
--toolbar-field-focus-border-color: var(--accent) !important;
--toolbar-non-lwt-bgcolor: var(--mantle) !important;
--toolbar-non-lwt-textcolor: var(--text) !important;
--toolbarbutton-active-background: var(--surface1) !important;
--toolbarbutton-focus-outline: var(--accent) !important;
--toolbarbutton-hover-background: var(--surface0) !important;
--toolbarbutton-icon-fill-attention: var(--blue) !important;
}
/* ========================================================================
global component styles
======================================================================== */
#sidebar-main > *[expanded] {
background-color: var(--mantle) !important;
}
*,
:root {
accent-color: var(--accent) !important;
}
#TabsToolbar {
background-color: var(--mantle) !important;
}
#sidebar-launcher-splitter:hover {
background-color: var(--accent) !important;
}
[_moz-menuactive="true"] {
background-color: var(--accent) !important;
color: var(--mantle) !important;
}
menupopup {
--panel-background: var(--base) !important;
--panel-border-color: var(--surface1) !important;
--panel-text: var(--text) !important;
}
menuseparator {
border-color: var(--surface1) !important;
}
/* ========================================================================
overrides & media queries
======================================================================== */
@media {
#PersonalToolbar,
#nav-bar {
background-color: var(--mantle) !important;
}
:root {
/* browser tabs */
.tab-background[multiselected] {
--focus-outline-color: var(--surface0);
}
.tab-background[selected]:not([multiselected]) {
outline: 1px solid var(--surface0);
outline-offset: -1px;
}
.tabbrowser-tab[selected="true"] .tab-background {
border: 1px solid var(--surface0) !important;
}
#tabbrowser-tabs {
--tab-loading-fill: var(--text) !important;
}
/* general variable overrides */
--arrowpanel-background: var(--surface0) !important;
--arrowpanel-border-color: var(--surface0) !important;
--arrowpanel-color: var(--text) !important;
--chrome-content-separator-color: var(--surface0) !important;
--input-bgcolor: var(--crust) !important;
--input-border-color: var(--mantle) !important;
--input-color: var(--text) !important;
--tab-selected-bgcolor: var(--base) !important;
--tab-selected-textcolor: var(--text) !important;
--toolbar-bgcolor: var(--mantle) !important;
--toolbar-field-background-color: var(--input-bgcolor) !important;
--toolbar-field-border-color: var(--input-border-color) !important;
--toolbar-field-color: var(--input-color) !important;
--toolbar-field-focus-background-color: var(--base) !important;
--toolbar-field-focus-border-color: var(--surface0) !important;
--toolbarseparator-color: var(--text) !important;
--toolbox-non-lwt-bgcolor: var(--crust) !important;
--toolbox-non-lwt-textcolor: var(--text) !important;
/* inputs & selection */
#urlbar-input:focus::selection,
.searchbar-textbox:focus::selection {
background-color: var(--text);
color: var(--surface0);
}
/* toolbar buttons */
--toolbarbutton-active-background: var(--overlay0) !important;
--toolbarbutton-icon-fill: var(--text) !important;
--toolbarbutton-icon-fill-attention: var(--text) !important;
/* urlbar */
--urlbarView-highlight-background: var(--overlay0) !important;
--urlbarView-highlight-color: var(--text) !important;
&:where([tabsintitlebar]) {
--toolbox-non-lwt-bgcolor-inactive: var(--crust) !important;
}
}
}

View file

@ -0,0 +1,3 @@
@import "./colors.css";
@import "./theme/theme.css";
@import "./theme/hide.css";

48
home/apps/mpv.nix Normal file
View file

@ -0,0 +1,48 @@
{
config,
pkgs,
lib,
...
}:
{
programs.mpv = {
enable = true;
package = pkgs.mpv;
bindings = { };
config = with config.scheme.withHashtag; {
background-color = "#000000";
osd-back-color = base11;
osd-border-color = base11;
osd-color = base05;
osd-shadow-color = base00;
sub-font = config.userOptions.fontSans.name;
osd-font = config.userOptions.fontSans.name;
};
scripts = with pkgs.mpvScripts; [
uosc
mpv-subtitle-lines # requires uosc
mpris
autosub
youtube-upnext
youtube-chat
mpv-notify-send
];
scriptOpts = {
uosc = {
color =
with config.scheme;
lib.concatStringsSep "," (
lib.mapAttrsToList (key: value: "${key}=${value}") {
foreground = config.scheme.${config.colors.accent};
foreground_text = base01;
background = base00;
background_text = base05;
curtain = base10;
success = base0B;
error = base08;
}
);
};
};
};
}

350
home/apps/vencord.nix Normal file
View file

@ -0,0 +1,350 @@
{
autoUpdate = true;
autoUpdateNotification = true;
useQuickCss = true;
themeLinks = [ ];
eagerPatches = false;
enabledThemes = [ "base16.css" ];
enableReactDevtools = false;
frameless = false;
transparent = true;
winCtrlQ = false;
disableMinSize = true;
winNativeTitleBar = false;
plugins = {
BadgeAPI.enabled = true;
CommandsAPI.enabled = true;
ContextMenuAPI.enabled = true;
MemberListDecoratorsAPI.enabled = false;
MessageAccessoriesAPI.enabled = true;
MessageDecorationsAPI.enabled = false;
MessageEventsAPI.enabled = true;
MessagePopoverAPI.enabled = true;
NoticesAPI.enabled = true;
ServerListAPI.enabled = false;
SettingsStoreAPI.enabled = false;
NoTrack = {
enabled = true;
disableAnalytics = true;
};
Settings = {
enabled = true;
settingsLocation = "aboveActivity";
};
SupportHelper.enabled = true;
AlwaysAnimate.enabled = false;
AlwaysTrust = {
enabled = true;
domain = true;
file = true;
};
AnonymiseFileNames = {
enabled = false;
method = 0;
randomisedLength = 7;
anonymiseByDefault = true;
};
"WebRichPresence (arRPC)".enabled = false;
BANger = {
enabled = false;
source = "https://i.imgur.com/wp5q52C.mp4";
};
BetterFolders = {
enabled = false;
sidebar = true;
showFolderIcon = 1;
closeAllHomeButton = false;
keepIcons = false;
sidebarAnim = true;
closeAllFolders = false;
forceOpen = false;
closeOthers = false;
};
BetterGifAltText.enabled = false;
BetterNotesBox = {
enabled = false;
hide = false;
noSpellCheck = false;
};
BetterRoleDot = {
enabled = false;
bothStyles = false;
copyRoleColorInProfilePopout = false;
};
BetterUploadButton.enabled = false;
BiggerStreamPreview.enabled = true;
BlurNSFW = {
enabled = false;
blurAmount = 10;
};
CallTimer = {
enabled = true;
format = "stopwatch";
};
ClearURLs.enabled = true;
ClientTheme = {
enabled = false;
color = "31363b";
};
ColorSighted.enabled = false;
ConsoleShortcuts.enabled = false;
CopyUserURLs.enabled = false;
CrashHandler.enabled = true;
CustomRPC.enabled = false;
Dearrow = {
enabled = false;
hideButton = false;
replaceElements = 0;
dearrowByDefault = true;
};
Experiments = {
enabled = true;
toolbarDevMenu = false;
};
F8Break.enabled = false;
FakeNitro = {
enabled = true;
enableEmojiBypass = true;
enableStickerBypass = true;
enableStreamQualityBypass = true;
transformStickers = true;
transformEmojis = true;
transformCompoundSentence = false;
emojiSize = 48;
stickerSize = 160;
useHyperLinks = true;
hyperLinkText = "{{NAME}}";
disableEmbedPermissionCheck = false;
};
FakeProfileThemes.enabled = false;
FavoriteEmojiFirst.enabled = false;
FavoriteGifSearch.enabled = false;
FixImagesQuality.enabled = false;
ForceOwnerCrown.enabled = false;
FriendInvites.enabled = false;
GameActivityToggle.enabled = false;
GifPaste.enabled = false;
GreetStickerPicker = {
enabled = true;
greetMode = "Greet";
};
iLoveSpam.enabled = false;
IgnoreActivities.enabled = false;
ImageZoom.enabled = false;
KeepCurrentChannel.enabled = false;
LastFMRichPresence.enabled = false;
LoadingQuotes.enabled = false;
MemberCount.enabled = false;
MessageClickActions.enabled = false;
MessageLinkEmbeds.enabled = false;
MessageLogger = {
enabled = true;
deleteStyle = "text";
ignoreBots = false;
ignoreSelf = false;
ignoreUsers = "";
ignoreChannels = "";
ignoreGuilds = "";
logEdits = true;
logDeletes = true;
collapseDeleted = false;
inlineEdits = true;
};
MessageTags.enabled = false;
MoreCommands.enabled = false;
MoreKaomoji.enabled = false;
MoreUserTags.enabled = false;
Moyai.enabled = false;
MutualGroupDMs.enabled = false;
NoBlockedMessages.enabled = false;
NoDevtoolsWarning.enabled = false;
NoF1.enabled = false;
NoMosaic.enabled = false;
NoPendingCount = {
enabled = true;
hideFriendRequestsCount = true;
hideMessageRequestsCount = true;
hidePremiumOffersCount = true;
};
NoProfileThemes.enabled = true;
NoReplyMention.enabled = false;
NoScreensharePreview.enabled = false;
NoTypingAnimation.enabled = false;
NoUnblockToJump.enabled = false;
NormalizeMessageLinks.enabled = false;
NSFWGateBypass.enabled = false;
OnePingPerDM.enabled = false;
oneko.enabled = false;
OpenInApp.enabled = false;
PermissionFreeWill.enabled = false;
PermissionsViewer.enabled = false;
petpet.enabled = false;
PictureInPicture.enabled = true;
PinDMs.enabled = false;
PlainFolderIcon.enabled = false;
PlatformIndicators.enabled = false;
PreviewMessage.enabled = false;
QuickMention.enabled = false;
QuickReply.enabled = false;
ReactErrorDecoder.enabled = false;
ReadAllNotificationsButton.enabled = false;
RelationshipNotifier.enabled = false;
RevealAllSpoilers.enabled = false;
ReverseImageSearch.enabled = false;
RoleColorEverywhere.enabled = false;
SecretRingToneEnabler.enabled = false;
SendTimestamps.enabled = false;
ServerListIndicators.enabled = false;
ShowAllMessageButtons.enabled = false;
ShowConnections.enabled = false;
ShowHiddenChannels = {
enabled = true;
showMode = 1;
hideUnreads = true;
defaultAllowedUsersAndRolesDropdownState = true;
};
ShowMeYourName.enabled = false;
SilentMessageToggle.enabled = false;
SilentTyping.enabled = false;
SortFriendRequests.enabled = false;
SpotifyControls.enabled = false;
SpotifyCrack.enabled = false;
SpotifyShareCommands.enabled = false;
StartupTimings.enabled = true;
SuperReactionTweaks.enabled = false;
TextReplace.enabled = false;
ThemeAttributes.enabled = false;
TimeBarAllActivities.enabled = false;
Translate.enabled = false;
TypingIndicator.enabled = false;
TypingTweaks.enabled = false;
Unindent.enabled = false;
UnsuppressEmbeds.enabled = false;
UrbanDictionary.enabled = false;
UserVoiceShow.enabled = false;
USRBG = {
enabled = false;
voiceBackground = true;
nitroFirst = true;
};
ValidUser.enabled = false;
VoiceChatDoubleClick.enabled = true;
VcNarrator.enabled = false;
ViewIcons.enabled = false;
ViewRaw = {
enabled = true;
clickMethod = "Left";
};
VoiceMessages = {
enabled = false;
noiseSuppression = true;
echoCancellation = true;
};
WebContextMenus = {
enabled = false;
addBack = true;
};
WebKeybinds.enabled = true;
WhoReacted.enabled = true;
Wikisearch.enabled = true;
Decor.enabled = false;
NotificationVolume.enabled = false;
FixSpotifyEmbeds.enabled = false;
InvisibleChat.enabled = false;
ShikiCodeblocks.enabled = false;
XSOverlay.enabled = false;
BetterGifPicker.enabled = false;
FixCodeblockGap.enabled = false;
ReviewDB = {
enabled = true;
notifyReviews = true;
showWarning = true;
hideTimestamps = false;
hideBlockedUsers = true;
};
FixYoutubeEmbeds.enabled = false;
ChatInputButtonAPI.enabled = false;
DisableCallIdle.enabled = false;
NewGuildSettings.enabled = false;
BetterRoleContext.enabled = false;
FriendsSince.enabled = false;
ResurrectHome.enabled = false;
BetterSettings.enabled = false;
OverrideForumDefaults.enabled = false;
UnlockedAvatarZoom.enabled = false;
ShowHiddenThings.enabled = false;
BetterSessions.enabled = false;
ImplicitRelationships.enabled = false;
StreamerModeOnStream.enabled = false;
ImageLink.enabled = false;
MessageLatency.enabled = false;
PauseInvitesForever.enabled = false;
ReplyTimestamp.enabled = false;
VoiceDownload.enabled = true;
WebScreenShareFixes.enabled = true;
PartyMode.enabled = false;
AutomodContext.enabled = false;
CtrlEnterSend.enabled = false;
CustomIdle.enabled = false;
NoDefaultHangStatus.enabled = false;
NoServerEmojis.enabled = false;
ReplaceGoogleSearch.enabled = false;
ShowTimeoutDuration.enabled = false;
ValidReply.enabled = false;
DontRoundMyTimestamps.enabled = false;
MaskedLinkPaste.enabled = false;
Summaries.enabled = false;
ServerInfo.enabled = false;
YoutubeAdblock.enabled = false;
MessageUpdaterAPI.enabled = true;
UserSettingsAPI.enabled = true;
AppleMusicRichPresence.enabled = false;
ConsoleJanitor.enabled = false;
CopyEmojiMarkdown.enabled = false;
MentionAvatars.enabled = false;
NoOnboardingDelay.enabled = false;
SuncordToolbox.enabled = true;
AlwaysExpandRoles.enabled = false;
NoMaskedUrlPaste.enabled = false;
VencordToolbox.enabled = false;
AccountPanelServerProfile.enabled = false;
CopyFileContents.enabled = false;
StickerPaste.enabled = false;
VolumeBooster.enabled = false;
FullSearchContext.enabled = false;
UserMessagesPronouns = {
enabled = false;
showInMessages = true;
showSelf = true;
pronounSource = 0;
showInProfile = true;
pronounsFormat = "LOWERCASE";
};
DynamicImageModalAPI.enabled = false;
FullUserInChatbox.enabled = false;
HideMedia.enabled = false;
IrcColors.enabled = false;
DisableDeepLinks.enabled = true;
ExpressionCloner.enabled = true;
CopyStickerLinks.enabled = false;
ImageFilename.enabled = false;
};
uiElements = {
chatBarButtons = { };
messagePopoverButtons = { };
};
notifications = {
timeout = 5000;
position = "bottom-right";
useNative = "not-focused";
logLimit = 50;
};
cloud = {
authenticated = false;
url = "https://api.vencord.dev/";
settingsSync = false;
settingsSyncVersion = 1765984819568;
};
notifyAboutUpdates = false;
macosTranslucency = false;
}

54
home/apps/vscode.nix Normal file
View file

@ -0,0 +1,54 @@
{
config,
pkgs,
lib,
...
}:
let
capitalize =
str:
(lib.toUpper (builtins.substring 0 1 str)) + (builtins.substring 1 (builtins.stringLength str) str);
in
{
# home.sessionVariables = {
# EDITOR = "code";
# };
catppuccin.vscode.profiles.default = {
enable = true;
settings = {
workbenchMode = "minimal";
};
};
programs.vscode = {
enable = true;
profiles.default = {
enableExtensionUpdateCheck = true;
enableMcpIntegration = true;
enableUpdateCheck = true;
# https://search.nixos.org/packages?query=vscode-extensions
extensions = with pkgs.vscode-extensions; [
yzhang.markdown-all-in-one
jnoortheen.nix-ide
esbenp.prettier-vscode
];
userSettings = {
"window.menuBarVisibility" = "compact";
"workbench.navigationControl.enabled" = false;
"window.commandCenter" = false;
"workbench.layoutControl.enabled" = false;
"window.titleBarStyle" = "native";
"editor.minimap.enabled" = false;
"editor.semanticHighlighting.enabled" = true;
# Disable AI "features"
## Chat features
"chat.agent.enabled" = false;
"chat.commandCenter.enabled" = false;
"inlineChat.accessibleDiffView" = "off";
"terminal.integrated.initialHint" = false;
};
};
};
}

14
home/default.nix Executable file
View file

@ -0,0 +1,14 @@
{
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
config.home.stateVersion = "25.05";
# Let Home Manager install and manage itself.
config.programs.home-manager.enable = true;
}

11
home/games/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
imports = [
./minecraft.nix
./morrowind.nix
];
home.packages = with pkgs; [
dolphin-emu
];
}

17
home/games/minecraft.nix Normal file
View file

@ -0,0 +1,17 @@
{
config,
pkgs,
...
}:
{
home.packages = with pkgs; [
(prismlauncher.override {
jdks = [
jdk25
jdk21
jdk17
jdk8
];
})
];
}

18
home/games/morrowind.nix Normal file
View file

@ -0,0 +1,18 @@
{
pkgs,
...
}:
{
home.packages = with pkgs; [ openmw ];
home.sessionVariables.SDL_VIDEO_DRIVER = "wayland";
programs.firefox.profiles.default.search.engines.uesp = {
name = "Unofficial Elder Scrolls Pages";
urls = [
{
template = "https://en.uesp.net/w/index.php?title=Special%3ASearch&search={searchTerms}&button=";
}
];
definedAliases = [ "uesp" ];
};
}

View file

@ -0,0 +1,46 @@
{
pkgs,
...
}:
{
colors = {
scheme = "catppuccin-mocha";
accent = "base0D";
};
home.packages = with pkgs; [
ckan
spotify
adwsteamgtk
daggerfall-unity
vintagestory
gamemode
];
# PROTON_ENABLE_NVAPI=1 PROTON_DLSS_UPGRADE=1 PROTON_ENABLE_NGX_UPDATER=1 DXVK_NVAPI_DRS_SETTINGS=NGX_DLSS_SR_MODE=balanced MANGOHUD_CONFIG="fps_limit=144,gamemode,ram,vram" mangohud gamemoderun %command%
xdg.desktopEntries.steam-big-picture = {
name = "Steam (Big Picture)";
icon = "steam";
exec = "gamescope -e --force-grab-cursor -s 2 -- steam -tenfoot";
terminal = false;
categories = [
"Network"
"FileTransfer"
"Game"
];
};
home.sessionVariables = {
PROTON_ENABLE_NVAPI = 1;
PROTON_DLSS_UPGRADE = 1;
PROTON_ENABLE_NGX_UPDATER = 1;
DXVK_NVAPI_DRS_SETTINGS = "NGX_DLSS_SR_MODE=balanced";
MANGOHUD_CONFIG = "fps_limit=144,gamemode,ram,vram";
};
programs.noctalia-shell.settings.brightness.enableDdcSupport = true;
programs.noctalia-shell.settings.bar = {
position = "top";
density = "default";
};
}

View file

@ -0,0 +1,40 @@
{
pkgs,
lib,
...
}:
{
colors = {
scheme = "catppuccin-frappe";
accent = "base09";
};
home.packages = with pkgs; [
asahi-nvram
asahi-bless
asahi-btsync
asahi-wifisync
moonlight-qt
];
programs = {
noctalia-shell.settings.bar = {
position = "top";
density = "spacious";
};
niri.settings.outputs."eDP-1" = {
scale = 1.5;
mode = {
width = 3024;
height = 1964;
refresh = 120.000;
};
position = {
x = 272;
y = 1440;
};
};
};
}

View file

@ -0,0 +1,11 @@
{
config,
pkgs,
...
}:
{
colors = {
scheme = "catppuccin-mocha";
accent = "base0B";
};
}

251
home/services/default.nix Normal file
View file

@ -0,0 +1,251 @@
{
osConfig,
config,
pkgs,
...
}:
{
imports = [
./gtk.nix
./qt.nix
./systemd.nix
];
home.packages = with pkgs; [
adwaita-icon-theme
morewaita-icon-theme
];
home.file = {
".icons/default/index.theme" = {
text = ''
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=${config.userOptions.cursor.name}
'';
force = true;
};
};
services.spotifyd.enable = true;
# comments taken from https://docs.spotifyd.rs/configuration/index.html
services.spotifyd.settings.global = {
#---------#
# GENERAL #
#---------#
# The name that gets displayed under the connect tab on
# official clients.
device_name = "daemon@${osConfig.system.name}";
# The displayed device type in Spotify clients.
# Can be unknown, computer, tablet, smartphone, speaker, t_v,
# a_v_r (Audio/Video Receiver), s_t_b (Set-Top Box), and audio_dongle.
device_type = "computer";
# The bus to bind to with the MPRIS interface.
# Possible values: "session", "system"
# The system bus can be used if no graphical session is available
# (e.g. on headless systems) but you still want to be able to use MPRIS.
# NOTE: You might need to add appropriate policies to allow spotifyd to
# own the name.
dbus_type = "session";
# If set to true, `spotifyd` tries to bind to dbus (default is the session bus)
# and expose MPRIS controls. When running headless, without the session bus,
# you should set this to false, to avoid errors. If you still want to use MPRIS,
# have a look at the `dbus_type` option.
use_mpris = true;
# The directory used to store credentials and audio cache.
# Default: infers a sensible cache directory (e.g. on Linux: $XDG_CACHE_HOME)
# Note: The file path does not get expanded. Environment variables and
# shell placeholders like $HOME or ~ don't work!
# cache_path = "";
# If set to true, audio data does NOT get cached.
# In this case, the cache is only used for credentials.
no_audio_cache = false;
# The maximal size of the cache directory in bytes
# The value below corresponds to ~ 10GB
max_cache_size = 10000000000;
#-----------#
# DISCOVERY #
#-----------#
# If set to true, this disables zeroconf discovery.
# This can be useful, if one prefers to run a single-user instance.
disable_discovery = true;
#-------#
# AUDIO #
#-------#
# The audio backend used to play music. To get
# a list of possible backends, run `spotifyd --help`.
backend = "alsa"; # use portaudio for macOS [homebrew]
# The alsa audio device to stream audio. To get a
# list of valid devices, run `aplay -L`,
device = "default"; # omit for macOS
# If set to true, enables volume normalisation between songs.
volume_normalisation = true;
# The normalisation pregain that is applied for each song.
normalisation_pregain = 0;
# The audio bitrate. 96, 160 or 320 kbit/s
bitrate = 320;
# Volume on startup between 0 and 100
initial_volume = 100;
#-------ä
# OTHER #
#-------#
# After the music playback has ended, start playing similar songs based on the previous tracks.
# By default, `spotifyd` infers this setting from the user settings.
autoplay = false;
};
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
clock-format = "12h";
clock-show-weekday = true;
};
"org/gnome/desktop/wm/preferences" = {
button-layout = ":";
action-double-click-titlebar = "'none'";
};
"org/gnome/desktop/media-handling" = {
automount = false;
automount-open = false;
autorun-never = true;
};
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "nothing";
};
"org/gnome/mutter" = {
edge-tiling = true;
dynamic-workspaces = true;
experimental-features = [ "variable-refresh-rate" ];
};
};
home.pointerCursor = {
gtk.enable = true;
name = config.userOptions.cursor.name;
package = config.userOptions.cursor.package;
size = config.userOptions.cursor.size;
};
home.sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt6ct";
# this makes electron apps work per the wiki
NIXOS_OZONE_WL = "1";
# allow non-free packages in shells
NIXPKGS_ALLOW_UNFREE = 1;
};
gtk = {
enable = true;
colorScheme = "dark";
iconTheme = {
name = "MoreWaita";
package = pkgs.morewaita-icon-theme;
};
cursorTheme = {
name = config.home.pointerCursor.name;
package = config.home.pointerCursor.package;
size = config.home.pointerCursor.size;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
gtk-decoration-layout = ":";
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
gtk-decoration-layout = ":";
};
};
xdg.mimeApps = {
enable = true;
associations.added = {
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/discord" = [ "vesktop.desktop" ];
"x-scheme-handler/spotify" = [ "riff.desktop" ];
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
"image/png" = [ "loupe.desktop" ];
"image/jpeg" = [ "loupe.desktop" ];
};
defaultApplications = {
# Web
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"text/html" = [ "firefox.desktop" ];
# Communication & Social
"x-scheme-handler/discord" = [ "vesktop.desktop" ];
"x-scheme-handler/spotify" = [ "riff.desktop" ];
# File Management
"inode/directory" = [ "org.gnome.Nautilus.desktop" ];
# Torrents
"application/x-bittorrent" = [ "org.qbittorrent.qBittorrent.desktop" ];
"x-scheme-handler/magnet" = [ "org.qbittorrent.qBittorrent.desktop" ];
# Documents
"application/pdf" = [ "firefox.desktop" ]; # Or libreoffice-draw.desktop
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = [
"libreoffice-writer.desktop"
]; # docx
"application/msword" = [ "libreoffice-writer.desktop" ]; # doc
"application/vnd.oasis.opendocument.text" = [ "libreoffice-writer.desktop" ]; # odt
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" = [
"libreoffice-calc.desktop"
]; # xlsx
"application/vnd.ms-excel" = [ "libreoffice-calc.desktop" ]; # xls
"application/vnd.oasis.opendocument.spreadsheet" = [ "libreoffice-calc.desktop" ]; # ods
# Text & Code
"text/plain" = [ "nvim.desktop" ];
"text/markdown" = [ "nvim.desktop" ];
"application/x-shellscript" = [ "nvim.desktop" ];
"application/json" = [ "nvim.desktop" ];
"text/x-c" = [ "nvim.desktop" ];
"text/x-c++" = [ "nvim.desktop" ];
"text/x-python" = [ "nvim.desktop" ];
"text/x-makefile" = [ "nvim.desktop" ];
# Terminal
"x-scheme-handler/terminal" = [ "kitty.desktop" ];
# Media
"video/mp4" = [ "mpv.desktop" ];
"video/mkv" = [ "mpv.desktop" ];
"video/webm" = [ "mpv.desktop" ];
"audio/mpeg" = [ "mpv.desktop" ];
"audio/flac" = [ "mpv.desktop" ];
"audio/wav" = [ "mpv.desktop" ];
# Images
"image/png" = [ "loupe.desktop" ];
"image/jpeg" = [ "loupe.desktop" ];
"image/webp" = [ "loupe.desktop" ];
"image/gif" = [ "loupe.desktop" ];
};
};
}

128
home/services/gtk.nix Normal file
View file

@ -0,0 +1,128 @@
{
config,
...
}:
let
mkColorSection = name: value: "@define-color ${name} ${value};";
generateCSS = with config.scheme.withHashtag; ''
/* Kova's Nixified GTK */
/* Base colors */
${mkColorSection "window_bg_color" base00}
${mkColorSection "window_fg_color" base05}
/* View styling */
${mkColorSection "view_bg_color" base00}
${mkColorSection "view_fg_color" base05}
/* Header bar */
${mkColorSection "headerbar_bg_color" base10}
${mkColorSection "headerbar_backdrop_color" base10}
${mkColorSection "headerbar_fg_color" base05}
/* Popovers and dialogs */
${mkColorSection "popover_bg_color" base00}
${mkColorSection "popover_fg_color" base05}
@define-color dialog_bg_color @popover_bg_color;
@define-color dialog_fg_color @popover_fg_color;
/* Cards and sidebars */
${mkColorSection "card_bg_color" base10}
${mkColorSection "card_fg_color" base05}
${mkColorSection "sidebar_bg_color" base10}
${mkColorSection "sidebar_fg_color" base05}
@define-color sidebar_backdrop_color @sidebar_bg_color;
${mkColorSection "sidebar_border_color" base01}
@define-color secondary_sidebar_bg_color @sidebar_bg_color;
@define-color secondary_sidebar_fg_color @sidebar_fg_color;
@define-color secondary_sidebar_backdrop_color @sidebar_backdrop_color;
@define-color secondary_sidebar_border_color @sidebar_border_color;
/* Catppuccin accent colors */
${mkColorSection "blue_1" base0D}
${mkColorSection "blue_2" base16}
${mkColorSection "blue_3" base15}
${mkColorSection "blue_4" base0C}
${mkColorSection "blue_5" base07}
${mkColorSection "green_1" base0B}
${mkColorSection "green_2" base0C}
${mkColorSection "green_3" base15}
${mkColorSection "green_4" base16}
${mkColorSection "green_5" base0D}
${mkColorSection "yellow_1" base0A}
${mkColorSection "yellow_2" base09}
${mkColorSection "yellow_3" base0A}
${mkColorSection "yellow_4" base08}
${mkColorSection "yellow_5" base12}
${mkColorSection "orange_1" base09}
${mkColorSection "orange_2" base08}
${mkColorSection "orange_3" base12}
${mkColorSection "orange_4" base0A}
${mkColorSection "orange_5" base0B}
${mkColorSection "red_1" base08}
${mkColorSection "red_2" base12}
${mkColorSection "red_3" base17}
${mkColorSection "red_4" base0F}
${mkColorSection "red_5" base13}
${mkColorSection "purple_1" base0E}
${mkColorSection "purple_2" base07}
${mkColorSection "purple_3" base17}
${mkColorSection "purple_4" base0F}
${mkColorSection "purple_5" base13}
${mkColorSection "brown_1" base02}
${mkColorSection "brown_2" base03}
${mkColorSection "brown_3" base03}
${mkColorSection "brown_4" base03}
${mkColorSection "brown_5" base04}
${mkColorSection "light_1" base05}
${mkColorSection "light_2" base04}
${mkColorSection "light_3" base04}
${mkColorSection "light_4" base0D}
${mkColorSection "light_5" base03}
${mkColorSection "dark_1" base01}
${mkColorSection "dark_2" base02}
${mkColorSection "dark_3" base02}
${mkColorSection "dark_4" base10}
${mkColorSection "dark_5" base11}
/* Custom rules */
toast {
background-color: @window_bg_color;
color: @window_fg_color;
}
toggle:checked {
background-color: @card_bg_color;
color: @window_fg_color;
}
.inline {
background-color: rgba(0, 0, 0, 0);
}
/* Accent */
${mkColorSection "accent_bg_color" config.scheme.withHashtag.${config.colors.accent}}
@define-color accent_fg_color @window_bg_color;
'';
in
{
home.file = {
".config/gtk-4.0/gtk.css" = {
text = generateCSS;
force = true;
};
".config/gtk-3.0/gtk.css" = {
text = generateCSS;
force = true;
};
};
}

118
home/services/qt.nix Normal file
View file

@ -0,0 +1,118 @@
{
config,
pkgs,
...
}:
{
qt = {
enable = true;
qt5ctSettings = {
Appearance = {
style = "Breeze";
icon_theme = config.gtk.iconTheme.name;
color_scheme_path = "/home/${config.userOptions.username}/.config/qt5ct/qt5ct.conf";
custom_palette = true;
standard_dialogs = "xdgdesktopportal";
};
Fonts = config.qt.qt6ctSettings.Fonts;
ColorScheme = config.qt.qt6ctSettings.ColorScheme;
};
qt6ctSettings = {
Appearance = {
style = "Breeze";
icon_theme = config.gtk.iconTheme.name;
color_scheme_path = "/home/${config.userOptions.username}/.config/qt6ct/qt6ct.conf";
custom_palette = true;
standard_dialogs = "xdgdesktopportal";
};
Fonts = {
fixed = "\"${config.userOptions.fontMono.name},${toString config.userOptions.fontMono.size}\"";
general = "\"${config.userOptions.fontSans.name},${toString config.userOptions.fontSans.size}\"";
};
ColorScheme =
with config.scheme;
let
accent = config.scheme.withHashtag.${config.colors.accent};
mkColors = roles: builtins.concatStringsSep ", " (map (r: "#ff${r}") roles);
in
{
active_colors = mkColors [
base05
base01
base02
base01
base00
base10
base05
base05
base05
base00
base10
base11
accent
base00
accent
base0E
base10
"000000"
base00
base05
base03
accent
];
disabled_colors = mkColors [
base03
base01
base02
base01
base03
base10
base03
base05
base03
base01
base01
base10
base03
base05
"0000ff"
"ff00ff"
base01
"000000"
base01
base00
"80000000"
base03
];
inactive_colors = mkColors [
base05
base01
base02
base01
base00
base10
base05
base05
base05
base00
base10
base11
accent
base00
accent
base0E
base10
"000000"
base00
base05
base03
accent
];
};
};
};
}

66
home/services/systemd.nix Normal file
View file

@ -0,0 +1,66 @@
{
config,
pkgs,
lib,
...
}:
{
systemd.user.sessionVariables = {
XCURSOR_THEME = config.userOptions.cursor.name;
XCURSOR_SIZE = toString config.userOptions.cursor.size;
XCURSOR_PATH = config.userOptions.cursor.path;
};
xdg.configFile."rclone/synology.conf".text = ''
[synology]
type = sftp
user = sckova
host = nas.taila30609.ts.net
key_file = ~/.ssh/key
shell_type = unix
root = home
md5sum_command = "${pkgs.coreutils}/bin/md5sum";
sha1sum_command = "${pkgs.coreutils}/bin/sha1sum";
'';
systemd.user.services.synology-mount = {
Unit = {
Description = "Mount Synology NAS with Rclone and Home Manager.";
After = [ "tailscaled.service" ];
Wants = [ "tailscaled.service" ];
StartLimitBurst = 5;
StartLimitIntervalSec = "1m";
};
Service = {
Type = "simple";
Restart = "on-failure";
RestartSec = "1m";
ExecStart = "${pkgs.writeShellScript "synology-mount" ''
#!/usr/bin/env bash
set -euo pipefail
# Ensure mount point exists
mkdir -p $HOME/Synology || true
# Unmount stale mount if present
/run/wrappers/bin/umount "$HOME/Synology" || true
# Mount rclone in foreground
${pkgs.rclone}/bin/rclone \
--config=$HOME/.config/rclone/synology.conf \
--ignore-checksum \
--log-level INFO \
--rc --rc-serve \
mount "synology:" "$HOME/Synology"
''}";
ExecStop = "/run/wrappers/bin/fusermount -uz %h/Synology/%i";
StandardOutput = "journal";
StandardError = "journal";
};
Install = {
WantedBy = [ "default.target" ];
};
};
}

257
home/terminal/btop.conf Normal file
View file

@ -0,0 +1,257 @@
#? Config file for btop v. 1.4.5
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "nixos.theme"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = True
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
truecolor = True
#* Set to true to force tty mode regardless if a real tty has been detected or not.
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
force_tty = False
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
#* Use whitespace " " as separator between different presets.
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
vim_keys = False
#* Rounded corners on boxes, is ignored if TTY mode is ON.
rounded_corners = True
#* Default symbols to use for graph creation, "braille", "block" or "tty".
#* "braille" offers the highest resolution but might not be included in all fonts.
#* "block" has half the resolution of braille but uses more common characters.
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default"
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
graph_symbol_gpu = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "cpu mem net proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 2000
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy"
#* Reverse sorting order, True or False.
proc_reversed = False
#* Show processes as a tree.
proc_tree = False
#* Use the cpu graph colors in the process list.
proc_colors = True
#* Use a darkening gradient in the process list.
proc_gradient = True
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
proc_per_core = False
#* Show process memory as bytes instead of percent.
proc_mem_bytes = True
#* Show cpu graph for each process.
proc_cpu_graphs = True
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = False
#* Show proc box on left side of screen instead of right.
proc_left = False
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
proc_filter_kernel = False
#* In tree-view, always accumulate child process resources in the parent process.
proc_aggregate = False
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "Auto"
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "Auto"
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
show_gpu_info = "Auto"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = True
#* Set to True to completely disable the lower CPU graph.
cpu_single_graph = False
#* Show cpu box at bottom of screen instead of top.
cpu_bottom = False
#* Shows the system uptime in the CPU box.
show_uptime = True
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
show_cpu_watts = True
#* Show cpu temperature.
check_temp = True
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
cpu_sensor = "Auto"
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
show_coretemp = True
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
#* Example: "4:0 5:1 6:3"
cpu_core_map = ""
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
temp_scale = "celsius"
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
base_10_sizes = True
#* Show CPU frequency.
show_cpu_freq = True
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
clock_format = "%X"
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
background_update = True
#* Custom cpu model name, empty string to disable.
custom_cpu_name = ""
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter="/boot /home/user", disks_filter="exclude=/boot /home/user"
disks_filter = ""
#* Show graphs instead of meters for memory values.
mem_graphs = True
#* Show mem box below net box instead of above.
mem_below_net = False
#* Count ZFS ARC in cached and available memory.
zfs_arc_cached = True
#* If swap memory should be shown in memory box.
show_swap = True
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
swap_disk = True
#* If mem box should be split to also show disks info.
show_disks = True
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
only_physical = True
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = True
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
zfs_hide_datasets = False
#* Set to true to show available disk space for privileged users.
disk_free_priv = False
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
show_io_stat = True
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
io_mode = False
#* Set to True to show combined read/write io graphs in io mode.
io_graph_combined = False
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
#* Example: "/mnt/media:100 /:20 /boot:1".
io_graph_speeds = ""
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
net_download = 100
net_upload = 100
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
net_auto = True
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
net_sync = True
#* Starts with the Network Interface specified here.
net_iface = ""
#* "True" shows bitrates in base 10 (Kbps, Mbps). "False" shows bitrates in binary sizes (Kibps, Mibps, etc.). "Auto" uses base_10_sizes.
base_10_bitrate = "Auto"
#* Show battery stats in top right if battery is present.
show_battery = True
#* Which battery to use if multiple are present. "Auto" for auto detection.
selected_battery = "Auto"
#* Show power stats of battery next to charge indicator.
show_battery_watts = True
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "WARNING"
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
nvml_measure_pcie_speeds = True
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
rsmi_measure_pcie_speeds = True
#* Horizontally mirror the GPU graph.
gpu_mirror_graph = True
#* Custom gpu0 model name, empty string to disable.
custom_gpu_name0 = ""
#* Custom gpu1 model name, empty string to disable.
custom_gpu_name1 = ""
#* Custom gpu2 model name, empty string to disable.
custom_gpu_name2 = ""
#* Custom gpu3 model name, empty string to disable.
custom_gpu_name3 = ""
#* Custom gpu4 model name, empty string to disable.
custom_gpu_name4 = ""
#* Custom gpu5 model name, empty string to disable.
custom_gpu_name5 = ""

108
home/terminal/btop.nix Normal file
View file

@ -0,0 +1,108 @@
{
config,
pkgs,
...
}:
let
btop-colors-file = pkgs.writeTextFile {
name = "btop-colors";
text = with config.scheme.withHashtag; ''
# Credit to https://github.com/catppuccin/btop
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="${base00}"
# Main text color
theme[main_fg]="${base05}"
# Title color for boxes
theme[title]="${base05}"
# Highlight color for keyboard shortcuts
theme[hi_fg]="${base0D}"
# Background color of selected item in processes box
theme[selected_bg]="${base02}"
# Foreground color of selected item in processes box
theme[selected_fg]="${base0D}"
# Color of inactive/disabled text
theme[inactive_fg]="${base03}"
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="${base06}"
# Background color of the percentage meters
theme[meter_bg]="${base02}"
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="${base06}"
# CPU, Memory, Network, Proc box outline colors
theme[cpu_box]="${base0E}" #Mauve
theme[mem_box]="${base0B}" #Green
theme[net_box]="${base12}" #Maroon
theme[proc_box]="${base0D}" #Blue
# Box divider line and small boxes line color
theme[div_line]="${base03}"
# Temperature graph color (Green -> Yellow -> Red)
theme[temp_start]="${base0B}"
theme[temp_mid]="${base0A}"
theme[temp_end]="${base08}"
# CPU graph colors (Teal -> Lavender)
theme[cpu_start]="${base0C}"
theme[cpu_mid]="${base16}"
theme[cpu_end]="${base07}"
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
theme[free_start]="${base0E}"
theme[free_mid]="${base07}"
theme[free_end]="${base0D}"
# Mem/Disk cached meter (Sapphire -> Lavender)
theme[cached_start]="${base16}"
theme[cached_mid]="${base0D}"
theme[cached_end]="${base07}"
# Mem/Disk available meter (Peach -> Red)
theme[available_start]="${base09}"
theme[available_mid]="${base12}"
theme[available_end]="${base08}"
# Mem/Disk used meter (Green -> Sky)
theme[used_start]="${base0B}"
theme[used_mid]="${base0C}"
theme[used_end]="${base15}"
# Download graph colors (Peach -> Red)
theme[download_start]="${base09}"
theme[download_mid]="${base12}"
theme[download_end]="${base08}"
# Upload graph colors (Green -> Sky)
theme[upload_start]="${base0B}"
theme[upload_mid]="${base0C}"
theme[upload_end]="${base15}"
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
theme[process_start]="${base16}"
theme[process_mid]="${base07}"
theme[process_end]="${base0E}"
'';
destination = "/nixos.theme";
};
batConfigDir = pkgs.runCommand "mergedConfig" { } ''
mkdir -p $out/themes
cp -r ${btop-colors-file}/nixos.theme $out/themes/nixos.theme
'';
in
{
home.file.".config/btop" = {
source = batConfigDir;
recursive = true;
};
}

81
home/terminal/default.nix Normal file
View file

@ -0,0 +1,81 @@
{
config,
pkgs,
lib,
...
}:
{
imports = [
./btop.nix
./fish.nix
./kitty.nix
./neovim.nix
];
home.packages = with pkgs; [
# cli utilities
tmux
fastfetch
btop
wget
ripgrep
ncdu
fzf
wl-clipboard
rclone
waypipe
spotdl
browsh
mosh
gh
kdePackages.qttools
eza
pigz
# development & tooling
jdk21_headless
quickemu
nerd-fonts.noto
noto-fonts
noto-fonts-color-emoji
nix-prefetch
prowlarr
radarr
sonarr
flaresolverr
nerd-fonts.fira-mono
ffmpeg-full
# formatters
kdePackages.qtdeclarative
prettier
prettierd
nixfmt
stylua
black
clang-tools
];
programs = {
git = {
enable = true;
settings = {
user = {
name = config.userOptions.name;
email = config.userOptions.email;
};
core.pager = "${pkgs.bat}/bin/bat";
commit.gpgsign = true;
};
};
bat = {
enable = true;
config.style = "numbers,changes";
};
lazygit = {
enable = true;
enableFishIntegration = true;
};
lazysql.enable = true;
};
}

51
home/terminal/fish.nix Normal file
View file

@ -0,0 +1,51 @@
{
config,
lib,
...
}:
{
programs.fish = {
enable = true;
shellAliases = {
ssh = "kitty-ssh";
cat = "bat";
gzip = "pigz";
ls = "eza";
gl = "git log";
gd = "git diff";
ga = "git add -v .";
gac = "git add -v . && git commit";
gaca = "git add -v . && git commit --amend --no-edit";
gp = "git push";
gpf = "git push --force";
};
functions = {
fish_prompt = {
description = "Write out the prompt";
body = builtins.readFile ./fish_functions/fish-prompt.fish;
};
kitty-ssh = {
description = "Integrate Kitten SSH with Fish";
body = builtins.readFile ./fish_functions/kitty-ssh.fish;
};
nix-shell = {
description = "Wrapper for nix-shell that runs fish by default";
body = builtins.readFile ./fish_functions/nix-shell.fish;
};
};
};
home.file.".config/fish/colors.fish" = {
text = lib.concatStringsSep "\n" (
lib.mapAttrsToList (name: value: "set -g color_${name} ${value}") (
lib.filterAttrs (
n: v: builtins.isString v && builtins.match "^base[0-9A-Fa-f]{2}$" n != null
) config.scheme
)
++ [ "set -g color_accent ${config.scheme.${config.colors.accent}}" ]
);
force = true;
};
programs.man.generateCaches = false;
}

View file

@ -0,0 +1,28 @@
source ~/.config/fish/colors.fish
set -l last_status $status
set -l nix_shell_info (
if test -n "$IN_NIX_SHELL"
echo -n "<nix-shell> "
end
)
set -g color_user cyan
set -g color_host red
set -g color_cwd green
# Set host color based on hostname
if test (hostname) = peach
set -g color_host $color_accent
else if test (hostname) = alien
set -g color_host $color_accent
else if test (hostname) = vm
set -g color_host $color_accent
set -g color_cwd normal
else if test (uname) = Darwin
set -g color_host $color_base0A
end
set -l user_host (set_color $color_user)"$USER"(set_color normal)"@"(set_color $color_host)(prompt_hostname)(set_color normal)
set -l cwd (set_color $color_cwd)(prompt_pwd)(set_color normal)
set -l git_info (fish_git_prompt)
echo -s "$user_host" " " "$cwd" "$git_info $nix_shell_info"
echo -n -s "> "

View file

@ -0,0 +1,5 @@
if set -q KITTY_WINDOW_ID
kitty +kitten ssh $argv
else
command ssh $argv
end

View file

@ -0,0 +1,5 @@
if test (count $argv) -eq 0
command nix-shell --run fish
else
command nix-shell --run fish $argv
end

132
home/terminal/kitty.nix Normal file
View file

@ -0,0 +1,132 @@
{
config,
pkgs,
...
}:
let
# Map Catppuccin colors to Kitty theme structure
kitty-colors = with config.scheme.withHashtag; ''
# vim:ft=kitty
## name: Kova's Nixified Kitty
## author: Catppuccin Org & sckova
## license: MIT
## upstream: https://github.com/catppuccin/kitty
## blurb: The theme generated from the NixOS configuration!
# The basic colors
foreground ${base05}
background ${base00}
selection_foreground ${base00}
selection_background ${base06}
# Cursor colors
cursor ${base06}
cursor_text_color ${base00}
# URL underline color when hovering with mouse
url_color ${base06}
# Kitty window border colors
active_border_color ${config.scheme.withHashtag.${config.colors.accent}}
inactive_border_color ${base01}
bell_border_color ${base12}
# Tab bar colors
active_tab_foreground ${base11}
active_tab_background ${config.scheme.withHashtag.${config.colors.accent}}
inactive_tab_foreground ${base05}
inactive_tab_background ${base10}
tab_bar_background ${base11}
# Colors for marks (marked text in the terminal)
mark1_foreground ${base00}
mark1_background ${base09}
mark2_foreground ${base00}
mark2_background ${base0D}
mark3_foreground ${base00}
mark3_background ${base15}
# The 16 terminal colors
# black
color0 ${base02}
color8 ${base02}
# red
color1 ${base08}
color9 ${base08}
# green
color2 ${base0B}
color10 ${base0B}
# yellow
color3 ${base0A}
color11 ${base0A}
# blue
color4 ${base0D}
color12 ${base0D}
# magenta
color5 ${base17}
color13 ${base17}
# cyan
color6 ${base0C}
color14 ${base0C}
# white
color7 ${base04}
color15 ${base04}
'';
kitty-colors-file = pkgs.writeTextFile {
name = "kitty-colors";
text = kitty-colors;
destination = "/kitty-colors.conf";
};
in
{
home.file.".config/kitty/themes" = {
source = kitty-colors-file;
recursive = true;
};
home.file.".config/kitty/ssh.conf" = {
text = ''
shell_integration inherited
'';
};
programs = {
kitty = {
enable = true;
enableGitIntegration = true;
font = {
name = config.userOptions.fontMono.name;
size = config.userOptions.fontMono.size;
};
shellIntegration.enableFishIntegration = true;
keybindings = {
"ctrl+k" = "combine : clear_terminal scroll active : clear_terminal scrollback active";
};
settings = {
include = "/home/${config.userOptions.username}/.config/kitty/themes/kitty-colors.conf";
scrollback_lines = 10000;
wheel_scroll_multiplier = 5.0;
touch_scroll_multiplier = 5.0;
enable_audio_bell = false;
update_check_interval = 0;
confirm_os_window_close = 0;
window_padding_width = 4;
tab_bar_min_tabs = 2;
tab_bar_edge = "top";
tab_bar_style = "powerline";
tab_powerline_style = "slanted";
mouse_hide_wait = "-1.0";
wayland_titlebar_color = "system";
macos_titlebar_color = "system";
};
};
};
}

330
home/terminal/neovim.nix Normal file
View file

@ -0,0 +1,330 @@
{
pkgs,
config,
lib,
...
}:
{
home.sessionVariables.EDITOR = lib.mkForce "kitty nvim";
programs.nixvim = {
enable = true;
enablePrintInit = true;
defaultEditor = true;
waylandSupport = true;
viAlias = true;
vimAlias = true;
clipboard = {
register = "unnamedplus";
providers.wl-copy.enable = true;
};
opts = {
tabstop = 2;
softtabstop = 2;
shiftwidth = 2;
expandtab = true;
number = true;
};
colorschemes.palette = {
enable = true;
settings = {
palettes = {
main = "base16_custom";
accent = "base16_custom";
state = "base16_custom";
};
# this is helpful for figuring out what color is what:
# https://github.com/tinted-theming/schemes/blob/spec-0.11/base24/catppuccin-frappe.yaml
custom_palettes = with config.scheme.withHashtag; {
main.base16_custom = {
color0 = base00; # background
color1 = base01; # lighter background
color2 = base02; # selection background
color3 = base03; # color inside ${}
color4 = base04; # dark foreground
color5 = config.scheme.withHashtag.${config.colors.accent}; # default foreground, left side of assignments
color6 = base03; # comments
color7 = base07; # lightest foreground
color8 = base05; # variables/tags
};
accent.base16_custom = {
accent0 = base08; # red, integers/constants
accent1 = base0A; # orange, classes/search
accent2 = base0A; # yellow, strings/inherited
accent3 = base0B; # green, support/regex
accent4 = base0D; # blue, functions/headings
accent5 = base0E; # purple, keywords/bold
accent6 = base07; # lavender, deprecated/embedded
};
state.base16_custom = {
error = base08; # red
warning = base0A; # yellow
hint = base0C; # cyan
ok = base0B; # green
info = base0D; # blue
};
};
};
};
keymaps = [
# --- Normal mode mappings ---
{
mode = "n";
key = "<C-c>";
action = "\"+y";
options = {
noremap = true;
silent = true;
};
}
{
mode = "n";
key = "<C-p>";
action = "\"+p";
options = {
noremap = true;
silent = true;
};
}
# --- Visual mode mappings ---
{
mode = "v";
key = "<C-c>";
action = "\"+y";
options = {
noremap = true;
silent = true;
};
}
{
mode = "v";
key = "<C-p>";
action = "\"+p";
options = {
noremap = true;
silent = true;
};
}
];
plugins = {
nvim-autopairs = {
enable = true;
};
cmp = {
enable = true;
settings = {
autoEnableSources = true;
performance = {
debounce = 60;
fetchingTimeout = 200;
maxViewEntries = 30;
};
mapping = {
__raw = ''
cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<C-Enter>'] = cmp.mapping.confirm({ select = true }),
})
'';
};
snippet = {
expand = "luasnip";
};
formatting = {
fields = [
"kind"
"abbr"
"menu"
];
};
sources = [
{ name = "git"; }
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
{ name = "fish"; }
{ name = "emoji"; }
{
name = "buffer"; # text within current buffer
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
keywordLength = 3;
}
{
name = "path"; # file system paths
keywordLength = 3;
}
{
name = "luasnip"; # snippets
keywordLength = 3;
}
];
};
};
conform-nvim = {
enable = true;
settings = {
formatters_by_ft = {
lua = [ "stylua" ];
python = [ "black" ];
nix = [ "nixfmt" ];
html = [ "prettier" ];
javascript = [ "prettier" ];
css = [ "prettier" ];
json = [ "prettier" ];
jsonc = [ "prettier" ];
fish = [ "fish_indent" ];
c = [ "clang-format" ];
cpp = [ "clang-format" ];
};
# Default formatting options
default_format_opts = {
lsp_format = "fallback";
};
# Format-on-save behavior
format_on_save = {
timeout_ms = 500;
};
# Custom formatter settings
formatters = {
shfmt = {
append_args = [
"-i"
"2"
];
};
};
};
};
fzf-lua = {
enable = true;
};
kitty-scrollback = {
enable = true;
};
lsp = {
enable = true;
servers = {
qmlls = {
enable = true;
cmd = [
"qmlls"
"-E"
];
};
nixd.enable = true;
};
};
lualine = with config.scheme.withHashtag; {
enable = true;
settings = {
options = {
theme = {
normal = {
a = {
fg = base00;
bg = base0E;
};
b = {
fg = base05;
bg = base01;
};
c = {
fg = base05;
};
};
insert = {
a = {
fg = base00;
bg = base0D;
};
};
visual = {
a = {
fg = base00;
bg = base0C;
};
};
replace = {
a = {
fg = base00;
bg = base08;
};
};
inactive = {
a = {
fg = base05;
bg = base00;
};
b = {
fg = base05;
bg = base00;
};
c = {
fg = base05;
};
};
};
component_separators = "";
section_separators = {
left = "";
right = "";
};
};
sections = {
lualine_a = [
{
__unkeyed-1 = "mode";
separator = {
left = " ";
};
right_padding = 2;
}
];
lualine_b = [
"filename"
"branch"
];
lualine_c = [ "%=" ];
lualine_x = [ ];
lualine_y = [
"filetype"
"progress"
];
lualine_z = [
{
__unkeyed-1 = "location";
separator = {
right = " ";
};
left_padding = 2;
}
];
};
inactive_sections = {
lualine_a = [ "filename" ];
lualine_b = [ ];
lualine_c = [ ];
lualine_x = [ ];
lualine_y = [ ];
lualine_z = [ "location" ];
};
tabline = { };
extensions = [ ];
};
};
};
};
}

114
home/tiling/default.nix Normal file
View file

@ -0,0 +1,114 @@
{ pkgs, config, ... }:
{
imports = [
./niri.nix
./noctalia.nix
./wallpaper.nix
];
home.packages = with pkgs; [
xdg-desktop-portal
brightnessctl
qt6Packages.qt6ct
libsForQt5.qt5ct
catppuccin-qt5ct
xwayland-satellite
playerctl
];
programs.fuzzel = {
enable = true;
package = pkgs.fuzzel;
settings = {
main = {
terminal = "${pkgs.kitty}/bin/kitty";
layer = "overlay";
font = with config.userOptions.fontMono; name + ":size=" + toString (size + 2);
launch-prefix = "${pkgs.niri}/bin/niri msg action spawn --";
icon-theme = config.gtk.iconTheme.name;
};
border = {
width = 2;
radius = 8;
};
colors = with config.scheme; {
background = base00 + "E6";
text = base05 + "E6";
prompt = base04 + "E6";
placeholder = base04 + "E6";
input = base05 + "E6";
match = config.scheme.withHashtag.${config.colors.accent} + "FF";
selection = base04 + "E6";
selection-text = base00 + "E6";
counter = base04 + "E6";
border = config.scheme.withHashtag.${config.colors.accent} + "FF";
};
};
};
programs.swaylock = with config.scheme; {
enable = true;
package = pkgs.swaylock-effects;
settings = {
# this would sometimes load the previous day's wallpaper
# when it is run before the bing retrieval script finishes
image = "~/.local/share/wallpaper/daily-colored.jpg";
effect-blur = "7x5";
# color = "000000"; # black
font-size = 24;
indicator-idle-visible = true;
indicator-radius = 100;
show-failed-attempts = true;
bs-hl-color = base09 + "E6"; # peach
caps-lock-bs-hl-color = base09 + "E6"; # peach
caps-lock-key-hl-color = base0E + "E6"; # mauve
inside-color = base00 + "E6"; # base
inside-clear-color = base00 + "E6"; # base
inside-caps-lock-color = base00 + "E6"; # base
inside-ver-color = base00 + "E6"; # base
inside-wrong-color = base00 + "E6"; # base
key-hl-color = base0D + "E6"; # blue
layout-bg-color = base00 + "E6"; # base
layout-border-color = base00 + "E6"; # base
layout-text-color = base05 + "E6"; # text
line-color = base00 + "E6"; # base
line-clear-color = base00 + "E6"; # base
line-caps-lock-color = base00 + "E6"; # base
line-ver-color = base00 + "E6"; # base
line-wrong-color = base00 + "E6"; # base
ring-color = base00 + "E6"; # base
ring-clear-color = base09 + "E6"; # peach
ring-caps-lock-color = base00 + "E6"; # base
ring-ver-color = base0B + "E6"; # green
ring-wrong-color = base00 + "E6"; # base
separator-color = "00000000"; # transparent
text-color = base05 + "E6"; # text
text-clear-color = base09 + "E6"; # peach
text-caps-lock-color = base0E + "E6"; # mauve
text-ver-color = base05 + "E6"; # text
text-wrong-color = base08 + "E6"; # red
};
};
systemd.user.services.swaylock = {
Unit = {
After = [ "niri.service" ];
PartOf = [ "niri.service" ];
Description = "Screen locker";
Documentation = "https://github.com/swaywm/swaylock";
};
Service = {
ExecStart = "${config.programs.swaylock.package}/bin/swaylock";
Restart = "on-failure";
};
Install.WantedBy = [ "niri.service" ];
};
xsession = {
enable = true;
windowManager.command = "niri";
};
}

562
home/tiling/niri.nix Normal file
View file

@ -0,0 +1,562 @@
{
config,
...
}:
{
# https://github.com/sodiboo/niri-flake/blob/main/docs.md
programs.niri = with config.scheme.withHashtag; {
# handle package systemwide
package = null;
settings = {
environment = {
QT_QPA_PLATFORM = "wayland";
QT_QPA_PLATFORMTHEME = "qt6ct";
DISPLAY = ":0";
XCURSOR_THEME = config.userOptions.cursor.name;
XCURSOR_SIZE = toString config.userOptions.cursor.size;
};
screenshot-path = "~/Pictures/Screenshots/%a %b %e %Y @%l:%M %p.png";
hotkey-overlay.skip-at-startup = true;
prefer-no-csd = true;
gestures.hot-corners.enable = false;
spawn-at-startup = [ ]; # systemd is based sorry
overview = {
backdrop-color = base11;
workspace-shadow.enable = false;
};
input = {
focus-follows-mouse.enable = true;
focus-follows-mouse.max-scroll-amount = "0%";
mod-key = "Super";
keyboard = {
numlock = false;
repeat-delay = 600;
repeat-rate = 25;
};
mouse = {
enable = true;
accel-profile = "adaptive";
natural-scroll = false;
};
touchpad = {
enable = true;
accel-profile = "adaptive";
natural-scroll = true;
tap = false;
drag = false;
};
};
outputs = {
"HDMI-A-1" = {
mode = {
width = 3840;
height = 2160;
refresh = 144.000;
};
scale = 1.5;
position = {
x = 0;
y = 0;
};
};
"DP-1" = {
mode = {
width = 3840;
height = 2160;
refresh = 143.999;
};
scale = 1.5;
position = {
x = 0;
y = 0;
};
};
};
cursor = {
hide-when-typing = false;
size = config.userOptions.cursor.size;
theme = config.userOptions.cursor.name;
};
layout = {
gaps = 4;
background-color = "transparent";
default-column-width.proportion = 0.5;
preset-column-widths = [
{ proportion = 4.0 / 12.0; }
{ proportion = 6.0 / 12.0; }
{ proportion = 8.0 / 12.0; }
];
border = {
enable = true;
width = 2;
active.color = config.scheme.withHashtag.${config.colors.accent} + "E6";
inactive.color = base01 + "E6";
urgent.color = base12 + "E6";
};
focus-ring = {
enable = false;
width = 2;
active.color = config.scheme.withHashtag.${config.colors.accent} + "E6";
inactive.color = base01 + "E6";
urgent.color = base12 + "E6";
};
shadow = {
enable = true;
spread = 10;
offset.x = 0;
offset.y = 0;
softness = 30;
color = base11 + "BF";
};
};
window-rules = [
{
geometry-corner-radius = {
top-left = 8.0;
top-right = 8.0;
bottom-left = 8.0;
bottom-right = 8.0;
};
clip-to-geometry = true;
opacity = 0.90;
background-effect = {
xray = false;
blur = true;
noise = 0.05;
saturation = 1;
};
draw-border-with-background = false;
}
{
matches = [
{
app-id = "vesktop$";
}
{
app-id = "org.gnome.Nautilus$";
}
];
block-out-from = "screen-capture";
}
{
matches = [
{
is-active = false;
}
];
opacity = 0.90;
}
{
matches = [
{
app-id = "openmw";
title = "OpenMW";
}
{
app-id = "Minecraft";
title = "Minecraft";
}
];
open-maximized-to-edges = true;
open-focused = true;
opacity = 1.00;
}
{
matches = [
{
app-id = "mpv";
}
{
app-id = "firefox";
title = "Picture-in-Picture";
}
];
opacity = 1.0;
}
{
# Kitty Fastfetch window
matches = [
{
app-id = "kitty";
title = "^fastfetch$";
}
];
open-floating = true;
baba-is-float = true;
min-width = 960;
min-height = 480;
max-width = 960;
max-height = 480;
}
];
layer-rules = [
{
matches = [ { namespace = "^launcher$"; } ];
background-effect = {
xray = false;
blur = true;
noise = 0.05;
saturation = 1;
};
}
{
matches = [ { namespace = "^wallpaper$"; } ];
place-within-backdrop = true;
}
];
binds = {
"Mod+Shift+Slash".action.show-hotkey-overlay = { };
"Mod+D" = {
action.toggle-window-rule-opacity = { };
repeat = false;
};
"Mod+M" = {
action.spawn = [
"wpctl"
"set-mute"
"@DEFAULT_AUDIO_SOURCE@"
"toggle"
];
hotkey-overlay.title = "Toggle Microphone Mute";
repeat = false;
};
"Mod+T" = {
action.spawn = [ "kitty" ];
hotkey-overlay.title = "Open a Terminal: kitty";
};
"Mod+Shift+T" = {
action.spawn-sh = [ "kitty --title fastfetch sh -c 'fastfetch; sleep 10'" ];
hotkey-overlay.title = "Open a Terminal with Fastfetch";
};
"Mod+Space" = {
action.spawn = [ "fuzzel" ];
hotkey-overlay.title = "Run an Application: Fuzzel";
};
"XF86AudioRaiseVolume" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.05+"
];
allow-when-locked = true;
};
"XF86AudioLowerVolume" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.05-"
];
allow-when-locked = true;
};
"Shift+XF86AudioRaiseVolume" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.01+"
];
allow-when-locked = true;
};
"Shift+XF86AudioLowerVolume" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.01-"
];
allow-when-locked = true;
};
"MouseForward" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.05+"
];
allow-when-locked = true;
};
"MouseBack" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.05-"
];
allow-when-locked = true;
};
"Shift+MouseForward" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.01+"
];
allow-when-locked = true;
};
"Shift+MouseBack" = {
action.spawn = [
"wpctl"
"set-volume"
"@DEFAULT_AUDIO_SINK@"
"0.01-"
];
allow-when-locked = true;
};
"XF86AudioMute" = {
action.spawn = [
"wpctl"
"set-mute"
"@DEFAULT_AUDIO_SINK@"
"toggle"
];
allow-when-locked = true;
};
"XF86AudioMicMute" = {
action.spawn = [
"wpctl"
"set-mute"
"@DEFAULT_AUDIO_SOURCE@"
"toggle"
];
allow-when-locked = true;
};
"XF86MonBrightnessUp" = {
action.spawn = [
"noctalia-shell"
"ipc"
"call"
"brightness"
"increase"
];
allow-when-locked = true;
};
"XF86MonBrightnessDown" = {
action.spawn = [
"noctalia-shell"
"ipc"
"call"
"brightness"
"decrease"
];
allow-when-locked = true;
};
"Shift+XF86MonBrightnessUp" = {
action.spawn = [
"brightnessctl"
"--class=backlight"
"set"
"+1%"
];
allow-when-locked = true;
};
"Shift+XF86MonBrightnessDown" = {
action.spawn = [
"brightnessctl"
"--class=backlight"
"set"
"1%-"
];
allow-when-locked = true;
};
"XF86AudioPrev" = {
action.spawn = [
"playerctl"
"previous"
];
allow-when-locked = true;
};
"XF86AudioPlay" = {
action.spawn = [
"playerctl"
"play-pause"
];
allow-when-locked = true;
};
"XF86AudioNext" = {
action.spawn = [
"playerctl"
"next"
];
allow-when-locked = true;
};
"XF86Sleep".action.power-off-monitors = { };
"XF86Search".action.spawn = [ "fuzzel" ];
"Mod+Shift+L".action.spawn = [ "swaylock" ];
"XF86LaunchA" = {
action.toggle-overview = { };
repeat = false;
};
"Mod+O" = {
action.toggle-overview = { };
repeat = false;
};
"Mod+Q" = {
action.close-window = { };
repeat = false;
};
"Mod+Left".action.focus-column-left = { };
"Mod+Down".action.focus-window-down = { };
"Mod+Up".action.focus-window-up = { };
"Mod+Right".action.focus-column-right = { };
"Mod+Ctrl+Left".action.move-column-left = { };
"Mod+Ctrl+Down".action.move-window-down = { };
"Mod+Ctrl+Up".action.move-window-up = { };
"Mod+Ctrl+Right".action.move-column-right = { };
"Mod+Ctrl+H".action.move-column-left = { };
"Mod+Ctrl+J".action.move-window-down = { };
"Mod+Ctrl+K".action.move-window-up = { };
"Mod+Ctrl+L".action.move-column-right = { };
"Mod+Home".action.focus-column-first = { };
"Mod+End".action.focus-column-last = { };
"Mod+Ctrl+Home".action.move-column-to-first = { };
"Mod+Ctrl+End".action.move-column-to-last = { };
"Mod+Shift+Left".action.focus-monitor-left = { };
"Mod+Shift+Down".action.focus-monitor-down = { };
"Mod+Shift+Up".action.focus-monitor-up = { };
"Mod+Shift+Right".action.focus-monitor-right = { };
"Mod+Shift+Ctrl+Left".action.move-column-to-monitor-left = { };
"Mod+Shift+Ctrl+Down".action.move-column-to-monitor-down = { };
"Mod+Shift+Ctrl+Up".action.move-column-to-monitor-up = { };
"Mod+Shift+Ctrl+Right".action.move-column-to-monitor-right = { };
"Mod+Shift+Ctrl+H".action.move-column-to-monitor-left = { };
"Mod+Shift+Ctrl+J".action.move-column-to-monitor-down = { };
"Mod+Shift+Ctrl+K".action.move-column-to-monitor-up = { };
"Mod+Shift+Ctrl+L".action.move-column-to-monitor-right = { };
"Mod+Page_Down".action.focus-workspace-down = { };
"Mod+Page_Up".action.focus-workspace-up = { };
"Mod+U".action.focus-workspace-down = { };
"Mod+I".action.focus-workspace-up = { };
"Mod+Ctrl+Page_Down".action.move-column-to-workspace-down = { };
"Mod+Ctrl+Page_Up".action.move-column-to-workspace-up = { };
"Mod+Ctrl+U".action.move-column-to-workspace-down = { };
"Mod+Ctrl+I".action.move-column-to-workspace-up = { };
"Mod+Shift+Page_Down".action.move-workspace-down = { };
"Mod+Shift+Page_Up".action.move-workspace-up = { };
"Mod+Shift+U".action.move-workspace-down = { };
"Mod+Shift+I".action.move-workspace-up = { };
"Mod+WheelScrollDown" = {
action.focus-workspace-down = { };
cooldown-ms = 150;
};
"Mod+WheelScrollUp" = {
action.focus-workspace-up = { };
cooldown-ms = 150;
};
"Mod+Ctrl+WheelScrollDown" = {
action.move-column-to-workspace-down = { };
cooldown-ms = 150;
};
"Mod+Ctrl+WheelScrollUp" = {
action.move-column-to-workspace-up = { };
cooldown-ms = 150;
};
"Mod+WheelScrollRight".action.focus-column-right = { };
"Mod+WheelScrollLeft".action.focus-column-left = { };
"Mod+Ctrl+WheelScrollRight".action.move-column-right = { };
"Mod+Ctrl+WheelScrollLeft".action.move-column-left = { };
"Mod+Shift+WheelScrollDown".action.focus-column-right = { };
"Mod+Shift+WheelScrollUp".action.focus-column-left = { };
"Mod+Ctrl+Shift+WheelScrollDown".action.move-column-right = { };
"Mod+Ctrl+Shift+WheelScrollUp".action.move-column-left = { };
"Mod+1".action.focus-workspace = 1;
"Mod+2".action.focus-workspace = 2;
"Mod+3".action.focus-workspace = 3;
"Mod+4".action.focus-workspace = 4;
"Mod+5".action.focus-workspace = 5;
"Mod+6".action.focus-workspace = 6;
"Mod+7".action.focus-workspace = 7;
"Mod+8".action.focus-workspace = 8;
"Mod+9".action.focus-workspace = 9;
"Mod+Ctrl+1".action.move-column-to-workspace = 1;
"Mod+Ctrl+2".action.move-column-to-workspace = 2;
"Mod+Ctrl+3".action.move-column-to-workspace = 3;
"Mod+Ctrl+4".action.move-column-to-workspace = 4;
"Mod+Ctrl+5".action.move-column-to-workspace = 5;
"Mod+Ctrl+6".action.move-column-to-workspace = 6;
"Mod+Ctrl+7".action.move-column-to-workspace = 7;
"Mod+Ctrl+8".action.move-column-to-workspace = 8;
"Mod+Ctrl+9".action.move-column-to-workspace = 9;
"Mod+BracketLeft".action.consume-or-expel-window-left = { };
"Mod+BracketRight".action.consume-or-expel-window-right = { };
"Mod+Comma".action.consume-window-into-column = { };
"Mod+Period".action.expel-window-from-column = { };
"Mod+R".action.switch-preset-column-width = { };
"Mod+Shift+R".action.switch-preset-window-height = { };
"Mod+Ctrl+R".action.reset-window-height = { };
"Mod+F".action.maximize-column = { };
"Mod+Shift+F".action.maximize-window-to-edges = { };
"Mod+Ctrl+Shift+F".action.fullscreen-window = { };
"Mod+C".action.center-column = { };
"Mod+Ctrl+C".action.center-visible-columns = { };
"Mod+Minus".action.set-column-width = "-10%";
"Mod+Equal".action.set-column-width = "+10%";
"Mod+Shift+Minus".action.set-window-height = "-10%";
"Mod+Shift+Equal".action.set-window-height = "+10%";
"Mod+Ctrl+Minus".action.set-column-width = "-0.25%";
"Mod+Ctrl+Equal".action.set-column-width = "+0.25%";
"Mod+Ctrl+Shift+Minus".action.set-window-height = "-0.25%";
"Mod+Ctrl+Shift+Equal".action.set-window-height = "+0.25%";
"Mod+V".action.toggle-window-floating = { };
"Mod+Shift+V".action.switch-focus-between-floating-and-tiling = { };
"Mod+W".action.toggle-column-tabbed-display = { };
"Mod+Shift+S".action.screenshot.show-pointer = false;
"Ctrl+Shift+S".action.screenshot-screen.show-pointer = false;
"Alt+Shift+S".action.screenshot-window.show-pointer = false;
"Mod+Escape" = {
action.toggle-keyboard-shortcuts-inhibit = { };
allow-inhibiting = false;
};
"Mod+Shift+E".action.quit = { };
"Ctrl+Alt+Delete".action.quit = { };
"Mod+Shift+P" = {
action.power-off-monitors = { };
hotkey-overlay.title = "Turn off the display";
};
};
};
};
}

617
home/tiling/noctalia.nix Normal file
View file

@ -0,0 +1,617 @@
{
pkgs,
config,
...
}:
{
programs.noctalia-shell = {
enable = true;
colors = with config.scheme.withHashtag; {
mPrimary = config.scheme.withHashtag.${config.colors.accent};
mOnPrimary = base00;
mSecondary = base13;
mOnSecondary = base00;
mTertiary = base04;
mOnTertiary = base00;
mError = base12;
mOnError = base00;
mSurface = base00;
mOnSurface = base05;
mSurfaceVariant = base01;
mOnSurfaceVariant = base05;
mOutline = base02;
mShadow = base00;
mHover = base04;
mOnHover = base00;
};
settings = {
appLauncher = {
autoPasteClipboard = false;
clipboardWatchImageCommand = "wl-paste --type image --watch cliphist store";
clipboardWatchTextCommand = "wl-paste --type text --watch cliphist store";
clipboardWrapText = true;
customLaunchPrefix = "";
customLaunchPrefixEnabled = false;
enableClipPreview = true;
enableClipboardHistory = true;
enableSettingsSearch = true;
enableWindowsSearch = true;
iconMode = "tabler";
ignoreMouseInput = false;
overviewLayer = false;
pinnedApps = [ ];
position = "top_left";
screenshotAnnotationTool = "";
showCategories = true;
showIconBackground = false;
sortByMostUsed = true;
terminalCommand = "kitty -e";
useApp2Unit = false;
viewMode = "list";
};
audio = {
cavaFrameRate = 30;
mprisBlacklist = [ ];
preferredPlayer = "";
visualizerType = "linear";
volumeFeedback = false;
volumeOverdrive = false;
volumeStep = 5;
};
bar = {
autoHideDelay = 500;
autoShowDelay = 150;
backgroundOpacity = 0.90;
monitors = [ ];
showCapsule = true;
barType = "simple";
capsuleColorKey = "none";
capsuleOpacity = 0.90;
displayMode = "always_visible";
floating = false;
marginHorizontal = 5;
marginVertical = 5;
frameRadius = 12;
frameThickness = 8;
hideOnOverview = false;
outerCorners = false;
screenOverrides = [ ];
showOutline = false;
useSeparateOpacity = true;
widgets = {
center = [ ];
left = [
{
colorizeSystemIcon = "none";
enableColorization = true;
hideMode = "alwaysExpanded";
icon = "rocket";
id = "CustomButton";
ipcIdentifier = "";
leftClickExec = "niri msg action spawn -- fuzzel";
leftClickUpdateText = false;
maxTextLength = {
horizontal = 10;
vertical = 10;
};
middleClickExec = "";
middleClickUpdateText = false;
parseJson = false;
rightClickExec = "";
rightClickUpdateText = false;
showIcon = true;
textCollapse = "";
textCommand = "";
textIntervalMs = 3000;
textStream = false;
wheelDownExec = "";
wheelDownUpdateText = false;
wheelExec = "";
wheelMode = "unified";
wheelUpExec = "";
wheelUpUpdateText = false;
wheelUpdateText = false;
}
{
characterCount = 2;
colorizeIcons = false;
emptyColor = "secondary";
enableScrollWheel = true;
focusedColor = "primary";
followFocusedScreen = false;
groupedBorderOpacity = 1;
hideUnoccupied = true;
iconScale = 0.6;
id = "Workspace";
labelMode = "index";
occupiedColor = "secondary";
pillSize = 0.6;
reverseScroll = false;
showApplications = true;
showBadge = true;
showLabelsOnlyWhenOccupied = true;
unfocusedIconsOpacity = 1;
}
{
compactMode = true;
diskPath = "/";
iconColor = "none";
id = "SystemMonitor";
showCpuFreq = false;
showCpuTemp = false;
showCpuUsage = true;
showDiskAvailable = false;
showDiskUsage = true;
showDiskUsageAsPercent = false;
showGpuTemp = false;
showLoadAverage = false;
showMemoryAsPercent = true;
showMemoryUsage = true;
showNetworkStats = false;
showSwapUsage = false;
textColor = "none";
useMonospaceFont = true;
}
{
colorizeIcons = false;
hideMode = "hidden";
id = "ActiveWindow";
maxWidth = 600;
scrollingMode = "always";
showIcon = true;
textColor = "none";
useFixedWidth = false;
}
];
right = [
{
compactMode = false;
compactShowAlbumArt = true;
compactShowVisualizer = false;
hideMode = "hidden";
hideWhenIdle = false;
id = "MediaMini";
maxWidth = 380;
panelShowAlbumArt = true;
panelShowVisualizer = true;
scrollingMode = "hover";
showAlbumArt = false;
showArtistFirst = false;
showProgressRing = true;
showVisualizer = false;
textColor = "none";
useFixedWidth = false;
visualizerType = "linear";
}
{
blacklist = [ ];
chevronColor = "none";
colorizeIcons = true;
drawerEnabled = false;
hidePassive = false;
id = "Tray";
pinned = [ ];
}
{
hideWhenZero = false;
hideWhenZeroUnread = true;
iconColor = "none";
id = "NotificationHistory";
showUnreadBadge = true;
unreadBadgeColor = "primary";
}
{
deviceNativePath = "";
displayMode = "icon-hover";
hideIfIdle = false;
hideIfNotDetected = true;
id = "Battery";
showNoctaliaPerformance = false;
showPowerProfiles = true;
}
{
displayMode = "onhover";
iconColor = "none";
id = "Volume";
middleClickCommand = "pwvucontrol || pavucontrol";
textColor = "none";
}
{
displayMode = "onhover";
iconColor = "none";
id = "Brightness";
textColor = "none";
}
{
colorizeDistroLogo = false;
colorizeSystemIcon = "none";
customIconPath = "";
enableColorization = false;
icon = "noctalia";
id = "ControlCenter";
useDistroLogo = false;
}
{
clockColor = "none";
customFont = "";
formatHorizontal = "ddd MMM dd yyyy @ h:mm AP";
formatVertical = "HH mm - dd MM";
id = "Clock";
tooltipFormat = "HH:mm ddd, MMM dd";
useCustomFont = false;
}
];
};
};
brightness = {
brightnessStep = 5;
enforceMinimum = false;
};
calendar = {
cards = [
{
enabled = true;
id = "calendar-header-card";
}
{
enabled = true;
id = "calendar-month-card";
}
{
enabled = true;
id = "weather-card";
}
{
enabled = true;
id = "timer-card";
}
];
};
colorSchemes = {
darkMode = true;
generationMethod = "tonal-spot";
manualSunrise = "06:30";
manualSunset = "18:30";
monitorForColors = "";
predefinedScheme = "Noctalia (default)";
schedulingMode = "off";
useWallpaperColors = false;
};
controlCenter = {
cards = [
{
enabled = true;
id = "profile-card";
}
{
enabled = true;
id = "shortcuts-card";
}
{
enabled = true;
id = "audio-card";
}
{
enabled = true;
id = "media-sysmon-card";
}
];
diskPath = "/";
position = "close_to_bar_button";
shortcuts = {
left = [
{ id = "Network"; }
{ id = "Bluetooth"; }
{ id = "WallpaperSelector"; }
];
right = [
{ id = "Notifications"; }
{ id = "PowerProfile"; }
{ id = "KeepAwake"; }
{ id = "NightLight"; }
];
};
};
desktopWidgets = {
enabled = false;
gridSnap = false;
monitorWidgets = [ ];
};
dock = {
animationSpeed = 1;
backgroundOpacity = 1;
colorizeIcons = false;
deadOpacity = 0.6;
displayMode = "auto_hide";
enabled = false;
floatingRatio = 1;
inactiveIndicators = false;
monitors = [ ];
onlySameOutput = true;
pinnedApps = [ ];
pinnedStatic = false;
position = "bottom";
size = 1;
};
general = {
allowPanelsOnScreenWithoutBar = true;
allowPasswordWithFprintd = false;
animationDisabled = false;
animationSpeed = 1;
autoStartAuth = false;
avatarImage = "/home/sckova/.face";
boxRadiusRatio = 1;
clockFormat = "hh\\nmm";
clockStyle = "custom";
compactLockScreen = false;
dimmerOpacity = 0.5;
enableBlurBehind = true;
enableLockScreenCountdown = true;
enableShadows = false;
forceBlackScreenCorners = false;
iRadiusRatio = 1;
language = "";
lockOnSuspend = true;
lockScreenAnimations = false;
lockScreenCountdownDuration = 10000;
lockScreenMonitors = [ ];
radiusRatio = 1;
scaleRatio = 1;
screenRadiusRatio = 1;
shadowDirection = "bottom_right";
shadowOffsetX = 2;
shadowOffsetY = 3;
showChangelogOnStartup = true;
showHibernateOnLockScreen = false;
showScreenCorners = false;
showSessionButtonsOnLockScreen = true;
telemetryEnabled = false;
};
hooks = {
darkModeChange = "";
enabled = false;
performanceModeDisabled = "";
performanceModeEnabled = "";
screenLock = "";
screenUnlock = "";
session = "";
startup = "";
wallpaperChange = "";
};
location = {
analogClockInCalendar = false;
firstDayOfWeek = -1;
hideWeatherCityName = false;
hideWeatherTimezone = false;
name = "Atlanta, US";
showCalendarEvents = true;
showCalendarWeather = true;
showWeekNumberInCalendar = true;
use12hourFormat = true;
useFahrenheit = true;
weatherEnabled = true;
weatherShowEffects = true;
};
network = {
bluetoothDetailsViewMode = "grid";
bluetoothHideUnnamedDevices = false;
bluetoothRssiPollIntervalMs = 10000;
bluetoothRssiPollingEnabled = false;
wifiDetailsViewMode = "grid";
wifiEnabled = true;
};
nightLight = {
autoSchedule = true;
dayTemp = "6500";
enabled = true;
forced = false;
manualSunrise = "06:30";
manualSunset = "18:30";
nightTemp = "4000";
};
notifications = {
backgroundOpacity = 0.90;
criticalUrgencyDuration = 15;
enableBatteryToast = true;
enableKeyboardLayoutToast = true;
enableMediaToast = false;
enabled = true;
location = "top_right";
lowUrgencyDuration = 3;
monitors = [ ];
normalUrgencyDuration = 8;
overlayLayer = true;
respectExpireTimeout = false;
saveToHistory = {
critical = true;
low = true;
normal = true;
};
sounds = {
criticalSoundFile = "";
enabled = true;
excludedApps = "discord,firefox,chrome,chromium,edge";
lowSoundFile = "";
normalSoundFile = "";
separateSounds = false;
volume = 0.5;
};
};
osd = {
autoHideMs = 2000;
backgroundOpacity = 1;
enabled = true;
enabledTypes = [
0
1
2
];
location = "top_right";
monitors = [ ];
overlayLayer = true;
};
plugins.autoUpdate = false;
sessionMenu = {
countdownDuration = 5000;
enableCountdown = true;
largeButtonsLayout = "single-row";
largeButtonsStyle = true;
position = "center";
powerOptions = [
{
action = "lock";
enabled = true;
}
{
action = "suspend";
enabled = true;
}
{
action = "hibernate";
enabled = true;
}
{
action = "reboot";
enabled = true;
}
{
action = "logout";
enabled = true;
}
{
action = "shutdown";
enabled = true;
}
];
showHeader = true;
showNumberLabels = true;
};
settingsVersion = 49;
systemMonitor = {
batteryCriticalThreshold = 5;
batteryWarningThreshold = 20;
cpuCriticalThreshold = 90;
cpuPollingInterval = 1000;
cpuWarningThreshold = 80;
criticalColor = "";
diskAvailCriticalThreshold = 10;
diskAvailWarningThreshold = 20;
diskCriticalThreshold = 90;
diskPollingInterval = 3000;
diskWarningThreshold = 80;
enableDgpuMonitoring = false;
externalMonitor = "resources || missioncenter || jdsystemmonitor || corestats || system-monitoring-center || gnome-system-monitor || plasma-systemmonitor || mate-system-monitor || ukui-system-monitor || deepin-system-monitor || pantheon-system-monitor";
gpuCriticalThreshold = 90;
gpuPollingInterval = 3000;
gpuWarningThreshold = 80;
loadAvgPollingInterval = 3000;
memCriticalThreshold = 90;
memPollingInterval = 1000;
memWarningThreshold = 80;
networkPollingInterval = 1000;
swapCriticalThreshold = 90;
swapWarningThreshold = 80;
tempCriticalThreshold = 90;
tempWarningThreshold = 80;
useCustomColors = false;
warningColor = "";
};
templates = {
activeTemplates = [ ];
enableUserTheming = false;
};
ui = {
bluetoothDetailsViewMode = "grid";
bluetoothHideUnnamedDevices = false;
boxBorderEnabled = false;
fontDefault = "Noto Sans";
fontDefaultScale = 1;
fontFixed = "FiraMono Nerd Font Mono";
fontFixedScale = 1;
networkPanelView = "wifi";
panelBackgroundOpacity = 0.90;
panelsAttachedToBar = true;
settingsPanelMode = "attached";
tooltipsEnabled = true;
wifiDetailsViewMode = "grid";
};
wallpaper = {
automationEnabled = false;
directory = "/home/sckova/.local/share/wallpaper";
enableMultiMonitorDirectories = false;
enabled = false;
fillColor = "#1e1e2e";
fillMode = "crop";
hideWallpaperFilenames = true;
monitorDirectories = [ ];
overviewEnabled = false;
panelPosition = "follow_bar";
randomIntervalSec = 300;
setWallpaperOnAllMonitors = true;
showHiddenFiles = false;
solidColor = "#1a1a2e";
sortOrder = "name";
transitionDuration = 1500;
transitionEdgeSmoothness = 0.05;
transitionType = "random";
useSolidColor = false;
useWallhaven = false;
viewMode = "single";
wallhavenApiKey = "";
wallhavenCategories = "111";
wallhavenOrder = "desc";
wallhavenPurity = "100";
wallhavenQuery = "";
wallhavenRatios = "";
wallhavenResolutionHeight = "";
wallhavenResolutionMode = "atleast";
wallhavenResolutionWidth = "";
wallhavenSorting = "relevance";
wallpaperChangeMode = "random";
};
};
};
systemd.user.services.noctalia-shell = {
Unit = {
After = [ "niri.service" ];
PartOf = [ "niri.service" ];
Description = "Noctalia Shell - Wayland desktop shell";
Documentation = "https://docs.noctalia.dev";
X-Restart-Triggers = [
"${config.xdg.configFile."noctalia/settings.json".source}"
"${config.xdg.configFile."noctalia/colors.json".source}"
];
};
Service = {
ExecStart = "${pkgs.noctalia-shell}/bin/noctalia-shell";
Restart = "on-failure";
Environment = [ "QT_QPA_PLATFORMTHEME=qt6ct" ];
};
Install.WantedBy = [ "niri.service" ];
};
}

107
home/tiling/wallpaper.nix Normal file
View file

@ -0,0 +1,107 @@
{
pkgs,
config,
...
}:
{
systemd.user.services.wbg-daemon = {
Unit.Description = "Wallpaper service using wbg (daemon)";
Service.ExecStart = ''
${pkgs.wbg}/bin/wbg -s \
%h/.local/share/wallpaper/daily-colored.jpg
'';
Install.WantedBy = [ "niri.service" ];
};
systemd.user.services.bing-wallpaper = {
Unit.Description = "Download and set Bing wallpaper of the day";
Unit.StartLimitBurst = 6;
Unit.StartLimitIntervalSec = "10m";
Service.Restart = "on-failure";
Service.RestartSec = "10s";
Service.Type = "oneshot";
Service.ExecStart = pkgs.lib.getExe (
pkgs.writeShellApplication {
name = "bing-wallpaper";
runtimeInputs = with pkgs; [
wget
jq
coreutils
libnotify
];
text = ''
OUT="$HOME/.local/share/wallpaper/daily.jpg"
API=$(wget -qO- "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&mkt=en-US&n=1")
BASE=$(echo "$API" | jq -r '.images[0].urlbase')
TITLE=$(echo "$API" | jq -r '.images[0].title')
mkdir -p "$HOME/.local/share/wallpaper"
wget -qO "$OUT" "https://www.bing.com''${BASE}_UHD.jpg"
notify-send \
-a "Wallpaper of the day" \
-u low \
-i preferences-desktop-wallpaper \
"$TITLE"
'';
}
);
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user start gowall-convert.service";
Install.WantedBy = [ "niri.service" ];
};
systemd.user.timers.bing-wallpaper = {
Unit.Description = "Run bing wallpaper retrieval daily";
Timer.OnCalendar = "*-*-* 10:00:00 GMT";
Timer.Persistent = true;
Install.WantedBy = [ "timers.target" ];
};
systemd.user.services.gowall-convert = {
Unit.Description = "Convert a wallpaper to the system color scheme";
Unit.StartLimitBurst = 6;
Unit.StartLimitIntervalSec = "10m";
Service.Restart = "on-failure";
Service.RestartSec = "10s";
Service.Type = "oneshot";
Service.ExecStart = ''
${pkgs.gowall}/bin/gowall convert \
%h/.local/share/wallpaper/daily.jpg \
--output %h/.local/share/wallpaper/daily-colored.jpg \
-t nix
'';
Service.ExecStartPost = "${pkgs.systemd}/bin/systemctl --user restart wbg-daemon.service";
};
home.file.".config/gowall/config.yml".text = with config.scheme.withHashtag; ''
themes:
- name: "nix"
colors:
- "${base06}"
- "${base0F}"
- "${base17}"
- "${base0E}"
- "${base08}"
- "${base12}"
- "${base09}"
- "${base0A}"
- "${base0B}"
- "${base0C}"
- "${base15}"
- "${base16}"
- "${base0D}"
- "${base07}"
- "${base05}"
- "${base07}"
- "${base0D}"
- "${base0D}"
- "${base04}"
- "${base04}"
- "${base04}"
- "${base03}"
- "${base02}"
- "${base00}"
- "${base01}"
- "${base11}"
'';
}

View file

@ -1,38 +0,0 @@
{ config, pkgs, lib, catppuccin, ... }: {
networking.hostName = "alien";
catppuccin = {
accent = "lavender";
};
home-manager.users.sckova = {
imports = [ catppuccin.homeModules.catppuccin ];
};
boot.kernelPackages = pkgs.linuxPackages;
programs = {
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
gamescopeSession.enable = true;
localNetworkGameTransfers.openFirewall = true;
};
};
services.xserver.videoDrivers = [
"modesetting"
"nvidia"
];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
nvidiaSettings = true;
package = pkgs.linuxPackages.nvidiaPackages.stable;
};
}

View file

@ -1,17 +0,0 @@
{ config, pkgs, lib, catppuccin, ... }: {
networking.hostName = "peach";
catppuccin = {
accent = "peach";
};
home-manager.users.sckova = {
imports = [ catppuccin.homeModules.catppuccin ];
};
hardware.asahi = {
extractPeripheralFirmware = true;
peripheralFirmwareDirectory = ../firmware;
};
}

145
options.nix Normal file
View file

@ -0,0 +1,145 @@
{
lib,
config,
pkgs,
...
}:
{
options = {
colors = {
scheme = lib.mkOption {
type = lib.types.str;
default = "catppuccin-mocha";
};
accent = lib.mkOption {
type = lib.types.str;
default = "base09";
};
};
userOptions = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "Sean Kovacs";
};
username = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "sckova";
};
hostname = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = config.system.name;
};
email = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "kovacsmillio@gmail.com";
};
fontSans = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "Noto Sans";
};
size = lib.mkOption {
type = lib.types.int;
readOnly = true;
default = 11;
};
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = pkgs.noto-fonts;
};
};
fontSerif = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "Noto Serif";
};
size = lib.mkOption {
type = lib.types.int;
readOnly = true;
default = 11;
};
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = pkgs.noto-fonts;
};
};
fontMono = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "FiraMono Nerd Font Mono";
};
size = lib.mkOption {
type = lib.types.int;
readOnly = true;
default = 10;
};
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = pkgs.nerd-fonts.fira-mono;
};
};
fontEmoji = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "Noto Emoji";
};
size = lib.mkOption {
type = lib.types.int;
readOnly = true;
default = 10;
};
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = pkgs.noto-fonts-color-emoji;
};
};
cursor = {
name = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = config.colors.scheme;
};
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default =
with config.scheme;
(pkgs.bibata-cursor.override {
themeName = config.colors.scheme;
baseColor = withHashtag.${config.colors.accent};
outlineColor = withHashtag.base00;
watchBackgroundColor = withHashtag.base11;
cursorSizes = "16 20 22 24 28 32 40 48 56 64 72 80 88 96";
});
};
size = lib.mkOption {
type = lib.types.int;
readOnly = true;
default = 24;
};
path = lib.mkOption {
type = lib.types.str;
readOnly = true;
default = "${config.userOptions.cursor.package}/share/icons/${config.colors.scheme}";
};
};
# isDark = lib.mkOption {
# type = lib.types.bool;
# readOnly = true;
# default = config.catppuccin.flavor != "latte";
# };
};
};
}

View file

@ -0,0 +1,103 @@
{
pkgs ? import <nixpkgs> { },
themeName ? "bibata",
baseColor ? "#000000",
outlineColor ? "#FFFFFF",
watchBackgroundColor ? "",
cursorSizes ? "24",
}:
let
version = "2.0.7";
src = pkgs.fetchFromGitHub {
owner = "ful1e5";
repo = "Bibata_Cursor";
rev = "v${version}";
hash = "sha256-kIKidw1vditpuxO1gVuZeUPdWBzkiksO/q2R/+DUdEc=";
};
yarnOfflineCache = pkgs.fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-EpWIGoFFokmzRML2r/dCM+TImOCtii8mifLgnLKdUMY=";
};
in
pkgs.stdenv.mkDerivation {
pname = "bibata-${themeName}-cursor";
inherit version src;
nativeBuildInputs = with pkgs; [
yarn
nodejs
fixup-yarn-lock
python3Packages.clickgen
autoPatchelfHook
];
buildInputs = with pkgs; [
# Required to satisfy dynamic linking for prebuilt JS native modules (like resvg-js)
stdenv.cc.cc.lib
];
configurePhase = ''
runHook preConfigure
export HOME=$(mktemp -d)
echo "1. Setup offline yarn cache"
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
fixup-yarn-lock yarn.lock
echo "2. Install node_modules offline"
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/
rm -rf node_modules/@resvg/resvg-js-linux-*-musl
echo "3. Patch prebuilt node binaries (like resvg) so they can run in the Nix sandbox"
autoPatchelf node_modules/
# https://github.com/ful1e5/cbmp/issues/4
echo "4. Patch 'ora' library to prevent Nix sandbox hangs"
sed -i 's/this.#isEnabled = .*/this.#isEnabled = false;/g' node_modules/ora/index.js
runHook postConfigure
'';
buildPhase = ''
runHook preBuild
echo "Splitting SVGs to render across $NIX_BUILD_CORES cores..."
echo "1. Distribute SVGs evenly into chunk directories"
if [ -n "${watchBackgroundColor}" ]; then
./node_modules/.bin/cbmp -d "svg" -o "bitmaps/${themeName}" -bc "${baseColor}" -oc "${outlineColor}" -wc "${watchBackgroundColor}"
else
./node_modules/.bin/cbmp -d "svg" -o "bitmaps/${themeName}" -bc "${baseColor}" -oc "${outlineColor}"
fi
echo "Rendering complete. Building XCursor theme..."
echo "4. Build the final cursors"
ctgen configs/normal/x.build.toml -s ${cursorSizes} -p x11 -d "bitmaps/${themeName}" -n "${themeName}" -c "${themeName} cursors"
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -dm 0755 $out/share/icons
cp -r themes/${themeName} $out/share/icons/
runHook postInstall
'';
meta = with pkgs.lib; {
description = "Custom colored Bibata Cursor theme built from source";
homepage = "https://github.com/ful1e5/Bibata_Cursor";
license = licenses.gpl3;
platforms = platforms.linux;
};
}

36
packages/overlay.nix Normal file
View file

@ -0,0 +1,36 @@
final: prev: {
spotify-webapp = final.callPackage ./spotify-webapp { };
bibata-cursor = final.callPackage ./bibata-cursor { };
openmw-unstable = prev.openmw.overrideAttrs (oldAttrs: {
pname = "openmw";
src = final.openmw-git;
version = "${final.openmw-git.rev}";
});
vintagestory = prev.vintagestory.overrideAttrs (oldAttrs: {
version = "1.21.4";
src = prev.fetchurl {
url = "https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux-x64_1.21.4.tar.gz";
hash = "sha256-npffJgxgUMefX9OiveNk1r4kVqsMaVCC1jcWaibz9l8=";
};
});
riff = final.callPackage ./riff { };
# linuxPackages_asahi = prev.linuxPackages_asahi.override {
# _kernelPatches = [
# {
# name = "Mailbox and RTKIT support";
# patch = null;
# structuredExtraConfig = with prev.lib.kernel; {
# APPLE_MAILBOX = yes;
# APPLE_RTKIT = yes;
# APPLE_RTKIT_HELPER = yes;
# RUST_APPLE_RTKIT = yes;
# RUST_FW_LOADER_ABSTRACTIONS = yes;
# };
# }
# ];
# };
}

96
packages/riff/default.nix Normal file
View file

@ -0,0 +1,96 @@
{
lib,
stdenv,
alsa-lib,
appstream-glib,
blueprint-compiler,
cargo,
desktop-file-utils,
fetchFromGitHub,
gettext,
glib,
gst_all_1,
gtk4,
libadwaita,
libhandy,
libpulseaudio,
meson,
ninja,
nix-update-script,
openssl,
pkg-config,
rustPlatform,
rustc,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
pname = "riff";
version = "v25.11";
src = fetchFromGitHub {
owner = "Diegovsky";
repo = "riff";
rev = "refs/tags/${version}";
hash = "sha256-j5PZXXGInA03V3Lfu+QUgeHw8583XvJZyW67VcDe980=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-8gJILK9A97PAb/Q1z+IvW54WuwoZZSKxlJJUt7dwQWE=";
};
postPatch = ''
substituteInPlace src/meson.build --replace-fail \
"cargo_output = 'src' / rust_target / meson.project_name()" \
"cargo_output = 'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()"
'';
nativeBuildInputs = [
appstream-glib
blueprint-compiler
cargo
desktop-file-utils
gettext
glib # for glib-compile-schemas
gtk4 # for gtk-update-icon-cache
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
];
buildInputs = [
alsa-lib
glib
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
gtk4
libadwaita
libhandy
libpulseaudio
openssl
];
# https://github.com/xou816/spot/issues/313
mesonBuildType = "release";
# For https://github.com/xou816/spot/blob/21ee601f655caa4ca9cae1033a27459fe6289318/src/meson.build#L122
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Native Spotify client for the GNOME desktop";
homepage = "https://github.com/Diegovsky/riff";
changelog = "https://github.com/Diegovsky/riff/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "riff";
platforms = lib.platforms.linux;
};
}

View file

@ -0,0 +1,72 @@
{
lib,
stdenv,
makeDesktopItem,
copyDesktopItems,
chromium,
writeShellScriptBin,
}:
let
pname = "spotify-webapp";
version = "1.0.0";
chromiumWithWidevine = chromium.override {
enableWideVine = true;
};
launchScript = writeShellScriptBin "spotify-webapp" ''
exec ${chromiumWithWidevine}/bin/chromium \
--app=https://open.spotify.com \
--class=spotify-webapp \
--name=spotify-webapp \
--user-data-dir="$HOME/.config/spotify-webapp" \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland \
"$@"
'';
in
stdenv.mkDerivation {
inherit pname version;
dontUnpack = true;
dontBuild = true;
nativeBuildInputs = [ copyDesktopItems ];
desktopItems = [
(makeDesktopItem {
name = "spotify-webapp";
exec = "spotify-webapp %U";
icon = "spotify";
desktopName = "Spotify";
genericName = "Music Streaming";
comment = "Listen to music on Spotify";
categories = [
"Audio"
"Music"
"AudioVideo"
];
mimeTypes = [ "x-scheme-handler/spotify" ];
startupWMClass = "spotify-webapp";
startupNotify = true;
})
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
ln -s ${launchScript}/bin/spotify-webapp $out/bin/spotify-webapp
runHook postInstall
'';
meta = with lib; {
description = "Spotify web app running in Chromium";
homepage = "https://open.spotify.com";
license = licenses.free;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "spotify-webapp";
};
}

195
system/default.nix Executable file
View file

@ -0,0 +1,195 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
...
}:
{
boot = {
plymouth.enable = true;
plymouth.logo = "${pkgs.nixos-icons}/share/icons/hicolor/64x64/apps/nix-snowflake-white.png";
loader = {
timeout = 3;
limine = {
enable = true;
maxGenerations = 10;
extraConfig = ''
timeout: 3
'';
style = {
wallpapers = [ ];
wallpaperStyle = "stretched";
backdrop = "#1e1e2e";
interface = {
branding = "kova's nixos!";
brandingColor = 5;
};
};
};
};
kernelParams = [
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"boot.shell_on_fail"
];
consoleLogLevel = 0;
initrd.verbose = false;
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
};
programs = {
gamescope = {
enable = true;
capSysNice = false;
args = [
"--output-width 3840"
"--nested-width 3840"
"--output-height 2160"
"--nested-height 2160"
"--expose-wayland"
"--fullscreen"
];
};
gamemode.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-curses;
};
niri.enable = true;
niri.package = pkgs.niri-unstable;
dconf.enable = true;
dconf.profiles.user = {
databases = [
{
# breaks user-level indirect config of dconf
# lockAll = true;
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
clock-format = "12h";
clock-show-weekday = true;
};
"org/gnome/desktop/wm/preferences" = {
button-layout = ":";
action-double-click-titlebar = "'none'";
};
"org/gnome/desktop/media-handling" = {
automount = false;
automount-open = false;
autorun-never = true;
};
"org/gnome/settings-daemon/plugins/power" = {
sleep-inactive-ac-type = "nothing";
};
"org/gnome/mutter" = {
edge-tiling = true;
dynamic-workspaces = true;
experimental-features = [ "variable-refresh-rate" ];
};
};
}
];
};
};
services = {
displayManager = {
autoLogin.enable = true;
autoLogin.user = "sckova";
defaultSession = "niri";
sddm.enable = true;
sddm.wayland.enable = true;
};
gnome.gnome-keyring.enable = true;
libinput.enable = true;
printing.enable = true;
pipewire = {
enable = true;
systemWide = true;
wireplumber.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
udisks2.enable = true;
gvfs.enable = true;
upower.enable = true;
power-profiles-daemon.enable = true;
openssh.enable = true;
ananicy = {
enable = true;
package = pkgs.ananicy-cpp;
rulesProvider = pkgs.ananicy-cpp;
extraRules = [
{
"name" = "gamescope";
"nice" = -20;
}
];
};
};
environment.systemPackages = with pkgs; [
git
firefoxpwa
(wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
})
];
security = {
pam.services = {
niri.enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
swaylock = {
name = "swaylock";
enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
gnupg.enable = true;
gnupg.noAutostart = true;
};
};
sudo.wheelNeedsPassword = false;
polkit.enable = true;
};
networking.firewall.enable = false;
networking.networkmanager.enable = true;
documentation.man.enable = true;
hardware.graphics.enable = true;
hardware.bluetooth.enable = true;
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.05"; # Did you read the comment?
}

View file

@ -0,0 +1,90 @@
{
config,
pkgs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
ddcutil
mangohud
openrgb
];
# enable ddcutil
users.users.sckova.extraGroups = [ "i2c" ];
boot.extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
boot.kernelModules = [
"i2c-dev"
"ddcci_backlight"
];
services.udev.extraRules = ''
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
'';
hardware.i2c.enable = true;
# enable rgb support
services.hardware.openrgb.enable = true;
# boot.kernelPackages = pkgs.linuxPackages;
# let's use the CachyOS kernel instead!
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-lts;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
boot.loader.limine.maxGenerations = lib.mkForce 100;
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
localNetworkGameTransfers.openFirewall = true;
extraCompatPackages = with pkgs; [ proton-ge-bin ];
};
};
services.xserver.videoDrivers = [
"modesetting"
"nvidia"
];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
nvidiaSettings = false;
open = false;
};
# virtualization settings
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
};
};
# enable hyper-v for guests
virtualisation.hypervGuest.enable = true;
boot.blacklistedKernelModules = [ "hyperv_fb" ];
# i don't even remember what this does or why i added it
systemd.tmpfiles.rules = [
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"
"d /mnt/storage 0775 sckova users - -"
];
services.factorio = {
enable = true;
openFirewall = true;
requireUserVerification = false;
lan = true;
port = 25565;
# bind = "[::]"; # support IPv6
game-name = "kova's minecraft";
game-password = "ThisIsASuperSecurePasswordThatNobodyWillGuess";
admins = [ "sckova" ];
};
}

View file

@ -0,0 +1,67 @@
{
pkgs,
lib,
...
}:
let
asahi-artwork = pkgs.fetchFromGitHub {
owner = "AsahiLinux";
repo = "artwork";
rev = "80d14f8b6f485b310e305a84b4b806361518ddd1";
hash = "sha256-1r7gPFsn3GmKO4YsixsK7eyQWfVjsWnuOEtSCQequn8=";
};
in
{
boot = {
kernelParams = [ "appledrm.show_notch=1" ];
m1n1CustomLogo = "${asahi-artwork}/logos/png_256/AsahiLinux_logomark.png";
plymouth.logo = lib.mkForce "${asahi-artwork}/logos/png_64/AsahiLinux_logomark.png";
};
programs.dconf.profiles.gdm.databases = [
{
settings."org/gnome/login-screen".logo =
"${asahi-artwork}/logos/svg/AsahiLinux_logo_horizontal_darkbg.svg";
}
];
# environment.systemPackages = with pkgs; [
# # note for wine support (should be done by 26.05 release):
# # https://github.com/NixOS/nixpkgs/issues/412458
# muvm
# fex
# ];
services.logind.settings.Login = {
HandleSuspendKey = "ignore";
HandlePowerKey = "lock";
HandleLidSwitch = "lock";
};
virtualisation.docker = {
enable = true;
# Use the rootless mode - run Docker daemon as non-root user
rootless = {
enable = true;
setSocketVariable = true;
};
};
users.users.sckova.extraGroups = [ "docker" ];
hardware.asahi = {
enable = true;
setupAsahiSound = true;
# https://github.com/nix-community/nixos-apple-silicon/issues/299#issuecomment-2901508921
peripheralFirmwareDirectory = pkgs.requireFile {
name = "firmware";
hashMode = "recursive";
hash = "sha256-ooBrgsZ+B6Fmoy6Ze5ppP9oKQzMIk1orvx+ldxY6bQs=";
message = ''
you need to add the firmware to the store:
mkdir system/hosts/peach/firmware
sudo cp -r /mnt/boot/asahi/{all_firmware.tar.gz,kernelcache*} system/hosts/peach/firmware
nix-store --add-fixed sha256 --recursive ./system/hosts/peach/firmware
'';
};
};
}

View file

@ -0,0 +1,17 @@
{ ... }:
{
home-manager.users.sckova = {
imports = [ ];
};
services.spice-vdagentd.enable = true;
virtualisation.vmVariant = {
virtualisation = {
memorySize = 8192;
cores = 6;
};
};
security.sudo.wheelNeedsPassword = false;
}

137
system/searxng/default.nix Normal file
View file

@ -0,0 +1,137 @@
{
lib,
pkgs,
config,
...
}:
{
services.searx = {
enable = true;
redisCreateLocally = true;
settings = {
server = {
secret_key = lib.removeSuffix "\n" (
builtins.readFile (
pkgs.runCommand "gen-key" { buildInputs = [ pkgs.openssl ]; } "openssl rand -hex 32 > $out"
)
);
port = 5364;
bind_address = "127.0.0.1";
};
general = {
debug = false;
instance_name = "searxng: ${config.system.name}";
donation_url = false;
contact_url = false;
privacypolicy_url = false;
enable_metrics = false;
};
ui = {
static_use_hash = true;
default_locale = "en";
query_in_title = true;
infinite_scroll = false;
center_alignment = true;
default_theme = "simple";
theme_args.simple_style = "auto";
search_on_category_select = false;
hotkeys = "vim";
};
search = {
safe_search = 2;
autocomplete_min = 2;
autocomplete = "duckduckgo";
ban_time_on_fail = 5;
max_ban_time_on_fail = 120;
formats = [
"html"
"json"
"rss"
];
};
engines = lib.mapAttrsToList (name: value: { inherit name; } // value) {
"duckduckgo".disabled = true;
"brave".disabled = true;
"bing".disabled = false;
"bing".weight = 0.4;
"startpage".disabled = false;
"startpage".weight = 1.4;
"google".disabled = false;
"mojeek".disabled = true;
"mwmbl".disabled = false;
"mwmbl".weight = 0.4;
"qwant".disabled = true;
"crowdview".disabled = false;
"crowdview".weight = 0.5;
"curlie".disabled = true;
"ddg definitions".disabled = false;
"ddg definitions".weight = 2;
"wikibooks".disabled = false;
"wikidata".disabled = true;
"wikiquote".disabled = true;
"wikisource".disabled = true;
"wikispecies".disabled = false;
"wikispecies".weight = 0.5;
"wikiversity".disabled = false;
"wikiversity".weight = 0.5;
"wikivoyage".disabled = false;
"wikivoyage".weight = 0.5;
"currency".disabled = true;
"dictzone".disabled = true;
"lingva".disabled = true;
"bing images".disabled = false;
"brave.images".disabled = true;
"duckduckgo images".disabled = true;
"google images".disabled = false;
"qwant images".disabled = true;
"1x".disabled = true;
"artic".disabled = false;
"deviantart".disabled = false;
"flickr".disabled = true;
"imgur".disabled = false;
"library of congress".disabled = false;
"material icons".disabled = true;
"material icons".weight = 0.2;
"openverse".disabled = false;
"pinterest".disabled = true;
"svgrepo".disabled = false;
"unsplash".disabled = false;
"wallhaven".disabled = false;
"wikicommons.images".disabled = false;
"yacy images".disabled = true;
"bing videos".disabled = false;
"brave.videos".disabled = true;
"duckduckgo videos".disabled = true;
"google videos".disabled = false;
"qwant videos".disabled = false;
"dailymotion".disabled = true;
"google play movies".disabled = true;
"invidious".disabled = true;
"odysee".disabled = true;
"peertube".disabled = false;
"piped".disabled = true;
"rumble".disabled = false;
"sepiasearch".disabled = false;
"vimeo".disabled = true;
"youtube".disabled = false;
"brave.news".disabled = true;
"google news".disabled = true;
};
enabled_plugins = [
"Basic Calculator"
"Hash plugin"
"Tor check plugin"
"Open Access DOI rewrite"
"Hostnames plugin"
"Unit converter plugin"
"Tracker URL remover"
];
};
};
}

22
system/shell/fish.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
# This following block taken from the wiki:
# https://nixos.wiki/wiki/Fish#Setting_fish_as_your_shell
programs.bash = {
interactiveShellInit = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
alias edit "nvim"
'';
};
}

View file

@ -0,0 +1,36 @@
# The goal of this configuration is to make it so you can write systemd units that
# can wait until tailscale is up and connected, by putting After=tailscaled.service
# in their unit file.
# https://github.com/tailscale/tailscale/issues/11504#issuecomment-2113331262
{
pkgs,
lib,
...
}:
let
tailscaleWaitScript = pkgs.writeShellScript "tailscale-wait-for-ip" ''
echo "Waiting for tailscale0 to get an IP address..."
for i in {1..15}; do
if ${lib.getExe' pkgs.iproute2 "ip"} addr show dev tailscale0 2>/dev/null | ${lib.getExe' pkgs.gnugrep "grep"} -q 'inet '; then
echo "tailscale0 has IP address"
exit 0
fi
echo "Attempt $i"
sleep 1
done
echo "Warning: tailscale0 did not get IP address within 15 seconds"
exit 0
'';
in
{
systemd.services.tailscaled = {
serviceConfig = {
ExecStartPost = tailscaleWaitScript;
};
};
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
}

View file

@ -0,0 +1,53 @@
{
lib,
config,
pkgs,
...
}:
{
users.users.sckova.extraGroups = [ "qbittorrent" ];
services = {
qbittorrent = {
enable = false;
serverConfig = {
Preferences = {
Advanced.useSystemIconTheme = true;
General = {
CloseToTray = false;
CloseToTrayNotified = true;
ExitConfirm = false;
Locale = "en";
};
WebUI = {
Address = "*";
Enabled = true;
Port = 9697;
UseUPnP = false;
};
BitTorrent = {
SessionGlobalDLSpeedLimit = 0;
GlobalUPSpeedLimit = 0;
Port = 42578;
QueueingSystemEnabled = false;
SSL.Port = 63114;
StartPaused = false;
};
};
};
};
flaresolverr = {
enable = true;
port = 8191;
};
prowlarr = {
enable = true;
settings = {
server = {
urlbase = "localhost";
port = 9696;
bindaddress = "*";
};
};
};
};
}

View file

@ -0,0 +1,48 @@
# https://github.com/nix-community/nixos-apple-silicon/issues/145
# This should work with both x86_64 and aarch64. (hopefully)
{
config,
lib,
...
}:
{
nixpkgs.overlays = lib.mkIf (config.nixpkgs.hostPlatform.isLinux) [
(
final: prev:
let
# Determine the correct directory name based on the system architecture
archDir =
if final.stdenv.hostPlatform.isAarch64 then
"linux_arm64"
else if final.stdenv.hostPlatform.isx86_64 then
"linux_x64"
else
throw "Unsupported architecture for Widevine CDM";
in
{
wrapFirefox =
browser: opts:
let
extraPrefs = (opts.extraPrefs or "") + ''
lockPref("media.gmp-widevinecdm.version", "system-installed");
lockPref("media.gmp-widevinecdm.visible", true);
lockPref("media.gmp-widevinecdm.enabled", true);
lockPref("media.gmp-widevinecdm.autoupdate", false);
lockPref("media.eme.enabled", true);
lockPref("media.eme.encrypted-media-encryption-scheme.enabled", true);
'';
widevineCdmDir = "${final.widevine-cdm}/share/google/chrome/WidevineCdm";
widevineOutDir = "$out/gmp-widevinecdm/system-installed";
in
(prev.wrapFirefox browser (opts // { inherit extraPrefs; })).overrideAttrs (previousAttrs: {
buildCommand = previousAttrs.buildCommand + ''
mkdir -p "${widevineOutDir}"
ln -s "${widevineCdmDir}/_platform_specific/${archDir}/libwidevinecdm.so" "${widevineOutDir}/libwidevinecdm.so"
ln -s "${widevineCdmDir}/manifest.json" "${widevineOutDir}/manifest.json"
wrapProgram "$oldExe" --set MOZ_GMP_PATH "${widevineOutDir}"
'';
});
}
)
];
}