Use git-crypt for Soundcloud API key
This commit is contained in:
parent
0aa1724bba
commit
38a2fd5eab
|
@ -0,0 +1 @@
|
||||||
|
secrets/soundcloud_token filter=git-crypt diff=git-crypt
|
|
@ -98,10 +98,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Specify secrets
|
# Specify secrets
|
||||||
age.secrets = {
|
age.secrets.wireguard.file = secrets/wireguard.age;
|
||||||
soundcloud_api_key.file = secrets/soundcloud_api_key.age;
|
|
||||||
wireguard.file = secrets/wireguard.age;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Import other configuration modules
|
# Import other configuration modules
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let soundcloud_token = builtins.readFile ../secrets/soundcloud_token;
|
||||||
|
|
||||||
|
in {
|
||||||
# Configure pipewire as sound server
|
# Configure pipewire as sound server
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -64,7 +66,7 @@
|
||||||
|
|
||||||
[soundcloud]
|
[soundcloud]
|
||||||
enabled = true
|
enabled = true
|
||||||
auth_token = ${config.age.secrets.soundcloud_api_key.path}
|
auth_token = ${soundcloud_token}
|
||||||
explore_songs = 100
|
explore_songs = 100
|
||||||
|
|
||||||
[m3u]
|
[m3u]
|
||||||
|
|
|
@ -17,6 +17,7 @@ in {
|
||||||
passff-host
|
passff-host
|
||||||
gitAndTools.pass-git-helper
|
gitAndTools.pass-git-helper
|
||||||
inputs.agenix.defaultPackage.x86_64-linux
|
inputs.agenix.defaultPackage.x86_64-linux
|
||||||
|
git-crypt
|
||||||
# Browsers
|
# Browsers
|
||||||
firefox
|
firefox
|
||||||
ungoogled-chromium
|
ungoogled-chromium
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
let
|
let
|
||||||
coolneng =
|
coolneng =
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg";
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg";
|
||||||
in {
|
in { "wireguard.age".publicKeys = [ coolneng ]; }
|
||||||
"soundcloud_api_key.age".publicKeys = [ coolneng ];
|
|
||||||
"wireguard.age".publicKeys = [ coolneng ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 G5UUhw tVGNxVkibTRSr8c2l7Wmo3pMhnyI6JHBZzddC93sv2E
|
|
||||||
0NOlI4vaBZz+Wg7LDji6CRrNsBPVhQ5rFyjPUe+ekg0
|
|
||||||
-> *NFvF-grease b1zp>
|
|
||||||
TIRHkh0
|
|
||||||
--- Y9Rt0ibteW6VSuzIGt4EenoFoOmRnvIUeFbJkqkL5m4
|
|
||||||
P隝}ォョ7ゥ}t逋vヒ酢T[c#ibカC<EFBDB6>i|カホオ?%%リシ」lッニDアワノアュ羊・Iェy,Z{」、_
|
|
Binary file not shown.
Loading…
Reference in New Issue