stockholm/lass/2configs/baseX.nix

114 lines
2 KiB
Nix
Raw Normal View History

2015-07-16 15:51:01 +02:00
{ config, pkgs, ... }:
2017-02-16 00:05:38 +01:00
with import <stockholm/lib>;
2015-07-16 15:51:01 +02:00
let
2017-02-16 00:05:38 +01:00
user = config.krebs.build.user;
2015-07-16 15:51:01 +02:00
in {
imports = [
./mpv.nix
2016-06-18 22:01:10 +02:00
./power-action.nix
2017-01-18 17:39:03 +01:00
./screenlock.nix
2017-02-16 00:05:38 +01:00
./copyq.nix
2017-02-22 21:58:13 +01:00
./xresources.nix
{
hardware.pulseaudio = {
enable = true;
systemWide = true;
};
}
2017-01-10 17:27:07 +01:00
{
krebs.per-user.lass.packages = [
pkgs.sshuttle
];
security.sudo.extraConfig = ''
lass ALL= (root) NOPASSWD:SETENV: ${pkgs.sshuttle}/bin/.sshuttle-wrapped
'';
}
2015-07-16 15:51:01 +02:00
];
2016-08-05 00:00:27 +02:00
users.extraUsers.mainUser.extraGroups = [ "audio" "video" ];
2015-10-30 18:35:21 +01:00
2015-07-16 15:51:01 +02:00
time.timeZone = "Europe/Berlin";
virtualisation.libvirtd.enable = true;
programs.ssh.startAgent = false;
security.setuidPrograms = [ "slock" ];
services.printing = {
enable = true;
drivers = [ pkgs.foomatic_filters ];
};
environment.systemPackages = with pkgs; [
2016-06-11 00:28:09 +02:00
acpi
2016-11-27 15:18:52 +01:00
dic
2015-12-29 20:21:06 +01:00
dmenu
2015-12-26 17:30:59 +01:00
gitAndTools.qgit
2016-06-02 12:18:49 +02:00
lm_sensors
2015-10-05 12:19:25 +02:00
much
2016-12-01 17:10:13 +01:00
ncdu
2016-06-02 12:18:49 +02:00
nmap
2015-12-26 17:30:59 +01:00
pavucontrol
powertop
2015-10-17 20:11:00 +02:00
push
2015-12-26 17:30:59 +01:00
slock
sxiv
2016-04-15 16:19:50 +02:00
xclip
2016-03-15 15:14:22 +01:00
xorg.xbacklight
2016-06-11 00:28:09 +02:00
xorg.xhost
2015-12-26 17:30:59 +01:00
xsel
2015-11-09 02:26:12 +01:00
zathura
2015-07-16 15:51:01 +02:00
2016-03-19 22:02:09 +01:00
mpv-poll
yt-next
2016-10-19 14:59:12 +02:00
youtube-tools
2016-12-04 20:40:53 +01:00
rxvt_unicode
2015-07-16 15:51:01 +02:00
];
2017-02-16 00:05:38 +01:00
fonts.fonts = [
pkgs.xlibs.fontschumachermisc
];
services.xserver = {
enable = true;
desktopManager.xterm.enable = false;
2017-02-23 16:31:52 +01:00
desktopManager.default = "none";
displayManager.lightdm.enable = true;
displayManager.lightdm.autoLogin = {
enable = true;
user = "lass";
};
windowManager.default = "xmonad";
2017-02-16 00:05:38 +01:00
windowManager.session = [{
name = "xmonad";
start = ''
${pkgs.xorg.xhost}/bin/xhost +LOCAL:
${pkgs.xmonad-lass}/bin/xmonad &
waitPID=$!
'';
}];
layout = "us";
xkbModel = "evdev";
xkbVariant = "altgr-intl";
xkbOptions = "caps:backspace";
};
2015-07-16 15:51:01 +02:00
services.logind.extraConfig = ''
HandleLidSwitch=ignore
'';
2016-08-24 08:38:28 +02:00
services.xserver.synaptics = {
enable = true;
twoFingerScroll = true;
accelFactor = "0.035";
};
2017-02-16 00:05:38 +01:00
services.urxvtd.enable = true;
2015-07-16 15:51:01 +02:00
}