From 750dcc0edde9ffa8827cddfb3abaeac4bdf345ea Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 15 Aug 2023 16:31:17 -0500 Subject: [PATCH] feat: pip info work Signed-off-by: jolheiser --- flake.nix | 32 ++++++++++++++++++++++---------- secrets/secrets.nix | 2 ++ secrets/work/netrc.age | 9 +++++++++ secrets/work/pip.conf.age | Bin 0 -> 470 bytes 4 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 secrets/work/netrc.age create mode 100644 secrets/work/pip.conf.age diff --git a/flake.nix b/flake.nix index 733b853..6b4d8eb 100644 --- a/flake.nix +++ b/flake.nix @@ -77,16 +77,28 @@ ./machines/chai commonConfig ({pkgs, ...}: { - config.nixpkgs.overlays = [ - (_: _: { - py36 = import nixpkgs-py36 {inherit (pkgs) system;}; - }) - ]; - }) - ({pkgs, ...}: { - home-manager.users.${username}.programs = { - git.package = pkgs.gitSVN; - firefox.profiles.default.bookmarks = [(import ./apps/firefox/work.nix)]; + config = { + nixpkgs.overlays = [ + (_: _: { + py36 = import nixpkgs-py36 {inherit (pkgs) system;}; + }) + ]; + home-manager.users.${username}.programs = { + git.package = pkgs.gitSVN; + firefox.profiles.default.bookmarks = [(import ./apps/firefox/work.nix)]; + }; + age.secrets = { + netrc = { + file = ./secrets/work/netrc.age; + owner = username; + path = "/home/${username}/.netrc"; + }; + pipconf = { + file = ./secrets/work/pip.conf.age; + owner = username; + path = "/home/${username}/.config/pip/pip.conf"; + }; + }; }; }) ]; diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 6ac0e02..78ae2ee 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -9,4 +9,6 @@ in { "shared/ssh-config-work.age".publicKeys = all; "shared/spotify-pw.age".publicKeys = all; "shared/irc-pw.age".publicKeys = all; + "work/netrc.age".publicKeys = [jolheiser chai]; + "work/pip.conf.age".publicKeys = [jolheiser chai]; } diff --git a/secrets/work/netrc.age b/secrets/work/netrc.age new file mode 100644 index 0000000..7bf8cb0 --- /dev/null +++ b/secrets/work/netrc.age @@ -0,0 +1,9 @@ +age-encryption.org/v1 +-> ssh-ed25519 E8j6/g BkWGdkvZQHZ0DLnmC4SdTSsGV97RHCNf0I4rZTQHRyk +kNuqhd6nyl3G4TiAEQ1ipfSBqdeg167S7FHZMB1g8Ao +-> ssh-ed25519 jo1MPA O+LOCoi56qdnRjpvuCIgSqcMW5qAqZsTS3LG0hKhYGo +0Ckl+Egbu902uwh4H6CdZJmYwC/A/GAW4eQhvuzk1wU +-> s#Y#w#OL-grease fx`@|l9 G +NjEM1qmkUfkzASIb6nR7oJZ85ct+UunHmmzhwn/0s9V/vHHG+lk6Jy37O3cIum0 +--- UiE8jly5e1JBtjEM/z/IVoFWneKfl927V0o3vrLBHjY +^_:3ep^X`hsB(G̤& Ǣ:An +ss]r'xP޸CAژ#'T(9n(E8O81#OJuK a`£^p/ \ No newline at end of file diff --git a/secrets/work/pip.conf.age b/secrets/work/pip.conf.age new file mode 100644 index 0000000000000000000000000000000000000000..6babee35dcb82f9040aa7a6c71a77d5b23b304d5 GIT binary patch literal 470 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCT4wa7BlPgk%o_X*1k zFfOc04N6N*DKm9S47V)tDcAQ8kBah4()QLiPIN7CaWeEZGT@5LEK4pd)AvYmHg`76 z%Z)PhH#M&)H_obXH_1pcHuEp^HgZiawglR0fNon>zM*e`qk=)2lWC$!MZR{GK|xql zkXw~gg=tuYXL^8nc9v_ErMp3yiGNXeP_}oDE0;lfo=Z@mOM1F-P_a*Cn0I<|MYd~J zvQwE?L0Mq7nL&hwyI)nPnOR|~Bgi%*{eqx^3f=Ug)WqUc1#4|Zg-SbrpRh#BATDoH zBhMs1-}IntpCaGPNQ;1+pb9QsU0sE=jKa`Tlkl{N@ce?%)R1)T%6t#+BmxGVe^G0^rIwvmH~W`< z>Czbmr%A<%k+*Eka<#qfZb`kHxg|{ZwxXVE>b33ntzW!bCBw6qA?d+`+Oyw;p9j|5 zYJd3Rx{{^k=V?+;uCW@u(Ei)?@ZP%qJI_}gVCCzp;g7iVT{kk=St9jb#GK;*hdr!f literal 0 HcmV?d00001