File tree 2 files changed +20
-11
lines changed
2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 116
116
nixosConfigurations = {
117
117
test-vm = allSystems . makeHost . x86_64-linux ./hosts/test-vm ;
118
118
router-nixos = allSystems . makeHost . x86_64-linux ./hosts/router ;
119
+ tsukiakari-nixos = allSystems . makeHost . x86_64-linux ./hosts/tsukiakari ;
119
120
lun-kosame-nixos = allSystems . makeHost . x86_64-linux ./hosts/kosame ;
120
121
lun-hisame-nixos = allSystems . makeHost . x86_64-linux ./hosts/hisame ;
121
122
lun-amayadori-nixos = allSystems . makeHost . aarch64-linux ./hosts/amayadori ;
122
- mmk-raikiri-nixos = allSystems . makeHost . x86_64-linux ./hosts/raikiri ;
123
123
} ;
124
124
125
125
deploy . nodes . router = {
130
130
path = flakeArgs . deploy-rs . lib . x86_64-linux . activate . nixos self . nixosConfigurations . router-nixos ;
131
131
} ;
132
132
} ;
133
+ deploy . nodes . tsukiakari = {
134
+ hostname = "tsukiakari-nixos" ;
135
+ profiles . system = {
136
+ sshUser = "lun" ;
137
+ user = "root" ;
138
+ path = flakeArgs . deploy-rs . lib . x86_64-linux . activate . nixos self . nixosConfigurations . tsukiakari-nixos ;
139
+ } ;
140
+ } ;
133
141
deploy . nodes . testSingleServiceDeployAsLunOnLocalhost = {
134
142
hostname = "localhost" ;
135
143
profiles . serviceTest = serviceTest . hmProfile {
Original file line number Diff line number Diff line change 1
1
{ config , pkgs , lib , ... } :
2
2
let
3
- name = "raikiri" ;
4
- swap = "/dev/disk/by-partlabel/_swap" ;
3
+ name = "tsukiakari" ;
4
+ swap = "/dev/disk/by-partlabel/${ name } _swap" ;
5
+ btrfsOpts = [ "rw" "noatime" "compress=zstd" "space_cache=v2" "noatime" "autodefrag" ] ;
6
+ btrfsSsdOpts = btrfsOpts ++ [ "ssd" "discard=async" ] ;
5
7
in
6
8
{
7
9
imports = [
8
10
] ;
9
11
10
12
config = {
11
- networking . hostName = "mmk- ${ name } -nixos" ;
12
- sconfig . machineId = "cb26ad93b8a7b58bb481b6fc3a90f12b " ;
13
- system . stateVersion = "22 .05" ;
13
+ networking . hostName = "${ name } -nixos" ;
14
+ sconfig . machineId = "b0ba0bde10f87905ffa39b7eba520df0 " ;
15
+ system . stateVersion = "24 .05" ;
14
16
15
17
boot . kernelParams = [
16
- "mitigations=off"
17
18
"quiet"
18
19
"splash"
19
20
] ;
20
- boot . kernelPackages = lib . mkForce pkgs . linuxPackages_xanmod ;
21
+ boot . kernelPackages = lib . mkForce pkgs . linuxPackages_latest ;
21
22
22
23
services . xserver . videoDrivers = [ "amdgpu" ] ;
23
24
lun . ml = {
42
43
] ;
43
44
} ;
44
45
"/boot" = {
45
- device = "/dev/disk/by-partlabel/_esp" ;
46
+ device = "/dev/disk/by-partlabel/${ name } _esp" ;
46
47
fsType = "vfat" ;
47
48
neededForBoot = true ;
48
49
options = [ "discard" "noatime" ] ;
49
50
} ;
50
51
"/persist" = {
51
52
device = "/dev/disk/by-partlabel/${ name } _persist" ;
52
- fsType = "ext4 " ;
53
+ fsType = "btrfs " ;
53
54
neededForBoot = true ;
54
- options = [ "discard" "noatime" ] ;
55
+ options = [ "subvol=@persist" ] ++ btrfsSsdOpts ;
55
56
} ;
56
57
"/nix" = {
57
58
device = "/persist/nix" ;
You can’t perform that action at this time.
0 commit comments