Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
46
module/system/deploy-rs.nix
Normal file
46
module/system/deploy-rs.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
flake-file.inputs = {
|
||||
deploy-rs.url = "github:serokell/deploy-rs";
|
||||
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
flake =
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
deploy.nodes = lib.mapAttrs' (
|
||||
hostname: nixosConfiguration:
|
||||
let
|
||||
inherit (nixosConfiguration.config.nixpkgs.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
name = hostname;
|
||||
value = {
|
||||
inherit hostname;
|
||||
fastConnection = false;
|
||||
sshUser = "kirbara";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
remoteBuild = false;
|
||||
magicRollback = false;
|
||||
activationTimeout = 300;
|
||||
confirmTimeout = 300;
|
||||
path = inputs.deploy-rs.lib.${system}.activate.nixos nixosConfiguration;
|
||||
};
|
||||
};
|
||||
}
|
||||
) config.nixosConfigurations;
|
||||
};
|
||||
|
||||
den.aspects = {
|
||||
deploy-rs = {
|
||||
nixos =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.deploy-rs
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue