mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
add declarative syncthing config for Torus and remove module
This commit is contained in:
parent
f1f873f1ab
commit
9385a07586
@ -94,7 +94,6 @@
|
||||
jellyfin.enable = false;
|
||||
peripherals.enable = true;
|
||||
samba-client.enable = true;
|
||||
syncthing.enable = false;
|
||||
virt-manager.enable = true;
|
||||
};
|
||||
system = {
|
||||
|
@ -1,9 +1,10 @@
|
||||
{ config, pkgs, user, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../modules
|
||||
./wireguard-server.nix
|
||||
./samba-server.nix
|
||||
../../modules
|
||||
./syncthing.nix
|
||||
];
|
||||
|
||||
nix = {
|
||||
@ -130,7 +131,6 @@
|
||||
};
|
||||
services = {
|
||||
jellyfin.enable = true;
|
||||
syncthing.enable = true;
|
||||
};
|
||||
system = {
|
||||
terminal.enable = true;
|
||||
|
15
provision/hosts/torus/syncthing.nix
Normal file
15
provision/hosts/torus/syncthing.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ syncthing ];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "${user}";
|
||||
configDir = "/home/${user}/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
devices = {
|
||||
};
|
||||
folders = {
|
||||
};
|
||||
};
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./syncthing.nix ./samba-client.nix ./jellyfin.nix ./virt-manager.nix ./peripherals.nix ];
|
||||
imports = [ ./samba-client.nix ./jellyfin.nix ./virt-manager.nix ./peripherals.nix ];
|
||||
}
|
||||
|
@ -1,15 +0,0 @@
|
||||
{ config, lib, pkgs, user, ... }:
|
||||
|
||||
let cfg = config.modules.services.syncthing;
|
||||
in {
|
||||
options.modules.services.syncthing.enable = lib.mkEnableOption "syncthing";
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [ syncthing ];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "${user}";
|
||||
configDir = "/home/${user}/.config/syncthing";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user