fixes in services

This commit is contained in:
Snorre 2025-03-03 15:57:16 +01:00
parent b18938a243
commit 3b4e092bd2
3 changed files with 10 additions and 9 deletions

View file

@ -19,6 +19,9 @@
timeout = 0;
};
# Enable microcode updates
hardware.enableRedistributableFirmware = true;
programs.zsh = {
enable = true;
enableGlobalCompInit = true;
@ -35,13 +38,14 @@
];
environment.variables = {
EDITOR = "vim";
EDITOR = "vim"; # FUCK NANO
};
time.timeZone = "Europe/Copenhagen";
security.sudo = {
enable = true;
# I know what im doing
extraConfig = ''
Defaults lecture = never
'';

View file

@ -8,12 +8,11 @@ in {
}}/nextcloud-extras.nix"
];
environment.etc."nextcloud-admin-pass".text = "supersecretpassword";
services.nextcloud = {
enable = true;
package = nextcloud-pkg;
hostName = "localhost";
config.adminpassFile = "/etc/nextcloud-admin-pass";
config.adminpassFile = "/var/lib/db/nextcloud/admin-password";
config.dbtype = "sqlite";
webserver = "caddy";
};

View file

@ -1,9 +1,7 @@
{ config, ... }:
let
{config, ...}: let
host = "127.0.0.1";
port = 8222;
in
{
in {
services.vaultwarden = {
enable = true;
@ -24,8 +22,8 @@ in
};
};
networking.firewall.allowedTCPPorts = [ port ];
networking.firewall.allowedUDPPorts = [ port ];
networking.firewall.allowedTCPPorts = [port];
networking.firewall.allowedUDPPorts = [port];
services.nginx.virtualHosts."bitwarden.spoodythe.one" = {
enableACME = true;