Committing to save progress, will revert in next commit

This commit is contained in:
2025-04-21 11:54:21 +03:00
parent 044046f4b6
commit 2d87360df2
6 changed files with 28 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
./../nixosModules/nextcloud.nix
./../nixosModules/wakapi.nix
./../nixosModules/eko.nix
./../nixosModules/wallabag.nix
];
boot.loader.grub = {
@@ -54,6 +55,7 @@
nextcloud.enable = false;
wakapi.enable = true;
eko.enable = true;
wallabag.enable = true;
# Automatically pull this config from git
autoUpdate.enable = true;

View File

@@ -19,6 +19,7 @@
# Make sure acme module is active for the "kyren.codes" ssl cert
acme.enable = true;
services.nginx.enable = true;
services.nginx.virtualHosts."budget.kyren.codes" = {
useACMEHost = "kyren.codes";
forceSSL = true;

View File

@@ -16,7 +16,10 @@
];
};
# Make sure the "eko" user has access to /srv/eko
environment.sessionVariables = rec {
WALLABAG_DATA = "$HOME/wallabag";
};
systemd.tmpfiles.rules = [
"d /srv/eko 0750 eko eko"
];

View File

@@ -15,6 +15,7 @@
# Make sure acme module is active for the "kyren.codes" ssl cert
acme.enable = true;
services.nginx.enable = true;
services.nginx.virtualHosts."git.kyren.codes" = {
useACMEHost = "kyren.codes";
forceSSL = true;

View File

@@ -19,6 +19,7 @@
# Make sure acme module is active for the "kyren.codes" ssl cert
acme.enable = true;
services.nginx.enable = true;
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
useACMEHost = "kyren.codes";

19
nixosModules/wallabag.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }: {
options = {
wallabag.enable = lib.mkEnableOption "enables wallabag";
};
config = lib.mkIf config.wallabag.enable {
users.groups.wallabag = { };
users.users.wallabag = {
createHome = false;
isNormalUser = true;
group = "wallabag";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren"
];
};
};
}