sops: use upstream
This commit is contained in:
Generated
+3
-4
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user