use btrfs

This commit is contained in:
Christoph Cullmann 2024-10-29 18:37:48 +01:00
parent 392ce162d4
commit a9898f7b3c
No known key found for this signature in database
2 changed files with 36 additions and 33 deletions

View file

@ -16,13 +16,18 @@
# amd graphics # amd graphics
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd ]; hardware.graphics.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd ];
FIXME
# /boot efi partition to boot in UEFI mode # /boot efi partition to boot in UEFI mode
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1"; device = "/dev/disk/by-uuid/A361-6A10";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
neededForBoot = true; neededForBoot = true;
}; };
# encrypted system
boot.initrd.luks.devices."crypt-system" = {
device = "/dev/disk/by-uuid/a1d1ef39-74ea-4a6c-bc47-8ae90e002126";
allowDiscards = true;
bypassWorkqueues = true;
};
} }

View file

@ -17,22 +17,17 @@ in
"/data/nixos/share/users.nix" "/data/nixos/share/users.nix"
]; ];
# This value determines the NixOS release from which the default # install release
# settings for stateful data, like file locations and database versions system.stateVersion = "24.11";
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
# atm all stuff is x86_64 # atm all stuff is x86_64
nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.hostPlatform = "x86_64-linux";
# use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# my kernel parameters # my kernel parameters
boot.kernelParams = [ boot.kernelParams = [
# no hibernate
"nohibernate"
# don't check for split locks, for KVM and Co. # don't check for split locks, for KVM and Co.
"split_lock_detect=off" "split_lock_detect=off"
]; ];
@ -68,25 +63,28 @@ in
}; };
# my data # my data
fileSystems."/data" = fileSystems."/data" = {
{ device = "zpool/data"; device = "/dev/mapper/crypt-system";
fsType = "zfs"; fsType = "btrfs";
neededForBoot = true; options = [ "subvol=data" "noatime" ];
}; neededForBoot = true;
};
# the system # the system
fileSystems."/nix" = fileSystems."/nix" = {
{ device = "zpool/nix"; device = "/dev/mapper/crypt-system";
fsType = "zfs"; fsType = "btrfs";
neededForBoot = true; options = [ "subvol=nix" "noatime" ];
}; neededForBoot = true;
};
# tmp to not fill RAM # tmp to not fill RAM
fileSystems."/tmp" = fileSystems."/tmp" = {
{ device = "zpool/tmp"; device = "/dev/mapper/crypt-system";
fsType = "zfs"; fsType = "btrfs";
neededForBoot = true; options = [ "subvol=tmp" "noatime" ];
}; neededForBoot = true;
};
# bind mount to have root home # bind mount to have root home
fileSystems."/root" = fileSystems."/root" =