2025-04-24 11:17:44 +02:00
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
inputs,
|
|
|
|
|
pkgs,
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2024-12-19 15:39:23 +01:00
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./../../modules/core
|
|
|
|
|
];
|
2025-01-07 09:58:12 +01:00
|
|
|
|
|
|
|
|
# Enable fancy boot animations
|
|
|
|
|
boot.plymouth.enable = true;
|
2025-04-24 11:17:44 +02:00
|
|
|
|
2024-12-19 15:39:23 +01:00
|
|
|
powerManagement = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# powertop.enable = true;
|
|
|
|
|
cpuFreqGovernor = lib.mkDefault "ondemand";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
liv.laptop.enable = true;
|
2025-04-24 11:17:44 +02:00
|
|
|
liv.gui.enable = true;
|
2024-12-19 15:39:23 +01:00
|
|
|
|
|
|
|
|
# Bootloader stuff
|
|
|
|
|
boot = {
|
2025-04-24 11:17:44 +02:00
|
|
|
kernelParams = [
|
|
|
|
|
"quiet"
|
|
|
|
|
"loglevel=3"
|
|
|
|
|
"systemd.show_status=false"
|
|
|
|
|
"splash"
|
|
|
|
|
];
|
2025-01-07 09:58:12 +01:00
|
|
|
loader.grub = {
|
|
|
|
|
enable = lib.mkForce true;
|
|
|
|
|
device = lib.mkForce "/dev/sda";
|
|
|
|
|
enableCryptodisk = lib.mkForce true;
|
|
|
|
|
useOSProber = lib.mkForce true;
|
|
|
|
|
};
|
|
|
|
|
initrd.secrets = {
|
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
|
};
|
2025-04-24 11:17:44 +02:00
|
|
|
initrd.luks.devices."luks-729500c5-557b-45c8-ab3f-5c365db28284".keyFile =
|
|
|
|
|
lib.mkForce "/crypto_keyfile.bin";
|
|
|
|
|
extraModulePackages =
|
|
|
|
|
with config.boot.kernelPackages;
|
2024-12-19 15:39:23 +01:00
|
|
|
[
|
|
|
|
|
acpi_call
|
|
|
|
|
cpupower
|
|
|
|
|
]
|
2025-04-24 11:17:44 +02:00
|
|
|
++ [ pkgs.cpupower-gui ];
|
2024-12-19 15:39:23 +01:00
|
|
|
};
|
2025-01-07 09:58:12 +01:00
|
|
|
|
|
|
|
|
networking.hostName = "ichiyo";
|
2024-12-19 15:39:23 +01:00
|
|
|
}
|