Regenerated
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
{
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
efi.efiSysMountPoint = "/boot";
|
||||
timeout = 5;
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
boot.kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"udev.log_level=3"
|
||||
"rd.systemd.show_status=false"
|
||||
# Sleep / power management
|
||||
"mem_sleep_default=deep" # Use S3 deep sleep, fixes sleep not working
|
||||
"acpi_osi=Linux" # Tell ACPI this is a Linux system
|
||||
"acpi_backlight=native" # Proper backlight control
|
||||
# Intel GPU — fixes screen blinking on sleep/wake
|
||||
"i915.enable_psr=0"
|
||||
"i915.enable_psr2_sel_fetch=0"
|
||||
# Prevent nvme from waking the system
|
||||
"nvme.noacpi=1"
|
||||
];
|
||||
boot.consoleLogLevel = 0;
|
||||
#boot.initrd.systemd.enable = true;
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
hardware.enableAllFirmware = true;
|
||||
boot.kernelModules = [
|
||||
"kvm-intel"
|
||||
"asus_wmi" # Asus-specific power/fan/keyboard control
|
||||
];
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
};
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
# Power management
|
||||
powerManagement.enable = true;
|
||||
services.logind.settings.Login = {
|
||||
HandleSleepKey = "ignore";
|
||||
HandleSleepKeyLongPress = "ignore";
|
||||
};
|
||||
services.thermald.enable = true; # Intel thermal management daemon
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
PLATFORM_PROFILE_ON_AC = "performance";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{
|
||||
hostname,
|
||||
pkgs,
|
||||
lib,
|
||||
modulesPath,
|
||||
user,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# (modulesPath + "/installer/scan/not-detected.nix")
|
||||
#../../hardware/hardware.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/811D-0676";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
|
||||
|
||||
let
|
||||
hostname = "traveldroid";
|
||||
modulesPath = "${flakeRoot}/generated/modules/${hostname}";
|
||||
hostModules = import-tree modulesPath;
|
||||
allModules = hostModules.imports;
|
||||
in
|
||||
{
|
||||
networking.hostName = hostname;
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
#################################
|
||||
# Locale
|
||||
#################################
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "nl_NL.UTF-8";
|
||||
extraLocales = [
|
||||
"nl_NL.UTF-8/UTF-8"
|
||||
"en_US.UTF-8/UTF-8"
|
||||
];
|
||||
consoleKeyMap = "us";
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
||||
#################################
|
||||
# Imports
|
||||
#################################
|
||||
|
||||
imports =
|
||||
[ ../../../generated/users/henrov.nix
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
]
|
||||
++ allModules
|
||||
++ [ home-manager.nixosModules.home-manager ]
|
||||
;
|
||||
|
||||
#################################
|
||||
# Home Manager integration
|
||||
#################################
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.dconf
|
||||
];
|
||||
|
||||
programs.dconf.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user