mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 07:38:19 +01:00
laptop: Reconfigure mounts
This commit is contained in:
parent
03f91f3817
commit
6fc8040197
3 changed files with 9 additions and 27 deletions
|
|
@ -69,13 +69,6 @@ in
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
# btrfs options
|
|
||||||
fileSystems = {
|
|
||||||
"/".options = [ "compress=zstd" ];
|
|
||||||
"/home".options = [ "compress=zstd" ];
|
|
||||||
"/nix".options = [ "compress=zstd" "noatime" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernel.sysctl."kernel.sysrq" = 244;
|
boot.kernel.sysctl."kernel.sysrq" = 244;
|
||||||
|
|
||||||
boot.plymouth = {
|
boot.plymouth = {
|
||||||
|
|
|
||||||
|
|
@ -21,19 +21,25 @@ in
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=root" ];
|
options = [ "compress=zstd" "subvol=root" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" ];
|
options = [ "compress=zstd" "noatime" "subvol=nix" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=home" ];
|
options = [ "compress=zstd" "subvol=home" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/steamlibrary" =
|
||||||
|
{ device = root;
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=zstd" "subvol=steamlibrary" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
|
|
|
||||||
|
|
@ -13,21 +13,4 @@
|
||||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.automounts = [
|
|
||||||
{
|
|
||||||
where = "/mounts/my_data";
|
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
automountConfig = {
|
|
||||||
TimeoutIdleSec = 901;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
where = "/mounts/windows";
|
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
automountConfig = {
|
|
||||||
TimeoutIdleSec = 901;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue