-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
overrides.nix
55 lines (49 loc) · 1.19 KB
/
overrides.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
lib,
pkgs,
config,
modulesPath,
...
}:
let
inherit (lib.modules) mkForce;
in
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
config = {
services = {
smartd.enable = mkForce false; # Unavailable - device lacks SMART capability.
# Needed by the Hetzner Cloud password reset feature
qemuGuest.enable = true;
};
systemd.services.qemu-guest-agent.path = [ pkgs.shadow ];
system.stateVersion = mkForce "23.11";
boot = {
growPartition = !config.boot.initrd.systemd.enable;
kernelParams = [ "net.ifnames=0" ];
kernel.sysctl = {
"net.ipv4.ip_forward" = true;
"net.ipv6.conf.all.forwarding" = true;
};
initrd = {
availableKernelModules = [
"ata_piix"
"uhci_hcd"
"xen_blkfront"
"vmw_pvscsi"
];
kernelModules = [ "nvme" ];
};
loader.grub = {
enable = true;
useOSProber = mkForce false;
efiSupport = mkForce false;
enableCryptodisk = false;
theme = mkForce null;
backgroundColor = mkForce null;
splashImage = mkForce null;
device = mkForce "/dev/sda";
};
};
};
}