2022-12-09 01:31:56 +01:00
|
|
|
with import ./lib;
|
2017-08-01 22:37:41 +02:00
|
|
|
{ config, pkgs, ... }: {
|
2016-07-17 19:55:38 +02:00
|
|
|
imports = [
|
2017-07-06 21:47:47 +02:00
|
|
|
<stockholm/tv>
|
|
|
|
<stockholm/tv/2configs/hw/x220.nix>
|
|
|
|
<stockholm/tv/2configs/exim-retiolum.nix>
|
|
|
|
<stockholm/tv/2configs/retiolum.nix>
|
2016-07-17 19:55:38 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "ahci" ];
|
2020-06-16 23:30:14 +02:00
|
|
|
luks.devices.luksroot.device = "/dev/sda2";
|
2016-07-17 19:55:38 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-05-31 20:12:06 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.firefox
|
|
|
|
pkgs.networkmanagerapplet
|
2022-08-02 13:43:30 +02:00
|
|
|
(pkgs.pidgin.override {
|
|
|
|
plugins = [ pkgs.pidgin-otr ];
|
2017-11-02 21:13:00 +01:00
|
|
|
})
|
2016-07-17 19:55:38 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/sda1";
|
|
|
|
};
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/mapper/main-root";
|
2020-08-26 17:32:32 +02:00
|
|
|
fsType = "ext4";
|
2016-07-17 19:55:38 +02:00
|
|
|
options = [ "defaults" "noatime" ];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/mapper/main-home";
|
2020-08-26 17:32:32 +02:00
|
|
|
fsType = "ext4";
|
2016-07-17 19:55:38 +02: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;
|
|
|
|
|
2020-08-26 17:50:24 +02:00
|
|
|
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 19:55:38 +02:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
layout = "de";
|
|
|
|
xkbOptions = "eurosign:e";
|
2019-10-16 09:21:17 +02:00
|
|
|
|
|
|
|
libinput.enable = false;
|
2016-07-17 19:55:38 +02:00
|
|
|
synaptics = {
|
|
|
|
enable = true;
|
|
|
|
twoFingerScroll = true;
|
|
|
|
};
|
|
|
|
};
|
2022-09-06 13:08:55 +02:00
|
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
2022-09-06 13:07:34 +02:00
|
|
|
services.xserver.displayManager.autoLogin.enable = true;
|
|
|
|
services.xserver.displayManager.autoLogin.user = "dv";
|
2016-07-17 19:55:38 +02:00
|
|
|
|
2022-09-06 13:09:52 +02:00
|
|
|
system.stateVersion = "22.05";
|
|
|
|
|
2016-07-17 19:55:38 +02:00
|
|
|
users.users.dv = {
|
|
|
|
inherit (config.krebs.users.dv) home uid;
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"audio"
|
|
|
|
"video"
|
|
|
|
"networkmanager"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|