🧹 restructure layout
This commit is contained in:
parent
40c2a5fb29
commit
268374ad58
115 changed files with 2641 additions and 2085 deletions
|
|
@ -1,14 +1,31 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
ports = {
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
};
|
||||
cfg = config.my.services.kdeconnect;
|
||||
in
|
||||
{
|
||||
home-manager.users.moritz.services.kdeconnect.enable = true;
|
||||
networking.firewall = {
|
||||
allowedTCPPortRanges = [ ports ];
|
||||
allowedUDPPortRanges = [ ports ];
|
||||
options.my.services.kdeconnect = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.moritz.services.kdeconnect.enable = true;
|
||||
networking.firewall = {
|
||||
allowedTCPPortRanges = [ ports ];
|
||||
allowedUDPPortRanges = [ ports ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue