aboutsummaryrefslogtreecommitdiffstats
path: root/flake/nixosConfigurations
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-24 14:52:36 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-24 14:52:57 +0200
commit33b704060e74e970313a1d64f6112588fca2332c (patch)
treee18665498100f3f9db0aa13b4c0bd2ffad87d767 /flake/nixosConfigurations
parentbuild(build.sh): Fail, when the build fails (diff)
downloadnixos-config-33b704060e74e970313a1d64f6112588fca2332c.zip
refactor(modules/unison): Migrate to `by-name` and parameterize
Diffstat (limited to 'flake/nixosConfigurations')
-rw-r--r--flake/nixosConfigurations/common.nix33
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 = {