41 lines
No EOL
1.1 KiB
Nix
41 lines
No EOL
1.1 KiB
Nix
{ config, lib, pkgs, modulesPath, hostname, username, ... }: {
|
|
imports = [
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
../../common/services/tailscale-autoconnect.nix
|
|
./firewall.nix
|
|
./wireguard.nix
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
# Enable LISH
|
|
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
boot.loader.grub.extraConfig = ''
|
|
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
terminal_input serial;
|
|
terminal_output serial
|
|
'';
|
|
|
|
boot.loader.grub.forceInstall = true;
|
|
boot.loader.grub.device = "nodev";
|
|
boot.loader.timeout = 10;
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
swapDevices = [ { device = "/dev/disk/by-label/linode-swap"; } ];
|
|
|
|
# Distributed Builds
|
|
nix.distributedBuilds = true;
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
time.timeZone = "Asia/Tokyo";
|
|
networking.hostName = "osaka-linode-01";
|
|
|
|
services.tailscale.extraUpFlags = [ "--advertise-exit-node" ];
|
|
} |