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, ... }:
|
||||
{
|
||||
flake.deploy.nodes = {
|
||||
remoteBuild = true;
|
||||
alexandria = {
|
||||
hostname = "alexandria";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
sshUser = "user";
|
||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
|
||||
user = "root";
|
||||
};
|
||||
|
|
@ -13,7 +14,7 @@
|
|||
trantor = {
|
||||
hostname = "trantor";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
sshUser = "user";
|
||||
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
|
||||
user = "root";
|
||||
};
|
||||
|
|
@ -23,7 +24,7 @@
|
|||
hostname = "io";
|
||||
profiles = {
|
||||
system = {
|
||||
sshUser = "root";
|
||||
sshUser = "user";
|
||||
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
|
||||
user = "root";
|
||||
};
|
||||
|
|
@ -35,7 +36,9 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Optional: Add deploy-rs checks
|
||||
flake.checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
||||
perSystem =
|
||||
{ system, ... }:
|
||||
{
|
||||
checks = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@
|
|||
packages = with pkgs; [
|
||||
nil
|
||||
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,13 +26,11 @@
|
|||
buildDocs = false;
|
||||
};
|
||||
|
||||
services = {
|
||||
nixos-cli = {
|
||||
enable = true;
|
||||
config = {
|
||||
use_nvd = true;
|
||||
ignore_dirty_tree = true;
|
||||
};
|
||||
services.nixos-cli = {
|
||||
enable = true;
|
||||
config = {
|
||||
use_nvd = true;
|
||||
ignore_dirty_tree = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue