This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -4,10 +4,12 @@
config,
inputs,
...
}: let
}:
let
inherit (lib) mkIf mkOption types;
cfg = config.nixos.system.devpkgs;
in {
in
{
options = {
nixos.system.devpkgs = {
enable = mkOption {

View File

@@ -4,10 +4,12 @@
config,
inputs,
...
}: let
}:
let
inherit (lib) mkIf mkOption types;
cfg = config.nixos.system.fonts;
in {
in
{
options = {
nixos.system.fonts = {
enable = mkOption {
@@ -49,10 +51,10 @@ in {
];
fontconfig.defaultFonts = {
serif = ["Tinos"];
sansSerif = ["Inter"];
monospace = ["Input Mono Narrow Light"];
emoji = ["Noto Color Emoji"];
serif = [ "Tinos" ];
sansSerif = [ "Inter" ];
monospace = [ "Input Mono Narrow Light" ];
emoji = [ "Noto Color Emoji" ];
};
};
};

View File

@@ -2,8 +2,14 @@
config,
lib,
...
}: let
inherit (lib) mkIf mkOption mkDefault types;
}:
let
inherit (lib)
mkIf
mkOption
mkDefault
types
;
cfg = config.nixos.system.locale;
defaultCategories = [
"LC_ADDRESS"
@@ -16,7 +22,8 @@
"LC_TELEPHONE"
"LC_TIME"
];
in {
in
{
options = {
nixos.system.locale = {
enable = mkOption {
@@ -58,7 +65,7 @@ in {
time.timeZone = mkDefault cfg.timeZone;
i18n.defaultLocale = mkDefault cfg.defaultLocale;
i18n.extraLocaleSettings = mkIf (cfg.extraLocale != null) (
lib.foldl' (attrs: lc: attrs // {"${lc}" = cfg.extraLocale;}) {} cfg.categories
lib.foldl' (attrs: lc: attrs // { "${lc}" = cfg.extraLocale; }) { } cfg.categories
);
};
}

View File

@@ -3,10 +3,17 @@
config,
pkgs,
...
}: let
inherit (lib) mkIf mkOption mkEnableOption types;
}:
let
inherit (lib)
mkIf
mkOption
mkEnableOption
types
;
cfg = config.nixos.system.xdg;
in {
in
{
options = {
nixos.system.xdg = {
enable = mkEnableOption "Enable XDG portal.";
@@ -23,10 +30,13 @@ in {
enable = true;
xdgOpenUsePortal = cfg.xdgOpenUsePortal;
config = {
common.default = ["gtk"];
hyprland.default = ["gtk" "hyprland"];
common.default = [ "gtk" ];
hyprland.default = [
"gtk"
"hyprland"
];
};
extraPortals = [pkgs.xdg-desktop-portal-gtk];
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
};
}