Use git-crypt for Soundcloud API key
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
secrets/soundcloud_token filter=git-crypt diff=git-crypt
|
||||
@@ -98,10 +98,7 @@
|
||||
};
|
||||
|
||||
# Specify secrets
|
||||
age.secrets = {
|
||||
soundcloud_api_key.file = secrets/soundcloud_api_key.age;
|
||||
wireguard.file = secrets/wireguard.age;
|
||||
};
|
||||
age.secrets.wireguard.file = secrets/wireguard.age;
|
||||
|
||||
# Import other configuration modules
|
||||
imports = [
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
let soundcloud_token = builtins.readFile ../secrets/soundcloud_token;
|
||||
|
||||
in {
|
||||
# Configure pipewire as sound server
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
@@ -64,7 +66,7 @@
|
||||
|
||||
[soundcloud]
|
||||
enabled = true
|
||||
auth_token = ${config.age.secrets.soundcloud_api_key.path}
|
||||
auth_token = ${soundcloud_token}
|
||||
explore_songs = 100
|
||||
|
||||
[m3u]
|
||||
|
||||
@@ -17,6 +17,7 @@ in {
|
||||
passff-host
|
||||
gitAndTools.pass-git-helper
|
||||
inputs.agenix.defaultPackage.x86_64-linux
|
||||
git-crypt
|
||||
# Browsers
|
||||
firefox
|
||||
ungoogled-chromium
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
let
|
||||
coolneng =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC57m1j/G6iQyi2EpU3nj3+df5Z4PL/XbiOmDcqA7ODg";
|
||||
in {
|
||||
"soundcloud_api_key.age".publicKeys = [ coolneng ];
|
||||
"wireguard.age".publicKeys = [ coolneng ];
|
||||
}
|
||||
in { "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<><50>}<7D><>7<EFBFBD>}t<><74>vː|T[c#ib<69>C<EFBFBD><43>i|<7C>ε?%%ؼ<>l<><6C>D<EFBFBD><44>ɱ<><18>r<EFBFBD>I<EFBFBD>y,Z{<7B><>_
|
||||
BIN
secrets/soundcloud_token
Normal file
BIN
secrets/soundcloud_token
Normal file
Binary file not shown.
Reference in New Issue
Block a user