Large refactor to clean up flake.nix

This commit is contained in:
Lauren Lagarde 2025-08-12 22:53:14 -05:00
parent 916595caa3
commit 67f0d12fc4
11 changed files with 206 additions and 362 deletions

View file

@ -1,3 +1,5 @@
# sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake .#$TARGET_HOSTNAME --disk nvme0n1 /dev/nvme0n1
# tar -xvf /Parlor/Lauren/mlaga97-nixos.tar.zst; sudo nixos-rebuild switch --flake mlaga97-nixos?submodules=1#$HOSTNAME
{ ... }: {
disko.devices = {
disk = {

24
nixos/features/pi.nix Normal file
View file

@ -0,0 +1,24 @@
{ ... }: {
# Look into: https://git.sr.ht/~magic_rb/dotfiles/tree/master/item/nixos/systems/gooseberry
# Disabling the whole `profiles/base.nix` module, which is responsible
# for adding ZFS and a bunch of other unnecessary programs:
disabledModules = [
"profiles/base.nix"
];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
};
"/boot/firmware" = {
device = "/dev/disk/by-label/FIRMWARE";
fsType = "vfat";
};
};
}

View file

@ -1,3 +1,6 @@
{ ... }: {
virtualisation.libvirtd.enable = true;
# TODO: Is this the right place?
virtualisation.spiceUSBRedirection.enable = true;
}