diff --git a/modules/default.nix b/modules/default.nix deleted file mode 100644 index 06e1ccc..0000000 --- a/modules/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - imports = [ - ./hello.nix - ]; -} diff --git a/modules/hello.nix b/modules/hello.nix deleted file mode 100644 index ed09a0a..0000000 --- a/modules/hello.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ lib, pkgs, config, ...}: - -with lib; -let - cfg = config.services.hello; - -in { - options.services.hello = { - enable = mkEnableOption "Hello service."; - greeter = mkOption { - type = types.str; - default = "world"; - }; - }; - - config = mkIf cfg.enable { - environment.systemPackages = [ - (pkgs.writeShellScriptBin "hello" '' - echo "'Hello, ${escapeShellArg cfg.greeter}!'" - ''); - ]; - }; -}