restructure folder organisation

This commit is contained in:
Felix Buehler 2022-12-05 20:32:39 +01:00
parent 599d55fa6a
commit 9cf7be677d
72 changed files with 95 additions and 98 deletions

30
machines/newton/disks.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.luks.devices."luks-drive" = {
name = "luks-drive";
device = "/dev/disk/by-partlabel/Crypt";
preLVM = true;
allowDiscards = true;
};
fileSystems."/" = {
device = "/dev/disk/by-label/newton-root";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/newton-boot";
fsType = "vfat";
};
fileSystems."/srv" = {
device = "/dev/disk/by-label/newton-srv";
fsType = "ext4";
};
swapDevices = [{
device = "/dev/disk/by-label/newton-swap";
}];
}