diff options
| author | lassulus <lass@aidsballs.de> | 2015-04-06 17:59:51 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2015-05-19 23:15:56 +0200 |
| commit | 9726cc6e4a016e5952bf80c9b717e36cf9a91f41 (patch) | |
| tree | 0f93aecfc2b06bfc6cad9a6273ac24239b3b3597 /modules/urxvt-tv.nix | |
| parent | a01a13fef88438a403aa8e7b857ce18eca922f4d (diff) | |
rename urxvt.nix to urxvt-tv.nix
Diffstat (limited to 'modules/urxvt-tv.nix')
| -rw-r--r-- | modules/urxvt-tv.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/urxvt-tv.nix b/modules/urxvt-tv.nix new file mode 100644 index 0000000..a975812 --- /dev/null +++ b/modules/urxvt-tv.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: + + with builtins; + +let + users = [ "tv" ]; + urxvt = pkgs.rxvt_unicode; + mkService = user: { + description = "urxvt terminal daemon"; + wantedBy = [ "multi-user.target" ]; + restartIfChanged = false; + serviceConfig = { + Restart = "always"; + User = user; + ExecStart = "${urxvt}/bin/urxvtd"; + }; + }; + +in + +{ + environment.systemPackages = [ urxvt ]; + systemd.services = listToAttrs (map (u: { name = "${u}-urxvtd"; value = mkService u; }) users); +} |
