summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/programs/ausweisapp.nix6
-rw-r--r--nixos/modules/services/misc/soft-serve.nix4
-rw-r--r--nixos/modules/services/printing/cupsd.nix7
3 files changed, 8 insertions, 9 deletions
diff --git a/nixos/modules/programs/ausweisapp.nix b/nixos/modules/programs/ausweisapp.nix
index ef1f059568c6..91870df20246 100644
--- a/nixos/modules/programs/ausweisapp.nix
+++ b/nixos/modules/programs/ausweisapp.nix
@@ -7,11 +7,11 @@ let
in
{
options.programs.ausweisapp = {
- enable = mkEnableOption (lib.mdDoc "AusweisApp2");
+ enable = mkEnableOption (lib.mdDoc "AusweisApp");
openFirewall = mkOption {
description = lib.mdDoc ''
- Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp2.
+ Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp.
'';
default = false;
type = lib.types.bool;
@@ -19,7 +19,7 @@ in
};
config = mkIf cfg.enable {
- environment.systemPackages = with pkgs; [ AusweisApp2 ];
+ environment.systemPackages = with pkgs; [ ausweisapp ];
networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 24727 ];
};
}
diff --git a/nixos/modules/services/misc/soft-serve.nix b/nixos/modules/services/misc/soft-serve.nix
index 0f246493880b..2b63b6bcd867 100644
--- a/nixos/modules/services/misc/soft-serve.nix
+++ b/nixos/modules/services/misc/soft-serve.nix
@@ -12,7 +12,7 @@ in
{
options = {
services.soft-serve = {
- enable = mkEnableOption "Enable soft-serve service";
+ enable = mkEnableOption "soft-serve";
package = mkPackageOption pkgs "soft-serve" { };
@@ -20,7 +20,7 @@ in
type = format.type;
default = { };
description = mdDoc ''
- The contents of the configuration file.
+ The contents of the configuration file for soft-serve.
See <${docUrl}>.
'';
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix
index 25367f8e61d4..3a2744303474 100644
--- a/nixos/modules/services/printing/cupsd.nix
+++ b/nixos/modules/services/printing/cupsd.nix
@@ -109,11 +109,10 @@ let
getGutenprint = pkgs: head (filterGutenprint pkgs);
parsePorts = addresses: let
- splitAddress = addr: lib.strings.splitString ":" addr;
- extractPort = addr: builtins.elemAt (builtins.tail (splitAddress addr)) 0;
- toInt = str: lib.strings.toInt str;
+ splitAddress = addr: strings.splitString ":" addr;
+ extractPort = addr: builtins.foldl' (a: b: b) "" (splitAddress addr);
in
- builtins.map (address: toInt (extractPort address)) addresses;
+ builtins.map (address: strings.toInt (extractPort address)) addresses;
in