som more deploy-rs mods
This commit is contained in:
parent
3792c11bf0
commit
0cf06f8541
3 changed files with 17 additions and 14 deletions
15
deploy.nix
15
deploy.nix
|
|
@ -1,10 +1,11 @@
|
||||||
{ inputs, self, ... }:
|
{ inputs, self, ... }:
|
||||||
{
|
{
|
||||||
flake.deploy.nodes = {
|
flake.deploy.nodes = {
|
||||||
|
remoteBuild = true;
|
||||||
alexandria = {
|
alexandria = {
|
||||||
hostname = "alexandria";
|
hostname = "alexandria";
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
sshUser = "root";
|
sshUser = "user";
|
||||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
|
|
@ -13,7 +14,7 @@
|
||||||
trantor = {
|
trantor = {
|
||||||
hostname = "trantor";
|
hostname = "trantor";
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
sshUser = "root";
|
sshUser = "user";
|
||||||
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
|
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
|
|
@ -23,7 +24,7 @@
|
||||||
hostname = "io";
|
hostname = "io";
|
||||||
profiles = {
|
profiles = {
|
||||||
system = {
|
system = {
|
||||||
sshUser = "root";
|
sshUser = "user";
|
||||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
|
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
|
|
@ -35,7 +36,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
perSystem =
|
||||||
# Optional: Add deploy-rs checks
|
{ system, ... }:
|
||||||
flake.checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
{
|
||||||
|
checks = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,10 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nil
|
nil
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
inputs.deploy-rs.packages.${pkgs.system}.default
|
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
alias deploy='${inputs.deploy-rs.packages.${pkgs.system}.default}/bin/deploy --skip-checks'
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,15 +26,13 @@
|
||||||
buildDocs = false;
|
buildDocs = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.nixos-cli = {
|
||||||
nixos-cli = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
use_nvd = true;
|
use_nvd = true;
|
||||||
ignore_dirty_tree = true;
|
ignore_dirty_tree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue