diff options
author | makefu <github@syntax-fehler.de> | 2017-04-17 13:11:32 +0200 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-04-18 21:14:56 +0200 |
commit | 6436eac7b9081c3a2f06aff5c27c40a2f54a4eff (patch) | |
tree | 60c3ef3346fff623fb87e8f79b58f5e93a1fcf3c /makefu/2configs | |
parent | d53824e7b551759854c6e0ae77411c179a168754 (diff) |
m 2 urxvtd: init
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/base-gui.nix | 5 | ||||
-rw-r--r-- | makefu/2configs/urxvtd.nix | 21 |
2 files changed, 25 insertions, 1 deletions
diff --git a/makefu/2configs/base-gui.nix b/makefu/2configs/base-gui.nix index ba4c551b3..1a19ab36b 100644 --- a/makefu/2configs/base-gui.nix +++ b/makefu/2configs/base-gui.nix @@ -16,7 +16,10 @@ let mainUser = config.krebs.build.user.name; in { - imports = [ ]; + imports = [ + ./urxvtd.nix + ]; + services.xserver = { enable = true; layout = "us"; diff --git a/makefu/2configs/urxvtd.nix b/makefu/2configs/urxvtd.nix new file mode 100644 index 000000000..286b87ab3 --- /dev/null +++ b/makefu/2configs/urxvtd.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: + +let + mainUser = config.krebs.build.user.name; +in { + systemd.services.urxvtd = { + wantedBy = [ "multi-user.target" ]; + before = [ "graphical.target" ]; + reloadIfChanged = true; + serviceConfig = { + SyslogIdentifier = "urxvtd"; + ExecReload = "${pkgs.coreutils}/bin/echo NOP"; + ExecStart = "${pkgs.rxvt_unicode_with-plugins}/bin/urxvtd"; + Restart = "always"; + RestartSec = "2s"; + StartLimitBurst = 0; + User = mainUser; + }; + }; + # TODO: sessionCommands from base-gui related to urxvt in this file +} |