tangled
alpha
login
or
join now
bwc9876.dev
/
nixos-config
1
fork
atom
Flake for my NixOS devices
1
fork
atom
overview
issues
pulls
pipelines
Update
bwc9876.dev
8 months ago
fb6dd154
8313ce09
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+120
-50
5 changed files
expand all
collapse all
unified
split
flake.lock
nixosModules
base
nix.nix
graphics
news.nix
shell.nix
waybar.nix
+31
-31
flake.lock
···
202
202
]
203
203
},
204
204
"locked": {
205
205
-
"lastModified": 1750078272,
206
206
-
"narHash": "sha256-Mbu2+ipXe1tAW3UjWXzlDE3wzyVDMOcW1z/PgGmq5T4=",
205
205
+
"lastModified": 1750683087,
206
206
+
"narHash": "sha256-CkmobghX9K9soC4DoorFo/vlWXxpf8xuZyoCsOnWzqM=",
207
207
"owner": "nix-community",
208
208
"repo": "flakelight",
209
209
-
"rev": "38be6514d41071863d2a9a2f38f6f3b3433c69fb",
209
209
+
"rev": "aa93e0e1ecdccc70c7a185f60c562effbfe3c8d9",
210
210
"type": "github"
211
211
},
212
212
"original": {
···
223
223
]
224
224
},
225
225
"locked": {
226
226
-
"lastModified": 1748263617,
227
227
-
"narHash": "sha256-O1xypYFWzYlfiyO3fUZuzRhYac5DGptP+ZhocY9L5tQ=",
226
226
+
"lastModified": 1750683087,
227
227
+
"narHash": "sha256-CkmobghX9K9soC4DoorFo/vlWXxpf8xuZyoCsOnWzqM=",
228
228
"owner": "nix-community",
229
229
"repo": "flakelight",
230
230
-
"rev": "65c783ba2b85910df5a053cb1451e9eb13794c12",
230
230
+
"rev": "aa93e0e1ecdccc70c7a185f60c562effbfe3c8d9",
231
231
"type": "github"
232
232
},
233
233
"original": {
···
286
286
]
287
287
},
288
288
"locked": {
289
289
-
"lastModified": 1750127463,
290
290
-
"narHash": "sha256-K2xFtlD3PcKAZriOE3LaBLYmVfGQu+rIF4Jr1RFYR0Q=",
289
289
+
"lastModified": 1750798083,
290
290
+
"narHash": "sha256-DTCCcp6WCFaYXWKFRA6fiI2zlvOLCf5Vwx8+/0R8Wc4=",
291
291
"owner": "nix-community",
292
292
"repo": "home-manager",
293
293
-
"rev": "28eef8722d1af18ca13e687dbf485e1c653a0402",
293
293
+
"rev": "ff31a4677c1a8ae506aa7e003a3dba08cb203f82",
294
294
"type": "github"
295
295
},
296
296
"original": {
···
374
374
]
375
375
},
376
376
"locked": {
377
377
-
"lastModified": 1749960154,
378
378
-
"narHash": "sha256-EWlr9MZDd+GoGtZB4QsDzaLyaDQPGnRY03MFp6u2wSg=",
377
377
+
"lastModified": 1750565152,
378
378
+
"narHash": "sha256-A6ZIoIgaPPkzIVxKuaxwEJicPOeTwC/MD9iuC3FVhDM=",
379
379
"owner": "nix-community",
380
380
"repo": "nix-index-database",
381
381
-
"rev": "424a40050cdc5f494ec45e46462d288f08c64475",
381
381
+
"rev": "78cd697acc2e492b4e92822a4913ffad279c20e6",
382
382
"type": "github"
383
383
},
384
384
"original": {
···
389
389
},
390
390
"nixos-hardware": {
391
391
"locked": {
392
392
-
"lastModified": 1750083401,
393
393
-
"narHash": "sha256-ynqbgIYrg7P1fAKYqe8I/PMiLABBcNDYG9YaAP/d/C4=",
392
392
+
"lastModified": 1750837715,
393
393
+
"narHash": "sha256-2m1ceZjbmgrJCZ2PuQZaK4in3gcg3o6rZ7WK6dr5vAA=",
394
394
"owner": "NixOS",
395
395
"repo": "nixos-hardware",
396
396
-
"rev": "61837d2a33ccc1582c5fabb7bf9130d39fee59ad",
396
396
+
"rev": "98236410ea0fe204d0447149537a924fb71a6d4f",
397
397
"type": "github"
398
398
},
399
399
"original": {
···
404
404
},
405
405
"nixpkgs": {
406
406
"locked": {
407
407
-
"lastModified": 1750134718,
408
408
-
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
407
407
+
"lastModified": 1750741721,
408
408
+
"narHash": "sha256-Z0djmTa1YmnGMfE9jEe05oO4zggjDmxOGKwt844bUhE=",
409
409
"owner": "NixOS",
410
410
"repo": "nixpkgs",
411
411
-
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
411
411
+
"rev": "4b1164c3215f018c4442463a27689d973cffd750",
412
412
"type": "github"
413
413
},
414
414
"original": {
···
428
428
"systems": "systems_2"
429
429
},
430
430
"locked": {
431
431
-
"lastModified": 1750204267,
432
432
-
"narHash": "sha256-d1Sf8RdT9DmaoF03GAFFSHX8jRu2MciFdAi8Ki26nX8=",
431
431
+
"lastModified": 1750788551,
432
432
+
"narHash": "sha256-7tQIndetzeVtTuYQ7vYTaABUS1muiigdXK3XyXuPzvg=",
433
433
"owner": "nix-community",
434
434
"repo": "nixvim",
435
435
-
"rev": "aef7b53979b89cea9f5eaebf96c16d3bdae150e2",
435
435
+
"rev": "6a15c2ffc50ca7998df2fd6b86c3c9f298e9137a",
436
436
"type": "github"
437
437
},
438
438
"original": {
···
449
449
]
450
450
},
451
451
"locked": {
452
452
-
"lastModified": 1748864461,
453
453
-
"narHash": "sha256-EPKJKBLauOdhgrd577H5wRBQ502MH3R1Nij9+T/jwbE=",
452
452
+
"lastModified": 1750852250,
453
453
+
"narHash": "sha256-88Z7wY1luqui3j624biE4sqsxvsI02YSBqnME5gm3UI=",
454
454
"owner": "Bwc9876",
455
455
"repo": "nu_plugin_dbus",
456
456
-
"rev": "7a942a0e8610afcb78c6b63f9a65662b5e505cd5",
456
456
+
"rev": "968411194a693334b0ed0d19339cc5b269f2cad2",
457
457
"type": "github"
458
458
},
459
459
"original": {
···
607
607
]
608
608
},
609
609
"locked": {
610
610
-
"lastModified": 1750214276,
611
611
-
"narHash": "sha256-1kniuhH70q4TAC/xIvjFYH46aHiLrbIlcr6fdrRwO1A=",
610
610
+
"lastModified": 1750819193,
611
611
+
"narHash": "sha256-XvkupGPZqD54HuKhN/2WhbKjAHeTl1UEnWspzUzRFfA=",
612
612
"owner": "oxalica",
613
613
"repo": "rust-overlay",
614
614
-
"rev": "f9b2b2b1327ff6beab4662b8ea41689e0a57b8d4",
614
614
+
"rev": "1ba3b9c59b68a4b00156827ad46393127b51b808",
615
615
"type": "github"
616
616
},
617
617
"original": {
···
641
641
},
642
642
"locked": {
643
643
"dir": "nixos-config",
644
644
-
"lastModified": 1749858930,
645
645
-
"narHash": "sha256-S0mgILFp98+Z6pzRdiD44De3pwDEhjLS9hUzDk4SAOw=",
644
644
+
"lastModified": 1750565116,
645
645
+
"narHash": "sha256-ym0mwQJK/Orgp7MIUrQdm4b+4/9OTKCGwDDutrgkJ5w=",
646
646
"ref": "refs/heads/main",
647
647
-
"rev": "bc977d5a57ed078bc04c21dfe36d53cbb69f9fc2",
648
648
-
"revCount": 160,
647
647
+
"rev": "2791917b3837fbeedb67a0a2ce7d9118291aea43",
648
648
+
"revCount": 172,
649
649
"type": "git",
650
650
"url": "https://codeberg.org/spoonbaker/mono"
651
651
},
+4
-4
nixosModules/base/nix.nix
···
33
33
};
34
34
35
35
# Switch ng is not as weird
36
36
-
system.switch = {
37
37
-
enable = false;
38
38
-
enableNg = true;
39
39
-
};
36
36
+
# system.switch = {
37
37
+
# enable = false;
38
38
+
# enableNg = true;
39
39
+
# };
40
40
41
41
# Kill nix daemon builds over user sessions
42
42
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = lib.mkDefault 250;
+2
-1
nixosModules/graphics/news.nix
···
46
46
in {
47
47
environment.systemPackages = with pkgs; [
48
48
w3m
49
49
-
rdrview
49
49
+
# TODO: Broken
50
50
+
# rdrview
50
51
];
51
52
52
53
home-manager.users.bean = {
+4
-2
nixosModules/graphics/shell.nix
···
92
92
desc,
93
93
service,
94
94
}: {
95
95
-
Install = {WantedBy = [target];};
95
95
+
Install = {
96
96
+
WantedBy = [target];
97
97
+
};
96
98
97
99
Unit = {
98
100
ConditionEnvironment = "WAYLAND_DISPLAY";
···
116
118
};
117
119
118
120
battery-notif = mkShellService {
119
119
-
desc = "Batter Notification Service";
121
121
+
desc = "Battery Notification Service";
120
122
121
123
service = {
122
124
ExecStart = "${pkgs.nushell}/bin/nu ${../../res/battery_notif.nu}";
+79
-12
nixosModules/graphics/waybar.nix
···
6
6
in {
7
7
home-manager.users.bean = {
8
8
wayland.windowManager.hyprland.settings.bind = [
9
9
-
"SUPER,W,exec,pidof waybar || waybar"
10
10
-
"SUPER SHIFT,W,exec,pkill waybar"
9
9
+
"SUPER,W,exec,systemctl restart --user waybar"
10
10
+
"SUPER SHIFT,W,exec,systemctl stop --user waybar"
11
11
];
12
12
programs.waybar = {
13
13
enable = true;
···
230
230
format = "{icon} {capacity}";
231
231
format-charging = "{icon} {capacity}";
232
232
format-icons = {
233
233
-
charging = ["" "" "" "" "" "" "" "" "" ""];
234
234
-
default = ["" "" "" "" "" "" "" "" "" ""];
233
233
+
charging = [
234
234
+
""
235
235
+
""
236
236
+
""
237
237
+
""
238
238
+
""
239
239
+
""
240
240
+
""
241
241
+
""
242
242
+
""
243
243
+
""
244
244
+
];
245
245
+
default = [
246
246
+
""
247
247
+
""
248
248
+
""
249
249
+
""
250
250
+
""
251
251
+
""
252
252
+
""
253
253
+
""
254
254
+
""
255
255
+
""
256
256
+
];
235
257
};
236
258
states = {
237
259
critical = 15;
···
331
353
};
332
354
layer = "top";
333
355
modules-center = [];
334
334
-
modules-left = ["user" "clock#1" "clock#2" "custom/news" "custom/weather" "mpris"];
335
335
-
modules-right = ["network" "battery" "bluetooth" "pulseaudio" "custom/kde-connect" "idle_inhibitor" "custom/notification" "privacy" "tray"];
356
356
+
modules-left = [
357
357
+
"user"
358
358
+
"clock#1"
359
359
+
"clock#2"
360
360
+
"custom/news"
361
361
+
"custom/weather"
362
362
+
"mpris"
363
363
+
];
364
364
+
modules-right = [
365
365
+
"network"
366
366
+
"battery"
367
367
+
"bluetooth"
368
368
+
"pulseaudio"
369
369
+
"custom/kde-connect"
370
370
+
"idle_inhibitor"
371
371
+
"custom/notification"
372
372
+
"privacy"
373
373
+
"tray"
374
374
+
];
336
375
mpris = {
337
376
album-len = 20;
338
377
artist-len = 25;
339
378
interval = 1;
340
340
-
dynamic-importance-order = ["title" "position" "length" "artist" "album"];
379
379
+
dynamic-importance-order = [
380
380
+
"title"
381
381
+
"position"
382
382
+
"length"
383
383
+
"artist"
384
384
+
"album"
385
385
+
];
341
386
dynamic-len = 50;
342
342
-
dynamic-order = ["title" "artist" "album" "position" "length"];
387
387
+
dynamic-order = [
388
388
+
"title"
389
389
+
"artist"
390
390
+
"album"
391
391
+
"position"
392
392
+
"length"
393
393
+
];
343
394
format = "{player_icon} {dynamic}";
344
395
format-paused = "{status_icon} {dynamic}";
345
396
player-icons = {
···
362
413
format = "{ifname}";
363
414
format-disconnected = "";
364
415
format-ethernet = " {ifname}";
365
365
-
format-icons = ["" "" "" ""];
416
416
+
format-icons = [
417
417
+
""
418
418
+
""
419
419
+
""
420
420
+
""
421
421
+
];
366
422
format-linked = " {ifname}";
367
423
format-wifi = "{icon} {essid}";
368
424
tooltip-disconnected = "Disconnected";
···
393
449
format-bluetooth = "{icon} {volume}";
394
450
format-icons = {
395
451
car = "";
396
396
-
default = ["" ""];
452
452
+
default = [
453
453
+
""
454
454
+
""
455
455
+
];
397
456
hands-free = "";
398
457
headphone = "";
399
458
headset = "";
···
437
496
};
438
497
modules-center = ["wlr/taskbar"];
439
498
modules-left = ["hyprland/workspaces"];
440
440
-
modules-right = ["temperature" "cpu" "memory"];
499
499
+
modules-right = [
500
500
+
"temperature"
501
501
+
"cpu"
502
502
+
"memory"
503
503
+
];
441
504
position = "bottom";
442
505
temperature = {
443
506
critical-threshold = 80;
444
507
format = "{icon} {temperatureC} °C";
445
508
format-critical = "{icon}! {temperatureC} °C";
446
446
-
format-icons = ["" "" ""];
509
509
+
format-icons = [
510
510
+
""
511
511
+
""
512
512
+
""
513
513
+
];
447
514
thermal-zone = 1;
448
515
};
449
516
"wlr/taskbar" = {