fix: change to btrfs and fix an error
This commit is contained in:
@@ -179,6 +179,8 @@ in {
|
||||
extraGroups = [ "wheel" "disk" "video" "audio" "mysql" "docker" "vboxusers" "networkmanager" "onepassword" "onepassword-cli" "dialout" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
|
||||
users.groups.dominik = {};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alsa-utils
|
||||
sshpass
|
||||
|
||||
@@ -17,31 +17,57 @@
|
||||
boot.kernelModules = [ "amdgpu" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
fileSystems."/" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
options = [ "size=16G" "mode=755" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/disk/by-uuid/856e1ebe-832f-422d-8d91-d43a5d852abb";
|
||||
fsType = "f2fs";
|
||||
};
|
||||
|
||||
boot.initrd = {
|
||||
luks.devices."enc" = {
|
||||
luks.devices."root" = {
|
||||
crypttabExtraOpts = [ "fido2-device=auto" ];
|
||||
device = "/dev/disk/by-uuid/08897ecb-23ce-4352-a1fc-fa442b9e0f72";
|
||||
device = "/dev/disk/by-label/root";
|
||||
};
|
||||
systemd.enable = true;
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/mapper/root";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [
|
||||
"subvol=@"
|
||||
"ssd"
|
||||
"compress=zstd:3"
|
||||
"discard=async"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1521-B173";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
fileSystems."/nix/store" = {
|
||||
device = "/dev/mapper/root";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [
|
||||
"subvol=@nix-store"
|
||||
"ssd"
|
||||
"compress=zstd:3"
|
||||
"discard=async"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/nix/persist" = {
|
||||
device = "/dev/mapper/root";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [
|
||||
"subvol=@nix-persist"
|
||||
"ssd"
|
||||
"compress=zstd:3"
|
||||
"discard=async"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
Reference in New Issue
Block a user