From e2c5967d8f2fd9ce1b7fda1e349aee2a9e76aa85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Mon, 8 Sep 2025 10:32:22 -0600 Subject: [PATCH] feat(impermanence): msyds --- modules/home/users/msyds/impermanence.nix | 33 +++++++++++++++++++++++ users/msyds/default.nix | 1 + 2 files changed, 34 insertions(+) create mode 100644 modules/home/users/msyds/impermanence.nix diff --git a/modules/home/users/msyds/impermanence.nix b/modules/home/users/msyds/impermanence.nix new file mode 100644 index 0000000..014dffb --- /dev/null +++ b/modules/home/users/msyds/impermanence.nix @@ -0,0 +1,33 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.sydnix.users.msyds.impermanence; +in { + options.sydnix.users.msyds.impermanence = { + enable = lib.mkEnableOption "top-level home files"; + }; + + config = lib.mkIf cfg.enable { + sydnix.impermanence = { + enable = true; + directories = [ + ".wine" + "Music" + "Pictures" + "Documents" + "Videos" + "Games" + "src" # My projects. + "scratch" # My playgrounds. + "etc" # Miscellaneous belongings. + "git" # Other peoples' projects. + # Should "org" be declared in emacs.nix? I don't think so. I + # conjecture that my org files are extremely valuable with or without + # Emacs. + "org" + # REVIEW: I think it may be preferable to persist a few individual files + # under ~/.ssh, rather than the whole directory. + ".ssh" + ]; + }; + }; +} diff --git a/users/msyds/default.nix b/users/msyds/default.nix index f415ca7..3637621 100644 --- a/users/msyds/default.nix +++ b/users/msyds/default.nix @@ -39,6 +39,7 @@ }; users.msyds = { emacs.enable = true; + impermanence.enable = true; }; };