initial commit

This commit is contained in:
Felix Buehler 2020-11-16 21:14:46 +01:00
commit 7517f318dc
55 changed files with 1401 additions and 0 deletions

32
disks.nix Normal file
View file

@ -0,0 +1,32 @@
{ config, lib, pkgs, ... }:
#FIXME: komplett anpassen
let
uuids = import ./vars-uuids.nix;
in
{
boot.initrd.luks.devices."luks-drive" = {
name = "luks-drive";
device = "/dev/disk/by-partuuid/${uuids.luks.root}";
preLVM = true;
allowDiscards = true;
};
# FS
fileSystems."/" = {
device = "/dev/disk/by-uuid/${uuids.fs.root}";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/${uuids.fs.boot}";
fsType = "vfat";
};
# Swap
swapDevices = [
{
device = "/dev/disk/by-uuid/${uuids.fs.swap}";
}
];
}