Add deploy-rs for gitea
This commit is contained in:
parent
725eb8866f
commit
7bc09e90f4
2 changed files with 23 additions and 3 deletions
20
flake.nix
20
flake.nix
|
@ -166,8 +166,6 @@
|
|||
})
|
||||
(builtins.attrNames (builtins.readDir ./modules)));
|
||||
|
||||
inherit machines;
|
||||
|
||||
nixosConfigurations = builtins.listToAttrs (map
|
||||
(machine: {
|
||||
name = machine;
|
||||
|
@ -178,6 +176,21 @@
|
|||
};
|
||||
})
|
||||
(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" ])
|
||||
(
|
||||
|
@ -227,7 +240,8 @@
|
|||
shfmt.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
} // deploy-rs.lib.${system}.deployChecks self.deploy;
|
||||
|
||||
devShells.default = with pkgs;
|
||||
mkShell {
|
||||
|
|
|
@ -11,6 +11,12 @@ in
|
|||
../../users/erwin
|
||||
];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
eboskma = {
|
||||
users.erwin = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue