add file organizaiton module
This commit is contained in:
29
modules/nixos/file-organization/default.nix
Normal file
29
modules/nixos/file-organization/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.${namespace}) mkBoolOpt;
|
||||
|
||||
cfg = config.${namespace}.file-organization;
|
||||
in
|
||||
{
|
||||
options.${namespace}.file-organization = {
|
||||
enable = mkEnableOption "file organization software";
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Add file organization packages here
|
||||
# Example: organize-tool
|
||||
ranger
|
||||
fsearch
|
||||
veracrypt
|
||||
qdirstat
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user