Compare commits
1 Commits
attic
..
ddbfca6f30
| Author | SHA1 | Date | |
|---|---|---|---|
| ddbfca6f30 |
@@ -10,7 +10,7 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: build sydpc
|
- name: build sydpc
|
||||||
run: nix build -L .#nixosConfigurations.sydpc.config.system.build.toplevel
|
run: nix build -L .#nixosConfigurations.sydpc
|
||||||
|
|
||||||
build-fruitbook:
|
build-fruitbook:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: build fruitbook
|
- name: build fruitbook
|
||||||
run: nix build -L .#nixosConfigurations.fruitbook.config.system.build.toplevel
|
run: nix build -L .#nixosConfigurations.fruitbook
|
||||||
|
|
||||||
build-deertopia:
|
build-deertopia:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
@@ -26,4 +26,4 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: build deertopia
|
- name: build deertopia
|
||||||
run: nix build -L .#nixosConfigurations.deertopia.config.system.build.toplevel
|
run: nix build -L .#nixosConfigurations.deertopia
|
||||||
|
|||||||
@@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
deertopia = {
|
deertopia = {
|
||||||
authelia.enable = true;
|
authelia.enable = true;
|
||||||
atticd.enable = true;
|
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
quiver.enable = true;
|
quiver.enable = true;
|
||||||
www.enable = true;
|
www.enable = true;
|
||||||
@@ -67,7 +66,6 @@
|
|||||||
# umurmur.enable = true;
|
# umurmur.enable = true;
|
||||||
murmur.enable = true;
|
murmur.enable = true;
|
||||||
anki-sync-server.enable = true;
|
anki-sync-server.enable = true;
|
||||||
vaultwarden.enable = true;
|
|
||||||
servarr = {
|
servarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
prowlarr.enable = true;
|
prowlarr.enable = true;
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
let cfg = config.sydnix.deertopia.atticd;
|
|
||||||
in {
|
|
||||||
options.sydnix.deertopia.atticd = {
|
|
||||||
enable = lib.mkEnableOption "Atticd";
|
|
||||||
port = lib.mkOption {
|
|
||||||
default = 8012;
|
|
||||||
type = lib.types.port;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# sudo atticd-atticadm make-token --sub msyds --validity '1 year' --pull 'msyds-*' --push 'msyds-*' --create-cache 'msyds-*' --configure-cache 'msyds-*'
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
sydnix.sops.secrets.atticd-environment-file = {
|
|
||||||
# owner = config.services.atticd.user;
|
|
||||||
# group = config.services.atticd.group;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.atticd = {
|
|
||||||
enable = true;
|
|
||||||
environmentFile =
|
|
||||||
config.sops.secrets.atticd-environment-file.path;
|
|
||||||
settings = {
|
|
||||||
api-endpoint = "https://attic.deertopia.net/";
|
|
||||||
listen = "[::]:${toString cfg.port}";
|
|
||||||
garbage-collection = {
|
|
||||||
default-retention-period = "3 months";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sydnix.deertopia.nginx.vhosts."attic".vhost = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/".proxyPass =
|
|
||||||
"http://127.0.0.1:${toString cfg.port}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
let cfg = config.sydnix.deertopia.vaultwarden;
|
|
||||||
in {
|
|
||||||
options.sydnix.deertopia.vaultwarden = {
|
|
||||||
enable = lib.mkEnableOption "Vaultwarden";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.vaultwarden = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
|
||||||
ROCKET_PORT = 8222;
|
|
||||||
DOMAIN = "https://vault.deertopia.net";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
sydnix.impermanence.directories = [
|
|
||||||
"/var/backup/vaultwarden"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.nginx.upstreams.vaultwarden.servers =
|
|
||||||
let port = toString config.services.vaultwarden.config.ROCKET_PORT;
|
|
||||||
in {
|
|
||||||
"127.0.0.1:${port}" = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
sydnix.deertopia.nginx.vhosts."vault".vhost = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations = {
|
|
||||||
"/".proxyPass = "http://vaultwarden";
|
|
||||||
"= /notifications/anonymous-hub" = {
|
|
||||||
proxyPass = "http://vaultwarden";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
"= /notifications/hub" = {
|
|
||||||
proxyPass = "http://vaultwarden";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -70,10 +70,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# O_O what the fuck did i write this for.... CONCERNING.
|
# O_O what the fuck did i write this for.... CONCERNING.
|
||||||
#
|
|
||||||
# oh because of these types of errors:
|
|
||||||
# Directory "/var/lib/private" already exists, but has mode 0755
|
|
||||||
# that is too permissive (0700 was requested), refusing.
|
|
||||||
systemd.tmpfiles.settings."10-varlibprivate" = {
|
systemd.tmpfiles.settings."10-varlibprivate" = {
|
||||||
"/var/lib/private" = {
|
"/var/lib/private" = {
|
||||||
z.group = "root";
|
z.group = "root";
|
||||||
@@ -82,13 +78,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Workaround for https://github.com/nix-community/impermanence/issues/254.
|
|
||||||
systemd.services."systemd-tmpfiles-resetup" = {
|
|
||||||
serviceConfig = {
|
|
||||||
RemainAfterExit = lib.mkForce false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Permit members of `cfg.persistGroupName` to read, write, and execute
|
# Permit members of `cfg.persistGroupName` to read, write, and execute
|
||||||
# /persist.
|
# /persist.
|
||||||
systemd.tmpfiles.settings."10-persist" = {
|
systemd.tmpfiles.settings."10-persist" = {
|
||||||
|
|||||||
+2
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user