2024-07-10 23:02:54 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-05-19 20:53:02 +02:00
|
|
|
|
2024-07-10 23:02:54 +02:00
|
|
|
let
|
|
|
|
cfg = config.jopejoe1.local;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.jopejoe1.local = {
|
|
|
|
enable = lib.mkEnableOption "Enable Locals";
|
|
|
|
};
|
2023-05-19 20:53:02 +02:00
|
|
|
|
2023-12-29 16:43:40 +01:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
xdg = {
|
2024-04-19 18:12:23 +02:00
|
|
|
sounds.enable = config.jopejoe1.gui.enable;
|
2023-12-29 16:43:40 +01:00
|
|
|
mime.enable = true;
|
2024-04-19 18:12:23 +02:00
|
|
|
menus.enable = config.jopejoe1.gui.enable;
|
|
|
|
icons.enable = config.jopejoe1.gui.enable;
|
2023-12-29 16:43:40 +01:00
|
|
|
autostart.enable = true;
|
|
|
|
portal = {
|
2024-04-19 18:12:23 +02:00
|
|
|
enable = config.jopejoe1.gui.enable;
|
2023-12-29 16:43:40 +01:00
|
|
|
extraPortals = with pkgs; [ xdg-desktop-portal ];
|
|
|
|
};
|
2023-05-19 20:53:02 +02:00
|
|
|
};
|
|
|
|
|
2023-12-29 16:43:40 +01:00
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_NZ.UTF-8";
|
|
|
|
extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
LC_CTYPE = "de_DE.UTF-8";
|
|
|
|
LC_COLLATE = "de_DE.UTF-8";
|
|
|
|
LC_MESSAGES = "en_NZ.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
2023-05-19 20:53:02 +02:00
|
|
|
|
2024-07-10 23:02:54 +02:00
|
|
|
environment.variables = {
|
|
|
|
LOG_ICONS = "true";
|
|
|
|
};
|
2023-05-19 20:53:02 +02:00
|
|
|
|
2023-12-29 16:43:40 +01:00
|
|
|
fonts.fontDir.enable = true;
|
|
|
|
};
|
|
|
|
}
|