m 2 urxvtd: init

This commit is contained in:
makefu 2017-04-17 13:11:32 +02:00 committed by lassulus
parent 8261295387
commit a30cd53bc4
4 changed files with 28 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#
#
{ config, pkgs, ... }:
with import <stockholm/lib>;
{
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;

View file

@ -16,7 +16,10 @@ let
mainUser = config.krebs.build.user.name;
in
{
imports = [ ];
imports = [
./urxvtd.nix
];
services.xserver = {
enable = true;
layout = "us";

21
2configs/urxvtd.nix Normal file
View file

@ -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
}

View file

@ -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"