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
1 year ago
dd8ee798
b03e8cac
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+85
-80
9 changed files
expand all
collapse all
unified
split
base
nushell.nix
shell.nix
flake.lock
flake.nix
pkgs
nu_plugin_dbus.nix
roles
dev
python.nix
graphics
apps.nix
hypervisor+graphics.nix
systems
aperture.nix
+1
-1
base/nushell.nix
···
74
75
source ${init-starship}
76
77
-
plugin add ${pkgs.callPackage "${inputs.self}/pkgs/nu_plugin_dbus.nix" {}}/bin/nu_plugin_dbus
78
79
'';
80
};
···
74
75
source ${init-starship}
76
77
+
plugin add ${inputs.nu_plugin_dbus.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/nu_plugin_dbus
78
79
'';
80
};
-1
base/shell.nix
···
51
ripgrep.enable = true;
52
bat = {
53
enable = true;
54
-
# Broken
55
extraPackages = with pkgs.bat-extras; [batman batgrep batwatch];
56
};
57
};
···
51
ripgrep.enable = true;
52
bat = {
53
enable = true;
0
54
extraPackages = with pkgs.bat-extras; [batman batgrep batwatch];
55
};
56
};
+67
-24
flake.lock
···
7
]
8
},
9
"locked": {
10
-
"lastModified": 1737579274,
11
-
"narHash": "sha256-8kBIYfn8TI9jbffhDNS12SdbQHb9ITXflwcgIJBeGqw=",
12
"owner": "catppuccin",
13
"repo": "nix",
14
-
"rev": "06f0ea19334bcc8112e6d671fd53e61f9e3ad63a",
15
"type": "github"
16
},
17
"original": {
···
146
"type": "github"
147
}
148
},
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
149
"gh-grader-preview": {
150
"inputs": {
151
"nixpkgs": [
···
153
]
154
},
155
"locked": {
156
-
"lastModified": 1707583719,
157
-
"narHash": "sha256-KARiQihK1riA0qIp788iH/sem4oLUvu0UHkqLZ/k5zk=",
158
"owner": "Bwc9876",
159
"repo": "gh-grader-preview",
160
-
"rev": "10ffee561c1e8bf046c6f3d4b438a8cb31387b23",
161
"type": "github"
162
},
163
"original": {
···
243
]
244
},
245
"locked": {
246
-
"lastModified": 1738789832,
247
-
"narHash": "sha256-HdlMPfObPu5y7oDfH/w3vvlU3UTQ/bQjSULChZARm5M=",
248
"owner": "nix-community",
249
"repo": "home-manager",
250
-
"rev": "30ea6fed4e4b41693cebc2263373dd810de4de49",
251
"type": "github"
252
},
253
"original": {
···
367
},
368
"nixos-hardware": {
369
"locked": {
370
-
"lastModified": 1738638143,
371
-
"narHash": "sha256-ZYMe4c4OCtIUBn5hx15PEGr0+B1cNEpl2dsaLxwY2W0=",
372
"owner": "NixOS",
373
"repo": "nixos-hardware",
374
-
"rev": "9bdd53f5908453e4d03f395eb1615c3e9a351f70",
375
"type": "github"
376
},
377
"original": {
···
382
},
383
"nixpkgs": {
384
"locked": {
385
-
"lastModified": 1738680400,
386
-
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
387
"owner": "NixOS",
388
"repo": "nixpkgs",
389
-
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
390
"type": "github"
391
},
392
"original": {
···
429
"treefmt-nix": "treefmt-nix"
430
},
431
"locked": {
432
-
"lastModified": 1738807015,
433
-
"narHash": "sha256-cITxk7u1n+if4Lyd5dGmPVZF8usHWuUspGOv65L3FXs=",
434
"owner": "nix-community",
435
"repo": "nixvim",
436
-
"rev": "2ecc5359f804bc98901dee0c95999ac3fa308388",
437
"type": "github"
438
},
439
"original": {
···
442
"type": "github"
443
}
444
},
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
445
"nuschtosSearch": {
446
"inputs": {
447
"flake-utils": "flake-utils",
···
503
"nixos-hardware": "nixos-hardware",
504
"nixpkgs": "nixpkgs",
505
"nixvim": "nixvim",
0
506
"rust-overlay": "rust-overlay_2",
507
"wayland-mpris-idle-inhibit": "wayland-mpris-idle-inhibit"
508
}
···
535
]
536
},
537
"locked": {
538
-
"lastModified": 1738808867,
539
-
"narHash": "sha256-m5rbY/ck0NAlfSBxo++vl7EZn8fkZ02H3kGGc7q883c=",
540
"owner": "oxalica",
541
"repo": "rust-overlay",
542
-
"rev": "ae46f37fb727030ddc2ef65a675b751484c90032",
543
"type": "github"
544
},
545
"original": {
···
591
]
592
},
593
"locked": {
594
-
"lastModified": 1715354337,
595
-
"narHash": "sha256-5SnbsGN0TXOqILGdDqvWaY0s66cmt6Y+py/prZWoyrw=",
596
"owner": "Bwc9876",
597
"repo": "wayland-mpris-idle-inhibit",
598
-
"rev": "c211735d40e6a485b01b30e232de4de7d71a8318",
599
"type": "github"
600
},
601
"original": {
···
7
]
8
},
9
"locked": {
10
+
"lastModified": 1738834647,
11
+
"narHash": "sha256-NdetLk2Ie+syABcq/1MWSpqInhkODItR0xRkwDvWlpk=",
12
"owner": "catppuccin",
13
"repo": "nix",
14
+
"rev": "7f2e0e709ad3e47a2ae0e735168438144c134947",
15
"type": "github"
16
},
17
"original": {
···
146
"type": "github"
147
}
148
},
149
+
"flakelight": {
150
+
"inputs": {
151
+
"nixpkgs": [
152
+
"nu_plugin_dbus",
153
+
"nixpkgs"
154
+
]
155
+
},
156
+
"locked": {
157
+
"lastModified": 1738586370,
158
+
"narHash": "sha256-oNDm2sfLm9jdfOskRq2ABn85gwXusbsHEOC181peno4=",
159
+
"owner": "nix-community",
160
+
"repo": "flakelight",
161
+
"rev": "d05bcabfc1efb84a7d8689de6e50b84d7f23b427",
162
+
"type": "github"
163
+
},
164
+
"original": {
165
+
"owner": "nix-community",
166
+
"repo": "flakelight",
167
+
"type": "github"
168
+
}
169
+
},
170
"gh-grader-preview": {
171
"inputs": {
172
"nixpkgs": [
···
174
]
175
},
176
"locked": {
177
+
"lastModified": 1738957558,
178
+
"narHash": "sha256-LrsAvqQZPyFCQkcjpiJsUAmobxM5Xartbo4OMO+T63k=",
179
"owner": "Bwc9876",
180
"repo": "gh-grader-preview",
181
+
"rev": "ce471fcc8a6f4e786db709abacbd3b39cecd0e74",
182
"type": "github"
183
},
184
"original": {
···
264
]
265
},
266
"locked": {
267
+
"lastModified": 1739002622,
268
+
"narHash": "sha256-PtJV5OYQF7XO6XkDYypsYJS3+OsgYaYSmkO3I/A7lZo=",
269
"owner": "nix-community",
270
"repo": "home-manager",
271
+
"rev": "947eef9e99c42346cf0aac2bebe1cd94924c173b",
272
"type": "github"
273
},
274
"original": {
···
388
},
389
"nixos-hardware": {
390
"locked": {
391
+
"lastModified": 1738816619,
392
+
"narHash": "sha256-5yRlg48XmpcX5b5HesdGMOte+YuCy9rzQkJz+imcu6I=",
393
"owner": "NixOS",
394
"repo": "nixos-hardware",
395
+
"rev": "2eccff41bab80839b1d25b303b53d339fbb07087",
396
"type": "github"
397
},
398
"original": {
···
403
},
404
"nixpkgs": {
405
"locked": {
406
+
"lastModified": 1738961098,
407
+
"narHash": "sha256-yWNBf6VDW38tl179FEuJ0qukthVfB02kv+mRsfUsWC0=",
408
"owner": "NixOS",
409
"repo": "nixpkgs",
410
+
"rev": "a3eaf5e8eca7cab680b964138fb79073704aca75",
411
"type": "github"
412
},
413
"original": {
···
450
"treefmt-nix": "treefmt-nix"
451
},
452
"locked": {
453
+
"lastModified": 1738966895,
454
+
"narHash": "sha256-OXOh35rTEnFSO4vj/SDMIlDvFPGW0ba1XhZkfx+AlL0=",
455
"owner": "nix-community",
456
"repo": "nixvim",
457
+
"rev": "e7f20a602f6e08a70045f36c531bc44ba1baed07",
458
"type": "github"
459
},
460
"original": {
···
463
"type": "github"
464
}
465
},
466
+
"nu_plugin_dbus": {
467
+
"inputs": {
468
+
"flakelight": "flakelight",
469
+
"nixpkgs": [
470
+
"nixpkgs"
471
+
]
472
+
},
473
+
"locked": {
474
+
"lastModified": 1739030097,
475
+
"narHash": "sha256-8mp8nKbbhtXG2rDbT868XV63UXH4fOXFtOSa0TFGSDI=",
476
+
"owner": "Bwc9876",
477
+
"repo": "nu_plugin_dbus",
478
+
"rev": "363d0d4ac4b67000565a8c18b602a42b63f7de20",
479
+
"type": "github"
480
+
},
481
+
"original": {
482
+
"owner": "Bwc9876",
483
+
"repo": "nu_plugin_dbus",
484
+
"type": "github"
485
+
}
486
+
},
487
"nuschtosSearch": {
488
"inputs": {
489
"flake-utils": "flake-utils",
···
545
"nixos-hardware": "nixos-hardware",
546
"nixpkgs": "nixpkgs",
547
"nixvim": "nixvim",
548
+
"nu_plugin_dbus": "nu_plugin_dbus",
549
"rust-overlay": "rust-overlay_2",
550
"wayland-mpris-idle-inhibit": "wayland-mpris-idle-inhibit"
551
}
···
578
]
579
},
580
"locked": {
581
+
"lastModified": 1738981474,
582
+
"narHash": "sha256-YIELTXxfATG0g1wXjyaOWA4qrlubds3MG4FvMPCxSGg=",
583
"owner": "oxalica",
584
"repo": "rust-overlay",
585
+
"rev": "5c571e5ff246d8fc5f76ba6e38dc8edb6e4002fe",
586
"type": "github"
587
},
588
"original": {
···
634
]
635
},
636
"locked": {
637
+
"lastModified": 1738957449,
638
+
"narHash": "sha256-12ix4EuQ8f6DxBbJ8bCVUqYTBnFi474OVHaVBXgiLMI=",
639
"owner": "Bwc9876",
640
"repo": "wayland-mpris-idle-inhibit",
641
+
"rev": "0085e928fcd3186fd3c4066e8c90288bd70fde9e",
642
"type": "github"
643
},
644
"original": {
+3
flake.nix
···
22
nixvim.inputs.nixpkgs.follows = "nixpkgs";
23
nixvim.inputs.home-manager.follows = "hm";
24
imperm.url = "github:nix-community/impermanence";
0
0
25
};
26
27
outputs = inputs @ {
···
37
catppuccin,
38
nixvim,
39
imperm,
0
40
}: let
41
lib = (import ./lib.nix) nixpkgs.lib;
42
pkgsFor = system:
···
22
nixvim.inputs.nixpkgs.follows = "nixpkgs";
23
nixvim.inputs.home-manager.follows = "hm";
24
imperm.url = "github:nix-community/impermanence";
25
+
nu_plugin_dbus.url = "github:Bwc9876/nu_plugin_dbus";
26
+
nu_plugin_dbus.inputs.nixpkgs.follows = "nixpkgs";
27
};
28
29
outputs = inputs @ {
···
39
catppuccin,
40
nixvim,
41
imperm,
42
+
nu_plugin_dbus,
43
}: let
44
lib = (import ./lib.nix) nixpkgs.lib;
45
pkgsFor = system:
-39
pkgs/nu_plugin_dbus.nix
···
1
-
{
2
-
rustPlatform,
3
-
dbus,
4
-
nushell,
5
-
pkg-config,
6
-
fetchFromGitHub,
7
-
lib,
8
-
}:
9
-
rustPlatform.buildRustPackage rec {
10
-
pname = "nu_plugin_dbus";
11
-
version =
12
-
if nushell.version == nu_version
13
-
then "0.13.0"
14
-
else abort "Nushell Version mismatch\nPlugin: ${nu_version}\tnixpkgs: ${nushell.version}";
15
-
nu_version = "0.101.0";
16
-
17
-
src = fetchFromGitHub {
18
-
owner = "LordMZTE";
19
-
repo = "nu_plugin_dbus";
20
-
rev = "baa52026c3e8e4c6296d5545fd26237287436dad";
21
-
sha256 = "sha256-Ga+1zFwS/v+3iKVEz7TFmJjyBW/gq6leHeyH2vjawto=";
22
-
};
23
-
24
-
cargoHash = "sha256-5GE8fylq7AB4VWJMvBNLw4a9ksNmn1iHk7wx9wOG6yE=";
25
-
26
-
nativeBuildInputs = [
27
-
pkg-config
28
-
];
29
-
30
-
buildInputs = [
31
-
dbus
32
-
];
33
-
34
-
meta = with lib; {
35
-
description = "A nushell plugin for interacting with dbus";
36
-
license = licenses.mit;
37
-
homepage = "https://github.com/devyn/nu_plugin_dbus";
38
-
};
39
-
}
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
+1
roles/dev/python.nix
···
3
python3
4
poetry
5
pipenv
0
6
black
7
];
8
}
···
3
python3
4
poetry
5
pipenv
6
+
uv
7
black
8
];
9
}
+1
-1
roles/graphics/apps.nix
···
164
## Media
165
libsForQt5.kdenlive
166
obs-studio
167
-
qmplay2
168
gimp
169
inkscape
170
lorien
···
164
## Media
165
libsForQt5.kdenlive
166
obs-studio
167
+
# qmplay2
168
gimp
169
inkscape
170
lorien
+12
-12
roles/hypervisor+graphics.nix
···
1
{pkgs, ...}: {
2
virtualisation.libvirtd = {
3
enable = true;
4
-
qemu.swtpm.enable = true; # Win 11 needs TPM
5
-
qemu.ovmf.packages = [
6
-
(pkgs.OVMF.override {
7
-
# I have to build UEFI firmware from source, fun times
8
-
secureBoot = true; # Win 11 needs secure boot
9
-
tpmSupport = true; # Win 11 needs TPM
10
-
})
11
-
.fd
12
-
];
13
};
14
15
# GUI For Managing Machines
16
programs.virt-manager.enable = true;
17
18
-
environment.systemPackages = with pkgs; [
19
-
libtpms # For win 11
20
-
];
21
}
···
1
{pkgs, ...}: {
2
virtualisation.libvirtd = {
3
enable = true;
4
+
# qemu.swtpm.enable = true; # Win 11 needs TPM
5
+
# qemu.ovmf.packages = [
6
+
# (pkgs.OVMF.override {
7
+
# # I have to build UEFI firmware from source, fun times
8
+
# secureBoot = true; # Win 11 needs secure boot
9
+
# tpmSupport = true; # Win 11 needs TPM
10
+
# })
11
+
# .fd
12
+
# ];
13
};
14
15
# GUI For Managing Machines
16
programs.virt-manager.enable = true;
17
18
+
# environment.systemPackages = with pkgs; [
19
+
# libtpms # For win 11
20
+
# ];
21
}
-2
systems/aperture.nix
···
23
24
services.fprintd.enable = true;
25
26
-
boot.extraModprobeConfig = lib.mkForce "";
27
-
28
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
29
boot.initrd.kernelModules = [];
30
boot.kernelModules = ["kvm-intel"];
···
23
24
services.fprintd.enable = true;
25
0
0
26
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
27
boot.initrd.kernelModules = [];
28
boot.kernelModules = ["kvm-intel"];