Added top-level config.

This commit is contained in:
Raphaël Numbus
2026-02-25 13:13:46 +01:00
parent dd47755f74
commit bc3de08c2b
5 changed files with 62 additions and 54 deletions
+2
View File
@@ -1,7 +1,9 @@
{ config, ... }: { config, ... }:
{ {
config = {
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
};
} }
+2
View File
@@ -1,6 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
{ {
config = {
i18n.defaultLocale = "${config.numbus.locale}.UTF-8"; i18n.defaultLocale = "${config.numbus.locale}.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "${config.numbus.locale}.UTF-8"; LC_ADDRESS = "${config.numbus.locale}.UTF-8";
@@ -19,4 +20,5 @@
layout = lib.toLower config.numbus.language; layout = lib.toLower config.numbus.language;
variant = ""; variant = "";
}; };
};
} }
+2
View File
@@ -5,6 +5,7 @@ let
in in
{ {
config = {
systemd.services.hd-idle = { systemd.services.hd-idle = {
description = "External HD spin down daemon"; description = "External HD spin down daemon";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@@ -25,4 +26,5 @@ in
"pcie_aspm=force" "pcie_aspm=force"
"consoleblank=60" "consoleblank=60"
]; ];
};
} }
+2
View File
@@ -1,6 +1,7 @@
{ config, inputs, ... }: { config, inputs, ... }:
{ {
config = {
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
allowReboot = false; allowReboot = false;
@@ -18,4 +19,5 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
};
} }
+2 -2
View File
@@ -9,7 +9,7 @@ let
databaseVersion = "14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23"; databaseVersion = "14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23";
# Helper # Helper
helper = import ./lib.nix { inherit config pkgs lib; }; helper = import ./lib.nix { inherit config pkgs lib; };
cfg = config.numbus.services.${name}; cfg = config.numbus.services.immich;
# Container configuration # Container configuration
name = "immich"; name = "immich";
in in
@@ -29,7 +29,7 @@ helper.mkPodmanService {
DB_HOSTNAME = "immich-database"; DB_HOSTNAME = "immich-database";
UPLOAD_LOCATION = "${cfg.dataDir}"; UPLOAD_LOCATION = "${cfg.dataDir}";
DB_DATA_LOCATION = "${cfg.configDir}/database"; DB_DATA_LOCATION = "${cfg.configDir}/database";
TZ = "${time.timeZone}"; TZ = "${config.time.timeZone}";
}; };
dirPermissions = [ dirPermissions = [
"100999:users ${cfg.dataDir}" "100999:users ${cfg.dataDir}"