mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2024-12-29 19:26:34 +01:00
update disk
This commit is contained in:
parent
2af0a820ee
commit
0f59a944bd
1 changed files with 8 additions and 10 deletions
|
@ -3,13 +3,13 @@
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
main = {
|
main = {
|
||||||
device = "/dev/nvme0n1";
|
|
||||||
type = "disk";
|
type = "disk";
|
||||||
|
device = "/dev/nvme0n1";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
ESP = {
|
ESP = {
|
||||||
end = "500M";
|
size = "500M";
|
||||||
type = "EF00";
|
type = "EF00";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
|
@ -18,18 +18,16 @@
|
||||||
mountOptions = [ "umask=0077" ];
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
root = {
|
luks = {
|
||||||
name = "root";
|
size = "100%";
|
||||||
end = "-0";
|
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "crypto";
|
name = "crypted";
|
||||||
settings = {
|
settings.allowDiscards = true;
|
||||||
allowDiscards = true;
|
passwordFile = "/tmp/secret.key";
|
||||||
};
|
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "bcachefs";
|
format = "ext4";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue