{ config, lib, modulesPath, pkgs, ... }: { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.kernel.sysctl = { "net.ipv6.conf.all.use_tempaddr" = 0; }; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; environment.systemPackages = [ pkgs.git pkgs.rsync ]; fileSystems = { "/boot" = { device = "/dev/vda1"; fsType = "vfat"; options = [ "dmask=0077" "fmask=0077" "nodev" "noexec" "nosuid" ]; }; "/" = { device = "/dev/vda2"; fsType = "btrfs"; options = [ "defaults" "noatime" "commit=120" # default: 30 [seconds] "compress=zstd" # default: lzo "ssd" # because /sys/block/vda/queue/rotational is 1... ]; }; }; systemd.repart.enable = true; systemd.repart.partitions."10-root".Type = "root"; systemd.services.systemd-growfs-root.wantedBy = [ "multi-user.target" ]; documentation.info.enable = false; documentation.man.enable = false; documentation.nixos.enable = false; i18n.defaultLocale = "en_US.UTF-8"; i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ]; services.ntp.enable = false; services.openssh.enable = true; services.udisks2.enable = false; users.mutableUsers = false; users.users.root.openssh.authorizedKeys.keys = lib.mkDefault [ config.krebs.users.tv.pubkey ]; system.stateVersion = "25.05"; }