summaryrefslogtreecommitdiffstats
path: root/lass/3modules/urxvtd.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-02-09 16:45:29 +0100
committermakefu <github@syntax-fehler.de>2017-02-09 16:45:29 +0100
commit8cefb4663624bcc4fbf0379b2cc02f2e84f0320b (patch)
tree6bc760e37c02ea2c54c9702c0251e502b18ada75 /lass/3modules/urxvtd.nix
parent4f34c772c2dd4e48a303d3ea3349ec11cd747498 (diff)
parente78a8c0725cbcf3179d63f8f94ca77e7ccb345d8 (diff)
Merge remote-tracking branch 'tv/master'
Diffstat (limited to 'lass/3modules/urxvtd.nix')
-rw-r--r--lass/3modules/urxvtd.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/lass/3modules/urxvtd.nix b/lass/3modules/urxvtd.nix
deleted file mode 100644
index 469616a9f..000000000
--- a/lass/3modules/urxvtd.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
-in
-
-with builtins;
-with lib;
-
-{
- options = {
- services.urxvtd = {
- enable = mkOption {
- type = types.bool;
- default = false;
- description = "Enable urxvtd per user";
- };
- users = mkOption {
- type = types.listOf types.string;
- default = [];
- description = "users to run urxvtd for";
- };
- urxvtPackage = mkOption {
- type = types.package;
- default = pkgs.rxvt_unicode;
- description = "urxvt package to use";
- };
- };
- };
-
- config =
- let
- cfg = config.services.urxvtd;
- users = cfg.users;
- urxvt = cfg.urxvtPackage;
- mkService = user: {
- description = "urxvt terminal daemon";
- wantedBy = [ "multi-user.target" ];
- restartIfChanged = false;
- path = [ pkgs.xlibs.xrdb ];
- environment = {
- DISPLAY = ":0";
- URXVT_PERL_LIB = "${urxvt}/lib/urxvt/perl";
- };
- serviceConfig = {
- Restart = "always";
- User = user;
- ExecStart = "${urxvt}/bin/urxvtd";
- };
- };
- in
- mkIf cfg.enable {
- environment.systemPackages = [ urxvt ];
- systemd.services = listToAttrs (map (u: { name = "${u}-urxvtd"; value = mkService u; }) users);
- };
-}