diff --git a/flake.nix b/flake.nix index 5fa59a47..574b315a 100644 --- a/flake.nix +++ b/flake.nix @@ -104,13 +104,14 @@ hosts = { /* set host specific properties here */ NixOS = { }; - curve = { + curve = { channelName = "nixos"; #modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad # Yubikey }; box = { }; hypercube = { }; + work = { }; }; importables = rec { profiles = digga.lib.rakeLeaves ./profiles // { @@ -120,9 +121,10 @@ base = [ core users.root nvim users.anish ]; # TODO make anish non gui sealight = [ base ]; # matrix rsshub backup wireguard website mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones - graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync wireguard wifi ]; - curve = [ graphical users.profiles.email users.profiles.cal]; - work = [ base ]; + home-manager = [ users.profiles.firefox users.profiles.desktop ]; + graphical = [ base home-manager bluetooth music sync wireguard wifi ]; + curve = [ graphical users.profiles.email users.profiles.cal ]; + work = [ base home-manager ]; }; }; }; diff --git a/profiles/sync/default.nix b/profiles/sync/default.nix index 795fcb3e..6b7fbbaa 100644 --- a/profiles/sync/default.nix +++ b/profiles/sync/default.nix @@ -1,16 +1,16 @@ -{pkgs, ...}: +{ pkgs, ... }: { systemd.services.kitaab-sync = { serviceConfig.Type = "oneshot"; path = [ - pkgs.git - ]; + pkgs.git + ]; script = '' - cd /home/anish/vimwiki/ - git commit -am "syncing curve" - git push - ''; + ${pkgs.coreutils}/bin/cd /home/anish/vimwiki/ + ${pkgs.git} commit -am "syncing curve" + ${pkgs.git} push + ''; }; systemd.timers.kitaab-timer = { wantedBy = [ "timers.target" ];