diff options
author | lassulus <lass@aidsballs.de> | 2015-04-06 17:59:51 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-05-19 23:15:56 +0200 |
commit | eb4c0b21e884a70c8413ede036b34483ad676cc9 (patch) | |
tree | 0f93aecfc2b06bfc6cad9a6273ac24239b3b3597 /modules/urxvt-tv.nix | |
parent | a7d1ec58d0b22f7c847b75d9111bfd723aac588f (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 000000000..a97581248 --- /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); +} |