From 069f9e83a81cef724f4b4ae3fcc113632d856f1e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 7 Sep 2026 11:17:40 +0200 Subject: [PATCH] feat(archiving): add 'archiving' module --- home/hosts/astyanax/default.nix | 1 + home/hosts/packages.nix | 1 - home/hosts/work/default.nix | 1 + home/modules/archiving/default.nix | 20 ++++++++++++++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 home/modules/archiving/default.nix diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index f613a92..8bc4fe7 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -26,6 +26,7 @@ opencode.enable = true; }; anki.enable = true; + archiving.enable = true; audio.enable = true; browser.enable = true; browser.primary = "librewolf"; diff --git a/home/hosts/packages.nix b/home/hosts/packages.nix index 1f3153d..4deeafc 100644 --- a/home/hosts/packages.nix +++ b/home/hosts/packages.nix @@ -18,6 +18,5 @@ with pkgs; sops tldr tree - unzip wget ] diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index e6dd6a1..239148e 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -41,6 +41,7 @@ opencode.enable = true; }; anki.enable = true; + archiving.enable = true; browser = { enable = true; primary = "firefox"; diff --git a/home/modules/archiving/default.nix b/home/modules/archiving/default.nix new file mode 100644 index 0000000..24e16df --- /dev/null +++ b/home/modules/archiving/default.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.archiving; +in +{ + options.archiving.enable = lib.mkEnableOption "archiving"; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + unzip + zip + ]; + }; +}