Syncthing!
This commit is contained in:
parent
c9bf24c49b
commit
07cfb35e1d
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, ... }: {
|
{ pkgs, ... }: {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitFull;
|
package = pkgs.gitFull;
|
||||||
|
@ -8,6 +8,12 @@
|
||||||
userName = "Matei Adriel";
|
userName = "Matei Adriel";
|
||||||
userEmail = "rafaeladriel11@gmail.com";
|
userEmail = "rafaeladriel11@gmail.com";
|
||||||
|
|
||||||
|
ignores = [
|
||||||
|
# Syncthing
|
||||||
|
".stfolder"
|
||||||
|
".stversions"
|
||||||
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
github.user = "Mateiadrielrafael";
|
github.user = "Mateiadrielrafael";
|
||||||
hub.protocol = "ssh";
|
hub.protocol = "ssh";
|
||||||
|
|
|
@ -181,13 +181,15 @@ in
|
||||||
apps.extensions = extensions;
|
apps.extensions = extensions;
|
||||||
apps.app = {
|
apps.app = {
|
||||||
# {{{ Job stuff
|
# {{{ Job stuff
|
||||||
|
# {{{ Asana
|
||||||
asana = {
|
asana = {
|
||||||
url = "https://app.asana.com/";
|
url = "https://app.asana.com/";
|
||||||
icon = ./icons/asana.png;
|
icon = ./icons/asana.png;
|
||||||
displayName = "Asana";
|
displayName = "Asana";
|
||||||
id = 1;
|
id = 1;
|
||||||
};
|
};
|
||||||
|
# }}}
|
||||||
|
# {{{ Clockodo
|
||||||
clockodo = {
|
clockodo = {
|
||||||
url = "https://my.clockodo.com/en/";
|
url = "https://my.clockodo.com/en/";
|
||||||
icon = ./icons/clockodo.png;
|
icon = ./icons/clockodo.png;
|
||||||
|
@ -195,27 +197,39 @@ in
|
||||||
id = 2;
|
id = 2;
|
||||||
};
|
};
|
||||||
# }}}
|
# }}}
|
||||||
|
# }}}
|
||||||
|
# {{{ Gitlab
|
||||||
gitlab = {
|
gitlab = {
|
||||||
url = "https://gitlab.com";
|
url = "https://gitlab.com";
|
||||||
icon = ./icons/gitlab.png;
|
icon = ./icons/gitlab.png;
|
||||||
displayName = "Gitlab";
|
displayName = "Gitlab";
|
||||||
id = 3;
|
id = 3;
|
||||||
};
|
};
|
||||||
|
# }}}
|
||||||
|
# {{{ Desmos
|
||||||
desmos = {
|
desmos = {
|
||||||
url = "https://www.desmos.com/calculator";
|
url = "https://www.desmos.com/calculator";
|
||||||
icon = ./icons/desmos.png;
|
icon = ./icons/desmos.png;
|
||||||
displayName = "Desmos";
|
displayName = "Desmos";
|
||||||
id = 4;
|
id = 4;
|
||||||
};
|
};
|
||||||
|
# }}}
|
||||||
|
# {{{ Monkey type
|
||||||
monkey-type = {
|
monkey-type = {
|
||||||
url = "https://monkeytype.com/";
|
url = "https://monkeytype.com/";
|
||||||
icon = ./icons/monkeytype.png;
|
icon = ./icons/monkeytype.png;
|
||||||
displayName = "Monkeytype";
|
displayName = "Monkeytype";
|
||||||
id = 5;
|
id = 5;
|
||||||
};
|
};
|
||||||
|
# }}}
|
||||||
|
# {{{ Syncthing
|
||||||
|
syncthing = {
|
||||||
|
url = "http://localhost:8384/";
|
||||||
|
icon = ./icons/syncthing.png;
|
||||||
|
displayName = "Syncthing";
|
||||||
|
id = 6;
|
||||||
|
};
|
||||||
|
# }}}
|
||||||
};
|
};
|
||||||
# }}}
|
# }}}
|
||||||
};
|
};
|
||||||
|
|
BIN
home/features/desktop/firefox/icons/syncthing.png
Normal file
BIN
home/features/desktop/firefox/icons/syncthing.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -95,4 +95,9 @@
|
||||||
# {{{ Wine
|
# {{{ Wine
|
||||||
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
|
satellite.persistence.at.state.apps.Wine.directories = [ ".wine" ];
|
||||||
# }}}
|
# }}}
|
||||||
|
# {{{ Syncthing
|
||||||
|
satellite.persistence.at.state.apps.Syncthing.directories = [
|
||||||
|
"${config.xdg.configHome}/syncthing" # Syncthing config data
|
||||||
|
];
|
||||||
|
# }}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,13 +33,14 @@ gestures {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Execute apps at launch
|
# Execute apps at launch
|
||||||
exec-once = wezterm & firefox & discocss & spotify
|
exec-once = wezterm & firefox & discocss & spotify & Obsidian
|
||||||
|
|
||||||
# {{{ Window rules
|
# {{{ Window rules
|
||||||
# {{{ Automatically move stuff to workspaces
|
# {{{ Automatically move stuff to workspaces
|
||||||
windowrulev2 = workspace 2 silent, title:^(.*Firefox.*)$
|
windowrulev2 = workspace 2 silent, title:^(.*Firefox.*)$
|
||||||
windowrulev2 = workspace 3 silent, title:^(.*(Disc|WebC)ord.*)$
|
windowrulev2 = workspace 3 silent, title:^(.*(Disc|WebC)ord.*)$
|
||||||
windowrulev2 = workspace 6 silent, title:^(.*Spotify.*)$
|
windowrulev2 = workspace 6 silent, title:^(.*Spotify.*)$
|
||||||
|
windowrulev2 = workspace 7 silent, title:^(.*Obsidian.*)$
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ Idleinhibit rules
|
# {{{ Idleinhibit rules
|
||||||
# - while firefox is fullscreen
|
# - while firefox is fullscreen
|
||||||
|
|
37
hosts/nixos/common/optional/syncthing.nix
Normal file
37
hosts/nixos/common/optional/syncthing.nix
Normal 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.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -11,6 +11,7 @@
|
||||||
../common/optional/slambda.nix
|
../common/optional/slambda.nix
|
||||||
../common/optional/xdg-portal.nix
|
../common/optional/xdg-portal.nix
|
||||||
../common/optional/hyprland.nix
|
../common/optional/hyprland.nix
|
||||||
|
../common/optional/syncthing.nix
|
||||||
../common/optional/xmonad
|
../common/optional/xmonad
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
Loading…
Reference in a new issue