From ed006f8ede0bb81e7d28ace555f7221fbfcc9d98 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sat, 8 Feb 2025 14:35:45 +0500 Subject: [PATCH] fix: NixOS | misc cleanup --- nixos/configuration.nix | 13 +++++-------- nixos/disko-config.nix | 6 +++--- nixos/hardware-configuration.nix | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index e892903..4fe05ec 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -209,7 +209,6 @@ in { "/var/lib/nixos" "/var/lib/sbctl" "/var/lib/systemd/coredump" - "/var/lib/sbctl" "/etc/NetworkManager/system-connections" ]; files = [ @@ -218,15 +217,13 @@ in { users.shahab = { directories = [ "Downloads" - "nix-config" - "nix-secrets" + "nix-config" + "nix-secrets" ".config" + ".local/share" + ".1Password" + ".steam" { 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"; } ]; }; }; diff --git a/nixos/disko-config.nix b/nixos/disko-config.nix index 3cea945..9594d8f 100644 --- a/nixos/disko-config.nix +++ b/nixos/disko-config.nix @@ -74,10 +74,10 @@ "noatime" ]; }; - "/persistant" = { - mountpoint = "/persistant"; + "/persistent" = { + mountpoint = "/persistent"; mountOptions = [ - "subvol=persistant" + "subvol=persistent" "compress=zstd" "noatime" ]; diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index a81b610..5649fb0 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -9,7 +9,7 @@ }: { imports = [(modulesPath + "/installer/scan/not-detected.nix")]; - fileSystems."/persistant".neededForBoot = true; + fileSystems."/persistent".neededForBoot = true; boot = { initrd = { availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "thunderbolt" "usb_storage" "sd_mod"];