sops: use upstream

This commit is contained in:
2026-07-14 20:05:42 +08:00
parent c0269d1695
commit a10b255a71
3 changed files with 9 additions and 9 deletions
Generated
+3 -4
View File
@@ -1004,16 +1004,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1776230713, "lastModified": 1783174389,
"narHash": "sha256-8Rv4J8M09NPJcq4pYfMyi0ibJJQD7/JzKjAqSp2LjZw=", "narHash": "sha256-aCWC8ngycU7OdJrU2+Je3qf+1a2ykuBvpPhZT/9tXMc=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "105ff9ba631f5e7ee75aac03df941981312d917e", "rev": "f1406619a3884cd5c47992a70b8b35c9c0fcb4c9",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "Mic92", "owner": "Mic92",
"ref": "pull/779/merge",
"repo": "sops-nix", "repo": "sops-nix",
"type": "github" "type": "github"
} }
+1 -3
View File
@@ -46,10 +46,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager"; inputs.home-manager.follows = "home-manager";
}; };
# TODO: sops-nix: remove pr patch once merged
# https://github.com/Mic92/sops-nix/pull/779
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix/pull/779/merge"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
stylix = { stylix = {
+5 -2
View File
@@ -23,10 +23,13 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
sops.age.sshKeyFile = cfg.sshKeyFile; sops.age.sshKeyPaths = [ cfg.sshKeyFile ];
# Inject environment directly to use native SSH key encryption
sops.environment.SOPS_AGE_SSH_PRIVATE_KEY_FILE = cfg.sshKeyFile;
users.users.${username}.extraGroups = [ "keys" ]; users.users.${username}.extraGroups = [ "keys" ];
my.hm = { my.hm = {
sops.age.sshKeyFile = cfg.sshKeyFile; sops.age.sshKeyPaths = [ cfg.sshKeyFile ];
sops.environment.SOPS_AGE_SSH_PRIVATE_KEY_FILE = cfg.sshKeyFile;
home.packages = [ home.packages = [
pkgs.sops pkgs.sops
]; ];