mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
update system
This commit is contained in:
28
modules/nixos/shell/kde-connect.nix
Normal file
28
modules/nixos/shell/kde-connect.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.shell.components.kde-connect;
|
||||
in
|
||||
{
|
||||
options.shell.components.kde-connect = {
|
||||
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured kde connect setup");
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username}.services.kdeconnect.enable = true;
|
||||
networking.firewall = rec {
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = allowedTCPPortRanges;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user