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;
|
2023-02-27 07:33:01 +00:00
|
|
|
cpuFreqGovernor = "conservative";
|
2022-06-21 12:32:49 +00:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
|
2023-03-08 09:50:08 +00:00
|
|
|
services.resolved.enable = true;
|
2022-06-28 14:08:43 +00:00
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
2023-07-07 07:27:10 +00:00
|
|
|
programs = {
|
|
|
|
appgate-sdp.enable = true;
|
|
|
|
zsh.enable = true;
|
|
|
|
};
|
2022-06-28 14:08:43 +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; [
|
2023-09-29 07:22:10 +00:00
|
|
|
(nerdfonts.override { fonts = [ "DejaVuSansMono" "NerdFontsSymbolsOnly" ]; })
|
2023-09-24 19:56:38 +00:00
|
|
|
dejavu_fonts
|
2023-09-29 07:22:10 +00:00
|
|
|
fira-code
|
2022-06-18 14:46:22 +00:00
|
|
|
];
|
2022-06-20 09:33:39 +00:00
|
|
|
|
2023-09-24 19:56:38 +00:00
|
|
|
hardware = {
|
|
|
|
pulseaudio.enable = true;
|
2022-06-22 19:49:54 +00:00
|
|
|
|
2023-09-24 19:56:38 +00:00
|
|
|
opengl.enable = true;
|
|
|
|
|
|
|
|
sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [ pkgs.sane-airscan ];
|
|
|
|
};
|
2023-06-22 06:26:47 +00:00
|
|
|
};
|
|
|
|
|
2023-09-26 06:48:56 +00:00
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
pam.services.swaylock = { };
|
|
|
|
};
|
2023-09-24 19:56:38 +00:00
|
|
|
|
2022-06-18 14:46:22 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
neovim
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2022-11-22 09:34:42 +00:00
|
|
|
environment.pathsToLink = [ "/share/zsh" ];
|
|
|
|
|
2022-06-24 10:39:55 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-07-07 07:27:10 +00:00
|
|
|
settings.X11Forwarding = true;
|
2022-06-24 10:39:55 +00:00
|
|
|
};
|
2022-06-18 14:46:22 +00:00
|
|
|
|
2022-08-29 06:19:29 +00:00
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns = true;
|
|
|
|
};
|
|
|
|
|
2022-06-18 14:46:22 +00:00
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
2022-08-29 06:19:44 +00:00
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
|
|
|
'';
|
2022-07-07 14:13:39 +00:00
|
|
|
|
2022-12-07 14:11:38 +00:00
|
|
|
settings.auto-optimise-store = true;
|
2022-07-07 14:13:39 +00:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
2022-06-18 14:46:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|
|
|
|
|