2022-06-18 14:46:22 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-06-22 19:40:34 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2022-06-18 14:46:22 +00:00
|
|
|
boot.loader = {
|
|
|
|
timeout = 1;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
grub = {
|
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev";
|
|
|
|
configurationLimit = 5;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-22 19:50:09 +00:00
|
|
|
powerManagement = {
|
2022-06-21 12:32:49 +00:00
|
|
|
enable = true;
|
|
|
|
cpuFreqGovernor = "ondemand";
|
|
|
|
};
|
|
|
|
|
2022-06-22 19:50:09 +00:00
|
|
|
services.acpid = {
|
|
|
|
enable = true;
|
|
|
|
logEvents = true;
|
|
|
|
};
|
2022-06-18 18:27:17 +00:00
|
|
|
|
2022-06-26 14:31:56 +00:00
|
|
|
services.logind = {
|
2022-06-27 16:42:44 +00:00
|
|
|
lidSwitch = "lock";
|
2022-06-26 14:31:56 +00:00
|
|
|
extraConfig = ''
|
2022-06-27 16:42:44 +00:00
|
|
|
HandlePowerKey=suspend-then-hibernate
|
|
|
|
IdleAction=suspend-then-hibernate
|
2022-06-26 14:31:56 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-06-28 14:08:43 +00:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
dnssec = "false";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
programs.appgate-sdp.enable = true;
|
|
|
|
|
2022-06-19 16:40:00 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.i3.enable = true;
|
|
|
|
layout = "de";
|
|
|
|
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
touchpad = {
|
|
|
|
horizontalScrolling = false;
|
2022-06-22 19:49:54 +00:00
|
|
|
naturalScrolling = true;
|
2022-06-19 16:40:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+i3";
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
2022-06-20 18:35:47 +00:00
|
|
|
user = "mandlm";
|
2022-06-19 16:40:00 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-06-18 18:27:17 +00:00
|
|
|
|
2022-06-22 19:37:55 +00:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
2022-06-18 14:46:22 +00:00
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
services.timesyncd.enable = true;
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "de-latin1-nodeadkeys";
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
(nerdfonts.override { fonts = [ "DejaVuSansMono" ]; })
|
2022-06-20 13:47:55 +00:00
|
|
|
font-awesome
|
2022-06-18 14:46:22 +00:00
|
|
|
];
|
2022-06-20 09:33:39 +00:00
|
|
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
2022-06-22 19:49:54 +00:00
|
|
|
|
2022-06-18 14:46:22 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
neovim
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2022-06-24 10:39:55 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
forwardX11 = true;
|
|
|
|
};
|
2022-06-18 14:46:22 +00:00
|
|
|
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = "experimental-features = nix-command flakes";
|
2022-07-07 14:13:39 +00:00
|
|
|
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
2022-06-18 14:46:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|
|
|
|
|