From 3abe7154722159cad5510cac6790da04d1606aa8 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 4 Dec 2024 23:29:22 +0100 Subject: [PATCH] vars: export also file owner & group to deployment.json --- nixosModules/clanCore/vars/default.nix | 2 ++ nixosModules/clanCore/vars/interface.nix | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nixosModules/clanCore/vars/default.nix b/nixosModules/clanCore/vars/default.nix index b7173c951..3a7fe5db2 100644 --- a/nixosModules/clanCore/vars/default.nix +++ b/nixosModules/clanCore/vars/default.nix @@ -51,6 +51,8 @@ in _name: file: { inherit (file) name + owner + group mode deploy secret diff --git a/nixosModules/clanCore/vars/interface.nix b/nixosModules/clanCore/vars/interface.nix index 7c830810d..dee8c5561 100644 --- a/nixosModules/clanCore/vars/interface.nix +++ b/nixosModules/clanCore/vars/interface.nix @@ -206,15 +206,16 @@ in default = false; }; owner = lib.mkOption { - description = "The user name or id that will own the secret file."; + description = "The user name or id that will own the file."; default = "root"; }; group = lib.mkOption { - description = "The group name or id that will own the secret file."; + description = "The group name or id that will own the file."; default = "root"; }; mode = lib.mkOption { type = lib.types.strMatching "^[0-7]{3}$"; + description = "The unix file mode of the file. Must be a 3-digit octal number."; default = "400"; }; value =