fixes in services
This commit is contained in:
parent
b18938a243
commit
3b4e092bd2
|
@ -19,6 +19,9 @@
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable microcode updates
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGlobalCompInit = true;
|
enableGlobalCompInit = true;
|
||||||
|
@ -35,13 +38,14 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim"; # FUCK NANO
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Copenhagen";
|
time.timeZone = "Europe/Copenhagen";
|
||||||
|
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# I know what im doing
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Defaults lecture = never
|
Defaults lecture = never
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -8,12 +8,11 @@ in {
|
||||||
}}/nextcloud-extras.nix"
|
}}/nextcloud-extras.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.etc."nextcloud-admin-pass".text = "supersecretpassword";
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = nextcloud-pkg;
|
package = nextcloud-pkg;
|
||||||
hostName = "localhost";
|
hostName = "localhost";
|
||||||
config.adminpassFile = "/etc/nextcloud-admin-pass";
|
config.adminpassFile = "/var/lib/db/nextcloud/admin-password";
|
||||||
config.dbtype = "sqlite";
|
config.dbtype = "sqlite";
|
||||||
webserver = "caddy";
|
webserver = "caddy";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
{ config, ... }:
|
{config, ...}: let
|
||||||
let
|
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
port = 8222;
|
port = 8222;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -24,8 +22,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ port ];
|
networking.firewall.allowedTCPPorts = [port];
|
||||||
networking.firewall.allowedUDPPorts = [ port ];
|
networking.firewall.allowedUDPPorts = [port];
|
||||||
|
|
||||||
services.nginx.virtualHosts."bitwarden.spoodythe.one" = {
|
services.nginx.virtualHosts."bitwarden.spoodythe.one" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue