group options a bit better

This commit is contained in:
Andreas Zweili 2021-11-23 20:51:25 +01:00
parent 5e3a20a6e4
commit d0e20bffde
1 changed files with 27 additions and 38 deletions

View File

@ -11,17 +11,30 @@
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader = {
boot.loader.efi.canTouchEfiVariables = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Zurich"; time.timeZone = "Europe/Zurich";
networking.networkmanager.enable = true; networking = {
networkmanager.enable = true;
firewall.allowedTCPPorts = [ 22 ];
# firewall.allowedUDPPorts = [ ... ];
};
# Configure network proxy if necessary hardware = {
# networking.proxy.default = "http://user:password@proxy:port/"; cpu.intel.updateMicrocode = true;
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; enableRedistributableFirmware = true;
};
services = {
openssh.enable = true;
autorandr.enable = true;
printing.enable = true;
};
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
@ -31,28 +44,21 @@
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
services.xserver.displayManager.lightdm.enable = true; displayManager.defaultSession = "none+qtile";
services.xserver.displayManager.defaultSession = "none+qtile"; windowManager.qtile.enable = true;
services.xserver.windowManager = { layout = "us";
qtile.enable = true; xkbOptions = "compose:ralt";
libinput.enable = true;
}; };
services.autorandr.enable = true;
# Configure keymap in X11
services.xserver.layout = "us";
services.xserver.xkbOptions = "compose:ralt";
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
source-code-pro source-code-pro
]; ];
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable keyring # Enable keyring
security.pam.services.lightdm.enableGnomeKeyring = true; security.pam.services.lightdm.enableGnomeKeyring = true;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
@ -61,9 +67,6 @@
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.andreas = { users.users.andreas = {
isNormalUser = true; isNormalUser = true;
@ -128,20 +131,6 @@
wget wget
]; ];
hardware = {
cpu.intel.updateMicrocode = true;
enableRedistributableFirmware = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave