age: import from flake only

This commit is contained in:
Aly Raffauf 2024-06-09 00:08:00 -04:00 committed by Aly Raffauf
parent 8fb937126e
commit 580dfb2727
3 changed files with 11 additions and 8 deletions

View file

@ -103,6 +103,7 @@
specialArgs = {inherit inputs self;};
modules = [
./hosts/${host}
inputs.agenix.nixosModules.default
];
}
);

View file

@ -1,7 +1,8 @@
{
pkgs,
lib,
config,
inputs,
lib,
pkgs,
self,
...
}: {
@ -21,6 +22,11 @@
};
config = lib.mkIf config.alyraffauf.containers.nixos.navidrome.enable {
# Spotify secrets aren't exactly safe, because they are world-readable in the nix store.
# But they're reasonably disposable and hidden from the public git repo.
age.secrets.spotifyClientId.file = ../../../../secrets/spotify/clientId.age;
age.secrets.spotifyClientSecret.file = ../../../../secrets/spotify/clientSecret.age;
containers.navidrome = {
autoStart = true;
bindMounts."/Music".hostPath = config.alyraffauf.containers.nixos.navidrome.musicDirectory;
@ -39,9 +45,9 @@
openFirewall = true;
settings = {
Address = "0.0.0.0";
Port = port;
MusicFolder = "/Music";
DefaultTheme = "Auto";
MusicFolder = "/Music";
Port = port;
SubsonicArtistParticipations = true;
UIWelcomeMessage = "Welcome to Navidrome! Registrations are closed.";
};

View file

@ -5,10 +5,6 @@
pkgs,
...
}: {
imports = [
inputs.agenix.nixosModules.default
];
age.secrets.Stargate-Discovery.file = ../../secrets/wifi/Stargate-Discovery.age;
age.secrets.wattson.file = ../../secrets/wifi/wattson.age;