treewide: use inherit for attribute assignments

This change converts redundant attribute assignments of the form `a =
a;` or `a = someSet.a;` into cleaner `inherit` statements. This reduces
verbosity and follows common Nix style for bringing attributes into
scope.

Statix Codes: W03 (manual_inherit), W04 (manual_inherit_from)

Also include statix and the rule in our configuration.
This commit is contained in:
Austin Horstman
2026-04-07 22:46:12 -05:00
parent 9ddbb69d18
commit 01ea51d706
218 changed files with 351 additions and 317 deletions

View File

@@ -22,7 +22,7 @@ Also make sure to read the guidelines found at
- [ ] Change is backwards compatible. - [ ] Change is backwards compatible.
- [ ] Code formatted with `nix fmt` or - [ ] Code formatted with `nix fmt` or
`nix-shell -p treefmt nixfmt deadnix keep-sorted nixf-diagnose --run treefmt`. `nix-shell -A dev --run treefmt`.
- [ ] Code tested through `nix run .#tests -- test-all` or - [ ] Code tested through `nix run .#tests -- test-all` or
`nix-shell --pure tests -A run.all`. `nix-shell --pure tests -A run.all`.

View File

@@ -153,11 +153,15 @@ let
config = lib.listToAttrs (map poisonAttr (lib.filter (n: n != "_module") (lib.attrNames options))); config = lib.listToAttrs (map poisonAttr (lib.filter (n: n != "_module") (lib.attrNames options)));
}; };
options = inherit
(docsLib.evalModules { (
modules = modules ++ [ poisonModule ]; (docsLib.evalModules {
class = "homeManager"; modules = modules ++ [ poisonModule ];
}).options; class = "homeManager";
})
)
options
;
in in
pkgs.buildPackages.nixosOptionsDoc ( pkgs.buildPackages.nixosOptionsDoc (
{ {

View File

@@ -75,8 +75,7 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
docs = import ./default.nix { docs = import ./default.nix {
inherit pkgs lib; inherit pkgs lib;
release = releaseInfo.release; inherit (releaseInfo) isReleaseBranch release;
isReleaseBranch = releaseInfo.isReleaseBranch;
}; };
in in
{ {

View File

@@ -210,7 +210,7 @@
legacyPackages = forAllPkgs ( legacyPackages = forAllPkgs (
pkgs: pkgs:
let let
system = pkgs.stdenv.hostPlatform.system; inherit (pkgs.stdenv.hostPlatform) system;
in in
(buildTests system) (buildTests system)
// (integrationTestPackages system) // (integrationTestPackages system)

View File

@@ -68,7 +68,7 @@ in
{ {
meta = { meta = {
numUnread = length newsUnread; numUnread = length newsUnread;
display = newsJson.display; inherit (newsJson) display;
ids = concatStringsSep "\n" (map (e: e.id) newsJson.entries); ids = concatStringsSep "\n" (map (e: e.id) newsJson.entries);
}; };
news = { news = {

View File

@@ -6,6 +6,7 @@ mkShell {
name = "devShell"; name = "devShell";
packages = [ packages = [
pkgs.coreutils pkgs.coreutils
pkgs.statix
formatter formatter
]; ];
} }

View File

@@ -1,7 +1,20 @@
{ pkgs }: { pkgs }:
let
statixFormatter = pkgs.writeShellApplication {
name = "treefmt-statix";
text = ''
set -eu
for file in "$@"; do
${pkgs.statix}/bin/statix fix --config ${../statix.toml} -- "$file"
done
'';
};
in
pkgs.treefmt.withConfig { pkgs.treefmt.withConfig {
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
nixfmt nixfmt
statixFormatter
deadnix deadnix
keep-sorted keep-sorted
nixf-diagnose nixf-diagnose

View File

@@ -10,8 +10,7 @@ let
env = import ../modules { env = import ../modules {
configuration = configuration =
if confAttr == "" || confAttr == null then confPath else (import confPath).${confAttr}; if confAttr == "" || confAttr == null then confPath else (import confPath).${confAttr};
pkgs = pkgs; inherit check pkgs;
check = check;
}; };
in in

View File

@@ -1,6 +1,6 @@
{ lib }: { lib }:
{ {
hm = (import ../modules/lib/stdlib-extended.nix lib).hm; inherit ((import ../modules/lib/stdlib-extended.nix lib)) hm;
homeManagerConfiguration = homeManagerConfiguration =
{ {

View File

@@ -127,7 +127,7 @@ let
}; };
config = { config = {
name = name; inherit name;
}; };
}; };

View File

@@ -119,7 +119,7 @@ let
}; };
config = { config = {
name = name; inherit name;
}; };
}; };

View File

@@ -535,7 +535,7 @@ let
config = lib.mkMerge [ config = lib.mkMerge [
{ {
name = name; inherit name;
maildir = lib.mkOptionDefault { path = "${name}"; }; maildir = lib.mkOptionDefault { path = "${name}"; };
} }

View File

@@ -59,7 +59,7 @@ let
in in
module module
// { // {
activationPackage = module.config.home.activationPackage; inherit (module.config.home) activationPackage;
# For backwards compatibility. Please use activationPackage instead. # For backwards compatibility. Please use activationPackage instead.
activation-script = module.config.home.activationPackage; activation-script = module.config.home.activationPackage;

View File

@@ -30,14 +30,16 @@ let
in in
sortedFiles; sortedFiles;
fileOverlapResolution = config.home.fileOverlapResolution; inherit (config.home) fileOverlapResolution homeDirectory;
homeDirectory = config.home.homeDirectory; inherit
(
fileType = (import lib/file-type.nix {
(import lib/file-type.nix { inherit homeDirectory lib pkgs;
inherit homeDirectory lib pkgs; })
}).fileType; )
fileType
;
sourceStorePath = sourceStorePath =
file: file:

View File

@@ -89,7 +89,7 @@ in
dagBefore = dag: name: builtins.attrNames (filterAttrs (n: v: builtins.elem name v.before) dag); dagBefore = dag: name: builtins.attrNames (filterAttrs (n: v: builtins.elem name v.before) dag);
normalizedDag = mapAttrs (n: v: { normalizedDag = mapAttrs (n: v: {
name = n; name = n;
data = v.data; inherit (v) data;
after = v.after ++ dagBefore dag n; after = v.after ++ dagBefore dag n;
}) dag; }) dag;
before = a: b: builtins.elem a.name b.after; before = a: b: builtins.elem a.name b.after;

View File

@@ -67,7 +67,7 @@ rec {
description = "DAG of ${elemType.description}"; description = "DAG of ${elemType.description}";
inherit (attrEquivalent) check merge emptyValue; inherit (attrEquivalent) check merge emptyValue;
getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "<name>" ]); getSubOptions = prefix: elemType.getSubOptions (prefix ++ [ "<name>" ]);
getSubModules = elemType.getSubModules; inherit (elemType) getSubModules;
substSubModules = m: dagOf (elemType.substSubModules m); substSubModules = m: dagOf (elemType.substSubModules m);
functor = (defaultFunctor name) // { functor = (defaultFunctor name) // {
wrapped = elemType; wrapped = elemType;

View File

@@ -116,7 +116,7 @@ rec {
+ " ${showFiles (getFiles defs)}." + " ${showFiles (getFiles defs)}."
) )
else if gvar.isArray sharedDefType && allChecked then else if gvar.isArray sharedDefType && allChecked then
gvar.mkValue ((types.listOf gvariant).merge loc (map (d: d // { value = d.value.value; }) vdefs)) gvar.mkValue ((types.listOf gvariant).merge loc (map (d: d // { inherit (d.value) value; }) vdefs))
// { // {
type = sharedDefType; type = sharedDefType;
} }

View File

@@ -19,7 +19,7 @@ in
enable = lib.mkEnableOption "EditorConfig home configuration file"; enable = lib.mkEnableOption "EditorConfig home configuration file";
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$HOME/.editorconfig`. Configuration written to {file}`$HOME/.editorconfig`.

View File

@@ -13,7 +13,7 @@ let
cfg = config.fonts.fontconfig; cfg = config.fonts.fontconfig;
profileDirectory = config.home.profileDirectory; inherit (config.home) profileDirectory;
fontConfigFileType = lib.types.submodule ( fontConfigFileType = lib.types.submodule (
{ name, ... }: { name, ... }:

View File

@@ -349,7 +349,7 @@ in
{ {
option = "qt.platformTheme.name"; option = "qt.platformTheme.name";
name = deprecateKde6 cfg.platformTheme.name "qt.platformTheme.name"; name = deprecateKde6 cfg.platformTheme.name "qt.platformTheme.name";
package = cfg.platformTheme.package; inherit (cfg.platformTheme) package;
}; };
# Necessary because home.sessionVariables doesn't support mkIf # Necessary because home.sessionVariables doesn't support mkIf

View File

@@ -15,11 +15,15 @@ let
cfg = config.xdg; cfg = config.xdg;
fileType = inherit
(import ../lib/file-type.nix { (
inherit (config.home) homeDirectory; (import ../lib/file-type.nix {
inherit lib pkgs; inherit (config.home) homeDirectory;
}).fileType; inherit lib pkgs;
})
)
fileType
;
defaultCacheHome = "${config.home.homeDirectory}/.cache"; defaultCacheHome = "${config.home.homeDirectory}/.cache";
defaultConfigHome = "${config.home.homeDirectory}/.config"; defaultConfigHome = "${config.home.homeDirectory}/.config";

View File

@@ -216,7 +216,7 @@ in
}; };
launchd.agents.aerospace = { launchd.agents.aerospace = {
enable = cfg.launchd.enable; inherit (cfg.launchd) enable;
config = { config = {
Program = "${cfg.package}/Applications/AeroSpace.app/Contents/MacOS/AeroSpace"; Program = "${cfg.package}/Applications/AeroSpace.app/Contents/MacOS/AeroSpace";
KeepAlive = cfg.launchd.keepAlive; KeepAlive = cfg.launchd.keepAlive;

View File

@@ -34,7 +34,7 @@ in
}; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -93,7 +93,7 @@ let
[ "[[${name}]]" ] [ "[[${name}]]" ]
++ mapAttrsToList (n: v: n + "=" + v) ( ++ mapAttrsToList (n: v: n + "=" + v) (
{ {
address = address; inherit address;
realname = realName; realname = realName;
sendmail_command = optionalString (alot.sendMailCommand != null) alot.sendMailCommand; sendmail_command = optionalString (alot.sendMailCommand != null) alot.sendMailCommand;
} }

View File

@@ -26,7 +26,7 @@ in
package = lib.mkPackageOption pkgs "aria2" { nullable = true; }; package = lib.mkPackageOption pkgs "aria2" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = keyValueFormat.type; inherit (keyValueFormat) type;
default = { }; default = { };
description = '' description = ''
Options to add to {file}`aria2.conf` file. Options to add to {file}`aria2.conf` file.

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs [ "python3Packages" "aria2p" ] { nullable = true; }; package = lib.mkPackageOption pkgs [ "python3Packages" "aria2p" ] { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = { example = {
key_bindings = { key_bindings = {

View File

@@ -108,7 +108,7 @@ in
}; };
extraConfig = mkOption { extraConfig = mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -39,7 +39,7 @@ let
"*" "*"
] ]
); );
getSubModules = elemType.getSubModules; inherit (elemType) getSubModules;
substSubModules = mod: matrixOf n m (elemType.substSubModules mod); substSubModules = mod: matrixOf n m (elemType.substSubModules mod);
functor = (lib.defaultFunctor name) // { functor = (lib.defaultFunctor name) // {
wrapped = elemType; wrapped = elemType;

View File

@@ -26,7 +26,7 @@ in
package = lib.mkPackageOption pkgs "bacon" { nullable = true; }; package = lib.mkPackageOption pkgs "bacon" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
example = { example = {
jobs.default = { jobs.default = {

View File

@@ -61,7 +61,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to
@@ -101,8 +101,7 @@ in
(mkIf (cfg.mpdIntegration.enableStats || cfg.mpdIntegration.enableUpdate) { (mkIf (cfg.mpdIntegration.enableStats || cfg.mpdIntegration.enableUpdate) {
programs.beets.settings.mpd = { programs.beets.settings.mpd = {
host = cfg.mpdIntegration.host; inherit (cfg.mpdIntegration) host port;
port = cfg.mpdIntegration.port;
}; };
}) })

View File

@@ -21,7 +21,7 @@ in
package = lib.mkPackageOption pkgs "bluetuith" { nullable = true; }; package = lib.mkPackageOption pkgs "bluetuith" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -42,7 +42,7 @@ let
}; };
extraConfigOption = mkOption { extraConfigOption = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = "Extra settings."; description = "Extra settings.";
}; };
@@ -248,8 +248,8 @@ let
removeNullValues ( removeNullValues (
{ {
source_directories = config.location.sourceDirectories; source_directories = config.location.sourceDirectories;
patterns = config.location.patterns; inherit (config.location) patterns repositories;
repositories = config.location.repositories; inherit (config.consistency) checks;
encryption_passcommand = config.storage.encryptionPasscommand; encryption_passcommand = config.storage.encryptionPasscommand;
keep_within = config.retention.keepWithin; keep_within = config.retention.keepWithin;
keep_secondly = config.retention.keepSecondly; keep_secondly = config.retention.keepSecondly;
@@ -259,7 +259,6 @@ let
keep_weekly = config.retention.keepWeekly; keep_weekly = config.retention.keepWeekly;
keep_monthly = config.retention.keepMonthly; keep_monthly = config.retention.keepMonthly;
keep_yearly = config.retention.keepYearly; keep_yearly = config.retention.keepYearly;
checks = config.consistency.checks;
} }
// config.location.extraConfig // config.location.extraConfig
// config.storage.extraConfig // config.storage.extraConfig

View File

@@ -23,7 +23,7 @@ in
package = lib.mkPackageOption pkgs "bottom" { nullable = true; }; package = lib.mkPackageOption pkgs "bottom" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to

View File

@@ -111,7 +111,7 @@ in
]; ];
home.file = lib.mkIf (cfg.rules != [ ]) { home.file = lib.mkIf (cfg.rules != [ ]) {
"${configPath}".source = settingsFormat.generate "boxxy-config.yaml" { rules = cfg.rules; }; "${configPath}".source = settingsFormat.generate "boxxy-config.yaml" { inherit (cfg) rules; };
}; };
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ]; home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs "bun" { nullable = true; }; package = lib.mkPackageOption pkgs "bun" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs "cava" { nullable = true; }; package = lib.mkPackageOption pkgs "cava" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFmt.type; inherit (iniFmt) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -24,7 +24,7 @@ in
settings = { settings = {
general = mkOption { general = mkOption {
type = jsonFmt.type; inherit (jsonFmt) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {
@@ -57,7 +57,7 @@ in
}; };
cava = mkOption { cava = mkOption {
type = iniFmt.type; inherit (iniFmt) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -253,7 +253,7 @@ let
} }
// lib.optionalAttrs (cfg.plasmaSupport or false) { // lib.optionalAttrs (cfg.plasmaSupport or false) {
plasmaSupport = true; plasmaSupport = true;
kdePackages = pkgs.kdePackages; inherit (pkgs) kdePackages;
} }
) )
else else

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs "clock-rs" { nullable = true; }; package = lib.mkPackageOption pkgs "clock-rs" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = "The configuration file to be used for clock-rs"; description = "The configuration file to be used for clock-rs";
example = lib.literalExpression '' example = lib.literalExpression ''

View File

@@ -75,7 +75,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -21,7 +21,7 @@ in
package = lib.mkPackageOption pkgs "earthly" { nullable = true; }; package = lib.mkPackageOption pkgs "earthly" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to ~/.earthly/config.yml file. Configuration written to ~/.earthly/config.yml file.

View File

@@ -54,7 +54,7 @@ in
eclipse = cfg.package; eclipse = cfg.package;
jvmArgs = jvmArgs =
cfg.jvmArgs ++ lib.optional cfg.enableLombok "-javaagent:${pkgs.lombok}/share/java/lombok.jar"; cfg.jvmArgs ++ lib.optional cfg.enableLombok "-javaagent:${pkgs.lombok}/share/java/lombok.jar";
plugins = cfg.plugins; inherit (cfg) plugins;
}) })
]; ];
}; };

View File

@@ -27,7 +27,7 @@ in
enable = mkEnableOption "element-desktop"; enable = mkEnableOption "element-desktop";
package = mkPackageOption pkgs "element-desktop" { nullable = true; }; package = mkPackageOption pkgs "element-desktop" { nullable = true; };
settings = mkOption { settings = mkOption {
type = formatter.type; inherit (formatter) type;
default = { }; default = { };
example = '' example = ''
{ {

View File

@@ -22,7 +22,7 @@ let
in in
epkgs.overrideScope cfg.overrides; epkgs.overrideScope cfg.overrides;
emacsWithPackages = emacsPackages.emacsWithPackages; inherit (emacsPackages) emacsWithPackages;
extraPackages = extraPackages =
epkgs: epkgs:

View File

@@ -107,7 +107,7 @@ in
package = lib.mkPackageOption pkgs "eza" { nullable = true; }; package = lib.mkPackageOption pkgs "eza" { nullable = true; };
theme = mkOption { theme = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Written to {file}`$XDG_CONFIG_HOME/eza/theme.yml` Written to {file}`$XDG_CONFIG_HOME/eza/theme.yml`

View File

@@ -30,7 +30,7 @@ in
package = mkPackageOption pkgs "fastfetch" { nullable = true; }; package = mkPackageOption pkgs "fastfetch" { nullable = true; };
settings = mkOption { settings = mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {

View File

@@ -113,9 +113,7 @@ let
let let
containerToIdentity = _: container: { containerToIdentity = _: container: {
userContextId = container.id; userContextId = container.id;
name = container.name; inherit (container) color icon name;
icon = container.icon;
color = container.color;
public = true; public = true;
}; };
in in
@@ -178,7 +176,7 @@ let
let let
# The configuration expected by the Firefox wrapper. # The configuration expected by the Firefox wrapper.
fcfg = { fcfg = {
enableGnomeExtensions = cfg.enableGnomeExtensions; inherit (cfg) enableGnomeExtensions;
}; };
# A bit of hackery to force a config into the wrapper. # A bit of hackery to force a config into the wrapper.
@@ -1062,14 +1060,13 @@ in
}; };
"${cfg.profilesPath}/${profile.path}/search.json.mozlz4" = mkIf (profile.search.enable) { "${cfg.profilesPath}/${profile.path}/search.json.mozlz4" = mkIf (profile.search.enable) {
enable = profile.search.enable; inherit (profile.search) enable force;
force = profile.search.force;
source = profile.search.file; source = profile.search.file;
}; };
"${cfg.profilesPath}/${profile.path}/handlers.json" = mkIf (profile.handlers.enable) { "${cfg.profilesPath}/${profile.path}/handlers.json" = mkIf (profile.handlers.enable) {
source = profile.handlers.configFile; source = profile.handlers.configFile;
force = profile.handlers.force; inherit (profile.handlers) force;
}; };
"${cfg.profilesPath}/${profile.path}/extensions" = mkIf (profile.extensions.packages != [ ]) { "${cfg.profilesPath}/${profile.path}/extensions" = mkIf (profile.extensions.packages != [ ]) {

View File

@@ -182,7 +182,7 @@ in
}; };
finalSettings = lib.mkOption { finalSettings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
internal = true; internal = true;
readOnly = true; readOnly = true;
default = { default = {

View File

@@ -49,7 +49,7 @@ in
package = lib.mkPackageOption pkgs "firefoxpwa" { nullable = true; }; package = lib.mkPackageOption pkgs "firefoxpwa" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFmt.type; inherit (jsonFmt) type;
default = { }; default = { };
description = '' description = ''
Settings to be written to the configuration file. See Settings to be written to the configuration file. See
@@ -147,7 +147,7 @@ in
}; };
}; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFmt.type; inherit (jsonFmt) type;
default = { }; default = { };
description = '' description = ''
Settings for this site. See Settings for this site. See
@@ -166,12 +166,12 @@ in
ulid = name; ulid = name;
profile = profile.name; profile = profile.name;
config = { config = {
name = config.name; inherit (config) name;
document_url = config.url; document_url = config.url;
manifest_url = config.manifestUrl; manifest_url = config.manifestUrl;
}; };
manifest = { manifest = {
name = config.name; inherit (config) name;
start_url = config.url; start_url = config.url;
}; };
}; };
@@ -181,7 +181,7 @@ in
); );
}; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFmt.type; inherit (jsonFmt) type;
default = { }; default = { };
description = '' description = ''
Settings for this profile. See Settings for this profile. See
@@ -193,7 +193,7 @@ in
config.settings = { config.settings = {
ulid = name; ulid = name;
name = config.name; inherit (config) name;
sites = builtins.attrNames config.sites; sites = builtins.attrNames config.sites;
}; };
} }
@@ -239,7 +239,7 @@ in
lib.mapAttrsToList (name: site: { lib.mapAttrsToList (name: site: {
"FFPWA-${name}" = lib.mkIf site.desktopEntry.enable { "FFPWA-${name}" = lib.mkIf site.desktopEntry.enable {
inherit (site.desktopEntry) icon categories; inherit (site.desktopEntry) icon categories;
name = site.settings.manifest.name; inherit (site.settings.manifest) name;
exec = "firefoxpwa site launch ${name} --protocol %u"; exec = "firefoxpwa site launch ${name} --protocol %u";
terminal = false; terminal = false;
}; };

View File

@@ -19,7 +19,7 @@ in
server.enable = lib.mkEnableOption "Foot terminal server"; server.enable = lib.mkEnableOption "Foot terminal server";
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to

View File

@@ -29,7 +29,7 @@ in
package = mkPackageOption pkgs "fuzzel" { nullable = true; }; package = mkPackageOption pkgs "fuzzel" { nullable = true; };
settings = mkOption { settings = mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs "gallery-dl" { nullable = true; }; package = lib.mkPackageOption pkgs "gallery-dl" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -21,7 +21,7 @@ in
package = lib.mkPackageOption pkgs "gh-dash" { nullable = true; }; package = lib.mkPackageOption pkgs "gh-dash" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -17,7 +17,7 @@ in
package = lib.mkPackageOption pkgs "git-cliff" { nullable = true; }; package = lib.mkPackageOption pkgs "git-cliff" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -257,7 +257,7 @@ let
else else
{ {
use-system-font = false; use-system-font = false;
font = pcfg.font; inherit (pcfg) font;
} }
) )
// ( // (
@@ -271,7 +271,7 @@ let
use-theme-colors = false; use-theme-colors = false;
foreground-color = pcfg.colors.foregroundColor; foreground-color = pcfg.colors.foregroundColor;
background-color = pcfg.colors.backgroundColor; background-color = pcfg.colors.backgroundColor;
palette = pcfg.colors.palette; inherit (pcfg.colors) palette;
} }
// lib.optionalAttrs (pcfg.allowBold != null) { // lib.optionalAttrs (pcfg.allowBold != null) {
allow-bold = pcfg.allowBold; allow-bold = pcfg.allowBold;

View File

@@ -17,7 +17,7 @@ in
package = lib.mkPackageOption pkgs "havoc" { nullable = true; }; package = lib.mkPackageOption pkgs "havoc" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to

View File

@@ -55,7 +55,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {

View File

@@ -16,7 +16,7 @@ let
# Needed for notmuch config, because the DB is here, and not in each # Needed for notmuch config, because the DB is here, and not in each
# account's dir # account's dir
maildirBasePath = config.accounts.email.maildirBasePath; inherit (config.accounts.email) maildirBasePath;
# make encryption config based on the given home-manager email # make encryption config based on the given home-manager email
# account TLS config # account TLS config
@@ -43,10 +43,10 @@ let
display-name = account.realName; display-name = account.realName;
default = account.primary; default = account.primary;
folder.aliases = { folder.aliases = {
inbox = account.folders.inbox; inherit (account.folders) inbox;
sent = account.folders.sent; inherit (account.folders) sent;
drafts = account.folders.drafts; inherit (account.folders) drafts;
trash = account.folders.trash; inherit (account.folders) trash;
}; };
}; };

View File

@@ -18,7 +18,7 @@ in
package = lib.mkPackageOption pkgs "hyfetch" { }; package = lib.mkPackageOption pkgs "hyfetch" { };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -24,7 +24,7 @@ in
package = lib.mkPackageOption pkgs "hyprpanel" { }; package = lib.mkPackageOption pkgs "hyprpanel" { };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
bar.battery.label = true; bar.battery.label = true;

View File

@@ -22,7 +22,7 @@ in
enable = mkEnableOption "i3bar-river"; enable = mkEnableOption "i3bar-river";
package = mkPackageOption pkgs "i3bar-river" { nullable = true; }; package = mkPackageOption pkgs "i3bar-river" { nullable = true; };
settings = mkOption { settings = mkOption {
type = formatter.type; inherit (formatter) type;
default = { }; default = { };
example = { example = {
background = "#282828ff"; background = "#282828ff";

View File

@@ -26,7 +26,7 @@ in
options = { options = {
blocks = mkOption { blocks = mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = [ default = [
{ block = "cpu"; } { block = "cpu"; }
{ {
@@ -93,7 +93,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
description = '' description = ''
Any extra options to add to i3status-rust Any extra options to add to i3status-rust
@@ -259,14 +259,14 @@ in
theme = theme =
if lib.versionAtLeast cfg.package.version "0.30.0" then if lib.versionAtLeast cfg.package.version "0.30.0" then
{ {
theme = cfgBar.theme; inherit (cfgBar) theme;
} }
else else
cfgBar.theme; cfgBar.theme;
icons = icons =
if lib.versionAtLeast cfg.package.version "0.30.0" then if lib.versionAtLeast cfg.package.version "0.30.0" then
{ {
icons = cfgBar.icons; inherit (cfgBar) icons;
} }
else else
cfgBar.icons; cfgBar.icons;

View File

@@ -20,7 +20,7 @@ in
package = lib.mkPackageOption pkgs "iamb" { nullable = true; }; package = lib.mkPackageOption pkgs "iamb" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -26,7 +26,7 @@ in
enable = lib.mkEnableOption "infat"; enable = lib.mkEnableOption "infat";
package = lib.mkPackageOption pkgs "infat" { nullable = true; }; package = lib.mkPackageOption pkgs "infat" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -32,7 +32,7 @@ in
package = mkPackageOption pkgs "inori" { nullable = true; }; package = mkPackageOption pkgs "inori" { nullable = true; };
settings = mkOption { settings = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {

View File

@@ -19,7 +19,7 @@ in
package = lib.mkPackageOption pkgs "joshuto" { }; package = lib.mkPackageOption pkgs "joshuto" { };
settings = mkOption { settings = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to
@@ -31,7 +31,7 @@ in
}; };
keymap = mkOption { keymap = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to
@@ -43,7 +43,7 @@ in
}; };
mimetype = mkOption { mimetype = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to
@@ -55,7 +55,7 @@ in
}; };
theme = mkOption { theme = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to Configuration written to

View File

@@ -16,7 +16,7 @@ in
package = lib.mkPackageOption pkgs "jqp" { nullable = true; }; package = lib.mkPackageOption pkgs "jqp" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = { example = {
theme = { theme = {

View File

@@ -52,7 +52,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = { example = {
user = { user = {

View File

@@ -43,7 +43,7 @@ in
package = lib.mkPackageOption pkgs "k9s" { nullable = true; }; package = lib.mkPackageOption pkgs "k9s" { nullable = true; };
settings = mkOption { settings = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$XDG_CONFIG_HOME/k9s/config.yaml` (linux) Configuration written to {file}`$XDG_CONFIG_HOME/k9s/config.yaml` (linux)
@@ -80,7 +80,7 @@ in
}; };
aliases = mkOption { aliases = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Aliases written to {file}`$XDG_CONFIG_HOME/k9s/aliases.yaml` (linux) Aliases written to {file}`$XDG_CONFIG_HOME/k9s/aliases.yaml` (linux)
@@ -96,7 +96,7 @@ in
}; };
hotKeys = mkOption { hotKeys = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Hotkeys written to {file}`$XDG_CONFIG_HOME/k9s/hotkeys.yaml` (linux) Hotkeys written to {file}`$XDG_CONFIG_HOME/k9s/hotkeys.yaml` (linux)
@@ -115,7 +115,7 @@ in
}; };
plugins = mkOption { plugins = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Plugins written to {file}`$XDG_CONFIG_HOME/k9s/plugins.yaml (linux)` Plugins written to {file}`$XDG_CONFIG_HOME/k9s/plugins.yaml (linux)`
@@ -147,7 +147,7 @@ in
}; };
views = mkOption { views = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Resource column views written to Resource column views written to

View File

@@ -543,7 +543,7 @@ let
kakouneWithPlugins = pkgs.wrapKakoune cfg.package { kakouneWithPlugins = pkgs.wrapKakoune cfg.package {
configure = { configure = {
plugins = cfg.plugins; inherit (cfg) plugins;
}; };
}; };

View File

@@ -42,7 +42,7 @@ in
package = lib.mkPackageOption pkgs "keepassxc" { nullable = true; }; package = lib.mkPackageOption pkgs "keepassxc" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -213,7 +213,7 @@ in
}; };
settings = mkOption { settings = mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -23,7 +23,7 @@ in
enable = mkEnableOption "kickoff"; enable = mkEnableOption "kickoff";
package = mkPackageOption pkgs "kickoff" { nullable = true; }; package = mkPackageOption pkgs "kickoff" { nullable = true; };
settings = mkOption { settings = mkOption {
type = formatter.type; inherit (formatter) type;
default = { }; default = { };
example = '' example = ''
padding = 100; padding = 100;

View File

@@ -25,7 +25,7 @@ in
package = mkPackageOption pkgs "kraft" { nullable = true; }; package = mkPackageOption pkgs "kraft" { nullable = true; };
settings = mkOption { settings = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$XDG_CONFIG_HOME/kraftkit/config.yaml`. Configuration written to {file}`$XDG_CONFIG_HOME/kraftkit/config.yaml`.

View File

@@ -31,7 +31,7 @@ in
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; }; enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
settings = mkOption { settings = mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
kubectl = lib.getExe pkgs.kubectl kubectl = lib.getExe pkgs.kubectl

View File

@@ -30,7 +30,7 @@ in
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; }; enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = { example = {
kind = "SwitchConfig"; kind = "SwitchConfig";

View File

@@ -30,7 +30,7 @@ let
''; '';
}; };
settings = mkOption { settings = mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$XDG_CONFIG_HOME/lapce/settings.toml`. Configuration written to {file}`$XDG_CONFIG_HOME/lapce/settings.toml`.
@@ -115,7 +115,7 @@ let
''; '';
}; };
keymaps = mkOption { keymaps = mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = [ ]; default = [ ];
description = '' description = ''
Keymaps written to {file}`$XDG_CONFIG_HOME/lapce/keymaps.toml`. Keymaps written to {file}`$XDG_CONFIG_HOME/lapce/keymaps.toml`.
@@ -231,7 +231,7 @@ in
{ {
configFile = { configFile = {
"${dir}/settings.toml".source = settingsFormat.generate "settings.toml" cfg.settings; "${dir}/settings.toml".source = settingsFormat.generate "settings.toml" cfg.settings;
"${dir}/keymaps.toml".source = settingsFormat.generate "keymaps.toml" { keymaps = cfg.keymaps; }; "${dir}/keymaps.toml".source = settingsFormat.generate "keymaps.toml" { inherit (cfg) keymaps; };
}; };
dataFile."${dir}/plugins".source = pluginsFromRegistry cfg.plugins; dataFile."${dir}/plugins".source = pluginsFromRegistry cfg.plugins;
}; };

View File

@@ -27,7 +27,7 @@ in
package = lib.mkPackageOption pkgs "lazydocker" { nullable = true; }; package = lib.mkPackageOption pkgs "lazydocker" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { default = {
commandTemplates.dockerCompose = "docker compose"; # Lazydocker uses docker-compose by default which will not work commandTemplates.dockerCompose = "docker compose"; # Lazydocker uses docker-compose by default which will not work
}; };

View File

@@ -29,7 +29,7 @@ in
package = lib.mkPackageOption pkgs "lazygit" { nullable = true; }; package = lib.mkPackageOption pkgs "lazygit" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
defaultText = lib.literalExpression "{ }"; defaultText = lib.literalExpression "{ }";
example = lib.literalExpression '' example = lib.literalExpression ''

View File

@@ -23,7 +23,7 @@ in
enable = mkEnableOption "lazysql"; enable = mkEnableOption "lazysql";
package = mkPackageOption pkgs "lazysql" { nullable = true; }; package = mkPackageOption pkgs "lazysql" { nullable = true; };
settings = mkOption { settings = mkOption {
type = formatter.type; inherit (formatter) type;
default = { }; default = { };
example = { }; example = { };
description = '' description = ''

View File

@@ -17,7 +17,7 @@ in
package = lib.mkPackageOption pkgs "looking-glass-client" { nullable = true; }; package = lib.mkPackageOption pkgs "looking-glass-client" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
description = "looking-glass-client settings."; description = "looking-glass-client settings.";
example = lib.literalExpression '' example = lib.literalExpression ''

View File

@@ -35,7 +35,7 @@ in
enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; }; enableZshIntegration = lib.hm.shell.mkZshIntegrationOption { inherit config; };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = { example = {
date = "relative"; date = "relative";

View File

@@ -7,7 +7,7 @@
let let
cfg = config.programs.mc; cfg = config.programs.mc;
type = (pkgs.formats.ini { }).type; inherit ((pkgs.formats.ini { })) type;
in in
{ {
options.programs.mc = { options.programs.mc = {

View File

@@ -73,7 +73,7 @@ in
mcflyFzfPackage = lib.mkPackageOption pkgs "mcfly-fzf" { }; mcflyFzfPackage = lib.mkPackageOption pkgs "mcfly-fzf" { };
settings = mkOption { settings = mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -46,7 +46,7 @@ let
mkSmtp = account: { mkSmtp = account: {
hostname = account.smtp.host; hostname = account.smtp.host;
port = account.smtp.port; inherit (account.smtp) port;
auth = { auth = {
type = "auto"; type = "auto";
username = account.userName; username = account.userName;

View File

@@ -43,7 +43,7 @@ in
}; };
iniContent = mkOption { iniContent = mkOption {
type = iniFormat.type; inherit (iniFormat) type;
internal = true; internal = true;
}; };

View File

@@ -19,7 +19,7 @@ in
package = lib.mkPackageOption pkgs "micro" { nullable = true; }; package = lib.mkPackageOption pkgs "micro" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -23,7 +23,7 @@ in
package = lib.mkPackageOption pkgs "mistral-vibe" { nullable = true; }; package = lib.mkPackageOption pkgs "mistral-vibe" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -19,7 +19,7 @@ in
package = lib.mkPackageOption pkgs "mods" { }; package = lib.mkPackageOption pkgs "mods" { };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = '' example = ''
{ {

View File

@@ -20,7 +20,7 @@ in
package = lib.mkPackageOption pkgs "mr" { nullable = true; }; package = lib.mkPackageOption pkgs "mr" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$HOME/.mrconfig` Configuration written to {file}`$HOME/.mrconfig`

View File

@@ -22,7 +22,7 @@ let
[ "account ${name}" ] [ "account ${name}" ]
++ lib.mapAttrsToList (n: v: n + " " + v) ( ++ lib.mapAttrsToList (n: v: n + " " + v) (
{ {
host = smtp.host; inherit (smtp) host;
from = address; from = address;
auth = "on"; auth = "on";
user = userName; user = userName;

View File

@@ -20,7 +20,7 @@ in
package = lib.mkPackageOption pkgs "mypy" { nullable = true; }; package = lib.mkPackageOption pkgs "mypy" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFormat.type; inherit (iniFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -27,7 +27,7 @@ in
package = lib.mkPackageOption pkgs "navi" { }; package = lib.mkPackageOption pkgs "navi" { };
settings = lib.mkOption { settings = lib.mkOption {
type = yamlFormat.type; inherit (yamlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -20,7 +20,7 @@ in
package = lib.mkPackageOption pkgs "ncspot" { nullable = true; }; package = lib.mkPackageOption pkgs "ncspot" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -326,7 +326,7 @@ let
notmuchSection = notmuchSection =
account: account:
let let
virtualMailboxes = account.notmuch.neomutt.virtualMailboxes; inherit (account.notmuch.neomutt) virtualMailboxes;
in in
'' ''
# notmuch section # notmuch section

View File

@@ -20,7 +20,7 @@ in
package = lib.mkPackageOption pkgs "neovide" { nullable = true; }; package = lib.mkPackageOption pkgs "neovide" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = settingsFormat.type; inherit (settingsFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -27,7 +27,7 @@ in
package = lib.mkPackageOption pkgs "nheko" { nullable = true; }; package = lib.mkPackageOption pkgs "nheko" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = iniFmt.type; inherit (iniFmt) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -15,7 +15,7 @@ in
enable = lib.mkEnableOption "nix-init"; enable = lib.mkEnableOption "nix-init";
package = lib.mkPackageOption pkgs "nix-init" { nullable = true; }; package = lib.mkPackageOption pkgs "nix-init" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = tomlFormat.type; inherit (tomlFormat) type;
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@@ -19,7 +19,7 @@ in
package = lib.mkPackageOption pkgs "nix-search-tv" { nullable = true; }; package = lib.mkPackageOption pkgs "nix-search-tv" { nullable = true; };
settings = lib.mkOption { settings = lib.mkOption {
type = jsonFormat.type; inherit (jsonFormat) type;
default = { }; default = { };
description = '' description = ''
Configuration written to {file}`$XDG_CONFIG_HOME/nix-search-tv/config.json`. Configuration written to {file}`$XDG_CONFIG_HOME/nix-search-tv/config.json`.

View File

@@ -41,8 +41,7 @@ let
}; };
new = { new = {
ignore = cfg.new.ignore; inherit (cfg.new) ignore tags;
tags = cfg.new.tags;
}; };
user = user =

Some files were not shown because too many files have changed in this diff Show More