1
Fork 0

Syncthing!

This commit is contained in:
Matei Adriel 2023-07-07 21:25:05 +02:00
parent c9bf24c49b
commit 07cfb35e1d
No known key found for this signature in database
7 changed files with 72 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }: {
{ pkgs, ... }: {
programs.git = {
enable = true;
package = pkgs.gitFull;
@ -8,6 +8,12 @@
userName = "Matei Adriel";
userEmail = "rafaeladriel11@gmail.com";
ignores = [
# Syncthing
".stfolder"
".stversions"
];
extraConfig = {
github.user = "Mateiadrielrafael";
hub.protocol = "ssh";

View file

@ -181,13 +181,15 @@ in
apps.extensions = extensions;
apps.app = {
# {{{ Job stuff
# {{{ Asana
asana = {
url = "https://app.asana.com/";
icon = ./icons/asana.png;
displayName = "Asana";
id = 1;
};
# }}}
# {{{ Clockodo
clockodo = {
url = "https://my.clockodo.com/en/";
icon = ./icons/clockodo.png;
@ -195,27 +197,39 @@ in
id = 2;
};
# }}}
# }}}
# {{{ Gitlab
gitlab = {
url = "https://gitlab.com";
icon = ./icons/gitlab.png;
displayName = "Gitlab";
id = 3;
};
# }}}
# {{{ Desmos
desmos = {
url = "https://www.desmos.com/calculator";
icon = ./icons/desmos.png;
displayName = "Desmos";
id = 4;
};
# }}}
# {{{ Monkey type
monkey-type = {
url = "https://monkeytype.com/";
icon = ./icons/monkeytype.png;
displayName = "Monkeytype";
id = 5;
};
# }}}
# {{{ Syncthing
syncthing = {
url = "http://localhost:8384/";
icon = ./icons/syncthing.png;
displayName = "Syncthing";
id = 6;
};
# }}}
};
# }}}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -95,4 +95,9 @@
# {{{ Wine
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
# }}}
# {{{ Syncthing
satellite.persistence.at.state.apps.Syncthing.directories = [
"${config.xdg.configHome}/syncthing" # Syncthing config data
];
# }}}
}

View file

@ -33,13 +33,14 @@ gestures {
}
# Execute apps at launch
exec-once = wezterm & firefox & discocss & spotify
exec-once = wezterm & firefox & discocss & spotify & Obsidian
# {{{ Window rules
# {{{ Automatically move stuff to workspaces
windowrulev2 = workspace 2 silent, title:^(.*Firefox.*)$
windowrulev2 = workspace 3 silent, title:^(.*(Disc|WebC)ord.*)$
windowrulev2 = workspace 6 silent, title:^(.*Spotify.*)$
windowrulev2 = workspace 7 silent, title:^(.*Obsidian.*)$
# }}}
# {{{ Idleinhibit rules
# - while firefox is fullscreen

View file

@ -0,0 +1,37 @@
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
configDir = "/home/adrielus/.config/syncthing";
dataDir = "/persist/data/syncthing";
user = "adrielus";
group = "syncthing";
# guiAddress = "0.0.0.0:8384"; # TODO: put this behind nginx
overrideDevices = true;
overrideFolders = true;
devices = {
"enceladus" = { id = "QWOAERM-V2FNXPI-TB7NFUS-LKW7JTB-IZY4OEZ-FYDPJNP-6IKPW4Y-YREXDQM"; };
};
folders = {
"stellar-sanctum" = {
path = "/home/adrielus/Projects/stellar-sanctum/";
devices = [ "enceladus" ];
# TODO: remove this once I switch to zfs
versioning = {
type = "staggered";
params = {
cleanInterval = "3600"; # 1 hour in seconds
maxAge = "604800"; # 14 days in seconds.
};
};
};
};
};
}

View file

@ -11,6 +11,7 @@
../common/optional/slambda.nix
../common/optional/xdg-portal.nix
../common/optional/hyprland.nix
../common/optional/syncthing.nix
../common/optional/xmonad
./hardware-configuration.nix