diff options
author | tv <tv@shackspace.de> | 2015-04-08 01:07:01 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-05-19 23:16:56 +0200 |
commit | cd6374e641420ade3603f0fd23fe9afac5c443bc (patch) | |
tree | 14dd49072264f70f32d826fadc3489a7b101b62c /modules/tv/urxvt.nix | |
parent | 6e70d8fc47f0725a63dc92c1c43d2b1831c7c4ef (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 000000000..a97581248 --- /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); +} |