Users: re-enable Syncthing Tray
This commit is contained in:
parent
61df793f90
commit
b6f6da57e5
|
@ -5,7 +5,7 @@
|
|||
|
||||
inputs = {
|
||||
# Import the desired Nix channel. Defaults to unstable, which uses a fully tested rolling release model.
|
||||
# You can find a list of channels at https://wiki.nixos.org/wiki/Nix_channels
|
||||
# You can find a list of channels at https://wiki.nixos.org/wiki/Channel_branches
|
||||
# To follow a different channel, replace `nixos-unstable` with the channel name, e.g. `nixos-24.05`.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
|
|
@ -105,11 +105,17 @@ in
|
|||
users = {
|
||||
aires = {
|
||||
enable = true;
|
||||
services.syncthing.enable = true;
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
enableTray = true;
|
||||
};
|
||||
};
|
||||
gremlin = {
|
||||
enable = true;
|
||||
services.syncthing.enable = true;
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
enableTray = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -122,10 +122,11 @@ in
|
|||
|
||||
# Enable Syncthing
|
||||
(lib.mkIf cfg.services.syncthing.enable {
|
||||
users.users.aires.packages = [
|
||||
pkgs.syncthing
|
||||
(lib.mkIf cfg.services.syncthing.enableTray pkgs.syncthingtray)
|
||||
];
|
||||
users.users.aires.packages = [ pkgs.syncthing ];
|
||||
|
||||
services.flatpak.packages = lib.mkIf (
|
||||
config.aux.system.ui.flatpak.enable && cfg.services.syncthing.enableTray
|
||||
) [ "io.github.martchus.syncthingtray" ];
|
||||
|
||||
# Open port 8080
|
||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||
|
|
|
@ -103,12 +103,11 @@ in
|
|||
|
||||
# Enable Syncthing
|
||||
(lib.mkIf cfg.services.syncthing.enable {
|
||||
users.users.gremlin = {
|
||||
packages = [
|
||||
pkgs.syncthing
|
||||
(lib.mkIf cfg.services.syncthing.enableTray pkgs.syncthingtray)
|
||||
];
|
||||
};
|
||||
users.users.gremlin.packages = [ pkgs.syncthing ];
|
||||
|
||||
services.flatpak.packages = lib.mkIf (
|
||||
config.aux.system.ui.flatpak.enable && cfg.services.syncthing.enableTray
|
||||
) [ "io.github.martchus.syncthingtray" ];
|
||||
|
||||
home-manager.users.gremlin = {
|
||||
# Syncthing options
|
||||
|
|
Loading…
Reference in a new issue