feat(archiving): add 'archiving' module
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
opencode.enable = true;
|
opencode.enable = true;
|
||||||
};
|
};
|
||||||
anki.enable = true;
|
anki.enable = true;
|
||||||
|
archiving.enable = true;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
browser.enable = true;
|
browser.enable = true;
|
||||||
browser.primary = "librewolf";
|
browser.primary = "librewolf";
|
||||||
|
|||||||
@@ -18,6 +18,5 @@ with pkgs;
|
|||||||
sops
|
sops
|
||||||
tldr
|
tldr
|
||||||
tree
|
tree
|
||||||
unzip
|
|
||||||
wget
|
wget
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
opencode.enable = true;
|
opencode.enable = true;
|
||||||
};
|
};
|
||||||
anki.enable = true;
|
anki.enable = true;
|
||||||
|
archiving.enable = true;
|
||||||
browser = {
|
browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
primary = "firefox";
|
primary = "firefox";
|
||||||
|
|||||||
@@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user