diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-24 14:52:36 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-24 14:52:57 +0200 |
commit | 33b704060e74e970313a1d64f6112588fca2332c (patch) | |
tree | e18665498100f3f9db0aa13b4c0bd2ffad87d767 /flake | |
parent | build(build.sh): Fail, when the build fails (diff) | |
download | nixos-config-33b704060e74e970313a1d64f6112588fca2332c.tar.gz nixos-config-33b704060e74e970313a1d64f6112588fca2332c.zip |
refactor(modules/unison): Migrate to `by-name` and parameterize
Diffstat (limited to '')
-rw-r--r-- | flake/nixosConfigurations/common.nix | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/flake/nixosConfigurations/common.nix b/flake/nixosConfigurations/common.nix index 585e883b..2ff85521 100644 --- a/flake/nixosConfigurations/common.nix +++ b/flake/nixosConfigurations/common.nix @@ -1,6 +1,6 @@ # This file contains common configuration applied to every host. # It should only `enable` options defined in the `modules` directory. -{...}: { +{config, ...}: { soispha = { boot.enable = true; cleanup.enable = true; @@ -37,6 +37,37 @@ snapper.enable = true; steam.enable = false; systemDiff.enable = true; + unison = { + enable = true; + + foreign.userName = "soispha"; + dataDir = "${config.home-manager.users.soispha.xdg.dataHome}/unison"; + userSourceDir = "/srv/home/soispha"; + pathsToIgnore = [ + # already synchronized by the taskserver + "~/.local/share/task" + + # Should not be synchronized + "~/.local/share/unison" + + # Is just to big to be synchronized (# TODO: Work around that <2024-08-31> ) + "~/media/music" + ]; + + pathsToSync = [ + "~/.local/state/mpv" + "~/.local/state/nvim" + "~/.local/share" + "~/.local/.Trash-1000" + + "~/.mozilla/.Trash-1000" + "~/.mozilla/firefox" + + "~/media" + "~/school" + "~/repos" + ]; + }; }; programs = { |