From 540251dcfcea8f36c2efde8e43c6cc6c6e5001e3 Mon Sep 17 00:00:00 2001 From: tomoron Date: Sat, 19 Oct 2024 14:15:03 +0200 Subject: [PATCH] add desk_sync to .local/bin, change default flake in makefile to be the cwd, change desk_sync to use sh instead of bash --- Makefile | 2 +- dotfiles/local/bin/desk_sync | 2 +- home.nix | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c916c9c..6e8a9c3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ HOST ?= $(file < /etc/nixosFlakeName) THREADS ?= $(shell nproc) -FLAKE ?= /home/tom/home +FLAKE ?= . MODE = switch FLAGS = --impure --cores $(THREADS) -j $(THREADS) diff --git a/dotfiles/local/bin/desk_sync b/dotfiles/local/bin/desk_sync index 0caf160..143f009 100755 --- a/dotfiles/local/bin/desk_sync +++ b/dotfiles/local/bin/desk_sync @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/sh unison /home/tom/Desktop ssh://tom@tmoron.fr:1880//home/tom/Desktop_sync/Desktop $@ diff --git a/home.nix b/home.nix index 5227d65..2311378 100644 --- a/home.nix +++ b/home.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/10/17 18:15:38 by tomoron #+# #+# # -# Updated: 2024/10/18 19:42:47 by tomoron ### ########.fr # +# Updated: 2024/10/19 14:12:59 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -52,6 +52,8 @@ rev = "c8239a45edced3502894e1716a8b661fdea8f1c9"; ref = "master"; }}/themes"; + + ".local/bin/desk_sync".source = dotfiles/local/bin/desk_sync; }; programs.home-manager.enable = true;