<infinisil>
Oh and it should be manpages instead, not manpath
Soo_Slow has quit [Quit: Soo_Slow]
ris has quit [Ping timeout: 260 seconds]
medvid_ has quit [Ping timeout: 256 seconds]
cjpbirkbeck has joined #nixos
cjpbirkb1 has quit [Ping timeout: 256 seconds]
acarrico has joined #nixos
Fare has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUX2t
<l33[m]>
O
medvid_ has joined #nixos
<l33[m]>
It's not completely clear about variable scopes in nix... i have https://pastebin.com/tLKAgr7k , however , it's not scoped in my nix file. How do i bring it into scope? whats the best practise for this?
colemickens has joined #nixos
<colemickens>
l33: what exactly are you trying to do?
<colemickens>
do you want to splat the contents of a file inline there?
<colemickens>
l33: or do you want 'include /nix/store/....something' to be output into the file?
xantoz has quit [Ping timeout: 240 seconds]
<energizer>
how do i get out of "waiting for locks or build slots"?
<l33[m]>
<colemickens "do you want to splat the content"> i just want the path of that file there. I can make it absolute path avoid the /nix/store all together... but i'm just interested why this variable is not in scope. I'm doing some reading on nix language scopes...
Serus has quit [Ping timeout: 260 seconds]
<colemickens>
l33: hm I'm not sure what the rest of the file looks like but Nix isn't going to have that variable in scope unless there's a related `import` or `with` function above or if it's an input to the file/function or something
<l33[m]>
i see...
<colemickens>
l33: for example, outside all of your config, you might have a `let recommendedProxyConfig = ....; in { config = { ... } }`
<{^_^}>
[nixpkgs] @endgame opened pull request #99053 → ssm-agent: correctly declare user → https://git.io/JUXaN
Serus has joined #nixos
<energizer>
lol
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Fare has quit [Ping timeout: 240 seconds]
lafa has quit [Quit: Leaving]
sszark has quit [Quit: Lost terminal]
rajivr has joined #nixos
isHavvy has joined #nixos
__red__ has joined #nixos
Havvy has quit [Ping timeout: 240 seconds]
<__red__>
Greetings - can I get some github advice?
<__red__>
oh wait
<__red__>
So the problem is that I created a PR for corral back when ponyc was at the old rev.
<__red__>
Now the new ponyc is in place, and it's a buildInput
<__red__>
so - what I kinda need to do is pull upstream master
<__red__>
merge into my corral branch
<__red__>
the problem is, that when I do that
growpotk- has joined #nixos
<__red__>
it tells me that I'm 300 commits ahead of nixos/master
<__red__>
sooo
<__red__>
I tried to squash - then it adds all those commit together and makes me the author
<__red__>
none of these are optimal
h0m1 has quit [Ping timeout: 272 seconds]
<__red__>
A clue, or even a reference to the correct term I'm looking for would be appreciated
<__red__>
it's like I'm trying to re-parent a branch
<__red__>
for want of a better description
<euank>
git rebase probably?
<l33[m]>
colemickens: okay, that works great... https://pastebin.com/wVQMUuXq However.. Is there anyway i can avoid duplicating the code which resides in side service.nginx ... maybe. let myfile = services.nginx.recommendedProxyConfig; ?
<infinisil>
__red__: `git rebase --onto upstream/master HEAD~<N>` where N is the number of commits back from `git log` you want to apply on top of upstream/master
<euank>
`git rebase -i nixos/master`, if it doesn't show only your commit, you can probably delete others
<__red__>
Perfect - thank you
<euank>
and then solve any rebase conflicts it presents you with
<__red__>
I'll give taht a shot!
<colemickens>
l33: from looking at where it's defined, not really, as far as I know anyway. It looks like it's local to that file.
<l33[m]>
colemickens: ok... I understand perfectly now.
<{^_^}>
[nixpkgs] @redvers closed pull request #98601 → pony-corral_init at 0.4.0 - Will not compile until ponyc 0.37.0 is committed #98598 → https://git.io/JU2eW
<ornxka>
it takes a config, and lib and pkgs.. is there a way to do nixos-generate-config for qemu?
<ornxka>
ahhh nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./configuration.nix
<euank>
`NIXOS_CONFIG=/some/configuration.nix nixos-rebuild build-vm` I think will end up overridding even a non-qemu-friendly configuration.nix to work for a vm too
<ornxka>
ahhh ty
<euank>
(untested, I may be totally wrong!)
isHavvyGhosting has joined #nixos
<__red__>
apparently rebasing automatcailly closed my PR
<__red__>
doh :-)
<infinisil>
It shouldn't..?
isHavvy has quit [Ping timeout: 240 seconds]
<ornxka>
uhh how do i log into this vm lol
<ornxka>
if i dont set a password is there a default root pw?
<ornxka>
i tried setting mutableusers = false and hashedpassword = "toor"
<ornxka>
but it didnt like that
Fare has joined #nixos
<ornxka>
oh it was initialPassword not hashedPassword
<euank>
I'd hope there'd be better documentation somewhere, but I'm not sure where
isHavvy has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
<jlv>
How stable are Nix flakes at this point? They look useful, and I would like to use them, but I'm hesitant because of the beta status. Are many people using them?
isHavvyGhosting has quit [Ping timeout: 260 seconds]
<__red__>
btw - stable is really for bugfixes mostly right?
<__red__>
so I shoudn't backport to stable unless someone specfically requests it?
isHavvyGhosting has quit [Ping timeout: 240 seconds]
<__red__>
(for things like package bumps)
nek0 has quit [Remote host closed the connection]
nek0 has joined #nixos
<cole-h>
Well, the whole point of a stable branch is mostly unchanging (aside from security fixes, critical bugfixes, etc.) IMO.
<__red__>
bingo
<cole-h>
But there have been package bumps, module changes, etc., backported in the past.
<cole-h>
It's really up to the RMs, I guess.
<__red__>
okay... so the last two PRs I put in were completely selfish
endformationage has quit [Quit: WeeChat 2.9]
<__red__>
I'mma go put some time into the 20.09 release tree and see if I can help clear those failures down a bit.
<__red__>
see if I can contribute to the wider goal somehow
amf has joined #nixos
liquidpc has joined #nixos
<amf>
having a lot of trouble with pandoc and latext, when i run `pandoc empty.md --pdf-engine=xelatex -o example13.pdf` i get 'Unknown option `hyphens' for package `url'' google isn't giving me a lot of help...
<liquidpc>
That nigga Lex Luger
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Got a main bitch (and)
<liquidpc>
got a mistress (what else?)
<liquidpc>
A couple girlfriends
<liquidpc>
I'm so hood rich
<liquidpc>
Keep my dick hard and keep me smoking
<liquidpc>
You'll get bills free
<liquidpc>
shawty
<liquidpc>
no joking (real talk)
<liquidpc>
And what I stand for? (Flocka) Brick Squad
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
What's up
<liquidpc>
pussy nigga? What's up
<liquidpc>
punk nigga?
<liquidpc>
Bling out on that nigga
<liquidpc>
make your momma's momma miss you
<liquidpc>
Hope you got your killers with you
<liquidpc>
hope you got your niggas with you
<liquidpc>
Hope your goons riding with you
<liquidpc>
they gon' fucking miss you
<liquidpc>
nigga
<ornxka>
sir this is a linux support irc channel
<amf>
i too like rap, but this isn't the place for it
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Flocka
<liquidpc>
Waka
<liquidpc>
Waka
<liquidpc>
Waka
<liquidpc>
Waka Flocka
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
Brick Squad
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Got a main bitch (and)
<liquidpc>
got a mistress (what else?)
<liquidpc>
A couple girlfriends
<liquidpc>
I'm so hood rich
<liquidpc>
Keep my dick hard and keep me smoking
<liquidpc>
You'll get bills free
<liquidpc>
shawty
<liquidpc>
no joking (real talk)
<liquidpc>
And what I stand for? (Flocka) Brick Squad
<liquidpc>
I'ma die for this shawty
<liquidpc>
man
<liquidpc>
I swear to God
<liquidpc>
In the trap with some killers and some hood niggas
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
What's up
<liquidpc>
pussy nigga? What's up
<liquidpc>
punk nigga?
<liquidpc>
Bling out on that nigga
<liquidpc>
make your momma's momma miss you
<liquidpc>
Hope you got your killers with you
<liquidpc>
hope you got your niggas with you
<liquidpc>
they gon' fucking miss you
<liquidpc>
Hope your goons riding with you
<liquidpc>
point blank range
<liquidpc>
I'll put your ass to sleep
<liquidpc>
Shawty
<liquidpc>
talk is cheap so watch what your say
<liquidpc>
Broad day in the air like this shit legal
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Flocka
<liquidpc>
Waka
<liquidpc>
Waka
<liquidpc>
Waka
<liquidpc>
Waka Flocka
<liquidpc>
Waka
<liquidpc>
Waka
<notgne2>
liquidpc: have you tried running `sudo nixos-rebuild switch`?
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
Brick Squad
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<notgne2>
hm, I wonder what your issue could be then
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
▅▜▗▘▏▓▐▂░▍▕▔▒▛▝▁▀█▚▞▎▌▆▖▄▙▋▇▃▊▉
<cole-h>
gchristensen srhb
<liquidpc>
That nigga Lex Luger
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
Crips fucking with me
<liquidpc>
G's and the Vice Lords
<liquidpc>
Eses and amigos freestyle off the dome
<liquidpc>
Brick Squad
<liquidpc>
Waka Flocka Flame is fucking home
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
dozn has quit [Ping timeout: 260 seconds]
<liquidpc>
that's my motherfucking nigga
iwq has quit [Ping timeout: 260 seconds]
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<notgne2>
liquidpc: what Nix channel are you using?
<liquidpc>
Two years later
<liquidpc>
screaming out
<liquidpc>
"Your honor!"
<liquidpc>
Glock 9
<liquidpc>
the SK
<liquidpc>
if you want to beef
<liquidpc>
Shawty
<liquidpc>
point blank range
<liquidpc>
I'll put your ass to sleep
<liquidpc>
Shawty
<liquidpc>
talk is cheap so watch what your say
<cransom>
we need a nix-info please.
<liquidpc>
Broad day in the air like this shit legal
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<ornxka>
i bet hes running nixpkgs-unstable and something broke
<liquidpc>
Waka
<liquidpc>
Waka
<notgne2>
well I think the "Waka Flocka Flame" channel might be a bit outdated
<liquidpc>
Waka Flocka
<liquidpc>
Waka Flocka
<liquidpc>
Flocka
<liquidpc>
Waka
<liquidpc>
Waka Flocka Flame
<liquidpc>
Brick Squad
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<notgne2>
he should probably switch to 20.03 or unstable
<liquidpc>
Brick Squad
LnL has quit [Quit: exit 1]
ddellacosta has quit [Ping timeout: 258 seconds]
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
▇▄▆▛▁▙▜▗▖░▕▅▒▞▓▎▀▊▂▃▚▉▌▍▘▏▋▐█▝▔
<liquidpc>
That nigga Lex Luger
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
LnL has joined #nixos
LnL has joined #nixos
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
Brick Squad
<liquidpc>
Waka Flocka Flame is fucking home
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<abathur>
> spongebobify "I hang in the 'Dale with them Hit Squad killers"
<liquidpc>
if you want to beef
<{^_^}>
"I hANG IN THE 'dAlE WITh THem HIt sQuAD kILlers"
<liquidpc>
Shawty
<liquidpc>
point blank range
<liquidpc>
I'll put your ass to sleep
<liquidpc>
Shawty
<liquidpc>
talk is cheap so watch what your say
<liquidpc>
Broad day in the air like this shit legal
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<notgne2>
liquidpc: next time it might be easier to use pastebin, it makes it much easier for us to figure out what issue you are having :)
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
Brick Squad
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
Brick Squad
<liquidpc>
I go hard in the motherfucking paint
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<notgne2>
glad you agree
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Got a main bitch (and)
<liquidpc>
got a mistress (what else?)
<liquidpc>
A couple girlfriends
<liquidpc>
I'm so hood rich
<liquidpc>
Keep my dick hard and keep me smoking
<liquidpc>
You'll get bills free
<liquidpc>
shawty
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
What's up
<liquidpc>
pussy nigga? What's up
<liquidpc>
punk nigga?
<liquidpc>
Bling out on that nigga
<liquidpc>
make your momma's momma miss you
<liquidpc>
Hope you got your killers with you
<liquidpc>
hope you got your niggas with you
<liquidpc>
Hope your goons riding with you
<amf>
sigh, i guess ill ask on discourse
yrwq has joined #nixos
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
See Gucci
<liquidpc>
that's my motherfucking nigga
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
bending corners
<liquidpc>
my nigga
<liquidpc>
Flocka
<liquidpc>
Waka
<liquidpc>
Waka
<liquidpc>
Brick Squad
<liquidpc>
Yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
yeah
<liquidpc>
Brick Squad
<liquidpc>
I go hard in the motherfucking paint
cole-h has quit [Quit: Goodbye]
<liquidpc>
nigga
<liquidpc>
Leave you stinking
<liquidpc>
nigga
<liquidpc>
What the fuck you thinking
<liquidpc>
nigga?
<liquidpc>
I won't die for this shit or what the fuck I say (Brick
<liquidpc>
Squad)
<liquidpc>
Front yard
<liquidpc>
broad day with the SK
<liquidpc>
I hang in the 'Dale with them Hit Squad killers
justanotheruser has quit [Ping timeout: 240 seconds]
<liquidpc>
Waka Flocka Flame
<liquidpc>
one hood-ass nigga
<liquidpc>
Riding real slow
<liquidpc>
my nigga
<liquidpc>
bending corners
<liquidpc>
I'm so hood rich
<liquidpc>
A couple girlfriends
<liquidpc>
got a mistress (what else?)
<liquidpc>
Got a main bitch (and)
cole-h has joined #nixos
<liquidpc>
Keep my dick hard and keep me smoking
<liquidpc>
And what I stand for? (Flocka) Brick Squad
<liquidpc>
no joking (real talk)
<liquidpc>
shawty
<liquidpc>
You'll get bills free
<liquidpc>
I'ma die for this shawty
<liquidpc>
man
<liquidpc>
I swear to God
<liquidpc>
In the trap with some killers and some hood niggas
<liquidpc>
Where you at? Where you trap? You ain't hood
<liquidpc>
nigga
<liquidpc>
Eses and amigos freestyle off the dome
<liquidpc>
G's and the Vice Lords
<liquidpc>
Crips fucking with me
<liquidpc>
put that shit on my hood
<liquidpc>
Keep this shit 300
liquidpc has quit [Excess Flood]
knerten1 has joined #nixos
growpotk- has quit [Ping timeout: 240 seconds]
justanotheruser has joined #nixos
yrwq has quit [Client Quit]
dozn has joined #nixos
iwq has joined #nixos
knerten has quit [Ping timeout: 272 seconds]
<infinisil>
Btw, weechat syntax to add a nick filter: /filter add liquidpc * nick_liquidpc *
knerten has quit [Remote host closed the connection]
ramen_master has quit [Quit: Lost terminal]
Fare has quit [Ping timeout: 260 seconds]
<bbigras>
daddy_james: it's up for me
<daddy_james[m]1>
oh, it's back online for me too
<daddy_james[m]1>
guess there was maintenance or something
lucas_ has quit [Ping timeout: 246 seconds]
morr has quit [Ping timeout: 260 seconds]
marek has joined #nixos
growpotk- has joined #nixos
<KarlJoad`>
infinisil: That override worked! Thanks a ton!
<KarlJoad`>
One of these days I need to have nativeBuildInputs vs buildInputs explained to me, and the difference between overrides and overlays explained as well.
<cole-h>
KarlJoad`: IIRC -- nativeBuildInputs are things that will be run on the host of whatever system is being compiled on, while buildInputs is for things that won't need to be executed
<cole-h>
(e.g. for cross-compiling)
hyper_ch2 has left #nixos [#nixos]
hyper_ch4 has joined #nixos
hyper_ch4 has quit [Remote host closed the connection]
<zecnate>
Hm, no, not for some of the dependencies.
<zecnate>
A bunch of the dependencies for my project are defined locally in my repo, so there won't be build caches, AFAIK, and I need to download everything before a commute.
isHavvyGhosting has joined #nixos
<bbigras>
you just want to download stuff? I wonder if a --dry-run output could be fed to a command fetching everything
<zecnate>
-so that I can do a cycle of `nix-build`, fix bug, `nix-build` while without internet access for a while.
<bbigras>
it's just for one project? a cached nix-shell maybe?
isHavvy has quit [Ping timeout: 240 seconds]
<zecnate>
It sounds like there's not a ready made option. Wouldn't it be possible to front-load all downloading?
<zecnate>
IIUC, derivations cannot depend on any build outputs, so all external resources are available prior to instantiation, right?
<zecnate>
What happens right now is when I run `nix-build` it seems to interleave some downloading with some compiling, so I need to wait a long time until I am certain all the external artifacts have been fetched, before I leave for the commute.
<zecnate>
Hm, can I use a local path as one of the alternative `urls` for the `fetchurl` derivation? That'd be helpful, since I already have "manually" downloaded tarballs for most of these dependencies.
justanotheruser has quit [Ping timeout: 246 seconds]
yjftsjthsd has joined #nixos
zecnate has joined #nixos
<sneaktest>
this might be a dumb question, but is "nixpkgs" the same thing as nix? I've installed nix on my macOS machine, and I keep seeing things referring to ~/.nixpkgs/config.nix. I don't have this file. It says I'm supposed to clone the nixpkgs repo to ~/.nixpkgs. Did I miss this step? What am I installing from when i `nix-env -i $pkgname`?
sangoma has joined #nixos
<zecnate>
During a `nix-build` I get an error `/nix/store/...-bash.../bin/bash: /nix/store/.../bin/foo: No such file or directory.`
<srhb>
sneaktest: nixpkgs is the package "repo" that nix (by default) uses
<srhb>
sneaktest: That config file does indeed not exist by default. What says that you're supposed to clone nixpkgs to ~/.nixpkgs ? That sounds uncommon.
<zecnate>
The binary `foo` exists and `file` shows its an elf executable. Furthermore, I can execute the failing commandline on my normal shell and within `nix-shell`. It is an executable installed from a binary tarball during my build process.
<sneaktest>
i forget where i read that, and 20 seconds of retracing my googling doesn't turn it back up
<zecnate>
I am guessing there's some binding to my base system the binary has that the nix build sandbox does not. Any advice on how to address this?
<srhb>
sneaktest: Yeah, sounds weird.
<sneaktest>
ok, so i already have nixpkgs then. that's good to know
<sneaktest>
is my ~/.nixpkgs supposed to be absent?
<sneaktest>
(by default)
<srhb>
sneaktest: Yes.
<srhb>
zecnate: Usually, when binary tarballs are involved, and execution fails, it's a lack of loader, or some library, or...
<sneaktest>
ok cool. i've been installing stuff by running `nix-env -i $pkg`. if i wanted to provision a new box and replicate that, how do i a) list everything i've installed so far, and b) configure a config.nix to duplicate it, and c) what command do i run to make config.nix do its thing and install stuff
<srhb>
zecnate: So inspecting the elf with elftools is helpful
palo1 has joined #nixos
<sneaktest>
oh, it turns out i do have a ~/.config/nixpkgs/config.nix. is this the new location instead of ~/.nixpkgs/config.nix?
<srhb>
sneaktest: I think you want either nix-darwin or home-manager, and skip nix-env entirely, opting to create a configuration file that describes your entire system rather than ad-hoc installing things.
<srhb>
sneaktest: It is, though iirc that also does not come installed out of the box
<sneaktest>
hmm ok, maybe i had to do that because /nix is a symlink (/System/Volumes/Data/nix, due to readonly system volume in >=catalina)
<srhb>
zecnate: /lib64/ld-linux-x86-64.so.2 (0x00007f23f5ef0000) -- that looks suspect
<sneaktest>
well, i think i have it working like any other non-nixos system now. where do i put that system configuration description file and what goes in it and what command applies it?
<srhb>
zecnate: That should also not exist on a NixOS install though, so why it works on your system outside of the sandbox is a bit of a mystery. Do you have that?
<zecnate>
This is on a debian system with nix installed.
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<srhb>
sneaktest: You'll have to read up on home-manager or nix-darwin, I think :)
<sneaktest>
lol, home-manager docs: > Before using Home Manager you should be comfortable using the Nix language and the various tools in the Nix ecosystem.
<sneaktest>
back to the drawing board with me
<srhb>
sneaktest: There are "ye olde ways" of creating an "aggregate" package in your nixpkgs config, but frankly I'd consider it mostly a dated approach
<srhb>
sneaktest: And home-manager really isn't that bad :)
veleiro has joined #nixos
xelxebar has quit [Remote host closed the connection]
<sneaktest>
if the old way is simple enough to explain in <100 words, i think i'd prefer to stick to that if you don't mind linking me to docs or telling me how to do it in the config.nix
<sneaktest>
i'll migrate it to something better once i understand more about nix
xelxebar has joined #nixos
<sneaktest>
i only have ~20 pkgs to install
<srhb>
sneaktest: Let me see if I can still find some docs on it then..
<sneaktest>
my alternative is a bash script that runs for PKG in $PKGS ; do nix-env -i $PKG ; done :D
<sphalerite>
notgne2++ excellent work on trying to help users, no matter how obtuse :D
<sneaktest>
is there a way to determine the names of all the pkgs i've nix-env -i'd, or do i need to reverse engineer it from ~/.nix-profile/bin/*
<clever>
sneaktest: `nix-env -q` lists the names of the packages
<sneaktest>
sweet ty
isHavvyGhosting has quit [Ping timeout: 240 seconds]
turlando has joined #nixos
alp has quit [Remote host closed the connection]
alp has joined #nixos
bookstack has joined #nixos
<{^_^}>
[nixpkgs] @aneeshusa opened pull request #99065 → nixos/samba: Requires shares to be mounted → https://git.io/JUXAq
pinpox has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #99066 → buildRustCrate: fix target config environment variables on 32-bit ARM → https://git.io/JUXAW
pinpox- has quit [Ping timeout: 260 seconds]
<sneaktest>
thanks so much for your help, this has been the missing piece for me for a while
<sneaktest>
i seem to have to `nix-env --uninstall $PKG` for each package i've listed in myPackages to be able to install myPackages? it says they have the same priority 5 and one has to be changed, any way to override this?
<srhb>
sneaktest: You probably _should_ uninstall all of them
<sneaktest>
okeydokey
<srhb>
sneaktest: (Yes, there is a way, but it'll be confusing in other ways)
<NobbZ[m]>
`nix-env --uninstall $(nix-env -q)` if you are really sure you want to remove all of them.
<sneaktest>
oh lol it uninstalled nix and now nix-env is gone
<tobiasBora>
Hello, a project requires libasound2 but I can't find it, even using nix-locate 'libasound2'. However I saw that alsaLib package may solve the issue, but I'm curious to know, why isn't it found by nix-locate? Is there a reliable way to get a list of packages that provides libraries?
<srhb>
sneaktest: You can find nix in /nix/store and use its absolute path to install nix again.
<sneaktest>
what do
<srhb>
tobiasBora: Not really, but
<srhb>
,locate libasound2
<sneaktest>
i found one in /nix/store/171l4ynsn2vw02p5dciaz3012k8blq15-nix-2.3.7/bin
<sneaktest>
can i just use that directly to reinstall nix?
<srhb>
sneaktest: That'll be fine
<{^_^}>
Couldn't find in any packages
<srhb>
aw
<sneaktest>
it can't find the root CA certs and all of the downloads are failing
<srhb>
,locate libasound.so.2
<{^_^}>
Found in packages: alsaLib
<cole-h>
srhb++
<{^_^}>
srhb's karma got increased to 126
<sneaktest>
how many person-hours of lives would be saved if autoconf were parallelizable
<srhb>
sneaktest: ugh :) I don't remember where the cert bundle is on mac
turlando has quit [Quit: Leaving]
<srhb>
sneaktest: But you should be able to set NIX_SSL_CERT_FILE to that path and rerun that nix command
<sneaktest>
i'm trying nix-env -iA nixpkgs.myPackages which seems to be building something
<sneaktest>
maybe that will pull in the appropriate thing into my profile for it to resume working
<sneaktest>
it has wget in there so i assume so
supercoven has joined #nixos
isHavvyGhosting has joined #nixos
isHavvy has quit [Ping timeout: 240 seconds]
Zetagon has joined #nixos
Izorkin_ has joined #nixos
Izorkin has quit [Ping timeout: 260 seconds]
Izorkin_ is now known as Izorkin
supercoven has quit [Max SendQ exceeded]
supercoven has joined #nixos
<{^_^}>
[nixpkgs] @ehmry merged pull request #95335 → nixos/rsyncd: convert module to an INI generator → https://git.io/JJHDJ
<{^_^}>
[nixpkgs] @ehmry pushed to master « nixos/rsyncd: convert module to an INI generator »: https://git.io/JUXhO
<sneaktest>
lol finally found it i n /nix/var/nix/profiles/per-user/sneak/profile-44-link/etc/ssl/certs
<sneaktest>
cd
rsa has quit [Ping timeout: 260 seconds]
rsa has joined #nixos
f0x has quit [Ping timeout: 260 seconds]
flokli has quit [Ping timeout: 260 seconds]
<srhb>
sneaktest: I just realized you could probably use nix-env from that path to install the same store path in your profile without downloading anything
<sneaktest>
i set NIX_SSL_CERT_FILE to the ca-certificates.crt in that old profile /etc/ssl and used the highest version nix i found in /nix/store/*-nix-*/bin to nix-env -i nix
<sneaktest>
woohoo! everything appears to have worked now.
<sneaktest>
had this been a non-functional package manager this would have been a "format drive, reinstall" moment
<sneaktest>
instead, just needed to wrangle some symlinks
<sneaktest>
i love nix
supercoven has quit [Max SendQ exceeded]
supercoven has joined #nixos
<tobiasBora>
srhb: great, thanks! I'm stupid, should have removed the 2. Also, is there a way to prune nix-locate to provide "the most important package", basically like the bot returns here?
<srhb>
tobiasBora: I don't know. I think that the bot must have some logic about excluded packages, but I haven't checked.
cizra has quit [Remote host closed the connection]
<cole-h>
Maybe you want `nix-locate --top-level`?
<cole-h>
Maybe even add `-w` (`--whole-name`)
<sneaktest>
so is the "normal" way of installing in nix-land for most people to edit ~/.config/nixpkgs/config.nix, add a package, then nix-env -iA nixpkgs.myPackages?
ManiacOfMadness has joined #nixos
<cole-h>
IMO, the normal way is using configuration.nix on NixOS, or home.nix for home-manager.
<Ke>
if you want a command to be available, the normal way is probable adding to systemPackages and rebuilding system
astro has quit [Read error: Connection reset by peer]
<sneaktest>
ok, will start playing with home-manager now. (sorry, i'm on macos, not nixos yet)
astro has joined #nixos
<cole-h>
sneaktest: Might also want to check out nix-darwin, in that case.
<sneaktest>
oh, i don't want to manage anything in /etc, i try to install everything under $HOME and keep the systemwide stuff as pristine as possible
zacts has joined #nixos
<sneaktest>
/nix being one exception as it's only used by one user account
<sneaktest>
looks like nix-darwin uses the daemon and manages systemwide stuff
<sneaktest>
also i rather doubt apple is going to permit that to continue much longer on the newer hardware, sadly
<srhb>
sneaktest: In that case the normal way is/will be home-manager
<srhb>
sneaktest: imperative management via nix-env can be handy in a pinch, but the advantages of full declarative management are substantial.
<cole-h>
(For declarative installation, as Nix excels at)
<cole-h>
srhb++ Nailed it.
<{^_^}>
srhb's karma got increased to 127
alp has quit [Ping timeout: 272 seconds]
cole-h has quit [Quit: Goodbye]
morr has joined #nixos
<sneaktest>
is it a bad idea to start installing nix into ubuntu-based docker containers to slowly move my containerized apps to nix-supplied deps, or should i be using a nixos container? the latter seems like a bit more work to switch to
<srhb>
sneaktest: I'd build my docker containers with nix instead, if you need docker containers.
<sneaktest>
everything i do gets deployed with docker
<srhb>
sneaktest: Running nix itself in containers is meh
<sneaktest>
i like the idea of a single-layered image. it's hard to do that with a dockerfile
<srhb>
It's better to layer them for sharing though, on your deployment platform
<srhb>
And with buildLayeredImage, it attempts to maximize sharing of "popular" paths
<sneaktest>
the way that my deployment setup works though, i have to stick to dockerfiles for the moment, so i'll look at using a base nixos docker image that i can drop a configuration into
<tobiasBora>
cole-h: good catch, thanks!
<srhb>
sneaktest: Down that path lies a lot of pain imo.
<sneaktest>
less pain than abandoning my selfhosted PaaS setup which expects ./Dockerfile in the repo.
<tobiasBora>
I don't understand, I tried to compile a project that requires speex/speex.h so I put speex in both nativeBuildInputs and buildInputs, but I still get "fatal error: speex/speex.h: No such file or directory"
<tobiasBora>
and speex should have it speex.dev 14,030 r /nix/store/9knkvxx17m959cnaffafbjk8dpyglcn2-speex-1.2.0-dev/include/speex/speex.h
s1341 has joined #nixos
<tobiasBora>
oh wait, maybe I made a stupid mistake
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.braintree: 4.3.0 -> 4.4.0 »: https://git.io/JU1fa
<delan>
g’day o/ anyone know why on one of my machines, nixos-rebuild switch has just... stopped marking new generation entries as the default? it still activates (unlike boot + build), still adds a boot entry (unlike test + build), but i have to arrow down further and further. https://bucket.daz.cat/9bcd6da39699e44b.jpg
<sneaktest>
i have an item in the store at /nix/store/zkzfcihxx22lni3ianbd5y54fnc8qkrm-user-environment. i can't nix-env -i user-environment or add the string user-environment to my package list in config.nix, it says undefined variable. how do i add that to my packages list? it has the file that $NIX_SSL_CERT_FILE is expecting to be there.
<srhb>
delan: I have a vague recollection of 'd' setting a default and never clearing it.. maybe the same keypress again on the current default entry?
<srhb>
iirc there was also some work to update the default from within the generator (instead of picking the highest generation number if no default is set), but that's probably 20.09 and up
civodul has joined #nixos
rprije has quit [Remote host closed the connection]
<delan>
srhb: thanks! that was it. pressing 'd' on another entry sets the default, and pressing 'd' on the default entry clears the default. \o/
<etu>
zarkone: nix-info usually contains the channels commit number
<etu>
zarkone: Just want to check, do you use nixpkgs-unstable as nixos?
o1lo01ol1o has joined #nixos
munksgaard has joined #nixos
<munksgaard>
Has anyone gotten the wally bootloader to work with the new ergodox moonlander? Whenever I try to flash my new config, wally just waits at 'Press the reset button'
<etu>
zarkone: That merge haven't reached either nixpkgs-unstable or nixos-unstable yet
dstzd has quit [Ping timeout: 240 seconds]
<zarkone>
etu: i'm on 20.03, but with some of the packages from unstable. Do you think it is ok to switch to unstable comepletely btw?
<etu>
zarkone: Things may break on unstable, like config options changes etc so you have to adapt your config. But if you want to remain on stable but want something a bit newer you could switch to 20.09 (which isn't released yet) and help out reporting issues :)
<zarkone`>
etu: so, `nix-info` gives me `system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.6, channels(root): "nixos-20.03.3061.360e2af4f87, nixos-unstable-21.03pre244458.3eb1f8a446d", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos` which probably means that my unstable is actually 20.09 pre-release, right?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JU1cH
<betaboon>
i am trying to adopt cachix. i got a shell nix that i use to pin nixpkgs (and some other stuff). normaly i activate that nix-shell (with lorri) and run a `nix-build ....`. how can i achieve this when using cachix? run `nix-shell --run "nix-build ..."` ?
<{^_^}>
[nix] @domenkozar merged pull request #4084 → Bump cachix/install-nix-action from v10 to v11 → https://git.io/JUiw4
<{^_^}>
[nix] @dependabot[bot] pushed 0 commits to dependabot/github_actions/cachix/install-nix-action-v11: https://git.io/JU1CD
<CRTified[m]>
I'm trying to cross-compile an image for the RPi0, but adding a deviceTree overlay (to enable `hifibarry-dacplusadc`, using `${pkgs.device-tree_rpi.overlays}/hifiberry-dacplusadc.dtbo` as dtboFile) causes the build to fail. I am aware of #79370, but the discussion only covers aarch64. I'm getting the same errors as sorki in this post: https://github.com/NixOS/nixpkgs/pull/79370#issuecomment-696038723
<{^_^}>
[nixpkgs] @elohmeier opened pull request #99089 → [20.09] iptraf: mark as broken → https://git.io/JU1l7
mekster has quit [Remote host closed the connection]
mekster has joined #nixos
mekster has quit [Remote host closed the connection]
mvanwaveren9 has joined #nixos
mekster has joined #nixos
mekster has quit [Remote host closed the connection]
graf_blutwurst has joined #nixos
devhell has quit [Quit: leaving]
graf_blutwurst has quit [Remote host closed the connection]
graf_blutwurst has joined #nixos
puffnfresh has joined #nixos
<graf_blutwurst>
Slightly off topic question, but does anyone have experience with yubikey, gpg-agent and pass? since i switched my password store to a gpg-key on my yubikey it has become significantly slower to access. I am not entirely sure if that is just a fact of life or if there's a way to speed it up
<qyliss>
gpg with a yubikey is just much slower than gpg with a key on disk
<graf_blutwurst>
yeah ok so it's just a matter of fact. that's what i thought. no harm I'll just switch back to my local one. thanks!
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
hyper_ch4 has quit [Ping timeout: 240 seconds]
sputny1 has joined #nixos
sputny has quit [Ping timeout: 260 seconds]
sputny1 is now known as sputny
sputny has quit [Client Quit]
<__monty__>
Hmm, can someone explain to me how the update in the spdx function in nixpkgs/lib/licenses.nix doesn't override the url for amazonsl, for example?
sputny has joined #nixos
obadz has quit [Quit: WeeChat 2.9]
grobi has joined #nixos
kdlv has quit [Remote host closed the connection]
kdlv has joined #nixos
grobi has quit [Client Quit]
sputny has quit [Client Quit]
sputny has joined #nixos
julm has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @veprbl opened pull request #99093 → texlive: move chktex from texlive.bin.core to texlive.bin.chktex → https://git.io/JU1EA
sputny has quit [Client Quit]
sputny has joined #nixos
<AWizzArd>
I can run `nix-build release.nix` and my `nix-shell` also works fine. With such a setup, how can I create a (minimal) Docker image that contains just enough to run the binary that nix-build produces?
<infinisil>
__monty__: amazonsl doesn't use the spdx function :)
<dminuoso>
AWizzArd: pkgs.dockerTools ?
<{^_^}>
[nixpkgs] @tricktron opened pull request #99094 → python3Packages.fsspec: fix tests on darwin → https://git.io/JU1uV
sputny has quit [Read error: Connection reset by peer]
<AWizzArd>
dminuoso: do I just have to add a section with buildImage {} to my release.nix? Or does this need to go into a separate .nix file?
sputny has joined #nixos
cosimone has joined #nixos
<dminuoso>
AWizzArd: Id assume that buildImage produces a derivation.
<dminuoso>
So build with nix-build regularly
<dminuoso>
AWizzArd: Say, your release.nix is some `{ ...; dockerImage = ... }` then you can just say `nix-build -A dockerImage ./release.nix` I guess?
<dminuoso>
Secret tip, use callCabal2nix rather than cabal2nix manually
<dminuoso>
Ah I see
<AWizzArd>
dminuoso: cabal2nix is a bit buggy, it doesn’t qualify OS dependencies correctly. When I say I want to have `curl` at development time then it will load the Haskell package with that name. Instead I expected that cabal2nix would import pkgs and request pkgs.curl to fetch the unix util. I have to manually edit my project.nix anyway.
sputny has quit [Client Quit]
<dminuoso>
I dont quite understand
<dminuoso>
How do you say you want curl at development time, and what is "development time"?
sputny has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JU1zK
<dminuoso>
AWizzArd: Did you add `curl` to your build-tool-depends in the cabal file?
waleee-cl has joined #nixos
<dminuoso>
I guess you have to, that's the only way it'd end up in the buildTools section, so that's the mistake then.
<Ke>
do you have somehow hardcoded refs like that?
<Ke>
not that I would know much
sputny has quit [Quit: sputny]
sputny has joined #nixos
alp has joined #nixos
<pbogdan>
I don't think so; the path itself looks like the out path of the system configuration I'm building
<pbogdan>
and does actually get created..
<{^_^}>
[nixpkgs] @jonringer merged pull request #99087 → iptraf: mark as broken → https://git.io/JU1l1
<{^_^}>
[nixpkgs] @jonringer pushed commit from @elohmeier to master « iptraf: mark as broken »: https://git.io/JU1aX
<dminuoso>
AWizzArd: anyhow, just use callCabal2nix, and then use overrideAttrs to add external dependencies to buildTools. And make sure your cabal does not mention curl/cacerts, it's just wrong.
Rusty1 has joined #nixos
sputny has quit [Read error: Connection reset by peer]
<alexarice[m]>
I'm trying to convert my configuration to flakes, how do people manage their `hardware-configuration.nix` file as mine throws an error about not being able to lookup '<nixpkgs/nixos/modules/installer/scan/not-detected.nix>'
rawtaz has quit [Ping timeout: 265 seconds]
<tsmanner>
pbogdan That looks to me like a UNIX permissions issue. /nix/store is the path where your store is always mounted. Can you `ls -al /`? It should show `drwxr-xr-x 4 root root 4 Sep 9 00:26 nix` and if you `ls -al /nix` you should see something like `drwxrwxr-t 1737 root nixbld 8134 Sep 29 03:00 store`
rawtaz has joined #nixos
Orbstheorem has joined #nixos
<pbogdan>
the permissions look good afaict, plus I can run other builds without any issues
sputny has quit [Read error: Connection reset by peer]
sputny has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #99094 → python3Packages.fsspec: fix tests on darwin → https://git.io/JU1uV
<{^_^}>
[nixpkgs] @jonringer pushed commit from Thibault Gagnaux to master « python3Packages.fsspec: fix tests on darwin »: https://git.io/JU1VV
Soo_Slow has quit [Quit: Soo_Slow]
never_released_ is now known as never_released
<tsmanner>
pbogdan do you mean using `nix-build` for "other builds" or do you mean other `nixos-rebuild`s work, just with different args?
sputny has quit [Client Quit]
sputny has joined #nixos
mvanwaveren9 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.bidict: 0.20.0 -> 0.21.2 »: https://git.io/JU1rb
dstzd has joined #nixos
dstzd has quit [Changing host]
dstzd has joined #nixos
anderslu1dstedt has quit [Ping timeout: 260 seconds]
sputny has quit [Quit: sputny]
sputny has joined #nixos
pbb has quit [Ping timeout: 246 seconds]
pbb has joined #nixos
<sphalerite>
pbogdan: "does not exist and cannot be created" indicates that a path is being referenced, but it doesn't exist and no derivation that produces it is known
<{^_^}>
[nixpkgs] @jonringer pushed commit from @risicle to master « pythonPackages.ruffus: 2.8.1 -> 2.8.4, fix build »: https://git.io/JU1oN
<sphalerite>
pbogdan: aaah, I think it's if a path is referenced during evaluation (IFD) and doesn't exist, but building isn't allowed, e.g. when running nix-instantiate
<sphalerite>
pbogdan: `nix-build '<nixpkgs/nixos>' -A config.system.build.toplevel` ought to work, and make nixos-rebuild work as well, by evaluating the system with building allowed
redkahuna has quit [Ping timeout: 265 seconds]
sputny has quit [Client Quit]
<pbogdan>
I was actually pointing nixos-rebuild at a remote host, and didn't realise the error was coming from the remote end
sputny has joined #nixos
<pbogdan>
using --build-host localhost seems to have sorted it out
roconnor has joined #nixos
<sphalerite>
aaah
est31 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer opened pull request #99097 → xorg.xkeyboardconfig: build man pages → https://git.io/JU1Kc
est31 has joined #nixos
<sphalerite>
yeah in that case it can also be due to eval-time fetching, like builtins.fetchTarball or URLs on NIX_PATH
tyxie has quit [Remote host closed the connection]
shabius has quit [Ping timeout: 246 seconds]
craftyguy has joined #nixos
sputny has quit [Client Quit]
sputny has joined #nixos
<eyJhb>
Did the docker module get removed from NixOS?
sputny has quit [Client Quit]
sputny has joined #nixos
<Henson>
eyJhb: I think they've been renamed to virtualisation.oci-containers.containers
sputny has quit [Client Quit]
<eyJhb>
Thanks Henson !
sputny has joined #nixos
<Henson>
eyJhb: you're welcome :-)
<AWizzArd>
dminuoso: sorry, was away. Yes, I have added pkgs.curl manually to buildToolDepends because I want to have curl available in a --pure nix-shell.
<AWizzArd>
dminuoso: I also must have cacerts as a dependency. When I dockerize my nix build it must include the certificates so that the mail service can use TLS.
<dminuoso>
AWizzArd: That has nothing to do with cabal2nix though.
<dminuoso>
If you use callCabal2nix, it will automatically track changes.
<{^_^}>
[nixops] @grahamc merged pull request #1407 → Document NixOS module system options in generated sphinx docs → https://git.io/JUgry
<{^_^}>
[nixops] @grahamc merged pull request #1406 → Fix rendering of `doc/manual` in the generated docs → https://git.io/JUgBL
<dminuoso>
And you can inject additional buildTools with overrideAttrs
<dminuoso>
(say for curl or cacerts)
sputny has quit [Client Quit]
<dminuoso>
But adding those packages to the .cabal file is wrong though. :)
evils has quit [Quit: Lost terminal]
<AWizzArd>
dminuoso: how can I teach cabal2nix to import pkgs.curl when I want the OS tool and not the Haskell lib? And how do I need to specify this in my .cabal file that I want those as dependencies? Curl only during development – it should not go into the Docker image. But the cacerts must go into the image.
sputny has joined #nixos
<AWizzArd>
dminuoso: okay, so I will have to edit the project.nix file anyway. I may use cabal2nix only once, initially.
<dminuoso>
Well, you'd have to re-run cabal2nix every time you modify the cabal file, say for bumping bounds
<dminuoso>
Why would you need to specify curl in your cabal file at all?
<AWizzArd>
dminuoso: and then also re-edit by hand the resulting .nix file.
<AWizzArd>
dminuoso: I don’t do that. I just heard that others don’t edit their .nix file by hand and use cabal2nix instead.
sputny has quit [Remote host closed the connection]
<AWizzArd>
But that tool is a leaky abstraction because I need to think about the .nix file anyway.
<dminuoso>
AWizzArd: well, callCabal2nix is better nowadays :)
<dminuoso>
You can still make the modifications, but you dont have this stateful file that you, yourself, need to manually keep in sync with your cabal file
<dminuoso>
So its less error prone
<dminuoso>
And, cabal has no support for depending on external programs.
sputny has joined #nixos
aforemny has quit [Ping timeout: 256 seconds]
Izorkin_ has joined #nixos
<AWizzArd>
dminuoso: can you show me, maybe via an edit of https://dpaste.com/49NT4YM2R what the end result should look like?
<iwq>
is there any release date for stable nix flakes or nix 3.0? or estimated date
<AWizzArd>
dminuoso: okies, I will give that a try.
<dminuoso>
AWizzArd: In addition, you can then add another attribtue `dockerImage = ...` at the bottom that uses dockerTools
<dminuoso>
Then, you can chose to either build the derivation on the host with `nix-build -A releaseEnv` or the docker image with `nix-build -A dockerImage`
sputny has quit [Remote host closed the connection]
sputny has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<AWizzArd>
dminuoso: okay so whan I have two definitions at the bottom then the -A is needed. Right now I only need to say: `nix-build release.nix`
sputny has quit [Read error: Connection reset by peer]
<dminuoso>
Just giving you options. :)
<dminuoso>
There's a lot of ways you can change the ergonomics
sputny has joined #nixos
cr4y1_ has quit [Remote host closed the connection]
Izorkin_ has joined #nixos
cr4y1 has joined #nixos
<iwq>
how does `nix run nixpkgs#hello` know which binary to run? what happens if there is more than one binary in bin/*?
Izorkin has quit [Ping timeout: 272 seconds]
Izorkin_ is now known as Izorkin
<dminuoso>
AWizzArd: Then, for extra points, you can add another attribute `shell = shellFor ...`, which your shell.nix can use directly.
<dutchie>
iwq: it just runs bash unless you give it -c
<dminuoso>
(shellFor is pretty sweet since it sets up an environment for working with ghci, or possibly ghcid)
<dminuoso>
or for v2-build
<dminuoso>
which is very handy for rapid local development
<dutchie>
(unless things have changed in the flake version, which would presumably include that metadata)
Rian[m] has joined #nixos
Darkmatter66_ has joined #nixos
<iwq>
dutchie: i'm watching zimbatm's flake video and he didn't need to pass -c for it to run the correct binary
sputny has quit [Client Quit]
Darkmatter66 has quit [Ping timeout: 240 seconds]
sputny has joined #nixos
KarlJoad` has quit [Remote host closed the connection]
<betaboon>
where can i find the documentation for `nix build` ?
<betaboon>
I'm trying to find an equivalent to `nix-build '<my-nixpkgs-fork>' -I nixos-config=./my-configuration.nix -A config.system.build.toplevel`
<jdelStrother>
overlay (so that I can rewrite some of the attributes in rubygems), what should my new path be? (eg import "development/interpreters/ruby/rubygems" gives me "doesn't represent an absolute path")
<{^_^}>
[nixpkgs] @jonringer pushed to staging « xorg.xkeyboardconfig: build man pages »: https://git.io/JU196
Sanchayan has quit [Quit: leaving]
<tobiasBora>
Hello, I've a few questions concerning kernel modules. First, is it normal if modprobe detects a module but insmod does not?(I need to write the full path for insmod) Then, how could I make sure that a module is automatically loaded at startup? I tried to put it in boot.extraModulePackages but does not seem to work.
<clever>
tobiasBora: boot.extraModulePackages just puts it into the search path for modprobe
<clever>
boot.kernelModules
<clever>
The set of kernel modules to be loaded in the second stage of the boot process. Note that modules that are needed to mount the root file system should be added to boot.initrd.availableKernelModules or boot.initrd.kernelModules.
Izorkin has quit [Read error: Connection reset by peer]
alp has joined #nixos
julm has quit [Quit: leaving]
Izorkin has joined #nixos
julm has joined #nixos
astro has quit [Read error: Connection reset by peer]
<clever>
Any additional configuration to be appended to the generated modprobe.conf. This is typically used to specify module options. See modprobe.d(5) for details.
<clever>
tobiasBora: then modprobe does the default args for you
<clever>
tobiasBora: go ahead, it all came from `man configuration.nix` anyways
<gchristensen>
clever: (context: zfs, root, aws) I wonder: why bother expanding the root partition when you colud just make a new vdev and add it to the pool
CustosLimen has quit [Ping timeout: 260 seconds]
<clever>
gchristensen: would that new vdev be a 2nd partition on the same EBS?
<gchristensen>
yea
<clever>
that would likely cause performance to tank
manveru has quit [Ping timeout: 260 seconds]
<clever>
zfs will try to stripe all writes between the vdev's
<clever>
and now your striping between 2 partitions on the same disk, causing it to seek constantly
<{^_^}>
[nixpkgs] @jonringer merged pull request #99089 → [20.09] iptraf: mark as broken → https://git.io/JU1l7
<{^_^}>
[nixpkgs] @jonringer pushed commit from @elohmeier to release-20.09 « iptraf: mark as broken »: https://git.io/JU17c
CustosLimen has joined #nixos
HeN has quit [Ping timeout: 246 seconds]
<eyJhb>
If I have multiple sources, then how do I manage that? e.g. I have multiple github repos, that I want to incoporate into one?
HeN has joined #nixos
<clever>
eyJhb: if you give it a list as srcs, it will just unpack all of them, and then try to guess what to cd into
<clever>
eyJhb: they should all have a single common root dir, or it wont merge right
<clever>
eyJhb: i would usually prefer to build each src in its own derivation, and depend on the others like normal
manveru has joined #nixos
turion has quit [Remote host closed the connection]
erasmas has joined #nixos
knerten1 has joined #nixos
turion has joined #nixos
<tobiasBora>
clever: sure, but it works better when you know what you are looking for in that list ;) sorry if it's trivial for you, but you definitely helped me a lot! Maybe just one question: if you add the module in extraModprobeConfig and kernelModules, do you need to reboot to see it applied?
<gchristensen>
clever: right, right, right. it divides writes up so all vdevs fill at the same time.
<gchristensen>
oh well :P
<clever>
tobiasBora: kernelModules only applies at boot, but you can manually modprobe to force it
<clever>
tobiasBora: extraModprobeConfig only applies when a module loads, so you may need to unload and then re-load the module for it to take effect
<clever>
tobiasBora: rebooting is the windows way of fixing it, just ignore how load things properly and reset it all!
<__monty__>
Why doesn't nixpkgs use the SPDX IDs for license attributes btw? Just because it's slightly less convenient?
<tobiasBora>
clever: so nixos does not have a clener way than windows for reloading kernel modules ? ^^
<clever>
tobiasBora: nothing automated
<clever>
tobiasBora: but some systemd services like wireguard will force a `modprobe wg` before starting the service
knerten2 has quit [Ping timeout: 246 seconds]
<tobiasBora>
clever: ok I see, thanks! modprobe does not do anything if you apply it twice? like "modprobe wg optionA && modprobe wg optionB" will give you optionA?
<clever>
tobiasBora: correct
<clever>
tobiasBora: for some modules, you can manually change options after loading, but it depends on the module
<clever>
[root@amd-nixos:~]# ls /sys/module/zfs/parameters/
<clever>
tobiasBora: each file in here matches one parameter in the module, and sometimes they are writable
<tobiasBora>
clever: ok cool, thanks a lot!
<clever>
but depending on the source of the module, writing may not have any effect
grobi has joined #nixos
<{^_^}>
[nix] @kquick opened pull request #4091 → Access tokens for flakes → https://git.io/JU1d1
<tobiasBora>
clever: so clear now, thanks a lot! Btw, completely unrelated, but what is the proper way to add a script to a project. For example let's say I'd like to create a file "droidcam_loadmodule", that basically modprobe the modules, and then call droidcam. What would be the good way to proceed? I was thinking to use pkgs.writeShellScriptBin "helloWorld" "echo Hello World";, but it will create a new
<tobiasBora>
derivation which looks a bit strange to me. Solution 2 would be to copy the script created by solution 1 in the /bin folder of droidcam, but I'm affraid that derivation 1 will never be deleted, which is quite useful. Finally, I could add a stupid "cat myfile < EOF ... EOF; chmod +x myfile" at install time, but it looks a bit dirty. What is recommended?
jb55 has joined #nixos
<clever>
tobiasBora: if you copy the script, then it should allow deleting it
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<clever>
tobiasBora: you can verify that with `nix-store --query --roots` and `nix why-depends /nix/store/a /bix/store/b`
<tobiasBora>
clever: really? By which dark magic??
<clever>
tobiasBora: nix tracks dependencies by seeing if you refer to a file in your output
<clever>
tobiasBora: if you copy the file, then the path of the original wont be in the output
<__monty__>
Is there any way to get more than "error: invalid JSON number" out of builtins.fromJSON?
<tobiasBora>
clever: oh, you mean it does a dirty search of "/nix/store/*" in the final output?
<tobiasBora>
(I think to remember about that funy behaviour)
<clever>
tobiasBora: it will take the entire $out and serialize it into a nar, then grep that nar stream for each input
<__monty__>
Hmm, I get \u characters in JSON strings are currently not supported. Is my nix already too old? (2.2.2)
<clever>
nix (Nix) 3.0pre20200829_f156513
<clever>
"name": "AMD\u0027s plpa_map.c License",
<clever>
blame somebody for using a non-english layout :P
<__monty__>
Wouldn't it rather be done to avoid ambiguity surround '' strings? Or is that not valid in JSON?
<clever>
json always uses "
<pinpox>
Hi, general question from a NixOS newbie: How do you deal with secrets in general when using nixOS? e.g. I've added my wireguard setup in the configuration.nix, the secret key is read from /etc/wireguard/privatekey. Where would you store that key savely so it will be placed there when putting my configuration.nix on a different machine? Same thing for SSH private keys or credentials for
<pinpox>
applications, is there some kind of "vault" or mechanism to store secrets and deploy them from there?
<clever>
pinpox: the simplest option is to just copy secrets to the right path by hand, almost anything you do with nix gets copied to /nix/store and made world readable
<Ke>
pinpox: I just configure everything on a separate subvolume that can be managed moderately easily
<__monty__>
: ( Where's the nix/nixpkgs/nixos dropdown on the site gone off to?
<pinpox>
clever: Ke, but how would I go about automating the setup of my, lets say, desktop workstation? Of course I can do it by hand, but I'd like to sync them from somewhere savely. Can I integrate a password manager like pass maybe somehow?
<Ke>
pinpox: if they are on a separe subvolume you can tar them up or send
<clever>
pinpox: simplest option there is to put all of the secrets in one place, then have nix create symlinks to it, so /etc/wireguard/privatekey is a link to /etc/secrets/wg_priv for example
<Ke>
but this requires you to configure each software to use that single subvolume
<Ke>
to the extent I had to, it was trivial
<clever>
then nix deals with the spread of different dirs, and you only have to copy secrets to one spot
<betaboon>
is there some way to have timestamp output für the output of `nix-build`
cole-h has joined #nixos
<pinpox>
Ke: I havn't worked much with subvolumes yet, not sure how I even create them.
<pinpox>
clever: do you have an example of how I would do that from my configuration.nix?
<Ke>
well basically a directory will do
<pinpox>
also, can the files in "the secret place" be gpg-encrypted and have nix decrypt them?
<Ke>
I think ecryptfs could be used with public nix/store
<pinpox>
Ke: I guess that would be simpler for a start. Maybe /etc/secrets? or is that a bad idea
<Ke>
if you don't mind leaking file sizes
<Ke>
pinpox: but btrfs subvolumes are basically directories you can mount
<pinpox>
Ke: I'm asking about gpg, because I use https://www.passwordstore.org/ which is only a small wrapper around gnupg, thought it would be nice to just add "password entries" for any secerts I need
<Ke>
use the target option to create arbitrary symlinks to /etc
<pinpox>
Ke: thanks for the link looking into it.
<Ke>
hmm maybe it was source that you need to use
<pinpox>
Ke: is that the environment.etc.target? Kinda hard to google "target option"
<clever>
pinpox: `man configuration.nix` and search with `/`
<maurer>
I want to blacklist a firmware in NixOS. Does anyone have suggestions on how to do this?
<maurer>
I want to blacklist iwlwifi-8000C-36.ucode
<pinpox>
clever: was looking at that search side. Generally, is there a way to list all options, e.g. for a package?
<maurer>
so it will roll back to an earlier version
puffnfresh_ has quit [Read error: Connection reset by peer]
<pinpox>
Not sure yet what the "official" way to access the docs is when configurating something
<maurer>
(old versions are installed side by side, so the package itself doesn't need to roll back, I just need to get the kernel/udev to load an older firmware)
<clever>
pinpox: package options cant be listed easily, but module options can be
<Ke>
pinpox: the config items do not match packages one to one, some items deal with multiple packages, some probably with nothing that would be a package on another distro
<pinpox>
Trying to list the options, e.g. for wireguard
<Ke>
well the search interface linked is pretty nice
<pinpox>
I found the source and see there are documentation strings, just not sure where they are printed
<clever>
maurer: try instead doing an overlay, that sets `firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: { postInstall = ''...''; });`
<clever>
maurer: then it will impact the default value and you dont need an mkForce
alexherbo2 has joined #nixos
teto has quit [Quit: WeeChat 2.9]
<maurer>
OK, guess it's time to read up on how to use overlays for configuration.nix
<maurer>
I've only ever used overlays for my user env before
<pinpox>
clever: Ke sorry but I'm not finding how to create the symlinks or unencrypt the file. I'd like to just clone a bunch of .gpg files to /etc/secrets and access the unencrypted content of them from my configuration.niz
<clever>
pinpox: its a bit hidden, because environment.etc isnt meant to work like that, but it does work
<pinpox>
clever: nice thanks. And how would I unencrypt the file I linked and access it as a string?
<Ke>
pinpox: you can also run arbitrary code with activationScript
xantoz_ has joined #nixos
<Ke>
that code must be safe to rerun multiple times
<pinpox>
Ke: Perfect, I can just run git clone/pull my git repository of gpg files to /etc/secrets there.
txt-file has joined #nixos
puffnfresh_ has joined #nixos
lafka has joined #nixos
<Ke>
note that it will be redone on boots and system rebuilds, I think
puffnfre- has quit [Ping timeout: 256 seconds]
lafa has quit [Read error: Connection reset by peer]
knerten2 has joined #nixos
<pinpox>
while booting too?
<pinpox>
rebuilds would be fine I guess
<jdelStrother>
Is there a standard way of finding the path to a derivation in the main nix store? eg for use in `import "${pkgs}/nixpkgs/pkgs/development/interpreters/ruby/rubygems" `
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<fzakaria>
infinisil: i was playing around with `inputDerivation` and i noticed it always includes stdenv-linux. is that an implicit dependency through mkShell ?
<infinisil>
fzakaria: Check out the definition of inputDerivation
<fzakaria>
i think the the line `args = [ "-c" "export > $out" ];` is too broad.
<infinisil>
Hmm I guess that could be removed though
<infinisil>
Because only the original builder is needed
<fzakaria>
seems unecessary tbh.
<infinisil>
Oh though `stdenv` shouldn't come from there
<fzakaria>
I made a super simple mkShell that just uses `hello`
<fzakaria>
i wouldn've expected $out to just be hello + glibc
<fzakaria>
and mkShell doesn't have a builder.
maxdevjs has joined #nixos
<fzakaria>
mmm; mkShell is a stdenv.mkDerivation which itself uses stdenv.shell.
<fzakaria>
Maybe `mkShell` should set `realBuilder` to just bash ?
<fzakaria>
from make-derivation.nix: `builder = attrs.realBuilder or stdenv.shell;`
<radvendii>
is there a way to use nix-build with a local NIXPKGS with a local .nix file? Like I want to do `nix-build default.nix` and also `nix-build ~/path/to/my/nixpkgs`, but they don't mix. I can't just do `nix-build ~/path/to/my/nixpkgs -A ./default.nix`
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<fzakaria>
`nix-build -I nixpkgs=~/some-path`
<cole-h>
~/ doesn't work, in my experience -- needs to be either $HOME, or expanded to /home/user
euandreh has quit [Ping timeout: 240 seconds]
S0rin has quit [Quit: WeeChat 2.3]
<radvendii>
oh! I thought -I was only for nix-env for some reason. thanks!
<fzakaria>
a much better approach radvendii is to pin it in your nix expression or use niv
<maurer>
clever: I tried adding /etc/nixos/overlays/iwlwifi-firmware-blocklist.nix as an overlay, but now I'm getting infinite recursion. Did I misunderstand how this works?
<clever>
maurer: what is the content of iwlwifi-firmware-blocklist.nix, how did you add it?
<fzakaria>
can i preseed my tarball cache somehow with nix-prefetch-url ?
<fzakaria>
pre-seed*
<fzakaria>
I nix-prefetch-url --unpack of a nixpkgs tarball so it's in my /nix/store but `nix-shell` still tries to download it since it only looks in ~/.cache/nix/tarball
<fzakaria>
That seems like a bug.
<clever>
maurer: does the firmware exist in /run/current-system/firmware ?
<clever>
fzakaria: nix-pfetch-url is only for derivationx, builtins.fetchurl and builtins.fetchTarball arent derivations
<fzakaria>
not sure i follow, they are fixed-output derivations t
<evalexpr>
what is the difference between using pkgs.writeText and builtins.toFile?
<clever>
evalexpr: pkgs.writeText is a full derivation, so its more costly, having to fork out a child, setup a full sandbox, and possibly copy deps to a remote ARM machine
<clever>
evalexpr: builtins.toFile is as cheap as ./foo.txt, but cant have any dependencies
karantan has joined #nixos
<evalexpr>
clever: that makes sense, thanks
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
<clever>
fzakaria: what args did you run the fetch with?
<clever>
maurer: run `nix edit -f '<nixpkgs>' firmwareLinuxNonfree` line 20
lucas_ has quit [Ping timeout: 264 seconds]
<clever>
maurer: its a fixed output derivation, so if nix already has a result for the given name&hash, it will never rebuild it, even when the build directions change
<clever>
maurer: you must supply a new outputHash in your override, or override it a different way
<maurer>
clever: If I supply a dummy outputhash, and then flip it back, will it rebuild?
<maurer>
Oh, nevermind, it's fixed output, I'll need a real one
<maurer>
got it, thanks
<clever>
if you flip it back, it will use the old build
zmacs has joined #nixos
<clever>
a different way: firmwareLinuxNonfree = super.runCommand "${super.firmwareLinuxNonfree.name}-patched" "cp -r ${super.firmwareLinuxNonfree} $out ; rm ... ";
gleber has joined #nixos
teozkr_ has joined #nixos
bradparker has joined #nixos
<clever>
maurer: this would create a non-fixed derivation, that clones the original, then deletes things
sgraf has joined #nixos
mudri has joined #nixos
Pwnna has quit [Quit: Bye]
pgiarrusso has joined #nixos
lally has joined #nixos
lightandlight has joined #nixos
pingveno has joined #nixos
Tritlo has joined #nixos
Pwnna has joined #nixos
<clever>
then you dont have to update the hash constantly
sam_w has joined #nixos
<maurer>
OK.
alp has joined #nixos
shibboleth has quit [Quit: shibboleth]
<maurer>
error: The option value `hardware.firmware.[definition 2-entry 1]' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/hardware/all-firmware.nix' is not of type `package'.
<maurer>
Do I need to go look up the runCommand docs, or is this obvious to you?
<maurer>
I'm sorry for bothering you with all this, I should know better by now
<lordcirth>
Yeah, I've been caught a few times by the fact that copying stuff out of the store leaves it 444
<clever>
i keep forgetting about these things too, just look at my examples!
<clever>
i just let the errors guide me
<maurer>
Errors guiding me works well with strong typing. A little harder for me with nixos flexibility and defaulting
<maurer>
Well, switch succeeded, /run/current-system/firmware doesn't have the stuff I was trying to blacklist. Hopefully I can get my AP a little more stable now
<maurer>
thanks for the help
knerten1 has joined #nixos
<clever>
yep
elvishjerricco has joined #nixos
fnords has joined #nixos
raboof has joined #nixos
knerten2 has quit [Ping timeout: 258 seconds]
grobi has quit [Quit: WeeChat 2.8]
knerten2 has joined #nixos
grobi has joined #nixos
<maurer>
Welp, firmware rolled back, didn't fix the AP problem. I was hoping it would since the journal had a firmware crash in it, but no dice.
<clever>
maurer: could just keep going backwards further?
<maurer>
Not nixos-specific, but I don't suppose anyone knows why an AP hosted by hostapd would allow one client stably, but at 2+ clients, they'd get occasionaly disconnected?
<maurer>
clever: I'm going to try that next, I don't know if this ever worked though, so there's no gaurantee that rolling back the firmware fixes it
<maurer>
I was just going off the fact that I saw a dead firmware in the logs once and also this issue, so I wa guessing there was a possibility they were related
knerten1 has quit [Ping timeout: 256 seconds]
AMD1212 has joined #nixos
<maurer>
If nothing else, this trip to yellowstone has caused me to learn a lot about networking :|
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
davetapley has joined #nixos
<AMD1212>
Hello. Is there a way to clear the build-state of nixos-rebuild. I am currently trying to get openssh in initrd to work in unstable and the build process seem to have a list of nonexisting secret files to copy into initramfs (prior attempts to get a host_key in). I hope that i can just clear the cache like a "make clean" and start over with the build.
<{^_^}>
[nixpkgs] @risicle opened pull request #99110 → [20.09] minizinc: fix build against bison 3.7 → https://git.io/JUMmK
mekster has joined #nixos
<xensky>
stupid question but.. how do i change the time before the screen turns off from inactivity? is there a nix config option for it or do i need some package?
vidbina has quit [Ping timeout: 246 seconds]
<lordcirth>
xensky, that's usually a setting in your DE, I think
<xensky>
lordcirth: i'm using i3 so it doesn't have the normal suite of settings programs
<xensky>
although... i guess i can search the i3 docs for that
<xensky>
my first impression was "oh this is at a deeper level than that"
<lordcirth>
Yeah, you can probably set it in i3
<jbal[m]>
In i3 without a de, you'd use xset or xorg.conf
rajivr has quit [Quit: Connection closed for inactivity]
knupfer has quit [Quit: knupfer]
anderslu1dstedt has joined #nixos
euandreh has joined #nixos
lsix has quit [Ping timeout: 240 seconds]
domogled has quit [Ping timeout: 272 seconds]
anderslundstedt has quit [Ping timeout: 258 seconds]
anderslundstedt has joined #nixos
anderslu1dstedt has quit [Ping timeout: 240 seconds]
buffet has joined #nixos
noonien has joined #nixos
lucas__ has quit [Quit: Leaving]
rsoeldner has joined #nixos
domogled has joined #nixos
civodul has quit [Remote host closed the connection]
mmohammadi9812 has joined #nixos
civodul has joined #nixos
grobi has quit [Quit: WeeChat 2.8]
<jlv>
xensky: actually, you can set it in NixOS, like `services.xserver.serverFlagsSection = ''Option "OffTime" "30"''`
visl has quit [Ping timeout: 240 seconds]
<jlv>
Note that X11 has 4 different ways of blanking the screen, and they all do the same thing on most monitors.
jmercouris has quit [Ping timeout: 240 seconds]
sethetter__ has quit [Ping timeout: 246 seconds]
<jlv>
You might have to set more than one.
<xensky>
jlv: oh, cool! i already added an xset call, but.. i might switch to that setting
eddyb[legacy] has quit [Ping timeout: 260 seconds]
zacts has quit [Ping timeout: 260 seconds]
sam_w has quit [Ping timeout: 246 seconds]
Mirrexagon has quit [Ping timeout: 256 seconds]
pgiarrusso has quit [Ping timeout: 260 seconds]
puffnfresh_ has quit [Ping timeout: 272 seconds]
steveeJ has quit [Ping timeout: 260 seconds]
zmacs_ has joined #nixos
steveeJ_ has joined #nixos
steveeJ_ is now known as steveeJ
pgiarrusso has joined #nixos
chrisaw has quit [Ping timeout: 240 seconds]
nand0p has quit [Ping timeout: 240 seconds]
sgraf_ has joined #nixos
delan has quit [Ping timeout: 260 seconds]
sethetter__ has joined #nixos
Tritlo has quit [Ping timeout: 260 seconds]
sam_w has joined #nixos
sgraf has quit [Ping timeout: 260 seconds]
sgraf_ is now known as sgraf
raboof has quit [Ping timeout: 240 seconds]
grobi has joined #nixos
raboof_ has joined #nixos
jmercouris has joined #nixos
zmacs has quit [Ping timeout: 260 seconds]
zmacs_ is now known as zmacs
chrisaw has joined #nixos
visl has joined #nixos
<jlv>
xensky: the different ways are, `BlankTime`, `StandbyTime`, `SuspendTime`, and `OffTime`. I made a module for it a while back, before I switched to Wayland: https://pastebin.com/0qs1MPAi
Tritlo has joined #nixos
nand0p has joined #nixos
eddyb[legacy] has joined #nixos
mir100 has quit [Quit: WeeChat 2.8]
puffnfresh_ has joined #nixos
fresheyeball has joined #nixos
delan has joined #nixos
<__monty__>
clever: How did you find the line with the escape code? I'm trying to replace the escapes but this time I get "invalid escaped character in JSON string" which tells me even less.
<clever>
__monty__: i just piped it into less and search for \u, but the \ itself needs to be escaped
<HedgeMage>
Does anyone know whether the issues with Evolution on non-Gnome NixOS have been solved, or know of another EWS-friendly mail client that runs well on NixOS in i3wm?
<HedgeMage>
Work just migrated me to o365 for email, and the Thunderbird plugin I was told would do the job is not living up to promises.
<pinpox>
euank: Thanks, will definitely take a deeper look soon. But I was asking more in general, can I submit a PR to add a option for a specific program that is then set in the config?
<pinpox>
Or is there a better way
<pinpox>
Have not yet really found out how to setup home-manager in nixos
sangoma has quit [Quit: WeeChat 2.9]
<euank>
nixpkgs is concerned with building packages and build-time options
<pinpox>
euank: but things like openssh have options I can set
<euank>
nixos modules are concerned with runtime options for things integrated with the os (systemd services and a few specific programs essential to the os)
<euank>
home-manager is concerned with essentially dotfiles
<pinpox>
oh sorry, meant modules then. How would add options to, lets say, alacrytty similar to the ones for someting like openssh
<euank>
since nixos modules don't deal with a user's home directory / configuration much, nixos modules generally don't exist for things like alacritty
<euank>
like, alacritty's config isn't an OS level config, it's a per-user dotfile. So it'd end up being nested under `users.users.$name.config.programs.alacritty` if it _did_ exist
<cole-h>
There is a module for alacritty in home-manager, though :)
<euank>
But that doesn't exist in nixos modules. nixos modules for users just deal with their homedir, password, and shell pretty much
<pinpox>
euank: can I add them somehow ? Something like "programs.ssh.extraConfig" but "programs.alacritty.extraConfig" would be enough
<euank>
home-manager is about adding per-user program config though
<euank>
and home-manager already has exactly that
<pinpox>
hm ok, guess it's a bad example
<pinpox>
euank: any good tutorials on how to set up home-manager in nixos?
<euank>
I have `programs.alacritty.settings = ....` in my home.nix, which I reference from my configuration.nix
<euank>
I intend to move home-manager away from being a channel at some point, but haven't gotten around to it. One day. Anyway, I trimmed a lot from that to get it down to just the home-manager bit, so I may have made a small typo or such cutting stuff
<euank>
it's pretty close to the upstream example (or was when I set it up), and I can apply home.nix changes with the usual `nixos-rebuild switch`
<pinpox>
Great! euank that's exacly what I need, I want the users configs to be applide when I run "nixos-rebuid switch"
<pinpox>
*applied
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #99112 → gegl_0_4: make vapi dependencies explicit → https://git.io/JUMnM
<pinpox>
euank: cole-h might be a simple question, but how do I add the home-manager channel in my configuration.nix? The #installation doc only tells me to run "nix-channel --add .." but i'd like to have that done "automatically" by my configuration.nix
stree has quit [Quit: Caught exception]
stree has joined #nixos
<__monty__>
I'm finding myself mapping attrsets with (x: { name = x.name; value = x; }) before running builtins.listToAttrs. Is there a better way of doing this?
<cole-h>
pinpox: Channels are imperative, so I don't think there's any way to manage them declaratively.
<pinpox>
cole-h: So when installing my configuratin.nix it would do that automatically, right?
<euank>
sorry, declaratively*
<pinpox>
*euank
<pinpox>
sweet.
<euank>
channels are hard to manage well; it's better to just not use channels at all
<pinpox>
euank: how do install home-manger then?
<euank>
(imo, grain of salt, etc). One day nix flakes will be the way to go, but that's still too experimental to recommend
<euank>
The above nixos.wiki link; `let home-manager = builtins.fetchGit` + `(import "${home-manager}/nixos")` in your imports. Is that what you mean, or something else?
<pinpox>
euank: so right now I *have* to use a channel to instal home-manager?
<euank>
No, you don't have to
<pinpox>
euank: ok then I don't know how to install it
<ornxka>
is there an easy way to get a clang 10 stdenv?
<fresheyeball>
I have hit a very odd error
<fresheyeball>
ghc-pkg: 825: Parse of field '"the input" (line 825, column 5):
<fresheyeball>
unexpected character in input '\NUL'
<fresheyeball>
expecting field or section name or end of file' failed.
<fresheyeball>
when building my haskell project
<fresheyeball>
but ONLY when using nix-build
<fresheyeball>
cabal build inside nix-shell works fine
cosimone has quit [Quit: Quit.]
<fresheyeball>
it even succeeds with ghcjs :(
xcmw has joined #nixos
<{^_^}>
[nixpkgs] @alypeng opened pull request #99113 → nodePackages.stylelint: init at 13.7.2 → https://git.io/JUMlR
cosimone has joined #nixos
<ornxka>
oh llvmPackages_10.stdenv, there we go
<HedgeMage>
Hmm... so I've been asked to adapt one of my semi-technical tutorials for a less-technical audience. One of the pieces of feedback was to use a GUI VM manager instead of the command line to make it clearer to attendees which VM I'm about to start or work in. Can someone recommend a friendly GUI VM manager I could try?
<HedgeMage>
I've always done this sort of thing from command line, so I'm just not well-versed in graphical options.
teto has joined #nixos
<HedgeMage>
(I don't have a strong preference for VM type, I can build whatever images I need in whatever format, that's trivial. I just want to not annoy myself too much because I'll probably only use a GUI for demonstration purposes.)
gxt has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
<lordcirth>
HedgeMage, virt-manager is a good GUI for libvirt
<fresheyeball>
and if I check it out locally, I get the same weird error
<fresheyeball>
something is impure
<HedgeMage>
Now to the part where I get to teach a bunch of non-computerscience teenagers what a VM is... ;)
raboof_ has joined #nixos
<lordcirth>
fresheyeball, it literally says "the input"? Or did you sub that?
<fresheyeball>
I copy pasted
<fresheyeball>
that is literally what it says
<lordcirth>
weird
<lordcirth>
fresheyeball, you should probably ask on #haskell
<fresheyeball>
lordcirth: it's a nix issue though
<fresheyeball>
it builds fine everyway BUT the nix-build
<lordcirth>
fresheyeball, yes, but nix is somehow building it wrong, eg with a bad dep. They might be able to tell you what dep is bad?
<lordcirth>
And it built on one machine, but not another, both using Nix? So it's not just "Nix is wrong"
lsix has joined #nixos
<fresheyeball>
lordcirth: it's failing on CI in the same way
<fresheyeball>
I am trying a big GC on both machines
<fresheyeball>
maybe something got corrupt
<fresheyeball>
that fixed it
<lordcirth>
I thought you said the commit built?
<fresheyeball>
wtf
<fresheyeball>
it did, in the past
<lordcirth>
Ok, so maybe a bitflip.
<fresheyeball>
what is a bitflip
<fresheyeball>
?
<lordcirth>
when a bit on your drive gets flipped when it shouldn't
<fresheyeball>
oh that could be
<fresheyeball>
and since these machines have linked nix stores
<damjan>
or more typically RAM (where the file cache is) :)
<fresheyeball>
it could have just copied the bad artifact over
<damjan>
oh
<lordcirth>
Yup
<lordcirth>
If you don't want bitflips, use ZFS :)
<lordcirth>
Modern drives have impressively low error rates per bit, but they are just so big that they still happen
lsix has quit [Client Quit]
<jasom>
so nix-env no longer seems to be working for user systemd units; systemctl --user show -p UnitPath --value|grep --color systemd lists $HOME/.nix-profile/share/systemd/user and $HOME/.nix-profile/etc/xdg/systemd/user but all of my .service files seem to be installed into $HOME/.nix-profile/lib/systemd/user/
<jasom>
this is causing evolution to break for me (which worked on 20.03 but is now not working on 20.09
<jasom>
ln -s ~/.nix-profile/lib/systemd/user/ ~/.config/systemd/ works around it for now, but ewww...
euandreh has quit [Remote host closed the connection]
ambroisie has joined #nixos
<tmciver>
Hi folks! I'm new to nixos and trying to install it but have run into a snag. The install instructions say to "mount /dev/disk/by-label/nixos /mnt
cosimone has quit [Ping timeout: 260 seconds]
<tmciver>
First that path is not valid but I used "/dev/disk/by-label/nixos-plasma5-20.03-x86-64" instead. But when I do the mount it says "/dev/sdb1 alredy mounted on /iso". Is this expected?
<tobiasBora>
Hello, I'm writting a derivation that uses alsa snd_loop module to provide a "fake" microphone. However, when I run this module, I get an error "snd_pcm_open failed: Device or resource busy". I tried to search on the internet, and it seems that it is when an application tries to use alsa to connect to the audio card when there is already another client (here pulseaudio) using it.
<jasom>
tmciver: did you already do a mkfs.ext4 -L nixos ?
<tobiasBora>
Usually, people seem to install pulseaudio-alsa to fix that, but I can't find that package on nixos
<jasom>
tobiasBora: I thought that pulseaudio-alsa was in the default install, but generally speaking "I'm missing pulse audio package X" can be solved by using pulseaudioFull on nixos.
philr has joined #nixos
<jasom>
tmciver: you need to partition and format the disk you are installing to before you can do the mount.
<jkt>
hi there, I've tried booting nixos-plasma5-20.03.3061.360e2af4f87-x86_64-linux.iso on my new Thinkpad T14s with an integrated AMD GPU (Ryzen something), and I only get shell, no display manager
<jkt>
nothing relevant in the journal, nothing suspicious in the kernel log
marc1 has quit [Ping timeout: 240 seconds]
zacts has joined #nixos
<jasom>
jkt: I think the shell tells you how to start X? It's a systemctl command I think
<jasom>
jkt: I haven't booted a livecd in a while
<tobiasBora>
jasom: let me try
<jkt>
jasom: yup, and nothing happens when I do that
<jasom>
jkt: journalctl -xe?
<jasom>
(without the ?)
<jkt>
jasom: I've tried all VTs in case it was supposed to happen somewhere else
marc1 has joined #nixos
<jkt>
jasom: I'm re-flashing another livecd now, but I looked at `journalctl -b -u display-manager.service` which told me that it started successfully, and I also checked `journalctl -b`
<jasom>
jkt: "ps -ax|grep X" should show you which VT X is on
ottidmes has joined #nixos
<tmciver>
jasom: I used gparted to partition and (I think) format the destination drive. Maybe I really misunderstood: is /dev/disk/by-label/nixos the destination drive? I thought it was the "live" file system.
<jasom>
tmciver: it's the destination drive; the format command suggests labeling your new filesystem "nixos"
<jasom>
tmciver: replace /dev/disk/by-label/nixos with whatever your destination partition is
<jasom>
jkt: but I agree it should just "come up" so if it doesn't something is likely wrong.
<Reiser>
Trying to build a rust cargo application with buildRustPackage, but there's a compilation step that requires an environment variable to be set, is it possible to set something via buildRustPackage or do I need to abandon this route?
tobiasBora has quit [Ping timeout: 260 seconds]
<tmciver>
jasom: d'oh. Thanks.
marc1 has quit [Ping timeout: 260 seconds]
tokudan has quit [Quit: Dunno.]
marc1 has joined #nixos
tokudan has joined #nixos
<makefu>
Reiser: try adding your variable directly as an input to buildRustPackage. that is at least how it works in mkDerivation
<jasom>
Reiser: makefu beet me to it; if that doesn't work you can certainly override stages to export environemnt variables.
cr4y1 has quit [Ping timeout: 240 seconds]
<Reiser>
That worked! Should've guessed, thanks guys
f0x has joined #nixos
<makefu>
Reiser: it is not incredibly obvious that these inputs for mkDerivation are essentially only environment variables
<Reiser>
I agree, I've found documentation to not always be super obvious, but I had seen the environment behaviour in nix-pills for standard derivations, so probably still could've made the mental jump without other docs saying it :)
<Reiser>
So far in practice I find a lot of nix documentation assumes the reader is already familiar with a lot of nix-isms
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm has joined #nixos
<makefu>
Reiser: In the end to the reader the one dark secret of nix will be revelead ...