feat(modules/secrets): init sops-nix
This commit is contained in:
parent
1c32074f69
commit
7a18d65b0c
7 changed files with 61 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
./users.nix
|
||||
./localisation.nix
|
||||
./nix-config.nix
|
||||
./secrets.nix
|
||||
];
|
||||
|
||||
options.system = {
|
||||
|
|
10
modules/nixos/system/secrets.nix
Normal file
10
modules/nixos/system/secrets.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = lib.snowfall.fs.get-file "secrets/secrets.yaml";
|
||||
age.sshKeyPaths = ["/persist/home/rafiq/.ssh/id_ed25519"];
|
||||
secrets ={
|
||||
"rafiq/hashedPassword".neededForUsers = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue