flake: deploy to virtmsi
This commit is contained in:
parent
dac4092adb
commit
fcab202c38
1 changed files with 14 additions and 1 deletions
15
flake.nix
15
flake.nix
|
@ -23,7 +23,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ self, nixpkgs, ... }@inputs:
|
{ self, nixpkgs, deploy-rs, ... }@inputs:
|
||||||
let
|
let
|
||||||
builders = import ./builders.nix inputs;
|
builders = import ./builders.nix inputs;
|
||||||
in
|
in
|
||||||
|
@ -42,6 +42,19 @@
|
||||||
{ user = "ravenshade"; hostname = "virtmsi"; }
|
{ user = "ravenshade"; hostname = "virtmsi"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
deploy =
|
||||||
|
let homeConfigPath = username: deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurations.${username};
|
||||||
|
in {
|
||||||
|
sshUser = "ravenshade";
|
||||||
|
nodes = {
|
||||||
|
virtmsi = {
|
||||||
|
hostname = "virtmsi";
|
||||||
|
profiles.home.path = homeConfigPath "ravenshade@virtmsi";
|
||||||
|
fastConnection = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
overlays.default = import ./pkgs;
|
overlays.default = import ./pkgs;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue