diff options
| author | Mel <einebeere@gmail.com> | 2023-09-26 20:56:17 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-09-26 21:00:34 +0200 |
| commit | 6ff05d1149a24e2baaaeadc411e7f16293cc3656 (patch) | |
| tree | d55faa4d019501c4e3cb3a0cb645ecc79a5a6223 /modules/meow.nix | |
| parent | 664ed0dcd9d28b7f9896d62e69f47d4d889526a7 (diff) | |
| download | rnrd-6ff05d1149a24e2baaaeadc411e7f16293cc3656.tar.zst rnrd-6ff05d1149a24e2baaaeadc411e7f16293cc3656.zip | |
Create sample package and module
Diffstat (limited to 'modules/meow.nix')
| -rw-r--r-- | modules/meow.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/meow.nix b/modules/meow.nix new file mode 100644 index 0000000..ff72a0c --- /dev/null +++ b/modules/meow.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.programs.test.meow; +in { + options = { + programs.test.meow = { + enable = mkEnableOption "meow"; + + name = mkOption { + type = types.str; + default = "cat"; + }; + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.meow ]; + environment.etc."meow".text = cfg.name; + }; +} \ No newline at end of file |
