This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/configuration.nix

129 lines
2.2 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;
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;
2022-06-19 16:40:00 +00:00
layout = "de";
xkbVariant = "nodeadkeys";
xkbModel = "pc105";
2022-06-19 16:40:00 +00:00
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-11-22 09:34:42 +00:00
environment.pathsToLink = [ "/share/zsh" ];
2022-06-24 10:39:55 +00:00
services.openssh = {
enable = true;
forwardX11 = true;
};
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";
}