Add io deploy details
This commit is contained in:
parent
7a616906f9
commit
53d4a954a7
1 changed files with 27 additions and 7 deletions
34
flake.nix
34
flake.nix
|
|
@ -110,26 +110,26 @@
|
|||
};
|
||||
|
||||
homeConfigurations = {
|
||||
server = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [ ./users/servers/user.nix ];
|
||||
};
|
||||
|
||||
desktop = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [ ./users/desktops/user.nix ];
|
||||
};
|
||||
|
||||
server = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [ ./users/servers/user.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
deploy = {
|
||||
autoRollback = true;
|
||||
magicRollback = false;
|
||||
profilesOrder = [ "system" "user" ];
|
||||
nodes = {
|
||||
alexandria = {
|
||||
hostname = "alexandria";
|
||||
profilesOrder = [ "system" "user" ];
|
||||
profiles = {
|
||||
system = {
|
||||
user = "root";
|
||||
|
|
@ -146,6 +146,26 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
io = {
|
||||
hostname = "io";
|
||||
profilesOrder = [ "system" "user" ];
|
||||
profiles = {
|
||||
system = {
|
||||
user = "root";
|
||||
sshUser = "root";
|
||||
remoteBuild = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos
|
||||
self.nixosConfigurations.io;
|
||||
};
|
||||
user = {
|
||||
user = "user";
|
||||
remoteBuild = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.home-manager
|
||||
self.homeConfigurations.desktop;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue