Skip to content

Commit

Permalink
nix: Move packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Jun 3, 2024
1 parent a2d3012 commit eca299d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ in
then "lib${lib.replaceStrings ["-"] ["_"] entry.pname}.so"
else "")
cfg.config.plugins;
defaultPackage = lib.optional (cfg.package != null) cfg.package;
plugins = lib.optional (cfg.config.plugins != null) cfg.config.plugins;
in
lib.mkIf cfg.enable {
home.packages = [
(lib.optional (cfg.package != null) cfg.package)
(lib.optional (cfg.config.plugins != null) cfg.config.plugins)
defaultPackage
plugins
];

xdg.configFile."reset/ReSet.toml".source = (pkgs.formats.toml cfg.config.plugin_config).generate "reset"
Expand Down

0 comments on commit eca299d

Please sign in to comment.