mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
initial commit
This commit is contained in:
commit
7517f318dc
55 changed files with 1401 additions and 0 deletions
32
disks.nix
Normal file
32
disks.nix
Normal 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}";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue