{ config, lib, pkgs, modulesPath, desktop, username, ... }: { imports = [ ]; nixpkgs.config.allowUnfree = false; boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "ahci" "sd_mod" "sr_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; # For cross-architecture builds boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; fileSystems."/" = { device = "/dev/mapper/DISK"; fsType = "btrfs"; options = [ "subvol=@" ]; }; boot.initrd.luks.devices."DISK".device = "/dev/vda"; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; time.timeZone = "Asia/Tokyo"; networking.hostName = "nixos-amd-osaka-01"; boot.loader.grub = { enableCryptodisk = true; enable = true; device = "/dev/vda"; useOSProber = true; }; networking.firewall.allowedTCPPorts = [ 22 ]; }