Added top-level config.
This commit is contained in:
@@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -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 = "";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -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"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user