# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: let modules-dir = ../../modules; in { imports = [ ../../global-default.nix ./hardware-configuration.nix "${modules-dir}/zsh.nix" "${modules-dir}/display-managers/lightdm.nix" #"${modules-dir}/desktop-environments/gnome.nix" "${modules-dir}/window-managers/niri.nix" ]; stylix.enable = true; stylix.image = ../../assets/wallpapers/kitagawa.jpg; stylix.polarity = "dark"; systemd.sleep.settings.Sleep = { AllowSuspend = "no"; AllowHibernation = "yes"; }; services.logind.settings.Login.HandleLidSwitch = "ignore"; systemd.services.disable-lid-wakeup = { wantedBy = [ "multi-user.target" ]; description = "Prevent the lid switch from waking laptop from hibernation"; serviceConfig = { Type = "simple"; User = "root"; ExecStart = "${pkgs.busybox}/bin/sh -c \"echo LID > /proc/acpi/wakeup\""; }; }; systemd.services.disable-tty-switch = { wantedBy = [ "multi-user.target" ]; description = "Prevent alt+arrow keys from switching tty"; serviceConfig = { Type = "simple"; User = "root"; ExecStart = "${pkgs.busybox}/bin/sh -c \"${pkgs.kbd}/bin/dumpkeys -k|grep -v Incr_Console|grep -v Decr_Console|${pkgs.kbd}/bin/loadkeys\""; }; }; services.udisks2.enable = true; services.fprintd.enable = true; security.pam.services.login.fprintAuth = true; security.pam.services.sudo.fprintAuth = true; security.pam.services.swaylock.fprintAuth = true; security.pam.services.lightdm.fprintAuth = true; programs.nautilus-open-any-terminal = { enable = true; terminal = "kitty"; }; # List services that you want to enable: # Enable the OpenSSH daemon. # services.openssh.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; }