mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 02:06:34 +05:30
change controller hostname to arcturus
This commit is contained in:
@ -4,7 +4,7 @@ keys:
|
|||||||
|
|
||||||
- &hosts
|
- &hosts
|
||||||
- &canopus age1cc9phftkzcwaey2rw63m74tyxdjxxzanxphsdrhy6vwlwhgehfzq9rh6e4
|
- &canopus age1cc9phftkzcwaey2rw63m74tyxdjxxzanxphsdrhy6vwlwhgehfzq9rh6e4
|
||||||
- &controller age1zsl5d4vj6gl3h96y5p53sq5y4vr4vtlwp727h7rp9a4xfkxm53lqrh6r50
|
- &arcturus age1zsl5d4vj6gl3h96y5p53sq5y4vr4vtlwp727h7rp9a4xfkxm53lqrh6r50
|
||||||
- &alpha age145uq9emlxqzm3wqauy9zqj78wqx9e6h09xag6wust7jjgn4upfzsaemcvx
|
- &alpha age145uq9emlxqzm3wqauy9zqj78wqx9e6h09xag6wust7jjgn4upfzsaemcvx
|
||||||
- &wsl age1lyvzg4ud96trsuv6gsvjw0p3rtd6qjpyl9uleq8hcrzwekuhpfesnlqauf
|
- &wsl age1lyvzg4ud96trsuv6gsvjw0p3rtd6qjpyl9uleq8hcrzwekuhpfesnlqauf
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ creation_rules:
|
|||||||
- age:
|
- age:
|
||||||
- *tux
|
- *tux
|
||||||
- *canopus
|
- *canopus
|
||||||
- *controller
|
- *arcturus
|
||||||
- *alpha
|
- *alpha
|
||||||
- *wsl
|
- *wsl
|
||||||
- path_regex: hosts/canopus/secrets.yaml$
|
- path_regex: hosts/canopus/secrets.yaml$
|
||||||
@ -26,7 +26,7 @@ creation_rules:
|
|||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *tux
|
- *tux
|
||||||
- *controller
|
- *arcturus
|
||||||
- path_regex: hosts/alpha/secrets.yaml$
|
- path_regex: hosts/alpha/secrets.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
|
@ -65,10 +65,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
controller = nixpkgs.lib.nixosSystem {
|
arcturus = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs username;};
|
specialArgs = {inherit inputs outputs username;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/controller
|
./hosts/arcturus
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@
|
|||||||
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
home-manager.extraSpecialArgs = {inherit inputs outputs username;};
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
imports = [
|
imports = [
|
||||||
./hosts/controller/home.nix
|
./hosts/arcturus/home.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "controller";
|
hostName = "arcturus";
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [80 443 22];
|
allowedTCPPorts = [80 443 22];
|
||||||
@ -83,7 +84,7 @@
|
|||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
borgbackup.jobs.controller-backup = {
|
borgbackup.jobs.arcturus-backup = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/bitwarden_rs"
|
"/var/lib/bitwarden_rs"
|
||||||
"/var/lib/gitea"
|
"/var/lib/gitea"
|
||||||
@ -97,7 +98,7 @@
|
|||||||
passCommand = "cat ${config.sops.secrets.borg_encryption_key.path}";
|
passCommand = "cat ${config.sops.secrets.borg_encryption_key.path}";
|
||||||
};
|
};
|
||||||
environment.BORG_RSH = "ssh -i /home/${username}/.ssh/storagebox";
|
environment.BORG_RSH = "ssh -i /home/${username}/.ssh/storagebox";
|
||||||
repo = "ssh://u416910@u416910.your-storagebox.de:23/./controller-backups";
|
repo = "ssh://u416910@u416910.your-storagebox.de:23/./arcturus-backups";
|
||||||
compression = "auto,zstd";
|
compression = "auto,zstd";
|
||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
};
|
};
|
Reference in New Issue
Block a user