My NixOS config Part 3: Flake-Parts Crusaders nix.ladas552.me
hjem nix nixos impermanence flake-parts nvfetcher niri noctalia

trying to switch NixWool to aarch64-linux

Ladas552 65cccac6 6d4619d6

+25 -12
+1 -1
modules/hosts/NixWool/hardware-configuration.nix
··· 32 32 networking.useDHCP = lib.mkDefault true; 33 33 # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; 34 34 35 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 35 + nixpkgs.hostPlatform = "aarch64-linux"; 36 36 hardware.cpu.amd.updateMicrocode = true; 37 37 }; 38 38 }
+1 -2
modules/hosts/NixWool/imports.nix
··· 18 18 # Modules 19 19 ## Games 20 20 cache 21 - firewall 22 21 general 23 22 imp 24 23 nh 25 24 nix 26 - grub-legacy 27 25 openssh 26 + systemd-boot 28 27 sops 29 28 tailscale 30 29 zfs
+10 -8
modules/hosts/NixWool/install.sh
··· 1 1 # installation script for Hetzner VPS, I just loaded a standart nix iso in there 2 2 # Stolen from @Jet https://github.com/Michael-C-Buckley/nixos/blob/master/modules/hosts/o1/tools/format.sh 3 - # Adapted to use msdos partition table 4 3 5 4 #!/usr/bin/env bash 6 5 set -euo pipefail ··· 29 28 echo "Wiping drives..." 30 29 # Wipe the NVMe 31 30 wipefs -a /dev/sda 32 - 33 - parted /dev/sda --script mklabel msdos 31 + sgdisk --zap-all /dev/sda 34 32 35 33 echo "Formatting drives..." 36 34 # Put boot on the NVMe then fill the rest with ZFS 37 - parted /dev/sda --script mkpart primary 1MiB 4097MiB 38 - parted /dev/sda --script mkpart primary 4097MiB 100% 39 - parted /dev/sda --script set 2 boot on 35 + sgdisk -n1:1M:+512M -t1:EF00 -c1:"EFI System" /dev/sda 36 + sgdisk -n2:0:+4G -t2:8200 -c2:"Linux Swap" /dev/sda 37 + sgdisk -n3:0:0 -t3:BF01 -c3:"ZROOT" /dev/sda 38 + 39 + # Format the boot partition 40 + mkfs.vfat -F32 /dev/sda1 40 41 41 42 # Swap 42 - mkswap /dev/sda1 43 - swapon /dev/sda1 43 + mkswap /dev/sda2 44 + swapon /dev/sda2 44 45 45 46 # Create the pool on the drive, use reasonable settings 46 47 echo "Creating zroot..." ··· 49 50 # Mount the drives and prepare for the install 50 51 mkdir -p /mnt 51 52 mkdir -p /mnt/{cache,nix,persist,tmp,boot} 53 + mount /dev/sda1 /mnt/boot 52 54 53 55 # This create the zvols used in this cluster 54 56 for zvol in "tmp" "nix" "cache" "persist"; do
+10
modules/wrappers/nvf/flake-outputs.nix
··· 85 85 NixMux 86 86 ]; 87 87 }).neovim; 88 + nvf-NixWool = 89 + (inputs.nvf.lib.neovimConfiguration { 90 + inherit pkgs; 91 + modules = 92 + with config.flake.modules.nvf; 93 + base 94 + ++ [ 95 + NixWool 96 + ]; 97 + }).neovim; 88 98 }; 89 99 }; 90 100 }
+3 -1
modules/wrappers/nvf/user.nix
··· 16 16 let 17 17 nvf-NixPort = self.packages."x86_64-linux".nvf-NixPort; 18 18 nvf-NixToks = self.packages."x86_64-linux".nvf-NixToks; 19 + nvf-NixWool = self.packages."aarch64-linux".nvf-NixWool; 19 20 in 20 21 { 21 22 packages = 22 23 [ ] 23 24 ++ lib.optionals (config.custom.meta.hostname == "NixPort") [ nvf-NixPort ] 24 - ++ lib.optionals (config.custom.meta.hostname == "NixToks") [ nvf-NixToks ]; 25 + ++ lib.optionals (config.custom.meta.hostname == "NixToks") [ nvf-NixToks ] 26 + ++ lib.optionals (config.custom.meta.hostname == "NixWool") [ nvf-NixWool ]; 25 27 environment.sessionVariables.EDITOR = "neovim"; 26 28 }; 27 29 };