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:
parent
4b5507f374
commit
3749c8ef56
9 changed files with 3 additions and 7 deletions
39
hosts/kroma/fs.nix
Normal file
39
hosts/kroma/fs.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue