diff --git a/home-manager/sajenim/features/desktop/discord/default.nix b/home-manager/sajenim/features/desktop/discord/default.nix index 838f8fe..4fb77a4 100644 --- a/home-manager/sajenim/features/desktop/discord/default.nix +++ b/home-manager/sajenim/features/desktop/discord/default.nix @@ -14,9 +14,4 @@ enable = true; source = ./config/custom.css; }; - - home.persistence."/persist/home/sajenim".directories = [ - ".config/discord" - ".config/BetterDiscord" - ]; } diff --git a/home-manager/sajenim/features/desktop/email.nix b/home-manager/sajenim/features/desktop/email.nix index 346a889..3461301 100644 --- a/home-manager/sajenim/features/desktop/email.nix +++ b/home-manager/sajenim/features/desktop/email.nix @@ -101,15 +101,4 @@ proton.isDefault = true; }; }; - - home.persistence."/persist/home/sajenim" = { - directories = [ - # email configuration - ".config/protonmail" - # email cache of messages - ".local/share/protonmail" - # gpg encrypted passwords - ".password-store" - ]; - }; } diff --git a/home-manager/sajenim/features/desktop/irc.nix b/home-manager/sajenim/features/desktop/irc.nix index cc6b3f4..7bb487e 100644 --- a/home-manager/sajenim/features/desktop/irc.nix +++ b/home-manager/sajenim/features/desktop/irc.nix @@ -2,15 +2,4 @@ home.packages = with pkgs; [ weechat ]; - - home.persistence."/persist/home/sajenim" = { - directories = [ - # WeeChat configuration files: *.conf, certificates, etc. - ".config/weechat" - # WeeChat data files: logs, scripts, scripts data, xfer files, etc. - ".local/share/weechat" - # WeeChat cache files: scripts cache. - ".cache/weechat" - ]; - }; } diff --git a/home-manager/sajenim/features/printing/default.nix b/home-manager/sajenim/features/printing/default.nix index 8a0b051..3b11048 100644 --- a/home-manager/sajenim/features/printing/default.nix +++ b/home-manager/sajenim/features/printing/default.nix @@ -7,10 +7,5 @@ openscad unstable.prusa-slicer ]; - persistence."/persist/home/sajenim" = { - directories = [ - ".config/PrusaSlicer" - ]; - }; }; } diff --git a/home-manager/sajenim/fuchsia.nix b/home-manager/sajenim/fuchsia.nix index 629f38c..efc1796 100644 --- a/home-manager/sajenim/fuchsia.nix +++ b/home-manager/sajenim/fuchsia.nix @@ -24,28 +24,5 @@ # Misc firefox ]; - - persistence."/persist/home/sajenim" = { - directories = [ - ".mozilla" - # Hidden user data - ".repositories" - ".print" - # Mutable configurations - ".config/htop" - ".config/lazygit" - ".config/Yubico" - # Application specific data - ".local/share/PrismLauncher" - ".local/share/Jellyfin Media Player" - # Our user data - "Documents" - "Downloads" - "Games" - "Music" - "Pictures" - "Videos" - ]; - }; }; } diff --git a/home-manager/sajenim/global/default.nix b/home-manager/sajenim/global/default.nix index 20182f4..e37d20f 100644 --- a/home-manager/sajenim/global/default.nix +++ b/home-manager/sajenim/global/default.nix @@ -1,10 +1,5 @@ -{ - inputs, - outputs, - ... -}: { +{outputs, ...}: { imports = [ - inputs.impermanence.nixosModules.home-manager.impermanence ../features/cli ]; @@ -28,22 +23,6 @@ sessionVariables = { EDITOR = "nvim"; }; - - persistence."/persist/home/sajenim" = { - directories = [ - ".gnupg" - ".ssh" - ".var/app" - ".local/bin" - ".local/share/flatpak" - ".local/share/nix" - ".local/share/direnv" - ]; - files = [ - ".zsh_history" - ]; - allowOther = true; - }; }; systemd.user.startServices = "sd-switch"; diff --git a/nixos/common/users/sajenim/default.nix b/nixos/common/users/sajenim/default.nix index 7e1678f..2c04c83 100644 --- a/nixos/common/users/sajenim/default.nix +++ b/nixos/common/users/sajenim/default.nix @@ -8,6 +8,7 @@ imports = [ inputs.home-manager.nixosModules.home-manager ]; + users.users.sajenim = { isNormalUser = true; extraGroups = ["audio" "docker" "networkmanager" "wheel" "adbusers"]; @@ -26,4 +27,10 @@ }; backupFileExtension = "bak"; }; + + fileSystems."/home/sajenim" = { + device = "/dev/disk/by-label/data"; + fsType = "btrfs"; + options = ["subvol=sajenim" "compress=zstd"]; + }; } diff --git a/nixos/common/users/spectre/default.nix b/nixos/common/users/spectre/default.nix index 776c43e..e7535c5 100644 --- a/nixos/common/users/spectre/default.nix +++ b/nixos/common/users/spectre/default.nix @@ -6,10 +6,17 @@ imports = [ inputs.home-manager.nixosModules.home-manager ]; + users.users.spectre = { isNormalUser = true; shell = pkgs.zsh; hashedPassword = "$y$j9T$eCJ0MDPsx3tww9LP0LU8..$sE8u5keO7QNKNAR1t2R6GqsDzvGD0Xn9Fi3to14Gf9/"; }; users.mutableUsers = false; + + fileSystems."/home/spectre" = { + device = "/dev/disk/by-label/data"; + fsType = "btrfs"; + options = ["subvol=spectre" "compress=zstd"]; + }; }