fixed secrets path

This commit is contained in:
Harry 2024-08-25 12:44:14 +02:00
parent 27730ec2c0
commit f7bc81be81
6 changed files with 22 additions and 12 deletions

View file

@ -1,11 +1,11 @@
{ config, ... }:
{ config, secrets, ... }:
{
imports = [
./backups-repos.nix
];
sops.secrets.borgRepoPassword = { };
sops.secrets.borgRemoteServerPassword = {
sopsFile = "/home/homelab/secrets/backup.yaml";
sopsFile = "${secrets}/secrets/backup.yaml";
};
services.borgbackup.jobs = {

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
lib,
secrets,
...
}:
with lib;
let
@ -14,7 +19,7 @@ in
config = {
sops.secrets.slskd = {
sopsFile = ../../../secrets/slskd.env;
sopsFile = "${secrets}/secrets/slskd.env";
format = "dotenv";
};

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
secrets,
lib,
...
}:
with lib;
let
@ -16,7 +21,7 @@ in
config = {
sops.secrets.transmission = {
sopsFile = ../../../secrets/transmission.json;
sopsFile = "${secrets}/secrets/transmission.json";
path = "/var/lib/secrets/transmission/settings.json";
};

View file

@ -1,6 +1,7 @@
{
config,
lib,
secrets,
pkgs,
...
}:
@ -33,7 +34,7 @@ in
#TODO: add Radarr/Sonarr/... api key support
config = {
sops.secrets."homepage" = {
sopsFile = ../../../secrets/homepage.env;
sopsFile = "${secrets}/secrets/homepage.env";
format = "dotenv";
};

View file

@ -23,18 +23,18 @@
}@inputs:
let
username = "harry123";
secrets = builtins.toString inputs.nix-secrets;
specialArgs = {
inherit username;
inherit secrets;
};
in
{
nixosConfigurations = {
sisyphe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
specialArgs = specialArgs;
modules = [
./hosts/sisyphe/configuration.nix
sops-nix.nixosModules.sops

View file

@ -3,14 +3,13 @@
config,
lib,
pkgs,
inputs,
secrets,
...
}:
let
ip = "192.168.1.177";
gateway = "192.168.1.1";
username = "homelab";
secrets = builtins.toString inputs.nix-secrets;
in
{
# setting up networking!!