stockholm/lass/2configs/baseX.nix

117 lines
2.1 KiB
Nix
Raw Normal View History

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