From 6882b1b1263fa636952732d489e31d946c7f39d2 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 30 Jan 2019 09:45:12 -0800 Subject: Move module.nix to ibb directory This is ibb-specific --- ibb/module.nix | 31 +++++++++++++++++++++++++++++++ module.nix | 25 ------------------------- 2 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 ibb/module.nix delete mode 100644 module.nix diff --git a/ibb/module.nix b/ibb/module.nix new file mode 100644 index 0000000..0242c35 --- /dev/null +++ b/ibb/module.nix @@ -0,0 +1,31 @@ +{ options +, lib +, config +, pkgs +, modulesPath +}: + +let + cfg = config.services.ibb; +in { + options.services.ibb.enable = lib.mkEnableOption "Enable the IBB service"; + config = lib.mkIf cfg.enable { + systemd.services.ibb = { + path = with pkgs; [ ibb bash ]; + wantedBy = [ "multi-user.target" ]; + script = '' + ./bin/ibb + ''; + description = '' + https://ibb.buildmindful.com + ''; + serviceConfig = { + WorkingDirectory=pkgs.ibb; + KillSignal="INT"; + Type = "simple"; + Restart = "on-abort"; + RestartSec = "10"; + }; + }; + }; +} diff --git a/module.nix b/module.nix deleted file mode 100644 index c6f43ce..0000000 --- a/module.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ options, lib, config, pkgs, modulesPath }: -let - cfg = config.services.ibb; -in { - options.services.ibb.enable = lib.mkEnableOption "Enable the IBB service"; - config = lib.mkIf cfg.enable { - systemd.services.ibb = { - path = with pkgs; [ ibb bash ]; - wantedBy = [ "multi-user.target" ]; - script = '' - ./bin/ibb - ''; - description = '' - https://ibb.buildmindful.com - ''; - serviceConfig = { - WorkingDirectory=pkgs.ibb; - KillSignal="INT"; - Type = "simple"; - Restart = "on-abort"; - RestartSec = "10"; - }; - }; - }; -} \ No newline at end of file -- cgit v1.2.3