nix-conf/modules/local/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

2023-12-29 16:43:40 +01:00
{ config, lib, pkgs, ... }:
2023-05-19 20:53:02 +02:00
2023-12-30 23:39:33 +01: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 = {
sounds.enable = true;
mime.enable = true;
menus.enable = true;
icons.enable = true;
autostart.enable = true;
portal = {
enable = true;
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
2023-12-30 23:39:33 +01: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;
};
}
2023-05-19 20:53:02 +02:00