System: Refactor documentation and i18n attrsets
This commit is contained in:
@ -175,13 +175,14 @@ with mylib.networking; {
|
|||||||
|
|
||||||
documentation = {
|
documentation = {
|
||||||
enable = true;
|
enable = true;
|
||||||
man.enable = true;
|
# NOTE: Disable this while configuring stuff, it's slow
|
||||||
|
man.enable = config.documentation.enable;
|
||||||
man.generateCaches = true; # Slow but needed for neovim man picker
|
man.generateCaches = true; # Slow but needed for neovim man picker
|
||||||
info.enable = true;
|
info.enable = config.documentation.enable;
|
||||||
dev.enable = true;
|
dev.enable = config.documentation.enable;
|
||||||
doc.enable = false;
|
doc.enable = config.documentation.enable;
|
||||||
nixos = {
|
nixos = {
|
||||||
enable = true;
|
enable = config.documentation.enable;
|
||||||
includeAllModules = true;
|
includeAllModules = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -193,19 +194,22 @@ with mylib.networking; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n = {
|
i18n = let
|
||||||
defaultLocale = "en_US.UTF-8";
|
en = "en_US.UTF-8";
|
||||||
|
de = "de_DE.UTF-8";
|
||||||
|
in {
|
||||||
|
defaultLocale = en;
|
||||||
|
|
||||||
extraLocaleSettings = {
|
extraLocaleSettings = {
|
||||||
LC_ADDRESS = "de_DE.UTF-8";
|
LC_ADDRESS = de;
|
||||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
LC_IDENTIFICATION = de;
|
||||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
LC_MEASUREMENT = de;
|
||||||
LC_MONETARY = "de_DE.UTF-8";
|
LC_MONETARY = de;
|
||||||
LC_NAME = "de_DE.UTF-8";
|
LC_NAME = de;
|
||||||
LC_NUMERIC = "de_DE.UTF-8";
|
LC_NUMERIC = de;
|
||||||
LC_PAPER = "de_DE.UTF-8";
|
LC_PAPER = de;
|
||||||
LC_TELEPHONE = "de_DE.UTF-8";
|
LC_TELEPHONE = de;
|
||||||
LC_TIME = "de_DE.UTF-8";
|
LC_TIME = de;
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/179486
|
# https://github.com/NixOS/nixpkgs/issues/179486
|
||||||
@ -276,7 +280,6 @@ with mylib.networking; {
|
|||||||
programs = {
|
programs = {
|
||||||
adb.enable = true;
|
adb.enable = true;
|
||||||
dconf.enable = !headless;
|
dconf.enable = !headless;
|
||||||
fish.enable = true;
|
|
||||||
firejail.enable = true; # Use to run app in network namespace (e.g. through vpn)
|
firejail.enable = true; # Use to run app in network namespace (e.g. through vpn)
|
||||||
fuse.userAllowOther = true; # Allow users to mount e.g. samba shares (cifs)
|
fuse.userAllowOther = true; # Allow users to mount e.g. samba shares (cifs)
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
@ -284,6 +287,11 @@ with mylib.networking; {
|
|||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
nix-ld.enable = true; # Load dynamically linked executables
|
nix-ld.enable = true; # Load dynamically linked executables
|
||||||
|
|
||||||
|
fish = {
|
||||||
|
enable = true;
|
||||||
|
generateCompletions = config.documentation.enable;
|
||||||
|
};
|
||||||
|
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableBrowserSocket = true;
|
enableBrowserSocket = true;
|
||||||
|
Reference in New Issue
Block a user