Various changes...

This commit is contained in:
niten 2024-05-24 08:51:54 -07:00
parent 8e184394f2
commit f176509154
7 changed files with 48 additions and 28 deletions

View File

@ -95,12 +95,18 @@ in {
toString config.services.immichContainer.port
}/";
recommendedProxySettings = true;
extraConfig = ''
client_max_body_size 1024M;
'';
};
"pics.fudo.ninja".locations."/" = mkIf (hostname == immichHost) {
proxyPass = "http://127.0.0.1:${
toString config.services.immichContainer.port
}/";
recommendedProxySettings = true;
extraConfig = ''
client_max_body_size 1024M;
'';
};
};
};

View File

@ -259,6 +259,9 @@ in {
proxyPass = "http://immich.sea.fudo.org/";
proxyWebsockets = true;
recommendedProxySettings = true;
extraConfig = ''
client_max_body_size 1024M;
'';
};
};
};

View File

@ -10,12 +10,6 @@ in {
firewall.enable = false;
};
systemd.tmpfiles.rules = [
"L /etc/adjtime - - - - ${stateDir}/etc/adjtime"
"d ${stateDir}/lib/cups 755 root root - -"
"d ${stateDir}/lib/flatpak 755 root root - -"
];
services.xserver = {
layout = "us";
xkbVariant = mkForce "";
@ -47,13 +41,21 @@ in {
nixos.source = "/etc/nixos-live";
NIXOS.source = "${stateDir}/etc/NIXOS";
};
systemPackages = with pkgs; [ bluez-tools ];
systemPackages = with pkgs; [ bluez-tools steam-run ];
};
systemd.targets = {
systemd = {
tmpfiles.rules = [
"L /etc/adjtime - - - - ${stateDir}/etc/adjtime"
"d ${stateDir}/lib/cups 755 root root - -"
"d ${stateDir}/lib/flatpak 755 root root - -"
];
targets = {
sleep.enable = false;
suspend.enable = false;
hibernate.enable = false;
hybrid-sleep.enable = false;
};
};
}

View File

@ -79,7 +79,7 @@ in {
hardware = {
nvidia = {
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.production;
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
opengl = {
enable = true;
@ -90,19 +90,18 @@ in {
services.xserver.videoDrivers = [ "nvidia" ];
virtualisation = {
podman = {
docker = {
enable = true;
autoPrune.enable = true;
dockerSocket.enable = true;
dockerCompat = true;
# dockerSocket.enable = true;
# dockerCompat = true;
enableNvidia = true;
defaultNetwork.settings = {
dns_enabled = true;
network_dns_servers = [ "1.1.1.1" "8.8.4.4" ];
# defaultNetwork.settings = {
# dns_enabled = true;
# network_dns_servers = [ "1.1.1.1" "8.8.4.4" ];
# };
};
};
oci-containers.backend = "podman";
arion.backend = "podman-socket";
oci-containers.backend = "docker";
};
systemd.targets = {

View File

@ -57,8 +57,15 @@ in {
"When host keytab is available or changed, activate copy job.";
path = with pkgs; [ systemd ];
serviceConfig = { Type = "oneshot"; };
# after = [ "fudo-secrets.target" ];
script = "systemctl restart ${hostname}-copy-keytab.service";
serviceConfig = {
ExecStartPre = pkgs.writeShellScript "await-keytab.sh" ''
while [ ! -f /etc/krb5.keytab ]; do
sleep 5
done
exit 0
'';
ExecStart = "systemctl restart ${hostname}-copy-keytab.service";
};
};
"${hostname}-copy-keytab" = {

View File

@ -5707,11 +5707,11 @@
]
},
"locked": {
"lastModified": 1716347973,
"narHash": "sha256-Mbmxitjy0xKPBWPOFv92+IV3AJ8uBFzPmpYNjPakO9c=",
"lastModified": 1716501010,
"narHash": "sha256-WkyaJuIrtln77oDfW5WpCaQ9M79/gC7+ZOCNnViLt18=",
"ref": "refs/heads/master",
"rev": "8ac74302282ae0227a433ac2f6ebc508d7ca4a5f",
"revCount": 21,
"rev": "183544485546e9464d6a68cf5038e43ab1bd0613",
"revCount": 38,
"type": "git",
"url": "https://fudo.dev/public/immich-ml-container.git"
},

View File

@ -235,6 +235,9 @@
unstable.factorio-headless-experimental;
})
(final: prev: { inherit textfiles; })
(final: prev: {
nvidia-container-toolkit = unstable.nvidia-container-toolkit;
})
];
};