From 441db69dcc5bed4c93225f5ca9132caf5ce99e7e Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Tue, 4 Feb 2025 00:16:01 +0500 Subject: [PATCH] fix: NixOS | make mutable users false --- nixos/configuration.nix | 1 - nixos/disko-config.nix | 17 ++++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index fd79e28..eb383cc 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -118,7 +118,6 @@ in id = ["24353659"]; }; - users.mutableUsers = false; users.users.shahab = { shell = pkgs.zsh; diff --git a/nixos/disko-config.nix b/nixos/disko-config.nix index 055fa01..ffb18fc 100644 --- a/nixos/disko-config.nix +++ b/nixos/disko-config.nix @@ -1,7 +1,7 @@ { disko.devices = { disk = { - vdb = { + main = { type = "disk"; device = "/dev/nvme0n1"; content = { @@ -11,7 +11,7 @@ priority = 1; name = "ESP"; start = "1M"; - end = "128M"; + end = "512M"; type = "EF00"; content = { type = "filesystem"; @@ -41,13 +41,9 @@ mountpoint = "/nix"; mountOptions = ["subvol=nix" "compress=zstd" "noatime"]; }; - "/log" = { - mountpoint = "/var/log"; - mountOptions = ["subvol=log" "compress=zstd" "noatime"]; - }; - "/persist" = { - mountpoint = "/persist"; - mountOptions = ["subvol=persist" "compress=zstd" "noatime"]; + "/persistant" = { + mountpoint = "/persistant"; + mountOptions = ["subvol=persistant" "compress=zstd" "noatime"]; }; "/swap" = { mountpoint = "/swap"; @@ -63,6 +59,5 @@ }; }; - fileSystems."/persist".neededForBoot = true; - fileSystems."/var/log".neededForBoot = true; + fileSystems."/persistant".neededForBoot = true; }