Skip to content

Commit

Permalink
modules/home-manager: remove unnecessary lib.mkMerge from xdg modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontear committed Dec 12, 2024
1 parent 79dce9f commit ca59329
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions modules/home-manager/xdg/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@
...
}:
{
config = lib.mkMerge [
({
xdg.enable = lib.mkDefault true;
my.persist.directories = lib.mkIf config.xdg.enable [
"~/Desktop"
"~/Documents"
"~/Downloads"
"~/Music"
"~/Pictures"
"~/Public"
"~/Templates"
"~/Videos"
];
})
];
}
config = {
xdg.enable = lib.mkDefault true;
my.persist.directories = lib.mkIf config.xdg.enable [
"~/Desktop"
"~/Documents"
"~/Downloads"
"~/Music"
"~/Pictures"
"~/Public"
"~/Templates"
"~/Videos"
];
};
}

0 comments on commit ca59329

Please sign in to comment.