From 12a4a1c98697b38f484d247c1d85d634543f2409 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 Sep 2021 11:07:58 +0200 Subject: sif/vidhar: unison --- accounts/gkleen@sif/default.nix | 10 ++++++++++ accounts/gkleen@vidhar.nix | 11 +++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index dfdec275..362a3474 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -183,6 +183,16 @@ in { "@button9" = "${pkgs.pulseaudio}/bin/pacmd set-sink-mute @DEFAULT_SINK@ 0"; }; }; + + unison = { + enable = true; + pairs = { + documents = { + roots = ["${cfg.home.homeDirectory}/documents" "ssh://vidhar/documents"]; + stateDirectory = "${cfg.xdg.dataHome}/documents.unison"; + }; + }; + }; }; gtk = { diff --git a/accounts/gkleen@vidhar.nix b/accounts/gkleen@vidhar.nix index 2bb4f32b..bf75f694 100644 --- a/accounts/gkleen@vidhar.nix +++ b/accounts/gkleen@vidhar.nix @@ -1,7 +1,14 @@ -{ flake, userName, ... }: { +{ flake, pkgs, userName, ... }: { imports = with flake.nixosModules.userProfiles.${userName}; [ feeds ]; - config.users.users.${userName}.uid = 1000; + config = { + users.users.${userName}.uid = 1000; + home-manager.users.${userName} = { + home.packages = with pkgs; [ + unison + ]; + }; + }; } -- cgit v1.2.3