mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 04:13:55 -05:00
age: import from flake only
This commit is contained in:
parent
8fb937126e
commit
580dfb2727
|
@ -103,6 +103,7 @@
|
||||||
specialArgs = {inherit inputs self;};
|
specialArgs = {inherit inputs self;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host}
|
./hosts/${host}
|
||||||
|
inputs.agenix.nixosModules.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
self,
|
self,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
@ -21,6 +22,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.containers.nixos.navidrome.enable {
|
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 = {
|
containers.navidrome = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
bindMounts."/Music".hostPath = config.alyraffauf.containers.nixos.navidrome.musicDirectory;
|
bindMounts."/Music".hostPath = config.alyraffauf.containers.nixos.navidrome.musicDirectory;
|
||||||
|
@ -39,9 +45,9 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
Address = "0.0.0.0";
|
Address = "0.0.0.0";
|
||||||
Port = port;
|
|
||||||
MusicFolder = "/Music";
|
|
||||||
DefaultTheme = "Auto";
|
DefaultTheme = "Auto";
|
||||||
|
MusicFolder = "/Music";
|
||||||
|
Port = port;
|
||||||
SubsonicArtistParticipations = true;
|
SubsonicArtistParticipations = true;
|
||||||
UIWelcomeMessage = "Welcome to Navidrome! Registrations are closed.";
|
UIWelcomeMessage = "Welcome to Navidrome! Registrations are closed.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,10 +5,6 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
inputs.agenix.nixosModules.default
|
|
||||||
];
|
|
||||||
|
|
||||||
age.secrets.Stargate-Discovery.file = ../../secrets/wifi/Stargate-Discovery.age;
|
age.secrets.Stargate-Discovery.file = ../../secrets/wifi/Stargate-Discovery.age;
|
||||||
age.secrets.wattson.file = ../../secrets/wifi/wattson.age;
|
age.secrets.wattson.file = ../../secrets/wifi/wattson.age;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue