add services to cloudnix and domains to vars
This commit is contained in:
parent
27f9052eb8
commit
cfc8454540
2 changed files with 29 additions and 0 deletions
|
@ -30,10 +30,28 @@ in {
|
||||||
../common/optional/openssh.nix
|
../common/optional/openssh.nix
|
||||||
|
|
||||||
../common/optional/distributed-builds/local-machine.nix
|
../common/optional/distributed-builds/local-machine.nix
|
||||||
|
../common/optional/nixos-containers/semitamaps.nix
|
||||||
|
../common/optional/nixos-containers/vaultwarden.nix
|
||||||
|
../common/optional/fail2ban.nix
|
||||||
|
../common/optional/restic-backup.nix
|
||||||
|
|
||||||
|
../common/optional/nginx/semitamaps.nix
|
||||||
|
../common/optional/nginx/vaultwarden.nix
|
||||||
|
|
||||||
|
|
||||||
outputs.nixosModules.nixosAutoUpgrade
|
outputs.nixosModules.nixosAutoUpgrade
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.restic.backups = {
|
||||||
|
daily = {
|
||||||
|
paths = [
|
||||||
|
"/persist/"
|
||||||
|
];
|
||||||
|
exclude = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
efi.canTouchEfiVariables = false;
|
efi.canTouchEfiVariables = false;
|
||||||
|
@ -62,6 +80,16 @@ in {
|
||||||
user = "admin";
|
user = "admin";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
directories = [
|
||||||
|
"/var/lib/tailscale"
|
||||||
|
];
|
||||||
|
files = [ "/etc/machine-id" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# enable tailscale
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "cloudnix";
|
hostName = "cloudnix";
|
||||||
nameservers = ["8.8.8.8"];
|
nameservers = ["8.8.8.8"];
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
email
|
email
|
||||||
metrics-server
|
metrics-server
|
||||||
xmpp
|
xmpp
|
||||||
|
domains
|
||||||
;
|
;
|
||||||
locations = {
|
locations = {
|
||||||
mediaDataMountPoint = "/media/media";
|
mediaDataMountPoint = "/media/media";
|
||||||
|
|
Loading…
Add table
Reference in a new issue