Hosts: slight cleanup for Dimaga and Khanda
This commit is contained in:
parent
235268b978
commit
0062be2218
|
@ -42,25 +42,6 @@ in
|
|||
# To see all available timezones, run `timedatectl list-timezones`.
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
# Disable suspend
|
||||
systemd.targets = {
|
||||
sleep.enable = false;
|
||||
suspend.enable = false;
|
||||
hibernate.enable = false;
|
||||
hybrid-sleep.enable = false;
|
||||
};
|
||||
services = {
|
||||
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
|
||||
logind = {
|
||||
lidSwitch = "lock";
|
||||
lidSwitchDocked = "lock";
|
||||
};
|
||||
};
|
||||
services.upower.ignoreLid = true;
|
||||
|
||||
# Enable support for building ARM64 packages
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
|
||||
# Build Nix packages for other hosts.
|
||||
# Runs every day at 4 AM
|
||||
systemd.services."build-hosts" = {
|
||||
|
|
|
@ -36,6 +36,9 @@ in
|
|||
MAILADDR ${config.secrets.users.aires.email}
|
||||
'';
|
||||
};
|
||||
|
||||
# Enable support for building ARM64 packages
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
};
|
||||
|
||||
# Configure the main filesystem.
|
||||
|
@ -70,6 +73,23 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Disable suspend
|
||||
systemd.targets = {
|
||||
sleep.enable = false;
|
||||
suspend.enable = false;
|
||||
hibernate.enable = false;
|
||||
hybrid-sleep.enable = false;
|
||||
};
|
||||
services = {
|
||||
xserver.displayManager.gdm.autoSuspend = lib.mkIf config.aux.system.ui.desktops.gnome.enable false;
|
||||
logind = {
|
||||
lidSwitch = "lock";
|
||||
lidSwitchDocked = "lock";
|
||||
};
|
||||
};
|
||||
services.upower.ignoreLid = true;
|
||||
|
||||
# Enable CPU microde updates
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# Detect keyboard as "internal" so we can automatically disable the touchpad while typing
|
||||
|
|
|
@ -89,7 +89,4 @@ in
|
|||
|
||||
# Build remotely
|
||||
nix.distributedBuilds = true;
|
||||
|
||||
# Limit the number of cores Nix can use
|
||||
nix.settings.cores = 8;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,9 @@ in
|
|||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
# NOTE: Uncomment to use a default kernel and skip full kernel rebuilds
|
||||
#kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||
|
||||
# Enable antenna aggregation
|
||||
extraModprobeConfig = ''
|
||||
options iwlwifi 11n_disable=8
|
||||
|
@ -108,9 +111,9 @@ in
|
|||
"intel-ipu6-isys"
|
||||
];
|
||||
|
||||
# Limit the number of cores Nix can use
|
||||
nix.settings.cores = 8;
|
||||
|
||||
# Install/configure additional drivers, particularly for touch
|
||||
environment.systemPackages = with pkgs; [ libwacom-surface ];
|
||||
|
||||
# NOTE: Uncomment to use a default kernel and skip full kernel rebuilds
|
||||
# boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue