Skip to content

Commit 0f6ee21

Browse files
committed
fix: update deploy-rs usage and nix version for mirai and related systems
1 parent 1e3e314 commit 0f6ee21

8 files changed

Lines changed: 16 additions & 13 deletions

File tree

builders/mirai.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
hostName = "sh.darksailor.dev";
2+
hostName = "mirai.darksailor.dev";
33
sshUser = "remotebuilder";
44
systems = ["x86_64-linux" "aarch64-linux"];
55
protocol = "ssh-ng";

deploy.nix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
{
22
inputs,
33
self,
4+
deploy-rs,
45
...
56
}: {
67
nodes = {
78
mirai = {
89
hostname = "mirai.darksailor.dev";
910
profiles.system = {
1011
sshUser = "fs0c131y";
11-
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.mirai;
12+
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.mirai;
1213
user = "root";
1314
};
1415
};
1516
tsuba = {
1617
hostname = "tsuba.darksailor.dev";
1718
profiles.system = {
1819
sshUser = "servius";
19-
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.tsuba;
20+
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.tsuba;
2021
user = "root";
2122
};
2223
};
2324
ryu = {
2425
hostname = "ryu";
2526
profiles.system = {
2627
sshUser = "servius";
27-
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.ryu;
28+
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.ryu;
2829
user = "root";
2930
};
3031
};
3132
tako = {
3233
hostname = "tako.darksailor.dev";
3334
profiles.system = {
3435
sshUser = "servius";
35-
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.tako;
36+
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.tako;
3637
user = "root";
3738
};
3839
};
@@ -41,7 +42,7 @@
4142
# interactiveSudo = true;
4243
# profiles.system = {
4344
# sshUser = "fs0c131y";
44-
# path = inputs.deploy-rs.lib.aarch64-darwin.activate.darwin self.darwinConfigurations.kuro;
45+
# path = deploy-rs.lib.aarch64-darwin.activate.darwin self.darwinConfigurations.kuro;
4546
# user = "root";
4647
# };
4748
# };
@@ -50,15 +51,15 @@
5051
# interactiveSudo = true;
5152
# profiles.system = {
5253
# sshUser = "servius";
53-
# path = inputs.deploy-rs.lib.aarch64-darwin.activate.darwin self.darwinConfigurations.shiro;
54+
# path = deploy-rs.lib.aarch64-darwin.activate.darwin self.darwinConfigurations.shiro;
5455
# user = "root";
5556
# };
5657
# };
5758
# deck = {
5859
# hostname = "steamdeck";
5960
# profiles.system = {
6061
# sshUser = "deck";
61-
# path = inputs.deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations.deck;
62+
# path = deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations.deck;
6263
# user = "deck";
6364
# };
6465
# };

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@
399399
in {
400400
tsuba = mkImage nixos.tsuba;
401401
};
402-
deploy = import ./deploy.nix {inherit inputs self;};
402+
deploy = import ./deploy.nix {inherit inputs self deploy-rs;};
403+
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
403404
inherit devices;
404405
}
405406
// flake-utils.lib.eachDefaultSystem (

home/programs/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
bottom
6666
btop
6767
cachix
68-
deploy-rs
68+
deploy-rs.deploy-rs
6969
dust
7070
fd
7171
file

nixos/mirai/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
dates = "daily";
6666
options = "--delete-older-than 5d";
6767
};
68-
package = pkgs.nixVersions.nix_2_31; # deploy-rs doesn't work with nix >= 2.32
68+
package = pkgs.nixVersions.latest; # deploy-rs doesn't work with nix >= 2.32
6969
distributedBuilds = true;
7070
};
7171

nixos/ryu/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
dates = "daily";
6868
options = "--delete-older-than +5";
6969
};
70-
package = pkgs.nixVersions.nix_2_31; # deploy-rs doesn't work with nix >= 2.32
70+
package = pkgs.nixVersions.latest; # deploy-rs doesn't work with nix >= 2.32
7171
buildMachines = [
7272
../../builders/tako.nix
7373
../../builders/mirai.nix

nixos/tako/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
dates = "daily";
6666
options = "--delete-older-than 5d";
6767
};
68-
package = pkgs.nixVersions.nix_2_31; # deploy-rs doesn't work with nix >= 2.32
68+
package = pkgs.nixVersions.latest; # deploy-rs doesn't work with nix >= 2.32
6969
distributedBuilds = true;
7070
};
7171

overlays.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ in
278278
anyrun-overlay
279279
catppuccinThemes
280280
csshacks
281+
inputs.deploy-rs.overlays.default
281282
inputs.nix-minecraft.overlay
282283
inputs.nur.overlays.default
283284
inputs.rust-overlay.overlays.default

0 commit comments

Comments
 (0)