Modularizing the setup
This commit is contained in:
14
modules/sops.nix
Normal file
14
modules/sops.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
sops
|
||||
];
|
||||
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
sops.secrets.smb = {
|
||||
sopsFile = ./secrets/smb.creds;
|
||||
format = "binary";
|
||||
mode = "0400";
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user