rycee changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/rycee/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
maier has joined #home-manager
maier has quit [Ping timeout: 240 seconds]
maier has joined #home-manager
maier has quit [Ping timeout: 240 seconds]
quinn has quit [Ping timeout: 240 seconds]
quinn has joined #home-manager
maier has joined #home-manager
maier has quit [Ping timeout: 240 seconds]
maier has joined #home-manager
dermetfan has joined #home-manager
dermetfan has quit [Remote host closed the connection]
dermetfan has joined #home-manager
malSet has quit [Read error: Connection reset by peer]
malSet has joined #home-manager
cole-h has quit [Quit: Goodbye]
dermetfan has quit [Ping timeout: 260 seconds]
dermetfan has joined #home-manager
ohhaimark[m] has quit [Quit: Idle for 30+ days]
quinn has quit [Quit: ZNC 1.8.1 - https://znc.in]
asymptotically has joined #home-manager
<asymmetric> how are people dealing with secrets in their HM configs?
<NobbZ[m]> Currently I have a conditionally loaded module which contains the secrets, which I do not commit to git.
<dutchie> for my old dotfiles repo i used git-crypt: https://github.com/AGWA/git-crypt
<NobbZ[m]> The problem with this approach is, that those secrets also end up in plaintext and world readable in the store, I can live with that currently, as all PCs where I use that technique are used by me only. I'm searching for alternatives, as I might give my sone more PC time in not so far future.
maier has quit [Ping timeout: 264 seconds]
<asymmetric> right. i considered pushing my HM config to cachix, which made me realize that everything in the store would be there on their servers
<asymmetric> i think encryption at rest is the way to go, will look into git-crypt
<dutchie> i don't think it solves the problem of plaintext secrets in nix store
<immae> A way to do it and not be worried about cachix having them on their server would be to generate an encrypted tar file, and deencrypt it during activation phase
<eyJhb> asymmetric: try to get it from a program instead or read it from a file
<eyJhb> Not from Nix of course
<eyJhb> Do you have any examples of programs?
<immae> (but I’m not sure it’s feasible without leaking the secrets in drv files)
<eyJhb> Pretty sure it would leak in the drv files, sadly
<immae> (I’m considering having a big look at https://elvishjerricco.github.io/2018/06/24/secure-declarative-key-management.html some day, maybe it would solve these issues)
<asymmetric> eyJhb: wdym with examples of programs?
<eyJhb> More if there were any specific programs you had in mind
<eyJhb> THat needs the secrets
<asymmetric> ah, well there are some env vars with API tokens in my fish config
<eyJhb> API_TOKEN=(cat /path/to/file) ?
<eyJhb> And then have a encrypted dir some place, with the files in. Keeping them together, but only owned by you
maier has joined #home-manager
<asymmetric> immae: the link is pretty cool, but i don't think it will avoid stuff ending in plaintext in the store
<eyJhb> asymmetric: why wouldn't it?
<asymmetric> deployment.keys.secret-foo.text = builtins.extraBuiltins.pass "secret-foo";
<asymmetric> wouldn't this result in a drv file with the plaintext?
<eyJhb> asymmetric: Not sure with .text, but there is keyfile as well which won't
<eyJhb> But ping adisbladis in #nixos, I am sure he knows what is up
<eyJhb> Or elvis...
<asymmetric> is .keyfile a nixops specific thing? i know they do some magic with values kept in ram
<eyJhb> It is all nixos magic
<eyJhb> nixops**
<eyJhb> Sorry
<asymmetric> yeah i would rather not add a dep to nixops
<asymmetric> but one could emulate their approach, i guess
<asymmetric> eyJhb: your approach (with the token coming from a file at runtime) seems like it would work
<eyJhb> It is the easiest way to do it
<asymmetric> i wonder if this rfc has some relevance to this too https://github.com/NixOS/rfcs/pull/59
<{^_^}> rfcs#59 (by d-goldin, 35 weeks ago, open): [RFC 0059]: Systemd Service Secrets
<eyJhb> Depending on the amout of sercets
<immae> Yes I was more thinking about the approach itself (adding an ad hoc builtins to make the store oblivious to plain text versions)
<immae> (the builtins could for instance generate a gpg file that would be decrypted at the last moment)
<rycee> I haven't followed but I'd suggest reading through https://github.com/NixOS/nix/issues/8 and https://github.com/NixOS/rfcs/pull/5 if you are thinking about putting secrets in the Nix store.
<{^_^}> nix#8 (by edolstra, 8 years ago, open): Support private files in the Nix store
<{^_^}> rfcs#5 (by edolstra, 3 years ago, closed): [RFC 0005] Nix encryption
<rycee> Would be lovely to have something like that but it seems like a pretty subtle problem :-)
<rycee> I imagine it would make for a good master's thesis or something of that kind.
maier has quit [Ping timeout: 256 seconds]
<eyJhb> So, something you are up for rycee ? ;)
<eyJhb> However, not sure where you are regarding education
<rycee> Absolutely not. I'm not looking for a new masters in the CS field.
<eyJhb> PhD maybe ?
<eyJhb> ;) :p
<rycee> No new PhD in CS either :-)
<eyJhb> Doctorate?
<eyJhb> Higher Doctorate I suppose. The terms are confusing compared to Danish
<eyJhb> But nice! What did you do a PhD on?
<rycee> I did some work on representation of non-classical logics using category theory. Fuzzy logic being the simplest case but also handling of logics where the operations themselves are uncertain or many-valued, for example.
Ericson2314 has quit [*.net *.split]
enick_164 has quit [*.net *.split]
AsbjrnOlling[m] has quit [*.net *.split]
tristan[m] has quit [*.net *.split]
ZerataX has quit [*.net *.split]
jschievink has quit [*.net *.split]
benkolera has quit [*.net *.split]
M0-[m] has quit [*.net *.split]
Ke has quit [*.net *.split]
colemickens has quit [*.net *.split]
ldlework has quit [*.net *.split]
mathyouguy has quit [Read error: Connection reset by peer]
philipp[m] has quit [Read error: Connection reset by peer]
theduke has quit [Read error: Connection reset by peer]
nicolas[m]1 has quit [Read error: Connection reset by peer]
freeman42x[m] has quit [Read error: Connection reset by peer]
alexarice[m] has quit [Read error: Connection reset by peer]
rschulman has quit [Read error: Connection reset by peer]
dash has quit [Read error: Connection reset by peer]
siraben has quit [Read error: Connection reset by peer]
toraritte has quit [Read error: Connection reset by peer]
Gav[m] has quit [Read error: Connection reset by peer]
maralorn has quit [Read error: Connection reset by peer]
NobbZ[m] has quit [Read error: Connection reset by peer]
aterius has quit [Read error: Connection reset by peer]
sparogy has quit [Write error: Connection reset by peer]
Dandellion has quit [Write error: Connection reset by peer]
hpfr[m] has quit [Write error: Connection reset by peer]
bbigras has quit [Write error: Connection reset by peer]
JJJollyjim has quit [Write error: Connection reset by peer]
DamienCassou has quit [Write error: Connection reset by peer]
Notkea[m] has quit [Read error: Connection reset by peer]
rycee has quit [Read error: Connection reset by peer]
Ox4A6F1 has quit [Write error: Connection reset by peer]
khassanov[m] has quit [Write error: Connection reset by peer]
jonge[m] has quit [Remote host closed the connection]
ldlework has joined #home-manager
maier has joined #home-manager
tristan[m] has joined #home-manager
toraritte has joined #home-manager
sparogy has joined #home-manager
NobbZ[m] has joined #home-manager
Ke has joined #home-manager
alexarice[m] has joined #home-manager
Dandellion has joined #home-manager
ZerataX has joined #home-manager
hpfr[m] has joined #home-manager
philipp[m] has joined #home-manager
Notkea[m] has joined #home-manager
M0-[m] has joined #home-manager
DamienCassou has joined #home-manager
mathyouguy has joined #home-manager
Ericson2314 has joined #home-manager
theduke has joined #home-manager
khassanov[m] has joined #home-manager
siraben has joined #home-manager
rycee has joined #home-manager
dash has joined #home-manager
maralorn has joined #home-manager
Ox4A6F has joined #home-manager
jonge[m] has joined #home-manager
colemickens has joined #home-manager
benkolera has joined #home-manager
freeman42x[m] has joined #home-manager
JJJollyjim has joined #home-manager
aterius has joined #home-manager
bbigras has joined #home-manager
nicolas[m]1 has joined #home-manager
jschievink has joined #home-manager
rschulman has joined #home-manager
enick_900 has joined #home-manager
Gav[m] has joined #home-manager
AsbjrnOlling[m] has joined #home-manager
ardumont has quit [Ping timeout: 256 seconds]
ardumont has joined #home-manager
andi- has quit [Ping timeout: 260 seconds]
__monty__ has joined #home-manager
dermetfan has quit [Ping timeout: 260 seconds]
maier has quit [Ping timeout: 240 seconds]
maier has joined #home-manager
maier has quit [Ping timeout: 240 seconds]
andi- has joined #home-manager
dermetfan has joined #home-manager
cole-h has joined #home-manager
maier has joined #home-manager
maier has quit [Ping timeout: 260 seconds]
ardumont_ has joined #home-manager
ardumont has quit [Ping timeout: 244 seconds]
maier has joined #home-manager
maier has quit [Ping timeout: 264 seconds]
zoickx has joined #home-manager
zoickx has quit [Remote host closed the connection]
asymptotically has quit [Quit: Leaving]
asymptotically has joined #home-manager
<eyJhb> Can I pull in e.g. a patch frmo https://patch-diff.githubusercontent.com/raw/rycee/home-manager/pull/1391.patch and apply from with fetchurl?
<cole-h> eyJhb: Sounds like you're looking for `patches = [ (fetchpatch { url = ....; sha256 = ....; }) ];`
<eyJhb> Where can I define that, so it is applied to a channel?
<eyJhb> :p
<eyJhb> Tagging you cole-h
<cole-h> What
<cole-h> You're patching a channel...?
<eyJhb> I want to apply that patch, to the hame-manager channel I have, or the home-manager dir I have set as a channel, on NIxOS build
<eyJhb> So that I can place something like patches = [] in my config, but it is applied to home-manager base
<cole-h> Why not just use a patched h-m directly?
<eyJhb> I.. I would like the other much better, seems more clean like a overlay :p
quinn has joined #home-manager
maier has joined #home-manager
maier has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
asymptotically has quit [Quit: Leaving]
dermetfan has quit [Ping timeout: 260 seconds]
maier has joined #home-manager
maier has quit [Ping timeout: 256 seconds]
cole-h has quit [Quit: Goodbye]
tdeo has quit [Quit: Quit]