commit bda4b2c8ca6ee5fa73abdf3121c2c5dfdcbc7b1f
parent b3e4a08ab8557e4068d877e08e4d3d70e0ba292e
Author: Katja (zaphyra) <git@ctu.cx>
Date: Fri, 13 Jun 2025 21:47:49 +0200
parent b3e4a08ab8557e4068d877e08e4d3d70e0ba292e
Author: Katja (zaphyra) <git@ctu.cx>
Date: Fri, 13 Jun 2025 21:47:49 +0200
config/nixos/modules/programs: add `AusweisApp` (and enable on host `huntii`)
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/config/nixos/modules/programs/AusweisApp.nix b/config/nixos/modules/programs/AusweisApp.nix @@ -0,0 +1,26 @@ +{ + povSelf, + pkgs, + lib, + config, + ... +}: + +let + inherit (lib) types; + cfg = lib.getAttrFromPath povSelf config; + +in +{ + + options.enable = { + type = types.bool; + default = false; + }; + + config = lib.mkIf cfg.enable { + networking.firewall.allowedUDPPorts = [ 24727 ]; + environment.systemPackages = [ pkgs.AusweisApp2 ]; + }; + +}
diff --git a/hosts/huntii/default.nix b/hosts/huntii/default.nix @@ -75,6 +75,8 @@ systemd-oomd.enable = true; }; + programs.AusweisApp.enable = true; + users.zaphyra.enable = true; };