2025-01-12 02:57:46 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./disko.nix
|
|
|
|
./packages.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
users.allowNoPasswordLogin = true; /* DEBUG */
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "vm";
|
|
|
|
useDHCP = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
2025-01-14 00:16:41 +01:00
|
|
|
device = "/dev/sda"; # [managed by install.sh]
|
2025-01-12 02:57:46 +01:00
|
|
|
gfxmodeEfi = "1920x1080";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
tmp.useTmpfs = true;
|
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
|
|
|
supportedFilesystems = [ "btfs" "vfat" "xfs" ];
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "nvme" "xhci_pci" "ahci"
|
|
|
|
"usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
fstrim.enable = true;
|
|
|
|
btrfs.autoScrub.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
# These are system specific. If you have any additional drives that are not
|
|
|
|
# your root device you can add and mount them here. Added nofail so that you can
|
|
|
|
# install this configuration on a device without it exploding when you don't have
|
|
|
|
# these specific partitions.
|
|
|
|
};
|
|
|
|
|
2025-01-14 00:16:41 +01:00
|
|
|
system.stateVersion = "24.11"; # [managed by install.sh]
|
2025-01-12 02:57:46 +01:00
|
|
|
}
|
|
|
|
|