From c419ac3a30e745050de43ec74e82abb477489cb3 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Thu, 31 Jul 2025 14:53:46 +0800 Subject: [PATCH] fix(nix): github token --- modules/nix.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nix.nix b/modules/nix.nix index 4e6e938..1952041 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -4,6 +4,7 @@ lib, pkgs, secrets, + username, ... }: lib.my.makeSwitch { @@ -52,8 +53,11 @@ lib.my.makeSwitch { sops.secrets.nix-github-token = { sopsFile = secrets.nix-github-token; format = "binary"; + owner = username; + group = "users"; + mode = "0400"; }; - nix.extraOptions = '' + my.home.nix.extraOptions = '' !include ${config.sops.secrets.nix-github-token.path} '';