Add deploy-rs for gitea

This commit is contained in:
Erwin Boskma 2022-12-06 15:40:12 +01:00
parent 725eb8866f
commit 7bc09e90f4
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
2 changed files with 23 additions and 3 deletions

View file

@ -166,8 +166,6 @@
}) })
(builtins.attrNames (builtins.readDir ./modules))); (builtins.attrNames (builtins.readDir ./modules)));
inherit machines;
nixosConfigurations = builtins.listToAttrs (map nixosConfigurations = builtins.listToAttrs (map
(machine: { (machine: {
name = machine; name = machine;
@ -178,6 +176,21 @@
}; };
}) })
(builtins.attrNames machines)); (builtins.attrNames machines));
deploy.nodes = {
gitea = {
hostname = "10.0.0.201";
# fastConnection = true;
profiles = {
system = {
sshUser = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.gitea;
user = "root";
};
};
};
};
} }
// (flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ]) // (flake-utils.lib.eachSystem [ "aarch64-linux" "x86_64-linux" ])
( (
@ -227,7 +240,8 @@
shfmt.enable = true; shfmt.enable = true;
}; };
}; };
};
} // deploy-rs.lib.${system}.deployChecks self.deploy;
devShells.default = with pkgs; devShells.default = with pkgs;
mkShell { mkShell {

View file

@ -11,6 +11,12 @@ in
../../users/erwin ../../users/erwin
]; ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
options = [ "noatime" ];
};
eboskma = { eboskma = {
users.erwin = { users.erwin = {
enable = true; enable = true;