Large refactor to clean up flake.nix
This commit is contained in:
parent
916595caa3
commit
67f0d12fc4
11 changed files with 206 additions and 362 deletions
|
@ -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
24
nixos/features/pi.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
{ ... }: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
# TODO: Is this the right place?
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue