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.
|
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
alsa-utils
|
alsa-utils
|
||||||
sshpass
|
sshpass
|
||||||
|
|||||||
@@ -17,32 +17,58 @@
|
|||||||
boot.kernelModules = [ "amdgpu" ];
|
boot.kernelModules = [ "amdgpu" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{
|
device = "none";
|
||||||
device = "none";
|
fsType = "tmpfs";
|
||||||
fsType = "tmpfs";
|
options = [ "size=16G" "mode=755" ];
|
||||||
options = [ "size=16G" "mode=755" ];
|
};
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-uuid/856e1ebe-832f-422d-8d91-d43a5d852abb";
|
|
||||||
fsType = "f2fs";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd = {
|
boot.initrd = {
|
||||||
luks.devices."enc" = {
|
luks.devices."root" = {
|
||||||
crypttabExtraOpts = [ "fido2-device=auto" ];
|
crypttabExtraOpts = [ "fido2-device=auto" ];
|
||||||
device = "/dev/disk/by-uuid/08897ecb-23ce-4352-a1fc-fa442b9e0f72";
|
device = "/dev/disk/by-label/root";
|
||||||
};
|
};
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "/dev/mapper/root";
|
||||||
|
fsType = "btrfs";
|
||||||
|
neededForBoot = true;
|
||||||
|
options = [
|
||||||
|
"subvol=@"
|
||||||
|
"ssd"
|
||||||
|
"compress=zstd:3"
|
||||||
|
"discard=async"
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/nix/store" = {
|
||||||
{ device = "/dev/disk/by-uuid/1521-B173";
|
device = "/dev/mapper/root";
|
||||||
fsType = "vfat";
|
fsType = "btrfs";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
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 = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user