Skip to content

Commit 05f1c69

Browse files
committed
tsukiakari: exist
1 parent 79239b3 commit 05f1c69

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

flake.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@
116116
nixosConfigurations = {
117117
test-vm = allSystems.makeHost.x86_64-linux ./hosts/test-vm;
118118
router-nixos = allSystems.makeHost.x86_64-linux ./hosts/router;
119+
tsukiakari-nixos = allSystems.makeHost.x86_64-linux ./hosts/tsukiakari;
119120
lun-kosame-nixos = allSystems.makeHost.x86_64-linux ./hosts/kosame;
120121
lun-hisame-nixos = allSystems.makeHost.x86_64-linux ./hosts/hisame;
121122
lun-amayadori-nixos = allSystems.makeHost.aarch64-linux ./hosts/amayadori;
122-
mmk-raikiri-nixos = allSystems.makeHost.x86_64-linux ./hosts/raikiri;
123123
};
124124

125125
deploy.nodes.router = {
@@ -130,6 +130,14 @@
130130
path = flakeArgs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.router-nixos;
131131
};
132132
};
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+
};
133141
deploy.nodes.testSingleServiceDeployAsLunOnLocalhost = {
134142
hostname = "localhost";
135143
profiles.serviceTest = serviceTest.hmProfile {

hosts/raikiri/default.nix hosts/tsukiakari/default.nix

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{ config, pkgs, lib, ... }:
22
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" ];
57
in
68
{
79
imports = [
810
];
911

1012
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";
1416

1517
boot.kernelParams = [
16-
"mitigations=off"
1718
"quiet"
1819
"splash"
1920
];
20-
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_xanmod;
21+
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
2122

2223
services.xserver.videoDrivers = [ "amdgpu" ];
2324
lun.ml = {
@@ -42,16 +43,16 @@ in
4243
];
4344
};
4445
"/boot" = {
45-
device = "/dev/disk/by-partlabel/_esp";
46+
device = "/dev/disk/by-partlabel/${name}_esp";
4647
fsType = "vfat";
4748
neededForBoot = true;
4849
options = [ "discard" "noatime" ];
4950
};
5051
"/persist" = {
5152
device = "/dev/disk/by-partlabel/${name}_persist";
52-
fsType = "ext4";
53+
fsType = "btrfs";
5354
neededForBoot = true;
54-
options = [ "discard" "noatime" ];
55+
options = [ "subvol=@persist" ] ++ btrfsSsdOpts;
5556
};
5657
"/nix" = {
5758
device = "/persist/nix";

0 commit comments

Comments
 (0)