stockholm/tv/1systems/alnus/config.nix

90 lines
1.9 KiB
Nix
Raw Normal View History

2016-10-20 18:54:38 +00:00
with import <stockholm/lib>;
2017-08-01 20:37:41 +00:00
{ config, pkgs, ... }: {
2016-07-17 17:55:38 +00:00
imports = [
<stockholm/tv>
<stockholm/tv/2configs/hw/x220.nix>
<stockholm/tv/2configs/exim-retiolum.nix>
<stockholm/tv/2configs/retiolum.nix>
2016-07-17 17:55:38 +00:00
];
boot = {
initrd = {
availableKernelModules = [ "ahci" ];
2020-06-16 21:30:14 +00:00
luks.devices.luksroot.device = "/dev/sda2";
2016-07-17 17:55:38 +00:00
};
};
environment.systemPackages = with pkgs; [
firefoxWrapper
networkmanagerapplet
2017-11-02 20:13:00 +00:00
(pkgs.pidgin-with-plugins.override {
plugins = [ pkgs.pidginotr ];
})
2016-07-17 17:55:38 +00:00
];
fileSystems = {
"/boot" = {
device = "/dev/sda1";
};
"/" = {
device = "/dev/mapper/main-root";
2020-08-26 15:32:32 +00:00
fsType = "ext4";
2016-07-17 17:55:38 +00:00
options = [ "defaults" "noatime" ];
};
"/home" = {
device = "/dev/mapper/main-home";
2020-08-26 15:32:32 +00:00
fsType = "ext4";
2016-07-17 17:55:38 +00:00
options = [ "defaults" "noatime" ];
};
};
hardware = {
opengl.driSupport32Bit = true;
pulseaudio.enable = true;
};
i18n.defaultLocale = "de_DE.UTF-8";
krebs.build = {
host = config.krebs.hosts.alnus;
user = mkForce config.krebs.users.dv;
};
networking.networkmanager.enable = true;
services.earlyoom.enable = true;
services.earlyoom.freeMemThreshold = 5;
systemd.services.earlyoom.environment.EARLYOOM_ARGS = toString [
"--prefer '^(Web Content|Privileged Cont)$'" # firefox tabs
];
2016-07-17 17:55:38 +00:00
services.xserver = {
enable = true;
layout = "de";
xkbOptions = "eurosign:e";
2019-10-16 07:21:17 +00:00
libinput.enable = false;
2016-07-17 17:55:38 +00:00
synaptics = {
enable = true;
twoFingerScroll = true;
};
2019-10-16 07:21:17 +00:00
2016-07-17 17:55:38 +00:00
desktopManager.xfce.enable = true;
2020-06-16 21:14:59 +00:00
displayManager.lightdm.autoLogin.enable = true;
displayManager.lightdm.autoLogin.user = "dv";
displayManager.lightdm.enable = true;
2016-07-17 17:55:38 +00:00
};
users.users.dv = {
inherit (config.krebs.users.dv) home uid;
isNormalUser = true;
extraGroups = [
"audio"
"video"
"networkmanager"
];
};
}