{ config, lib, pkgs, inputs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ../../modules/common.nix ../../modules/re.nix ../../modules/wireguard.nix ../../modules/nfs.nix ]; boot.loader.grub = { enable = true; device = "nodev"; efiSupport = true; }; boot.loader.efi.canTouchEfiVariables = false; boot.loader.efi.efiSysMountPoint = "/boot/efi"; networking.hostName = "laptop"; networking.wireless.iwd.enable = true; networking.wireless.iwd.settings = { General.EnableNetworkConfiguration = true; }; networking.nameservers = [ "1.1.1.1" "8.8.8.8" ]; programs.light.enable = true; programs.bash.shellAliases = { battery = "echo $(($(cat /sys/class/power_supply/BAT0/charge_now)*100/$(cat /sys/class/power_supply/BAT0/charge_full)))%"; hibernate = "systemctl hibernate"; }; programs.fish.shellAliases = { battery = "echo (math (cat /sys/class/power_supply/BAT0/charge_now) * 100 / (cat /sys/class/power_supply/BAT0/charge_full))%"; hibernate = "systemctl hibernate"; }; services.logind.settings.Login = { HandlePowerKey = "ignore"; HandlePowerKeyLongPress = "ignore"; }; services.keyd = { enable = true; keyboards.default = { ids = [ "*" ]; settings.main.capslock = "overload(control, esc)"; }; }; custom.wireguardAddress = "10.67.40.2/32"; home-manager.users.christian.custom.xmobarBattery = true; swapDevices = [ { device = "/swapfile"; size = 8192; # 8GB in MiB } ]; boot.resumeDevice = "/dev/disk/by-uuid/56ae0488-d952-41d8-8128-60a46e979d91"; boot.kernelParams = [ "resume_offset=12832768" ]; system.stateVersion = "25.11"; }