From 2ffca6984a03b2daa3bb114f70ea84e71439559a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 25 May 2025 20:12:30 +0900 Subject: nix: use reverse-DNS style id as unique identifier Signed-off-by: Ophestra --- options.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'options.nix') diff --git a/options.nix b/options.nix index c8747f2d..29c9a4f9 100644 --- a/options.nix +++ b/options.nix @@ -76,6 +76,7 @@ in type = let inherit (types) + ints str bool package @@ -87,7 +88,7 @@ in functionTo ; in - listOf (submodule { + attrsOf (submodule { options = { name = mkOption { type = str; @@ -98,13 +99,13 @@ in verbose = mkEnableOption "launchers with verbose output"; - id = mkOption { - type = nullOr str; - default = null; + identity = mkOption { + type = ints.between 1 9999; description = '' - Freedesktop application ID. + Application identity. Identity 0 is reserved for system services. ''; }; + shareUid = mkEnableOption "sharing identity with another application"; packages = mkOption { type = listOf package; @@ -273,7 +274,7 @@ in }; }; }); - default = [ ]; + default = { }; description = '' Declaratively configured fortify apps. ''; -- cgit v1.3.1