Compare commits
No commits in common. "fe49e00096ce728ed36f6bd9857492be3617671a" and "47c8d1c4ead5c931409ab7341cecd332e66548a6" have entirely different histories.
fe49e00096
...
47c8d1c4ea
|
@ -89,22 +89,8 @@
|
||||||
|
|
||||||
users.users.materus = {
|
users.users.materus = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [ "audio" "video" "render" "pipewire" "wheel" "networkmanager" "input" "kvm" "libvirt-qemu" "libvirt" "libvirtd" "podman" "lxd" ]; # Enable ‘sudo’ for the user.
|
||||||
"audio"
|
shell = pkgs.bashInteractive;
|
||||||
"video"
|
|
||||||
"render"
|
|
||||||
"pipewire"
|
|
||||||
"wheel"
|
|
||||||
"networkmanager"
|
|
||||||
"input"
|
|
||||||
"kvm"
|
|
||||||
"libvirt-qemu"
|
|
||||||
"libvirt"
|
|
||||||
"libvirtd"
|
|
||||||
"podman"
|
|
||||||
"lxd"
|
|
||||||
]; # Enable ‘sudo’ for the user.
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
description = "Mateusz Słodkowicz";
|
description = "Mateusz Słodkowicz";
|
||||||
# packages = with pkgs; [
|
# packages = with pkgs; [
|
||||||
# firefox
|
# firefox
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
{ materusArg, config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
options.waffentragerService.auth.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable auth";
|
|
||||||
|
|
||||||
config =
|
|
||||||
let
|
|
||||||
cfg = config.auth.postgresql;
|
|
||||||
in
|
|
||||||
lib.mkIf cfg.enable {
|
|
||||||
waffentragerService.elements.enable = true;
|
|
||||||
waffentragerService.nginx.enable = true;
|
|
||||||
|
|
||||||
services.postgresql.enable = true;
|
|
||||||
services.postgresql.package = pkgs."postgresql_${cfg.version}";
|
|
||||||
services.postgresql.dataDir = "${config.waffentragerService.elements.postgresqlDir}/${cfg.version}";
|
|
||||||
services.postgresql.enableJIT = true;
|
|
||||||
services.postgresql.authentication = pkgs.lib.mkOverride 10 ''
|
|
||||||
local all all trust
|
|
||||||
host all all 127.0.0.1/32 scram-sha-256
|
|
||||||
'';
|
|
||||||
systemd.services.postgresql = {
|
|
||||||
partOf = [ "elements-mount.service" ];
|
|
||||||
requires = [ "elements-mount.service" ];
|
|
||||||
after = [ "elements-mount.service" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,7 +8,6 @@
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./auth.nix
|
|
||||||
];
|
];
|
||||||
waffentragerService.elements.enable = true;
|
waffentragerService.elements.enable = true;
|
||||||
waffentragerService.postgresql.enable = true;
|
waffentragerService.postgresql.enable = true;
|
||||||
|
@ -16,5 +15,4 @@
|
||||||
waffentragerService.gitea.enable = true;
|
waffentragerService.gitea.enable = true;
|
||||||
waffentragerService.nginx.enable = true;
|
waffentragerService.nginx.enable = true;
|
||||||
waffentragerService.nextcloud.enable = true;
|
waffentragerService.nextcloud.enable = true;
|
||||||
waffentragerService.auth.enable = true;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue