First commit
This commit is contained in:
68
hosts/home-nix/disk-config.nix
Normal file
68
hosts/home-nix/disk-config.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
# disko.devices = {
|
||||
# disk = {
|
||||
# main = {
|
||||
# type = "disk";
|
||||
# device = "/dev/sdb";
|
||||
# content = {
|
||||
# type = "gpt";
|
||||
# partitions = {
|
||||
# ESP = {
|
||||
# size = "512M";
|
||||
# type = "EF00";
|
||||
# content = {
|
||||
# type = "filesystem";
|
||||
# format = "vfat";
|
||||
# mountpoint = "/boot";
|
||||
# mountOptions = [ "umask=0077" ];
|
||||
# };
|
||||
# };
|
||||
# SYS = {
|
||||
# size = "100%";
|
||||
# type = "8309";
|
||||
# content = {
|
||||
# type = "luks";
|
||||
# name = "rootfs";
|
||||
# settings = {
|
||||
# allowDiscards = true;
|
||||
#
|
||||
# };
|
||||
# content = {
|
||||
# type = "btrfs";
|
||||
# extraArgs = [ "-f --nodiscard --label root" ];
|
||||
# subvolumes = {
|
||||
# "@" = {
|
||||
# mountpoint = "/";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# "@root" = {
|
||||
# mountpoint = "/root";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# "@home" = {
|
||||
# mountpoint = "/home";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# "@nix" = {
|
||||
# mountpoint = "/nix";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# "@var" = {
|
||||
# mountpoint = "/var";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# "@games" = {
|
||||
# mountpoint = "/games";
|
||||
# mountOptions = [ "defaults" "ssd" "compress=zstd" "autodefrag" "noatime" "nodiscard" ];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
# sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --yes-wipe-all-disks --mode destroy,format,mount ./disko.nix
|
||||
Reference in New Issue
Block a user