idk preparing for work host?

This commit is contained in:
Anish L 2022-03-24 23:06:10 +10:00
parent 8447e39b59
commit b8acc694da
2 changed files with 13 additions and 11 deletions

View file

@ -104,13 +104,14 @@
hosts = { hosts = {
/* set host specific properties here */ /* set host specific properties here */
NixOS = { }; NixOS = { };
curve = { curve = {
channelName = "nixos"; channelName = "nixos";
#modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad #modules = [ ]; # nixos-hardware.nixosModules.lenovo-thinkpad
# Yubikey # Yubikey
}; };
box = { }; box = { };
hypercube = { }; hypercube = { };
work = { };
}; };
importables = rec { importables = rec {
profiles = digga.lib.rakeLeaves ./profiles // { profiles = digga.lib.rakeLeaves ./profiles // {
@ -120,9 +121,10 @@
base = [ core users.root nvim users.anish ]; # TODO make anish non gui base = [ core users.root nvim users.anish ]; # TODO make anish non gui
sealight = [ base ]; # matrix rsshub backup wireguard website sealight = [ base ]; # matrix rsshub backup wireguard website
mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones
graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync wireguard wifi ]; home-manager = [ users.profiles.firefox users.profiles.desktop ];
curve = [ graphical users.profiles.email users.profiles.cal]; graphical = [ base home-manager bluetooth music sync wireguard wifi ];
work = [ base ]; curve = [ graphical users.profiles.email users.profiles.cal ];
work = [ base home-manager ];
}; };
}; };
}; };

View file

@ -1,16 +1,16 @@
{pkgs, ...}: { pkgs, ... }:
{ {
systemd.services.kitaab-sync = { systemd.services.kitaab-sync = {
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
path = [ path = [
pkgs.git pkgs.git
]; ];
script = '' script = ''
cd /home/anish/vimwiki/ ${pkgs.coreutils}/bin/cd /home/anish/vimwiki/
git commit -am "syncing curve" ${pkgs.git} commit -am "syncing curve"
git push ${pkgs.git} push
''; '';
}; };
systemd.timers.kitaab-timer = { systemd.timers.kitaab-timer = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];