From 6ff05d1149a24e2baaaeadc411e7f16293cc3656 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 26 Sep 2023 20:56:17 +0200 Subject: Create sample package and module --- modules/meow.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/meow.nix (limited to 'modules/meow.nix') 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 -- cgit 1.4.1