aboutsummaryrefslogtreecommitdiffhomepage
path: root/options.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-05-25 20:12:30 +0900
committerOphestra <cat@gensokyo.uk>2025-05-25 20:12:30 +0900
commit2ffca6984a03b2daa3bb114f70ea84e71439559a (patch)
tree8d536414115917e5c6d95e7e9e5aaa4151a0d71f /options.nix
parentdde2516304ac6b0edc1dfc6650f37d32fa62642c (diff)
nix: use reverse-DNS style id as unique identifier
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
-rw-r--r--options.nix13
1 files changed, 7 insertions, 6 deletions
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.
'';