1
0
Fork 0

Merge branch 'main' of ssh://code.8bitbuddhism.com/aires/nix-configuration

This commit is contained in:
Aires 2024-08-28 00:00:08 -04:00
commit bc0103686a
4 changed files with 26 additions and 25 deletions

View file

@ -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" = {

View file

@ -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

View file

@ -89,7 +89,4 @@ in
# Build remotely
nix.distributedBuilds = true;
# Limit the number of cores Nix can use
nix.settings.cores = 8;
}

View file

@ -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;
}