syncthing
This commit is contained in:
parent
b6b5b33a09
commit
96028bb33c
2 changed files with 26 additions and 0 deletions
|
@ -66,6 +66,7 @@
|
||||||
system.eza.enable = true;
|
system.eza.enable = true;
|
||||||
system.wezterm.enable = true;
|
system.wezterm.enable = true;
|
||||||
system.fish.enable = true;
|
system.fish.enable = true;
|
||||||
|
system.syncthing.enable = true;
|
||||||
# editors
|
# editors
|
||||||
editors.micro.enable = true;
|
editors.micro.enable = true;
|
||||||
editors.vscode.enable = true;
|
editors.vscode.enable = true;
|
||||||
|
|
25
modules/software/system/syncthing.nix
Normal file
25
modules/software/system/syncthing.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.software.system.syncthing;
|
||||||
|
in {
|
||||||
|
options.modules.software.system.syncthing = {
|
||||||
|
enable = mkEnableOption "Enable Syncthing, a file synchronization server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# declare sync folders & devices here
|
||||||
|
# edit: turns out you can't with hm??
|
||||||
|
hm.services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
# shit broken as hell ngl
|
||||||
|
tray = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.syncthingtray-minimal;
|
||||||
|
|
||||||
|
command = "syncthingtray --wait";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue