nixos-config/configuration.nix

119 lines
2.0 KiB
Nix
Raw Normal View History

2022-06-18 14:46:22 +00:00
{ config, pkgs, ... }:
{
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 = {
lidSwitch = "lock";
2022-06-26 14:31:56 +00:00
extraConfig = ''
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;
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-07-12 14:25:34 +00:00
(nerdfonts.override { fonts = [ "DejaVuSansMono" "FiraCode" ]; })
2022-06-20 13:47:55 +00:00
font-awesome
2023-09-24 19:56:38 +00:00
dejavu_fonts
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;
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;
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
2022-12-07 14:11:38 +00:00
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
2022-06-18 14:46:22 +00:00
};
system.stateVersion = "22.05";
}