fix: NixOS | misc cleanup

This commit is contained in:
2025-02-08 14:35:45 +05:00
parent ee9fae50c6
commit ed006f8ede
3 changed files with 9 additions and 12 deletions

View File

@@ -209,7 +209,6 @@ in {
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/sbctl" "/var/lib/sbctl"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/var/lib/sbctl"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
]; ];
files = [ files = [
@@ -218,15 +217,13 @@ in {
users.shahab = { users.shahab = {
directories = [ directories = [
"Downloads" "Downloads"
"nix-config" "nix-config"
"nix-secrets" "nix-secrets"
".config" ".config"
".local/share"
".1Password"
".steam"
{ directory = ".ssh"; mode = "0700"; } { directory = ".ssh"; mode = "0700"; }
{ directory = ".steam"; mode = "0700"; }
{ directory = ".local/share/Steam"; mode = "0700"; }
{ directory = ".local/share/nvim"; mode = "0700"; }
{ directory = ".local/share/direnv"; mode = "0700"; }
{ directory = ".1Password"; mode = "0700"; }
]; ];
}; };
}; };

View File

@@ -74,10 +74,10 @@
"noatime" "noatime"
]; ];
}; };
"/persistant" = { "/persistent" = {
mountpoint = "/persistant"; mountpoint = "/persistent";
mountOptions = [ mountOptions = [
"subvol=persistant" "subvol=persistent"
"compress=zstd" "compress=zstd"
"noatime" "noatime"
]; ];

View File

@@ -9,7 +9,7 @@
}: { }: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")]; imports = [(modulesPath + "/installer/scan/not-detected.nix")];
fileSystems."/persistant".neededForBoot = true; fileSystems."/persistent".neededForBoot = true;
boot = { boot = {
initrd = { initrd = {
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "thunderbolt" "usb_storage" "sd_mod"]; availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "thunderbolt" "usb_storage" "sd_mod"];