m 2 urxvtd: init

This commit is contained in:
makefu 2017-04-17 13:11:32 +02:00
parent eeffa28de5
commit ff038698d1
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
4 changed files with 28 additions and 3 deletions

View File

@ -2,6 +2,7 @@
# #
# #
{ config, pkgs, ... }: { config, pkgs, ... }:
with import <stockholm/lib>;
{ {
imports = imports =
@ -78,7 +79,7 @@
}; };
boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ]; boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];
environment.systemPackages = [ pkgs.passwdqc-utils pkgs.bintray-upload ]; environment.systemPackages = [ pkgs.passwdqc-utils ];
virtualisation.docker.enable = true; virtualisation.docker.enable = true;

View File

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

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) 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. -- This is used later as the default terminal and editor to run.
terminal = "urxvt" terminal = "urxvtc"
editor = os.getenv("EDITOR") or "vim" editor = os.getenv("EDITOR") or "vim"
editor_cmd = terminal .. " -e " .. editor editor_cmd = terminal .. " -e " .. editor
browser = "firefox" browser = "firefox"