diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-02 21:36:04 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-02 21:36:04 +0200 |
| commit | 923a2f6b4bd124e6326c86fdcb4f541dd06b2bd5 (patch) | |
| tree | 290776c4db2108280476e5b41ce3fc739d361ed0 /modules/by-name/un/unison | |
| parent | modules/default/projects: Add one (diff) | |
| download | nixos-config-923a2f6b4bd124e6326c86fdcb4f541dd06b2bd5.zip | |
modules/default/unison: Move the pathsTo* rules to their respective modules
Diffstat (limited to 'modules/by-name/un/unison')
| -rw-r--r-- | modules/by-name/un/unison/module.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/by-name/un/unison/module.nix b/modules/by-name/un/unison/module.nix index 8d156b00..8e943304 100644 --- a/modules/by-name/un/unison/module.nix +++ b/modules/by-name/un/unison/module.nix @@ -84,6 +84,17 @@ in { }; config = lib.mkIf cfg.enable { + soispha.services.unison.pathsToIgnore = let + prefix = "/home/soispha/"; + dataDir = + if lib.strings.hasPrefix prefix cfg.dataDir + then "~/${lib.strings.removePrefix prefix cfg.dataDir}" + else builtins.throw "Wrong prefix in unison"; + in [ + # Should not be synchronized + dataDir + ]; + home-manager.users.soispha = { home.sessionVariables = { UNISON = cfg.dataDir; |
