diff --git a/configuration.nix b/configuration.nix index 2180ef1..e2fe797 100755 --- a/configuration.nix +++ b/configuration.nix @@ -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 ''; diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 59071e4..4cf032b 100755 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -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"; }; diff --git a/services/vaultwarden.nix b/services/vaultwarden.nix index f0fd5f3..52512c6 100644 --- a/services/vaultwarden.nix +++ b/services/vaultwarden.nix @@ -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;