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, ... }:
|
{ self, deploy-rs, ... }:
|
||||||
let
|
let
|
||||||
domain = "dadada.li";
|
domain = "dadada.li";
|
||||||
system = "x86_64-linux";
|
|
||||||
activateNixos = deploy-rs.lib."${system}".activate.nixos;
|
|
||||||
configs = self.nixosConfigurations;
|
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}";
|
hostname = "${hostname}.${domain}";
|
||||||
fastConnection = true;
|
fastConnection = true;
|
||||||
profiles = {
|
profiles = {
|
||||||
system = {
|
system = {
|
||||||
sshUser = "dadada";
|
sshUser = "dadada";
|
||||||
path = activateNixos configs."${hostname}";
|
path = activateNixos config;
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue