diff options
author | tv <tv@krebsco.de> | 2015-04-08 01:07:01 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-05-19 23:16:56 +0200 |
commit | 305994b23565b3e0f73922ca219cbcb9872e4daa (patch) | |
tree | 14dd49072264f70f32d826fadc3489a7b101b62c /modules/tv/urxvt.nix | |
parent | ee0c09d16f1e857a9f37118babc5c2a061fa9cf1 (diff) |
I Like To Move It
Diffstat (limited to 'modules/tv/urxvt.nix')
-rw-r--r-- | modules/tv/urxvt.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/tv/urxvt.nix b/modules/tv/urxvt.nix new file mode 100644 index 0000000..a975812 --- /dev/null +++ b/modules/tv/urxvt.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); +} |