Merge branch 'main' of ssh://code.8bitbuddhism.com/aires/nix-configuration
This commit is contained in:
commit
bc0103686a
|
@ -42,25 +42,6 @@ in
|
||||||
# To see all available timezones, run `timedatectl list-timezones`.
|
# To see all available timezones, run `timedatectl list-timezones`.
|
||||||
time.timeZone = "America/New_York";
|
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.
|
# Build Nix packages for other hosts.
|
||||||
# Runs every day at 4 AM
|
# Runs every day at 4 AM
|
||||||
systemd.services."build-hosts" = {
|
systemd.services."build-hosts" = {
|
||||||
|
|
|
@ -36,6 +36,9 @@ in
|
||||||
MAILADDR ${config.secrets.users.aires.email}
|
MAILADDR ${config.secrets.users.aires.email}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable support for building ARM64 packages
|
||||||
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure the main filesystem.
|
# 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;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
# Detect keyboard as "internal" so we can automatically disable the touchpad while typing
|
# Detect keyboard as "internal" so we can automatically disable the touchpad while typing
|
||||||
|
|
|
@ -89,7 +89,4 @@ in
|
||||||
|
|
||||||
# Build remotely
|
# Build remotely
|
||||||
nix.distributedBuilds = true;
|
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") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
# NOTE: Uncomment to use a default kernel and skip full kernel rebuilds
|
||||||
|
#kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Enable antenna aggregation
|
# Enable antenna aggregation
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
options iwlwifi 11n_disable=8
|
options iwlwifi 11n_disable=8
|
||||||
|
@ -108,9 +111,9 @@ in
|
||||||
"intel-ipu6-isys"
|
"intel-ipu6-isys"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Limit the number of cores Nix can use
|
||||||
|
nix.settings.cores = 8;
|
||||||
|
|
||||||
# Install/configure additional drivers, particularly for touch
|
# Install/configure additional drivers, particularly for touch
|
||||||
environment.systemPackages = with pkgs; [ libwacom-surface ];
|
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