mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
20 lines
326 B
Nix
20 lines
326 B
Nix
{
|
|
sops-nix,
|
|
self,
|
|
...
|
|
}: {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
environment.systemPackages = [
|
|
pkgs.sops
|
|
];
|
|
sops = {
|
|
defaultSopsFile = self + "/hosts/" + config.networking.hostName + "/secrets.yaml";
|
|
age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
|
|
};
|
|
}
|