Setting up deploy-rs, update & start of tetra
This commit is contained in:
parent
5532e9e720
commit
8aca74fc84
9 changed files with 258 additions and 89 deletions
41
flake.nix
41
flake.nix
|
|
@ -28,12 +28,14 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
deploy-rs.url = "github:serokell/deploy-rs";
|
||||
|
||||
# Pins
|
||||
# Factorio 2.0.72
|
||||
pin-factorio.url = "github:NixOS/nixpkgs?rev=c5ae371f1a6a7fd27823bc500d9390b38c05fa55";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, mailserver, ... }@inputs: {
|
||||
outputs = { self, nixpkgs, mailserver, deploy-rs, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
# Framework Computer
|
||||
piaf = nixpkgs.lib.nixosSystem {
|
||||
|
|
@ -53,15 +55,40 @@
|
|||
};
|
||||
|
||||
# Desktop ISO
|
||||
triforce = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
modules = [ ./hosts/triforce ];
|
||||
};
|
||||
# triforce = nixpkgs.lib.nixosSystem {
|
||||
# system = "x86_64-linux";
|
||||
# specialArgs = inputs;
|
||||
# modules = [ ./hosts/triforce ];
|
||||
# };
|
||||
};
|
||||
|
||||
packages."x86_64-linux" = {
|
||||
desktop-iso = self.nixosConfigurations.desktop-iso.config.system.build.isoImage;
|
||||
# desktop-iso = self.nixosConfigurations.desktop-iso.config.system.build.isoImage;
|
||||
};
|
||||
|
||||
deploy = {
|
||||
interactiveSudo = true;
|
||||
autoRollback = true;
|
||||
magicRollback = true;
|
||||
|
||||
nodes = {
|
||||
zora = {
|
||||
hostname = "zora";
|
||||
profilesOrder = [ "system" ];
|
||||
# fastConnection = true;
|
||||
|
||||
profiles = {
|
||||
system = {
|
||||
sshUser = "lyes";
|
||||
user = "root";
|
||||
remoteBuild = true;
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.zora;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue