use system variable from nixos configuration
This commit is contained in:
parent
f17a0fd99f
commit
8a057c3cdf
1 changed files with 15 additions and 11 deletions
12
deploy.nix
12
deploy.nix
|
@ -1,16 +1,20 @@
|
|||
{ self, deploy-rs, ... }:
|
||||
let
|
||||
domain = "dadada.li";
|
||||
system = "x86_64-linux";
|
||||
activateNixos = deploy-rs.lib."${system}".activate.nixos;
|
||||
configs = self.nixosConfigurations;
|
||||
daNode = hostname: {
|
||||
daNode = hostname:
|
||||
let
|
||||
config = self.nixosConfigurations."${hostname}";
|
||||
system = config.pkgs.system;
|
||||
activateNixos = deploy-rs.lib."${system}".activate.nixos;
|
||||
in
|
||||
{
|
||||
hostname = "${hostname}.${domain}";
|
||||
fastConnection = true;
|
||||
profiles = {
|
||||
system = {
|
||||
sshUser = "dadada";
|
||||
path = activateNixos configs."${hostname}";
|
||||
path = activateNixos config;
|
||||
user = "root";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue