feat(hosts): add disko config for home-pc & home-server

This commit is contained in:
Felix Schröter 2025-06-06 15:55:56 +02:00
parent a1675da8bf
commit 45c4b8a3f3
Signed by: felschr
GPG key ID: 671E39E6744C807D
7 changed files with 130 additions and 73 deletions

View file

@ -18,6 +18,7 @@ let
in
{
imports = [
./disk-config.nix
../../hardware/base.nix
../../desktop/x11.nix
../../system/server.nix

View file

@ -0,0 +1,62 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "enc";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"@" = {
mountpoint = "/";
mountOptions = [
"compress-force=zstd:1"
"noatime"
];
};
"@home" = {
mountpoint = "/home";
mountOptions = [
"compress-force=zstd:1"
"noatime"
];
};
"@snapshots" = {
mountpoint = "/.snapshots";
mountOptions = [
"compress-force=zstd:1"
"noatime"
];
};
};
};
};
};
};
};
};
};
};
}