tangled
alpha
login
or
join now
pluie.me
/
flake
2
fork
atom
All my system configs and packages in one repo
2
fork
atom
overview
issues
pulls
pipelines
h
pluie.me
10 months ago
de3ffdeb
b26a8009
verified
This commit was signed with the committer's
known signature
.
pluie.me
SSH Key Fingerprint:
SHA256:YtI1D7vlcZ4obaiJ4tQihtswcMhHKdfYZuc4whOX2y8=
+58
-79
6 changed files
expand all
collapse all
unified
split
flake.lock
roles
mirrors
default.nix
users
leah
appearance.nix
programs
firefox
default.nix
ghostty
default.nix
jj
default.nix
+42
-42
flake.lock
···
8
},
9
"locked": {
10
"dir": "blender",
11
-
"lastModified": 1734963688,
12
-
"narHash": "sha256-FTbHXdo1O5avRbOkSzGWI52V0sRX+B9Ka2trEiuaewk=",
13
"owner": "edolstra",
14
"repo": "nix-warez",
15
-
"rev": "91297beb20864e611af6017c5eeef1b4564d7157",
16
"type": "github"
17
},
18
"original": {
···
25
"nixpkgs": "nixpkgs"
26
},
27
"locked": {
28
-
"lastModified": 1742254251,
29
-
"narHash": "sha256-3wGCx5UR86pgurSYB//LsBMKAsw6qpiOpnzgShPQKkM=",
30
"owner": "catppuccin",
31
"repo": "nix",
32
-
"rev": "4cb9c621072312fb45c6e86b57e5fabd97f1b95d",
33
"type": "github"
34
},
35
"original": {
···
95
"rust-analyzer-src": "rust-analyzer-src"
96
},
97
"locked": {
98
-
"lastModified": 1740810935,
99
-
"narHash": "sha256-6RzWfxENGlO73jQb3uQNgOvubUFwvveeIg+PZxhAu6s=",
100
"owner": "nix-community",
101
"repo": "fenix",
102
-
"rev": "f44d7c3596ff028ad9f7fcc31d1941ed585f11b3",
103
"type": "github"
104
},
105
"original": {
···
173
]
174
},
175
"locked": {
176
-
"lastModified": 1741352980,
177
-
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
178
"owner": "hercules-ci",
179
"repo": "flake-parts",
180
-
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
181
"type": "github"
182
},
183
"original": {
···
236
"zon2nix": "zon2nix"
237
},
238
"locked": {
239
-
"lastModified": 1742299436,
240
-
"narHash": "sha256-w8/WFH1HKMWzTLoaz16iKxZIWx4UkyDI7KDQ/MjLF3Q=",
241
"owner": "pluiedev",
242
"repo": "ghostty",
243
-
"rev": "6701875a32c7dac4022b4013c93abf3b48203acf",
244
"type": "github"
245
},
246
"original": {
···
279
]
280
},
281
"locked": {
282
-
"lastModified": 1742246081,
283
-
"narHash": "sha256-1e4oFbtdOOb6NqauHevWWjEUXZnfZ6RUAJJjn9i4YBc=",
284
"owner": "nix-community",
285
"repo": "home-manager",
286
-
"rev": "c657142e24a43ea1035889f0b0a7c24598e0e18a",
287
"type": "github"
288
},
289
"original": {
···
346
]
347
},
348
"locked": {
349
-
"lastModified": 1742165923,
350
-
"narHash": "sha256-WKzuVsHXjuxYjS9KxKdpoPWpT37LofyS5llSssEw058=",
351
"owner": "LnL7",
352
"repo": "nix-darwin",
353
-
"rev": "95eac71bf52b271523d0ca81dbbeb3182990fc24",
354
"type": "github"
355
},
356
"original": {
···
366
]
367
},
368
"locked": {
369
-
"lastModified": 1742174123,
370
-
"narHash": "sha256-pDNzMoR6m1ZSJToZQ6XDTLVSdzIzmFl1b8Pc3f7iV6Y=",
371
"owner": "nix-community",
372
"repo": "nix-index-database",
373
-
"rev": "2cfb4e1ca32f59dd2811d7a6dd5d4d1225f0955c",
374
"type": "github"
375
},
376
"original": {
···
381
},
382
"nixos-hardware": {
383
"locked": {
384
-
"lastModified": 1742217307,
385
-
"narHash": "sha256-3fwpN7KN226ghLlpO9TR0/WpgQOmOj1e8bieUxpIYSk=",
386
"owner": "NixOS",
387
"repo": "nixos-hardware",
388
-
"rev": "4f4d97d7b7be387286cc9c988760a7ebaa5be1f1",
389
"type": "github"
390
},
391
"original": {
···
397
},
398
"nixpkgs": {
399
"locked": {
400
-
"lastModified": 1741851582,
401
-
"narHash": "sha256-cPfs8qMccim2RBgtKGF+x9IBCduRvd/N5F4nYpU0TVE=",
402
"owner": "NixOS",
403
"repo": "nixpkgs",
404
-
"rev": "6607cf789e541e7873d40d3a8f7815ea92204f32",
405
"type": "github"
406
},
407
"original": {
···
413
},
414
"nixpkgs_2": {
415
"locked": {
416
-
"lastModified": 1742069588,
417
-
"narHash": "sha256-C7jVfohcGzdZRF6DO+ybyG/sqpo1h6bZi9T56sxLy+k=",
418
"owner": "NixOS",
419
"repo": "nixpkgs",
420
-
"rev": "c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5",
421
"type": "github"
422
},
423
"original": {
···
453
]
454
},
455
"locked": {
456
-
"lastModified": 1740569341,
457
-
"narHash": "sha256-WV8nY2IOfWdzBF5syVgCcgOchg/qQtpYh6LECYS9XkY=",
458
"owner": "nix-community",
459
"repo": "plasma-manager",
460
-
"rev": "5eeb0172fb74392053b66a8149e61b5e191b2845",
461
"type": "github"
462
},
463
"original": {
···
517
"rust-analyzer-src": {
518
"flake": false,
519
"locked": {
520
-
"lastModified": 1740737930,
521
-
"narHash": "sha256-2AW/FJQI/i6bbRB/8HR9l9SjxjuiukJpHdMPgwApPKA=",
522
"owner": "rust-lang",
523
"repo": "rust-analyzer",
524
-
"rev": "fe8444616679f8e50ff9696f4750df1f10e7433d",
525
"type": "github"
526
},
527
"original": {
···
587
"nixpkgs": "nixpkgs_3"
588
},
589
"locked": {
590
-
"lastModified": 1739829690,
591
-
"narHash": "sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU=",
592
"owner": "numtide",
593
"repo": "treefmt-nix",
594
-
"rev": "3d0579f5cc93436052d94b73925b48973a104204",
595
"type": "github"
596
},
597
"original": {
···
8
},
9
"locked": {
10
"dir": "blender",
11
+
"lastModified": 1742939360,
12
+
"narHash": "sha256-YeM/A4SWHlz2trSNjriPi4QR5zsYMC8vkQawSlRw2+w=",
13
"owner": "edolstra",
14
"repo": "nix-warez",
15
+
"rev": "c9d2d5c61a37f2217e9241ccfa6c394ed2f3e52b",
16
"type": "github"
17
},
18
"original": {
···
25
"nixpkgs": "nixpkgs"
26
},
27
"locked": {
28
+
"lastModified": 1744447794,
29
+
"narHash": "sha256-z5uK5BDmFg0L/0EW2XYLGr39FbQeXyNVnIEhkZrG8+Q=",
30
"owner": "catppuccin",
31
"repo": "nix",
32
+
"rev": "c44fe73ed8e5d5809eded7cc6156ca9c40044e42",
33
"type": "github"
34
},
35
"original": {
···
95
"rust-analyzer-src": "rust-analyzer-src"
96
},
97
"locked": {
98
+
"lastModified": 1742452566,
99
+
"narHash": "sha256-sVuLDQ2UIWfXUBbctzrZrXM2X05YjX08K7XHMztt36E=",
100
"owner": "nix-community",
101
"repo": "fenix",
102
+
"rev": "7d9ba794daf5e8cc7ee728859bc688d8e26d5f06",
103
"type": "github"
104
},
105
"original": {
···
173
]
174
},
175
"locked": {
176
+
"lastModified": 1743550720,
177
+
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
178
"owner": "hercules-ci",
179
"repo": "flake-parts",
180
+
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
181
"type": "github"
182
},
183
"original": {
···
236
"zon2nix": "zon2nix"
237
},
238
"locked": {
239
+
"lastModified": 1744620187,
240
+
"narHash": "sha256-u+9UFyuC9lVLjVWpkdegoLPFsWMi66vLIAKlkfCqEYk=",
241
"owner": "pluiedev",
242
"repo": "ghostty",
243
+
"rev": "8029c72593a4668c06b77d02df8a5173eebe20b3",
244
"type": "github"
245
},
246
"original": {
···
279
]
280
},
281
"locked": {
282
+
"lastModified": 1744618730,
283
+
"narHash": "sha256-n3gN7aHwVRnnBZI64EDoKyJnWidNYJ0xezhqQtdjH2Q=",
284
"owner": "nix-community",
285
"repo": "home-manager",
286
+
"rev": "85dd758c703ffbf9d97f34adcef3a898b54b4014",
287
"type": "github"
288
},
289
"original": {
···
346
]
347
},
348
"locked": {
349
+
"lastModified": 1744478979,
350
+
"narHash": "sha256-dyN+teG9G82G+m+PX/aSAagkC+vUv0SgUw3XkPhQodQ=",
351
"owner": "LnL7",
352
"repo": "nix-darwin",
353
+
"rev": "43975d782b418ebf4969e9ccba82466728c2851b",
354
"type": "github"
355
},
356
"original": {
···
366
]
367
},
368
"locked": {
369
+
"lastModified": 1744518957,
370
+
"narHash": "sha256-RLBSWQfTL0v+7uyskC5kP6slLK1jvIuhaAh8QvB75m4=",
371
"owner": "nix-community",
372
"repo": "nix-index-database",
373
+
"rev": "4fc9ea78c962904f4ea11046f3db37c62e8a02fd",
374
"type": "github"
375
},
376
"original": {
···
381
},
382
"nixos-hardware": {
383
"locked": {
384
+
"lastModified": 1744366945,
385
+
"narHash": "sha256-OuLhysErPHl53BBifhesrRumJNhrlSgQDfYOTXfgIMg=",
386
"owner": "NixOS",
387
"repo": "nixos-hardware",
388
+
"rev": "1fe3cc2bc5d2dc9c81cb4e63d2f67c1543340df1",
389
"type": "github"
390
},
391
"original": {
···
397
},
398
"nixpkgs": {
399
"locked": {
400
+
"lastModified": 1744098102,
401
+
"narHash": "sha256-tzCdyIJj9AjysC3OuKA+tMD/kDEDAF9mICPDU7ix0JA=",
402
"owner": "NixOS",
403
"repo": "nixpkgs",
404
+
"rev": "c8cd81426f45942bb2906d5ed2fe21d2f19d95b7",
405
"type": "github"
406
},
407
"original": {
···
413
},
414
"nixpkgs_2": {
415
"locked": {
416
+
"lastModified": 1744463964,
417
+
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
418
"owner": "NixOS",
419
"repo": "nixpkgs",
420
+
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
421
"type": "github"
422
},
423
"original": {
···
453
]
454
},
455
"locked": {
456
+
"lastModified": 1742765550,
457
+
"narHash": "sha256-2vVIh2JrL6GAGfgCeY9e6iNKrBjs0Hw3bGQEAbwVs68=",
458
"owner": "nix-community",
459
"repo": "plasma-manager",
460
+
"rev": "b70be387276e632fe51232887f9e04e2b6ef8c16",
461
"type": "github"
462
},
463
"original": {
···
517
"rust-analyzer-src": {
518
"flake": false,
519
"locked": {
520
+
"lastModified": 1742296961,
521
+
"narHash": "sha256-gCpvEQOrugHWLimD1wTFOJHagnSEP6VYBDspq96Idu0=",
522
"owner": "rust-lang",
523
"repo": "rust-analyzer",
524
+
"rev": "15d87419f1a123d8f888d608129c3ce3ff8f13d4",
525
"type": "github"
526
},
527
"original": {
···
587
"nixpkgs": "nixpkgs_3"
588
},
589
"locked": {
590
+
"lastModified": 1743748085,
591
+
"narHash": "sha256-uhjnlaVTWo5iD3LXics1rp9gaKgDRQj6660+gbUU3cE=",
592
"owner": "numtide",
593
"repo": "treefmt-nix",
594
+
"rev": "815e4121d6a5d504c0f96e5be2dd7f871e4fd99d",
595
"type": "github"
596
},
597
"original": {
+8
-31
roles/mirrors/default.nix
···
1
{
2
config,
3
lib,
4
-
pkgs,
5
...
6
}:
7
let
···
10
mkIf
11
mkOption
12
types
13
-
flip
14
;
15
-
inherit (builtins) hasAttr mapAttrs;
16
17
cfg = config.roles.mirrors;
18
-
defaultSite = cfg.chinese.sites.${cfg.chinese.defaultSite};
19
in
20
{
21
options.roles.mirrors.chinese = {
22
enable = mkEnableOption "Chinese mirror sites to speed up downloads in Mainland China";
23
24
-
defaultSite = mkOption {
25
-
type = types.str // {
26
-
check = flip hasAttr cfg.chinese.sites;
27
-
};
28
-
29
-
default = "sjtu";
30
-
};
31
-
32
sites = mkOption {
33
description = "A list of Chinese mirror sites to use.";
34
-
type = types.attrsOf types.str;
35
-
default = {
36
-
sjtu = "https://mirror.sjtu.edu.cn";
37
-
tuna = "https://mirrors.tuna.tsinghua.edu.cn";
38
-
ustc = "https://mirrors.ustc.edu.cn";
39
-
};
0
40
};
41
};
42
43
config = mkIf cfg.chinese.enable {
44
-
roles.rust = {
45
-
# rust-bin = pkgs.rust-bin // {
46
-
# distRoot = "${defaultSite}/rust-static/dist";
47
-
# };
48
-
49
-
settings.source = {
50
-
crates-io.replace-with = cfg.chinese.defaultSite;
51
-
} // mapAttrs (_: url: "sparse+${url}/crates.io-index") cfg.chinese.sites;
52
-
};
53
-
54
# cache.nixos.org is *unbearably* slow when accessed from Mainland China.
55
# Fortunately, mirror sites exist... Hooray(?)
56
-
nix.settings.substituters = map (url: "${url}/nix-channels/store") (
57
-
builtins.attrValues cfg.chinese.sites
58
-
);
59
};
60
}
···
1
{
2
config,
3
lib,
0
4
...
5
}:
6
let
···
9
mkIf
10
mkOption
11
types
0
12
;
0
13
14
cfg = config.roles.mirrors;
0
15
in
16
{
17
options.roles.mirrors.chinese = {
18
enable = mkEnableOption "Chinese mirror sites to speed up downloads in Mainland China";
19
0
0
0
0
0
0
0
0
20
sites = mkOption {
21
description = "A list of Chinese mirror sites to use.";
22
+
type = types.listOf types.str;
23
+
default = [
24
+
"https://mirrors.ustc.edu.cn"
25
+
"https://mirrors6.tuna.tsinghua.edu.cn"
26
+
"https://mirrors.tuna.tsinghua.edu.cn"
27
+
# "https://mirror.sjtu.edu.cn"
28
+
];
29
};
30
};
31
32
config = mkIf cfg.chinese.enable {
0
0
0
0
0
0
0
0
0
0
33
# cache.nixos.org is *unbearably* slow when accessed from Mainland China.
34
# Fortunately, mirror sites exist... Hooray(?)
35
+
nix.settings.substituters = map (url: "${url}/nix-channels/store") cfg.chinese.sites;
0
0
36
};
37
}
+1
-1
users/leah/appearance.nix
···
21
boot.plymouth.theme = "blahaj";
22
23
hm.imports = [
24
-
inputs.catppuccin.homeManagerModules.catppuccin
25
self.hmModules.ctp-plus
26
];
27
···
21
boot.plymouth.theme = "blahaj";
22
23
hm.imports = [
24
+
inputs.catppuccin.homeModules.catppuccin
25
self.hmModules.ctp-plus
26
];
27
+1
-1
users/leah/programs/firefox/default.nix
···
97
};
98
in
99
{
100
-
default = "DuckDuckGo";
101
force = true;
102
engines = {
103
"Nixpkgs" = nixosSearch "" [ "@np" ];
···
97
};
98
in
99
{
100
+
default = "ddg";
101
force = true;
102
engines = {
103
"Nixpkgs" = nixosSearch "" [ "@np" ];
+5
-3
users/leah/programs/ghostty/default.nix
···
16
17
background = "#1e1e2e";
18
19
-
# Who likes CSDs?
20
-
window-decoration = "server";
21
window-theme = "ghostty";
22
23
unfocused-split-opacity = 0.8;
···
27
# Massively improves the nvim experience
28
mouse-hide-while-typing = true;
29
0
0
0
30
keybind = [
31
"ctrl+shift+up=new_split:up"
32
"ctrl+shift+down=new_split:down"
33
"ctrl+shift+left=new_split:left"
34
"ctrl+shift+right=new_split:right"
35
-
"ctrl+grave_accent=toggle_quick_terminal"
36
];
37
};
38
};
···
16
17
background = "#1e1e2e";
18
19
+
window-decoration = "client";
0
20
window-theme = "ghostty";
21
22
unfocused-split-opacity = 0.8;
···
26
# Massively improves the nvim experience
27
mouse-hide-while-typing = true;
28
29
+
quick-terminal-size = "20%,80%";
30
+
quick-terminal-autohide = true;
31
+
32
keybind = [
33
"ctrl+shift+up=new_split:up"
34
"ctrl+shift+down=new_split:down"
35
"ctrl+shift+left=new_split:left"
36
"ctrl+shift+right=new_split:right"
37
+
"global:ctrl+grave_accent=toggle_quick_terminal"
38
];
39
};
40
};
+1
-1
users/leah/programs/jj/default.nix
···
54
55
core = {
56
fsmonitor = "watchman";
57
-
watchman.register_snapshot_trigger = true;
58
};
59
};
60
};
···
54
55
core = {
56
fsmonitor = "watchman";
57
+
watchman.register-snapshot-trigger = true;
58
};
59
};
60
};