feat: add custom scripts.
This commit is contained in:
parent
84bf820b93
commit
f1c37c598f
4 changed files with 48 additions and 0 deletions
16
modules/home-manager/scripts.nix
Normal file
16
modules/home-manager/scripts.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.scripts.enable = lib.mkEnableOption "Enable my custom scripts";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.scripts.enable {
|
||||
home.packages = with pkgs; [
|
||||
(callPackage ./scripts {inherit pkgs;})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue