nix/nixos/hosts/nixos-amd-osaka-01/default.nix

39 lines
962 B
Nix
Raw Normal View History

2023-09-20 11:52:00 +02:00
{ 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 ];
}