feat: enable use-xdg-base-directories for nix
Some checks failed
/ build (audiomenu) (push) Waiting to run
/ build (docs) (push) Waiting to run
/ build (jpassmenu) (push) Waiting to run
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Waiting to run
/ build (nvim) (push) Waiting to run
/ check (push) Has been cancelled
Some checks failed
/ build (audiomenu) (push) Waiting to run
/ build (docs) (push) Waiting to run
/ build (jpassmenu) (push) Waiting to run
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Waiting to run
/ build (nvim) (push) Waiting to run
/ check (push) Has been cancelled
This commit is contained in:
parent
b19f232243
commit
f4691fa9c9
3 changed files with 15 additions and 3 deletions
|
@ -6,11 +6,15 @@
|
|||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
osConfig ? null,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.jhome;
|
||||
devcfg = cfg.dev;
|
||||
# Query the osConfig for a setting. Return the default value if missing or in standalone mode
|
||||
fromOs =
|
||||
path: default: if osConfig == null then default else lib.attrsets.attrByPath path default osConfig;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
|
@ -26,6 +30,13 @@ in
|
|||
];
|
||||
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
nix.settings.use-xdg-base-directories = fromOs [
|
||||
"nix"
|
||||
"settings"
|
||||
"use-xdg-base-directories"
|
||||
] true;
|
||||
}
|
||||
(lib.mkIf (cfg.enable && cfg.styling.enable) { stylix.enable = true; })
|
||||
(lib.mkIf cfg.enable {
|
||||
programs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue