x220: Add host
Probably broken right now.
This commit is contained in:
parent
29155bd10f
commit
a5a2c3396d
4 changed files with 138 additions and 0 deletions
62
hosts/x220/disko.nix
Normal file
62
hosts/x220/disko.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
master = {
|
||||
type = "disk";
|
||||
device = "/dev/sda1"; # [managed by install.sh]
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
grub_mbr = {
|
||||
size = "1M";
|
||||
type = "EF02";
|
||||
};
|
||||
boot = {
|
||||
size = "1G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [
|
||||
"umask=0077"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
};
|
||||
luks = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "crypted";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" "-L nixos" ];
|
||||
subvolumes = {
|
||||
/* Do not rename the root partition as it'll break impermanence */
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"noatime"
|
||||
"compress=zstd"
|
||||
];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [
|
||||
"noatime"
|
||||
"compress=zstd"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue