migrate server configs
This commit is contained in:
parent
20278baff4
commit
8ccc16e930
3 changed files with 335 additions and 0 deletions
29
servers/flake.nix
Normal file
29
servers/flake.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
description = "The flake that describes my server configurations";
|
||||
|
||||
inputs.deploy-rs.url = "github:serokell/deploy-rs";
|
||||
|
||||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, deploy-rs
|
||||
,
|
||||
}:
|
||||
{
|
||||
nixosConfigurations.lunasa = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./lunasa/configuration.nix ];
|
||||
};
|
||||
|
||||
deploy.nodes.lunasa = {
|
||||
hostname = "lina.cool";
|
||||
sshUser = "root";
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lunasa;
|
||||
};
|
||||
};
|
||||
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue