aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/ouch/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:02:19 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 04:02:19 +0530
commit5ea8c30b7b82d4c1e7164541892066b1f24f7d22 (patch)
treead9b994cc5415f63bae1f2342f520756d43c67ce /modules/file-management/ouch/default.nix
parentad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff)
parent748669e19daa3afc8f0cfe10eedc19ae9766ed2c (diff)
downloadhome-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.tar.gz
home-manager-config-5ea8c30b7b82d4c1e7164541892066b1f24f7d22.zip
Merge branch 'massive-refactoring'
Diffstat (limited to 'modules/file-management/ouch/default.nix')
-rw-r--r--modules/file-management/ouch/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/file-management/ouch/default.nix b/modules/file-management/ouch/default.nix
index c8986fe..461e3cf 100644
--- a/modules/file-management/ouch/default.nix
+++ b/modules/file-management/ouch/default.nix
@@ -1,10 +1,13 @@
# CLI tool for compressing and decompressing various formats
{
- pkgs,
- lib,
config,
+ lib,
+ pkgs,
...
}:
+let
+ cfg = config.file-management.ouch;
+in
{
options.file-management.ouch = {
enable = lib.mkEnableOption "Enables ouch.";
@@ -18,7 +21,7 @@
};
};
- config = lib.mkIf config.file-management.ouch.enable {
- home.packages = [ config.file-management.ouch.package ];
+ config = lib.mkIf cfg.enable {
+ home.packages = [ cfg.package ];
};
}