mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
refactor: use flakes with deploy-rs & nixos-hardware
This commit is contained in:
parent
b1ef65594a
commit
d17c2b69a0
81 changed files with 1179 additions and 317 deletions
20
nixos/deploy.nix
Normal file
20
nixos/deploy.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ self
|
||||
, deploy
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
mkNode = server: ip: fast: {
|
||||
hostname = "${ip}:22";
|
||||
fastConnection = fast;
|
||||
profiles.system.path =
|
||||
deploy.lib.x86_64-linux.activate.nixos
|
||||
self.nixosConfigurations."${server}";
|
||||
};
|
||||
in
|
||||
{
|
||||
user = "root";
|
||||
sshUser = "felix";
|
||||
nodes = {
|
||||
serverle = mkNode "serverle" "192.167.178.60" true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue