1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: rename potksed to kroma

This commit is contained in:
oddlama 2023-09-10 12:46:26 +02:00
parent 4b5507f374
commit 3749c8ef56
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
9 changed files with 3 additions and 7 deletions

39
hosts/kroma/fs.nix Normal file
View file

@ -0,0 +1,39 @@
{
config,
lib,
...
}: {
disko.devices = {
disk = {
m2-ssd = {
type = "disk";
device = "/dev/disk/by-id/${config.repo.secrets.local.disk.m2-ssd}";
content = with lib.disko.gpt; {
type = "table";
format = "gpt";
partitions = [
(partEfi "efi" "0%" "1GiB")
(partSwap "swap" "1GiB" "17GiB")
(partLuksZfs "rpool" "17GiB" "100%")
];
};
};
#data-hdd = {
# type = "disk";
# device = "/dev/disk/by-id/${config.repo.secrets.local.disk.data-hdd}";
# content = with lib.disko.gpt; {
# type = "table";
# format = "gpt";
# partitions = [
# (partLuksZfs "data" "0%" "100%")
# ];
# };
#};
};
zpool = with lib.disko.zfs; {
rpool = defaultZpoolOptions // {datasets = defaultZfsDatasets;};
};
};
boot.initrd.luks.devices.enc-rpool.allowDiscards = true;
}