From a30cd53bc4444afd0aa7a23b8d6157ebe6a8a707 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 17 Apr 2017 13:11:32 +0200 Subject: [PATCH] m 2 urxvtd: init --- 1systems/x.nix | 3 ++- 2configs/base-gui.nix | 5 ++++- 2configs/urxvtd.nix | 21 +++++++++++++++++++++ 5pkgs/awesomecfg/full.cfg | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 2configs/urxvtd.nix diff --git a/1systems/x.nix b/1systems/x.nix index 9cedc04..51c9543 100644 --- a/1systems/x.nix +++ b/1systems/x.nix @@ -2,6 +2,7 @@ # # { config, pkgs, ... }: +with import ; { imports = @@ -78,7 +79,7 @@ }; boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ]; - environment.systemPackages = [ pkgs.passwdqc-utils pkgs.bintray-upload ]; + environment.systemPackages = [ pkgs.passwdqc-utils ]; virtualisation.docker.enable = true; diff --git a/2configs/base-gui.nix b/2configs/base-gui.nix index ba4c551..1a19ab3 100644 --- a/2configs/base-gui.nix +++ b/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/2configs/urxvtd.nix b/2configs/urxvtd.nix new file mode 100644 index 0000000..286b87a --- /dev/null +++ b/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 +} diff --git a/5pkgs/awesomecfg/full.cfg b/5pkgs/awesomecfg/full.cfg index e43341d..73ff42e 100644 --- a/5pkgs/awesomecfg/full.cfg +++ b/5pkgs/awesomecfg/full.cfg @@ -90,7 +90,7 @@ client.connect_signal("focus", function(c) c.border_color = beautiful.border_foc client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -- This is used later as the default terminal and editor to run. -terminal = "urxvt" +terminal = "urxvtc" editor = os.getenv("EDITOR") or "vim" editor_cmd = terminal .. " -e " .. editor browser = "firefox"