Clean up config & add comments.
This commit is contained in:
parent
b504700e61
commit
c2fc35e12d
18 changed files with 162 additions and 114 deletions
|
@ -1,14 +1,17 @@
|
|||
{
|
||||
# Root filesystem.
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/cac60222-9b38-4938-8b17-5fddd67e8e26";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/home/docker/volumes" = {
|
||||
# Docker data directory
|
||||
fileSystems."/home/fern/docker/data" = {
|
||||
device = "/dev/disk/by-uuid/95461a94-ad91-43b9-b502-2b5d4496b84e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# Swap.
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/025beadb-a89b-4abe-8d0c-b55401316319";}
|
||||
];
|
|
@ -4,7 +4,7 @@
|
|||
secrets,
|
||||
...
|
||||
}: {
|
||||
# Secrets.
|
||||
# Import secrets.
|
||||
sops = {
|
||||
age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
||||
defaultSopsFile = "${secrets}/sops.yaml";
|
|
@ -1,14 +1,17 @@
|
|||
{
|
||||
# Root filesystem.
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/cbd70e61-fcdc-4b1f-af03-d3da8a2866ea";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/home/docker/volumes" = {
|
||||
# Docker data directory.
|
||||
fileSystems."/home/fern/docker/data" = {
|
||||
device = "/dev/disk/by-uuid/3730e48a-8784-4c49-8692-473c9b4bc8c3";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# Swap.
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/3123f58e-63a9-44fa-ac29-3e79dc520b8f";}
|
||||
];
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
# Kernel modules
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
|
@ -8,6 +9,7 @@
|
|||
|
||||
boot.kernelModules = ["kvm-intel"];
|
||||
|
||||
# Root filesystem.
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/63d79656-aa5b-466a-b369-be5eac3f51ab";
|
||||
fsType = "ext4";
|
||||
|
@ -15,6 +17,7 @@
|
|||
|
||||
boot.initrd.luks.devices."luks-93fa00bc-777f-4359-bad5-880c29faca0d".device = "/dev/disk/by-uuid/93fa00bc-777f-4359-bad5-880c29faca0d";
|
||||
|
||||
# EFI/boot partition.
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/EBD7-3E1C";
|
||||
fsType = "vfat";
|
||||
|
@ -24,7 +27,9 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Allow CPU microcode.
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
|
||||
# Allows remote deployment on ARM systems (ie. Raspberry Pi).
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
# Boot loader.
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
||||
initrd.availableKernelModules = [
|
||||
|
@ -13,12 +14,14 @@
|
|||
};
|
||||
|
||||
fileSystems = {
|
||||
# Root filesystem.
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_SD";
|
||||
fsType = "ext4";
|
||||
options = ["noatime"];
|
||||
};
|
||||
|
||||
# AFP share.
|
||||
"/srv/iMac" = {
|
||||
device = "/dev/disk/by-uuid/48843b25-4d8c-4638-a5f8-fb3901e1165e";
|
||||
fsType = "ext4";
|
Loading…
Add table
Add a link
Reference in a new issue