diff --git a/apps/nogui/default.nix b/apps/nogui/default.nix index 0f466c6..72f8d9e 100644 --- a/apps/nogui/default.nix +++ b/apps/nogui/default.nix @@ -41,6 +41,7 @@ gofumpt # Flake overlays + jolheiser.gist jolheiser.git-age jolheiser.nur.templ tclip @@ -52,5 +53,11 @@ stateVersion = "22.11"; }; + xdg.configFile."gist/config.yaml".text = '' + username: jolheiser + password-file: /run/agenix/gist-pw + domain: gist.jojodev.com + ''; + programs = {home-manager.enable = true;}; } diff --git a/flake.lock b/flake.lock index c94dfe7..8b9bd88 100644 --- a/flake.lock +++ b/flake.lock @@ -40,6 +40,26 @@ "type": "github" } }, + "gist": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1701147025, + "narHash": "sha256-abZqC0H3QV6OXeKHN7+mUNVmjRDxgPRMphGDppQuPaI=", + "ref": "refs/heads/main", + "rev": "993b3ff8bfc055dd70126f290409e6b7134babd8", + "revCount": 2, + "type": "git", + "url": "https://git.jojodev.com/jolheiser/gist" + }, + "original": { + "type": "git", + "url": "https://git.jojodev.com/jolheiser/gist" + } + }, "git-age": { "inputs": { "flake-utils": [ @@ -245,6 +265,7 @@ "inputs": { "agenix": "agenix", "flake-utils": "flake-utils", + "gist": "gist", "git-age": "git-age", "golink": "golink", "helix": "helix", diff --git a/flake.nix b/flake.nix index 9997db6..0a1b6cc 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,10 @@ flake-utils.follows = "flake-utils"; }; }; - + gist = { + url = "git+https://git.jojodev.com/jolheiser/gist"; + inputs.nixpkgs.follows = "nixpkgs"; + }; # Other flakes golink = { url = "github:tailscale/golink"; @@ -77,6 +80,7 @@ website, resume, git-age, + gist, nixpkgs-py36, golink, tclip, @@ -94,6 +98,7 @@ website = inputs.website.packages.${prev.system}.default; resume = inputs.resume.packages.${prev.system}.default; git-age = inputs.git-age.packages.${prev.system}.default; + gist = inputs.gist.packages.${prev.system}.default; }; tclip = inputs.tclip.packages.${prev.system}.tclip; }) @@ -122,6 +127,7 @@ ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age; spotify-pw = userSecret ./secrets/shared/spotify-pw.age; irc-pw = userSecret ./secrets/shared/irc-pw.age; + gist-pw = userSecret ./secrets/shared/gist-pw.age; }; }; }; diff --git a/secrets/secrets.nix b/secrets/secrets.nix index f671674..6855652 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -10,6 +10,7 @@ in { "shared/ssh-config-work.age".publicKeys = all; "shared/spotify-pw.age".publicKeys = all; "shared/irc-pw.age".publicKeys = all; + "shared/gist-pw.age".publicKeys = all; "work/netrc.age".publicKeys = [jolheiser chai]; "work/pip.conf.age".publicKeys = [jolheiser chai]; "work/pypirc.age".publicKeys = [jolheiser chai]; diff --git a/secrets/shared/gist-pw.age b/secrets/shared/gist-pw.age new file mode 100644 index 0000000..82a3a1d --- /dev/null +++ b/secrets/shared/gist-pw.age @@ -0,0 +1,13 @@ +age-encryption.org/v1 +-> ssh-ed25519 E8j6/g r0iWFrtSeUT6qVFrQhLCba6rZfsaFynSC8Rb3EuGoFg +JzeAiUCWhojQa5mRvqT+SrR3VqSW2k4anUSv9/DBC2s +-> ssh-ed25519 xUMv2w oCscH65NfnZyMvSwHXsK/TvgnpWNq5+7DjiYMrIL6xk +GdXBCV88GpOBfadA3w3CXuVf/U5Q2u3SgnEPesPBAgA +-> ssh-ed25519 jo1MPA 37bTADVSe/ztBINGlXjDgTWMcchKycTP83MIvpIZNDc +TDJOpE9KrE3DrTD4OM5ikL8mU85WbvrsId3lRp507Yk +-> ssh-ed25519 f31uNA sX0XTVf+92VqUA7Hdd6x6fxVqmWqHj1l9eOSE6yUlAU +hc1ZeagJ4w/jRKXtCHZxHcs0k+JafopzU3s4/Z44cuM +-> C2|J-grease |je;R;d +V1hB5+X/bsklAn8HeRPukBNz5efwE0bT8pL9P58jWb0ZdkBXRpPXUacCjbm1njk +--- WpYUFBbDJptLs3YK9UBQfgfRngN7MFaTrmmWLMMKWxE +pbIWo, kZQ\P;neAC_64'p \ No newline at end of file