Skip to content

Commit

Permalink
disko config for xfs root
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlet-storm committed Feb 14, 2025
1 parent bc08f10 commit 2b857ae
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
58 changes: 58 additions & 0 deletions config/disko/luks-xfs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
disko.devices = {
disk = {
root = {
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
size = "4G";
type = "EF00";
label = "esp";
content = {
type = "filesystem";
format = "vfat";
extraArgs = [
"-n"
"ESP"
];
mountpoint = "/boot";
mountOptions = [
"defaults"
"umask=0077"
];
};
};
luksroot = {
size = "100%";
type = "8304";
label = "root-x86-64";
content = {
type = "luks";
name = "root";
extraFormatArgs = [
"--label"
"luksroot"
"--subsystem"
"nvme"
];
settings = {
allowDiscards = true;
};
content = {
type = "xfs";
extraArgs = [
"-L"
"rootfs"
];
mountpoint = "/";
};
};
};
};
};
};
};
};
}
2 changes: 1 addition & 1 deletion config/hosts/x86_64-linux/liella/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ in
modules.nixos.net.networkd-wifi
inputs.disko.nixosModules.default
modules.nixos.steam
modules.disko.luks-btrfs
modules.disko.luks-xfs
] ++ builtins.map (user: modules.nixos.users.${user}) users;
home-manager.users = lib.genAttrs users (user: modules.homes."${user}@${systemName}");
boot.kernelPackages = pkgs.linuxPackages_latest;
Expand Down

0 comments on commit 2b857ae

Please sign in to comment.