<clever>
nixos-rebuild will give a clear error if it fails to apply the changes
<srl295>
clever: yeah, that was it. z vs s
<srl295>
by sublaunch i mean using `build-vm` and qemu (very cool!)
<clever>
ah
Fare has joined #nixos
<srl295>
clever: especially since i'm a few miles away from my server, so i can see if it works before rebooting :)
viric has quit [Ping timeout: 264 seconds]
semantimancer has joined #nixos
<semantimancer>
clever: chiming in to say that did the trick. Thanks again.
<clever>
semantimancer: yep
semantimancer has quit [Client Quit]
<srl295>
Next Q.. even with `services.xserver.enable=false`, using a vm and qemu -display curses launches a graphical something (I'll check what exactly later ^ ) … is there a way to keep text ttys only?
<clever>
but sadly, it only works under build-vm, and does not work for switch
<clever>
so you have to comment it out when not testing
<srl295>
clever: i wondered about that, is there a way to have a different .nix (or a different inclusion or something) for switch vs build-vm?
<clever>
you could create a new vm.nix that contains: { ... } { imports = [ /etc/nixos/configuration.nix ]; virtualisation.graphics = false; }
<srl295>
the manual (which i opened a PR to fix the fdisk commands) says 'comment this out temporarily etc…'
<clever>
and then use nixos-rebuild build-vm -I nixos-config=vm.nix
<srl295>
aha. ok i thought something like that
szicari has joined #nixos
<bbarker>
So in Nix 2.0.x, doing nix-env -if foo.nix should still add any binaries being included from derivations in foo.nix into the current PATH by some means, right? Cause it isn't the case for me :(
<bbarker>
clever, the highlighted line fails because sbt is not on the path (nor anything else installed from scala-default.nix)
<bbarker>
i probably botched something, maybe i'll try to manually add /home/brandon/.nix-profile and /home/brandon/.nix-profile/bin earlier and see if that works, or maybe i'll just try using the nix install script inside the container first
viric has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
<clever>
bbarker: .nix-profile not existing is fairly common
<clever>
bbarker: nix-env will auto-create .nix-profile when you do the first nix-env -i command
<bbarker>
maybe --falback is doing something odd in nix 2; unfortunately i don't have a reference system
<clever>
.nix-profile is supposed to be a symlink to a profile
<bbarker>
hmm, /nix/var/nix/profiles/per-user/brandon/profile/bin exists for me but only has the nix stuff installed. however, i'm quite sure i saw all my software being compiled and added to the nix store anyway, so i guess something went wrong with the profile creation
<bbarker>
when i say 'nix stuff' i mean nix commands
xcmw has quit [Ping timeout: 240 seconds]
<bbarker>
trying it without --fallback, will see how it goes, thanks, clever
<clever>
bbarker: you may need to symlink .nix-profile to /nix/var/nix/profiles/per-user/brandon/profile
semilattice has joined #nixos
szicari has quit [Quit: szicari]
mekeor has quit [Ping timeout: 255 seconds]
andreabedini has joined #nixos
Rusty1_ has joined #nixos
boomshroom has quit [Quit: WeeChat 2.0]
freeman42x[nix] has quit [Ping timeout: 256 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
Shados_ has quit [Quit: Shados_]
justanotheruser has joined #nixos
jgertm has quit [Ping timeout: 276 seconds]
MP2E has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
daveo has joined #nixos
<daveo>
A new Discord is out
<daveo>
a new Discord is out
<daveo>
wish I knew how to make a derivation
Shados has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<bbarker>
nixpkgs is the most impressively sized git repo i think i've cloned, though intellij/idea may be up there ;-)
<Myrl-saki>
daveo: While you're at it, read up on "local nixpkgs."
mizu_no_oto has joined #nixos
<Myrl-saki>
bbarker: Ikr
<Myrl-saki>
bbarker: I never expected it to reach 1 GB.
<bbarker>
might be good to advise a shallow clone for most people, though not 100% sure that works, as I usually don't worry about it
<daveo>
I have plenty of space
<bbarker>
works for typical use cases I mean. But I'm pretty sure it'd be fine
<{^_^}>
[nixpkgs] @thoughtpolice pushed 4 commits to master: https://git.io/vpaE3
<{^_^}>
→ 8f5c258c by @thoughtpolice: icestorm: 2018.03.21 -> 2018.05.03
<{^_^}>
→ 922e7889 by @thoughtpolice: arachne-pnr: 2018.03.07 -> 2018.05.03
<{^_^}>
→ f17f6866 by @thoughtpolice: yosys: 2018.03.21 -> 2018.05.03
silver has quit [Read error: Connection reset by peer]
<bbarker>
clever, actually failing earlier (but maybe it is progress): error: opening lock file '/nix/var/nix/profiles/per-user/brandon/profile/bin.lock': Permission denied
<bbarker>
clever, however, when I look at /nix/var/nix/profiles/per-user/brandon/profile, there is no bin.lock, and the installing user owns the parent directory
<clever>
bbarker: your symlink is pointing to the wrong path
<clever>
it must point to profile, not bin
<Myrl-saki>
clever: So, uh... I actually was able to compile rustc.
<Myrl-saki>
clever: Does this mean I'll compile Firefox next? :P
<clever>
Myrl-saki: lol
cryp2nomicon has quit [Read error: Connection reset by peer]
<bbarker>
clever, indeed, horrible typo
<Myrl-saki>
clever: In this build machine, around 60 GB is used, and 50 GB of that is me and my random package building funsies.
Synthetica has quit [Quit: Connection closed for inactivity]
xcmw has quit [Ping timeout: 248 seconds]
cryp2nomicon has joined #nixos
xcmw has joined #nixos
<infinisil>
Hey, quick info, {^_^} has gotten an upgrade by me! It has 2 new functionalities: First of all, it can link to PRs: #39615 and nixops#865
<angerman>
Sonarpulse: if I have a patch for ghc842, can Ijust overwrite ghc842?
<angerman>
Sonarpulse: e.g. add some appendPatch stuff?
<Sonarpulse>
angerman: yeah
<Sonarpulse>
I think any patch from you is official enough :)
<Sonarpulse>
you can fetchPatch from phabricator too
<Sonarpulse>
which is nice
<Sonarpulse>
or commit if it is on the 8.4 branch
<Sonarpulse>
(from cgit or whatever its called)
<angerman>
Sonarpulse: nah. I mean in a local override.
<Sonarpulse>
sure you can do that
<Sonarpulse>
though might slow down bootstrapping
<elvishjerricco>
angerman: I've been meaning to ask about ghc842 cross compilers in nixpkgs... Seems to always have a weird error with the make rules. Is that what you're patching?
<angerman>
elvishjerricco: O_o
acarrico has joined #nixos
<angerman>
elvishjerricco: no. I'm just rearranging iserv
<elvishjerricco>
angerman: Ah. Have you been able to build cross compilers from ghc842?
<angerman>
someone please put all the ghc derivations on a common base... 🙏
<angerman>
elvishjerricco: I think so. Will probably know in a few hours if I can build the win32 cross compiler from 842.
<bbarker>
clever, hmm, but scala-env is what I need to use - it is basically my entire user environment, sans a few things I keep around for specific nix-shells - would it be easier to find the offending package? I'll see if I can find the bug report
<clever>
bbarker: then you want to make an override on scala-env that deletes lib/libunwind-generic.a
<Sonarpulse>
angerman: yeah that and GCC
<Sonarpulse>
it's a real pain
<clever>
bbarker: that is a dead symlink and its breaking nix
<Sonarpulse>
I wonder if hnix could automatically do it haha
<angerman>
Sonarpulse: I don't think hnix can represent comments yet.
<angerman>
Sonarpulse: so we don't have any exact-print like refactoring I beleive.
<Sonarpulse>
eventually!
<elvishjerricco>
angerman: I've only tried aarch64 multiplatform, android prebuilt, and ios prebuilt, but they all fail because the some things think the boot library files are just called `libHS.a` instead of `libHSfoo.a`
<Sonarpulse>
i gotta bounce
<Sonarpulse>
walk home with laptop
<Sonarpulse>
carry the torch, elvishjerricco
<angerman>
Sonarpulse: better not bounce then.
<Sonarpulse>
haha
<angerman>
elvishjerricco: have you been mentioning this a few days ago someplace already? This sounds familiar.
<elvishjerricco>
Yea I mentioned it last week.
<angerman>
Ahh, not my brain plaing tricks on me.
Ben______ has quit [Ping timeout: 260 seconds]
<angerman>
elvishjerricco: alright, let's see what I run into... (after fixing my ghc842 expression...)
<elvishjerricco>
After it configures it immediate fails in the build phase
<angerman>
wow, the difference between 8.4.2.nix and head.nix are annoying.
<elvishjerricco>
angerman: Yea I would not be upset if you factored out all the common stuff for the GHCs :P
Sonarpulse has quit [Ping timeout: 256 seconds]
Ben______ has joined #nixos
wchresta_ has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
MiguelazoDS has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 has joined #nixos
Mateon3 is now known as Mateon1
jrl has joined #nixos
<bbarker>
clever, great, spot on again, that fixed my last major bug - all seems well now at the system level
<angerman>
elvishjerricco: hmm the 842 derivation looks a bit strange. Only minor items though, so I don't really know yet why your librayr names get munched.
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
<elvishjerricco>
angerman: One thing is noticed is that it doesn't run ./boot in configurePhase. Does that happen automatically in ./configure?
<elvishjerricco>
But adding that didn't fix anything
<angerman>
elvishjerricco: no. but should not be needed with source dists.
deepfire has quit [Ping timeout: 264 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
hakujin has joined #nixos
stephenjudkins has joined #nixos
MiguelazoDS has left #nixos [#nixos]
normaluser has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
deepfire has joined #nixos
hakujin has quit [Ping timeout: 268 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
normaluser has quit [Client Quit]
jperras has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
stephenjudkins has quit [Remote host closed the connection]
daveo has quit [Ping timeout: 248 seconds]
stephenjudkins has joined #nixos
Ben______ has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
boothead has quit [Ping timeout: 260 seconds]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
jrolfs has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 256 seconds]
muzzy__ has quit [Ping timeout: 276 seconds]
muzzy_ has quit [Ping timeout: 276 seconds]
muzzy has quit [Ping timeout: 276 seconds]
nur0n0 has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
miguel has joined #nixos
miguel is now known as Guest83877
Fare has joined #nixos
Guest83877 has left #nixos [#nixos]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
jrolfs has joined #nixos
muzzy__ has quit [Ping timeout: 265 seconds]
muzzy_ has quit [Ping timeout: 265 seconds]
muzzy has quit [Ping timeout: 265 seconds]
spear2 has quit [Quit: Leaving]
ryantrinkle has quit [Ping timeout: 240 seconds]
Neo--- has quit [Ping timeout: 240 seconds]
stumble has quit [Quit: Leaving]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
rosa has joined #nixos
schoppenhauer has quit [Ping timeout: 268 seconds]
schoppenhauer has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
jethroksy has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
jperras has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 256 seconds]
ryantrinkle has joined #nixos
wchresta_ has joined #nixos
jethroksy has quit [Remote host closed the connection]
<angerman>
that's weird. enableParallelBuilding = true; but it doesn't seem to build with -jN
<angerman>
e.g. it seems like it's building packages in parallel, but not the package itself...
<Ralith>
angerman: enableParallelBuilding is necessary but not sufficient
<Ralith>
nix also has to be told to actually do parallel builds
<angerman>
Ralith: --cores 0?
<Ralith>
for example
jayq has quit [Ping timeout: 240 seconds]
mike_ has joined #nixos
mike_ is now known as Guest93844
<angerman>
Ralith: hmmm... ok. I've broken something locally then.
rosa has quit [Quit: rosa]
cryp2nomicon has quit [Read error: Connection reset by peer]
Guest93844 has quit [Client Quit]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
drakonis has joined #nixos
katyucha has joined #nixos
user__ has joined #nixos
<user__>
Hello chat, I'm new with this distro and I faced some issues. I wanted to change the background image of the screen login in kde and I couldn't cause sddm/themes is located at /nix/store which is read-only.
<user__>
Change that picture is not a big problem, but I felt I was not completely free to make changes. How do I deal with that.
<user__>
Apologize if this is not the place for this kind of questions
user__ has quit [Quit: Page closed]
doyougnu has quit [Ping timeout: 260 seconds]
drakonis_ has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
hakujin has joined #nixos
<Lisanna>
what nixos configuration is used when making the PXE image with "nix-build -A netboot nixos/release.nix"?
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<Lisanna>
ahh... maybe I should solve a more trivial problem first: error: a 'aarch64-linux' is required to build '/nix/store/0lcllwrkw2f4xqpkpx5hzdmnr7r6b35c-append-initrd-secrets.drv', but I am a 'x86_64-linux'
stephenjudkins has joined #nixos
<Lisanna>
...do I /really/ need an aarch64-linux to make a PXE image?
cryp2nomicon has quit [Read error: Connection reset by peer]
katyucha has quit [Ping timeout: 240 seconds]
Guanin_ has joined #nixos
greska[m] has quit [*.net *.split]
jluttine[m] has quit [*.net *.split]
danielrf has quit [*.net *.split]
trikl[m] has quit [*.net *.split]
uvnikita[m] has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
cstrahan has quit [*.net *.split]
eddyb has quit [*.net *.split]
Kim has quit [*.net *.split]
shlevy has quit [*.net *.split]
deanman has quit [*.net *.split]
woboats has quit [*.net *.split]
spion has quit [*.net *.split]
amfl has quit [*.net *.split]
srid has quit [*.net *.split]
zimbatm has quit [*.net *.split]
pauldub has quit [*.net *.split]
pointfree has quit [*.net *.split]
yurrriq has quit [*.net *.split]
zielmicha_ has quit [*.net *.split]
sjanssen has quit [*.net *.split]
joshie has quit [*.net *.split]
sjanssen has joined #nixos
shlevy has joined #nixos
zimbatm has joined #nixos
yurrriq has joined #nixos
gridaphobe has joined #nixos
Kim has joined #nixos
zielmicha_ has joined #nixos
woboats has joined #nixos
pointfree has joined #nixos
amfl has joined #nixos
srid has joined #nixos
pauldub has joined #nixos
spion_ has joined #nixos
trikl[m] has joined #nixos
greska[m] has joined #nixos
uvnikita[m] has joined #nixos
cstrahan has joined #nixos
danielrf has joined #nixos
jluttine[m] has joined #nixos
joshie has joined #nixos
<jD91mZM2>
How come /etc/X11/xorg.conf doesn't exist? I'm trying to read the generated config for a better understanding of why my thing doesn't work
LnL has quit [Ping timeout: 260 seconds]
jwynn6 has quit [Ping timeout: 260 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
deanman has joined #nixos
Ben_______ has quit [Ping timeout: 260 seconds]
LnL has joined #nixos
jwynn6 has joined #nixos
mbrgm has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
jperras has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
ixxie has quit [Ping timeout: 240 seconds]
jD91mZM2 has joined #nixos
<jD91mZM2>
How would I handle monitor configuration in LightDM? I've tried to use the Xorg config using services.xserver.xrandrHeads, but it's not working. I've tried to use the display-setup-script, but since it's ran with a basic environment, xrandr is not in $PATH.
cryp2nomicon has joined #nixos
cryp2nomicon has quit [Client Quit]
<Lisanna>
jD91mZM2 a lot of nixos programs have their configuration generated based on what's in your /etc/nixos/configuration.nix, which means you won't always find config files for them in /etc
Ariakenom has quit [Quit: Leaving]
<jD91mZM2>
What do you mean?
<jD91mZM2>
Ok I just found services.xserver.exportConfiguration. Is this related?
<Lisanna>
jD91mZM2 yeah, that looks like exactly the thing you want
<sphalerite>
a string using just plain templating, and a path using pkgs.write{Text,Script,ScriptBin}
<sphalerite>
oh, hm, I'm not sure that will work actually
katyucha has quit [Ping timeout: 260 seconds]
<jD91mZM2>
I mean, $PATH won't be interpolated the same way ${pkgs.xrandr} will?
<sphalerite>
but you can do something like extraSeatDefaults = let display-setup-script = pkgs.writeScript "display-setup" ''#!${pkgs.stdenv.shell}\nexport PATH=$PATH:${pkgs.xorg.xrandr}/bin\nexec /root/.screenlayout/default.sh''
<sphalerite>
in "display-setup-script=${display-setup-script}"
<sphalerite>
um, plus a semicolon before "in"
<jD91mZM2>
Ooo writeScript looks cool. Will it create a temporary file?
<sphalerite>
no, it will create a permanent file in the nix store
<jD91mZM2>
oo
<jD91mZM2>
I'll try both. Be right back (I really wish my TTYs weren't bugging out right now so I didn't have to quit IRC every time)
stephenjudkins has quit [Remote host closed the connection]
<sphalerite>
of course you can put the whole xrandr config in the nix-templated script rather than then calling out to /root's
<sphalerite>
then it's all in the nixos config!
<jD91mZM2>
Using pkgs.writeScript?
stephenjudkins has joined #nixos
<sphalerite>
yeah so rather than putting exec /root/.screenlayout/default.sh in the written script you just put the xrandr commands themselves
<sphalerite>
that depends on whether you want to be able to change the screen layout without rebuilding your system config
<jD91mZM2>
Maybe. I don't want too much inline though, especially not hardware configuration
<jD91mZM2>
Anyway, I'll try the first approach now (the non-writescript one)
jD91mZM2 has quit [Quit: WeeChat 2.0]
Fare has quit [Ping timeout: 268 seconds]
Tucky has joined #nixos
<sphalerite>
What's a good tool for comparing binary files?
<etu>
Depends on what you want to compare I'd say
jD91mZM2 has joined #nixos
<jD91mZM2>
Hello from a TTY! The non-writescript thing didn't work, but I'll try writescript now. Just had to check the arguments :P
jD91mZM2 has quit [Client Quit]
<sphalerite>
etu: two PNGs where the image data is the same
<woffs>
sphalerite, cmp ist the most trivial
<woffs>
sphalerite, you could also use diff -u <(bmore file1) <(bmore file2)
alex`` has quit [Ping timeout: 265 seconds]
xy2_ has joined #nixos
jD91mZM2 has joined #nixos
<woffs>
(or "hexdump -C" instead of bmore)
<etu>
sphalerite: For images I'd say that imagemagic compare can be useful
<jD91mZM2>
sphalerite: The script is written, but LightDM says it returns an error. I can run it manually and it seems to work (although it can't connect to display since ther is none)
<woffs>
sphalerite, or vimdiff :-)
alex`` has joined #nixos
<etu>
sphalerite: But imagemagick diff will highlight visual differences. If that's needed.
<sphalerite>
etu: the image data is the same, so that's not what I want
<etu>
sphalerite: Sometimes those that you barely can spot yourself. Like encoding things.
hyper_ch2 has joined #nixos
<sphalerite>
even those shouldn't happen with PNG, surely
<sphalerite>
although actually maybe there are some differences earlier on
<sphalerite>
I'm XYing, aren't I… what I'm trying to achieve is to make nixos-icons fixed-output
jD91mZM2 has quit [Client Quit]
toby1851 has joined #nixos
jD91mZM2 has joined #nixos
<sphalerite>
hm, vim -d says "could not create diffs"
<sphalerite>
oh right, installing diffutils fixes that one.
asuryawanshi has joined #nixos
jrolfs has joined #nixos
<sphalerite>
jD91mZM2: maybe it can't connect to the display when it's alunched by lightdm either
smichel has quit [Quit: smichel]
<sphalerite>
maybe the journal has some useful information
xy2_ has quit [Ping timeout: 276 seconds]
<sphalerite>
oh, it may also be that the script doesn't run as root and as such can't read /root/*
periklis has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
Maxdaman1us is now known as Maxdamantus
<jD91mZM2>
The script was written by writeScript and didn't use /root
ertes has quit [Ping timeout: 256 seconds]
<jD91mZM2>
And no info. Just "oh noes non-0 exit code D:"
<sphalerite>
oh, so much for that theory then.
<jD91mZM2>
"Whoopsie doopsie! We did a fucky wucky! A little fucky boingo! Our code monkeys are working VEWY HAWD to fix dis!" -LightDM
<sphalerite>
Maybe `exec >>/tmp/display-setup-log 2>&1` at the top of your script so you get its output in the file
<jD91mZM2>
Honestly I don't really feel like messing anymore with LightDM. It can stay broken for now :P
MichaelRaskin has quit [Quit: MichaelRaskin]
<sphalerite>
I don't like lightdm
<jD91mZM2>
What are you using?
<sphalerite>
sddm
<jD91mZM2>
Didn't sddm not support non-root X or something bad like that?
<sphalerite>
although I think what I might not like about lightdm is the degree to which nixos supports it. Although some of the stupid behaviour is definitely in lightdm itself
<jD91mZM2>
To be honest I have no idea if mine is :P
ckauhaus has joined #nixos
<jD91mZM2>
Which packages should I nix-env, and which packages should I keep in packages.nix? Should I keep them all in one place or should I try to make separate global/user packages?
<sphalerite>
it's up to you. Different people have different preferences.
<jD91mZM2>
But my preferences suck
<jD91mZM2>
I'd rather use somebody else's :^)
wchresta_ has joined #nixos
<adisbladis[m]>
jD91mZM2: My preference is to never install anything with nix-env :)
<sphalerite>
I have a fairly small system and put most stuff in my user environment, which has the benefit of making system upgrades fast and my user stuff portable between machines (even non-nixos ones with nix, or ones I don't have root on)
<adisbladis[m]>
I do put _some_ stuff in my user env, but that is with home-manager. Not with nix-env.
<sphalerite>
other people prefer putting everything in the system profile, which means that all the version changes are synced together.
katyucha_ has quit [Ping timeout: 264 seconds]
<adisbladis[m]>
My reasoning is simple: Either it's something I care about and then it should be declarative or it's ephemeral and then I use nix-shell.
<sphalerite>
I use nix-env declaratively :)
<adisbladis[m]>
nix-env is in a weird middle-spot for me.
<sphalerite>
etu: they work excellently with multiple bots though.
<etu>
sphalerite: yes, but not with a single one :)
<tilpner>
I think my ZNC does, would have to check though
eqyiel has joined #nixos
reinzelmann has joined #nixos
<sphalerite>
jD91mZM2: btw for viewing nixos options, there's also `man configuration.nix` which is nice because it's offline and matches your system version
winem_ has joined #nixos
thc202 has joined #nixos
Fare has joined #nixos
<adisbladis[m]>
You get html docs too :)
<sphalerite>
oh yeah, `nixos-help`
<infinisil>
Btw this is probably my favorite new command:
<infinisil>
,escape''
<{^_^}>
'' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
nschoe has joined #nixos
<sphalerite>
While I'm not too pleased about the ownership on nixos.com (nsfw!), I do like that we have some of the more fancy TLDs like nixos.wiki and nixos.community
winem_ has quit [Remote host closed the connection]
<sphalerite>
vaugely related, whose bright idea was it to put DNS names backwards hierarchically?
jperras has joined #nixos
xy2_ has quit [Ping timeout: 248 seconds]
<jD91mZM2>
ooo nice sphalerite
<jD91mZM2>
Thanks!
<jD91mZM2>
sphalerite++
<{^_^}>
sphalerite's karma increased to 1
<sphalerite>
I'm rich!
hamishmack has quit [Ping timeout: 260 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nschoe has quit [Ping timeout: 265 seconds]
<adisbladis[m]>
sphalerite: You gotta cash in on that sweet karma
toby1851 has quit [Remote host closed the connection]
<adisbladis[m]>
I got lots of karma spread over different "accounts" now. Diversified karma.
jperras has quit [Ping timeout: 240 seconds]
arianvp2 has joined #nixos
nick_l has joined #nixos
<jD91mZM2>
Halp! nixos.overlays takes a list of functions, right? So I should be able to do it inline?
knupfer has quit [Ping timeout: 265 seconds]
<jD91mZM2>
nixos.overlays = [(self: super: with super.libs; { ... })]?
<sphalerite>
yes
<sphalerite>
s/libs/lib/
<jD91mZM2>
"value is a function while a set was expected, at /nix/var/nix/.../modules.nix"
<sphalerite>
oh and s/nixos/nixpkgs/
<jD91mZM2>
Oh yeah my bad
<jD91mZM2>
But the config has the correct things and it doesn't wooooork
<sphalerite>
also maybe try building with --show-trace and pasting the traceback
<jD91mZM2>
Show-trace just shows a bunch of things from modules.nix
<jD91mZM2>
But nothing from any of my configs
<Plato[m]>
When using "cp ${fetchurl { ... }} $out/", I end up with a filename that has the hash prepended. Can I instruct fetchurl to use the real file name?
<sphalerite>
yeah could you still paste it? it might be helpful
<jD91mZM2>
wait wait wait sphalerite
<Plato[m]>
Or is it a problem with the string conversion?
<jD91mZM2>
The error was from somewhere else
<sphalerite>
Plato[m]: no, but you can specify the destination
<jD91mZM2>
whoops
<sphalerite>
jD91mZM2: :)
<jD91mZM2>
One of my imports had an extra parameter left over
<sphalerite>
jD91mZM2: nix's debugging facilities and error messages leave a lot to be desired.
<etu>
jtojnar: Bah, I'm giving up on that gnome extension... Too much weirdness for me to grok... Don't even know where to start and what they could do to make it better :/
<Plato[m]>
sphalerite: How do I do that? Or put differently, is fetchurl documented somewhere?
<sphalerite>
Plato[m]: so cp ${fetchurl {…}} $out/…
<etu>
jtojnar: Would be nice to have it to get rid of kdeconnects qt deps and to have better integration... but yeah...
<Plato[m]>
sphalerite: Okay, but then I have to find out the filename myself somehow.
__Sander__ has joined #nixos
<sphalerite>
Plato[m]: or if you don't want to repeat the name, I think you could also do something like let file = fetchurl {…}; in "cp ${file} $out/${file.name}" — not 100% sure if this will work correctly though
<sphalerite>
I think it will work with nixpkgs's fetchurl, but I'm very uncertain about builtins.fetchurl for this
Guanin_ has quit [Remote host closed the connection]
<etu>
jD91mZM2: In your z pr, url's doesn't have to have quotes like strings, no big deal but urls are fine on their own. They are paths like all other paths afaik :)
<jD91mZM2>
Aha, nice. Thanks!
civodul has joined #nixos
rosa has joined #nixos
toby1851 has quit [Ping timeout: 240 seconds]
<adisbladis[m]>
etu: They _can_ be quoted too
<adisbladis[m]>
And we are quite a few people who would rather drop the special url syntax and just let them be plain strings
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<etu>
adisbladis[m]: yes, of course. I'm not saying that it needs to be changed. Just an educational note.
<adisbladis[m]>
etu ++
<{^_^}>
etu 's karma increased to 1
<jD91mZM2>
etu ++
<{^_^}>
etu 's karma increased to 2
<jD91mZM2>
adisbladis ++
<{^_^}>
adisbladis 's karma increased to 1
<etu>
"etu " now got karma but not "etu" :D
<jD91mZM2>
ah crap
<jD91mZM2>
etu++
<{^_^}>
etu's karma increased to 1
<jD91mZM2>
adisbladis++
<{^_^}>
adisbladis's karma increased to 1
rosa has quit [Client Quit]
<etu>
I think that needs to be normalized by infinisil :p
<alaricsp>
Somebody fix that regexp :-)
humanoyd has joined #nixos
<adisbladis[m]>
I dunno.. I consider it a feature
<jD91mZM2>
Is there a way to avoid importing every package used in buildInputs? Something like `with pkgs`, but that actually works
<adisbladis[m]>
jD91mZM2: What's wrong with `with pkgs`?
<jD91mZM2>
Wait it does work, nvm
<jD91mZM2>
I just used it in another occurance as well
<jD91mZM2>
I'm a moron
<adisbladis[m]>
jD91mZM2: Though we generally prefer not to use that kind of construct in nixpkgs
<jD91mZM2>
aw ok
<jD91mZM2>
Why not?
rosa has joined #nixos
<adisbladis[m]>
jD91mZM2: It's clearer if you explicitly list all your inputs
<adisbladis[m]>
And easier to override
paraseba has quit [Ping timeout: 265 seconds]
<adisbladis[m]>
Imagine having to `somePackage.override { pkgs = ( pkgs // { python=myPython; } ) }` instead of `somePackage.override { python = myPython; }`
<jD91mZM2>
I've never overrode a package so I wouldn't know :P
<adisbladis[m]>
jD91mZM2: Ahh :) Anyway, in the first case you have to override the whole `pkgs` attribute set and pass that in. In the second case you simply pass the package and that's it.
<etu>
jD91mZM2: yeah, you can override dependencies and versions and everything for more or less any package. That way nix is very flexible :)
<jD91mZM2>
Wait, I can use this to finally update discord?
<adisbladis[m]>
jD91mZM2: You can use it to upgrade/downgrade pretty much anything
<etu>
Yeah, sure. For that you should be able to just change version and hash of the downloaded file.
<jD91mZM2>
I'm honestly really confused why it's not updated yet - it was merged into unstable ages ago
orivej has joined #nixos
<jD91mZM2>
And howoldis says unstable updated yesterday... so why can't I see the new version?
<etu>
jD91mZM2: I think something like this could work: pkgs.discord.overrideAttrs (oldAttrs: rec { version = "your version number"; src.sha256 = "new hash matching new file"; });
<jD91mZM2>
Yeah yeah but I'm kind of more confused over why it hasn't been updated yet
<jD91mZM2>
nixos-unstable should have it by now
<jD91mZM2>
Wait
<jD91mZM2>
I've been looking at the wrong commit
<jD91mZM2>
The commit I found updated it to 0.0.4, not from 0.0.5. Whoops!
paraseba has joined #nixos
<etu>
jD91mZM2: the age written on howoldis isn't always how old the actual commits are or when they are merged. It's how long ago the channel moved forwards.
<etu>
And sometimes the tests seems to take time, so I've seen that a channel moved forwards to something that is a week old :p
justanotheruser has quit [Ping timeout: 248 seconds]
<jD91mZM2>
Oh
<adisbladis[m]>
I wrote a little thingy a while back to check what's in nixpkgs-channels at any given rev: https://ptpb.pw/pTew/bash
hamishmack has quit [Client Quit]
<jD91mZM2>
etu++
<{^_^}>
etu's karma increased to 2
<adisbladis[m]>
Can be used like: `./nix-whatsin.sh nixos-unstable | grep -i discord`
<jD91mZM2>
adisbladis++
<{^_^}>
adisbladis's karma increased to 2
<adisbladis[m]>
Yaaay :)
<etu>
yay
<jD91mZM2>
Fake internet points are the best points!
<etu>
Indeed
MP2E has quit [Remote host closed the connection]
<srhb>
jD91mZM2: Often the tests aren't the last thing to finish either. The entire evaluation has to be done.
<sphalerite>
adisbladis[m]: you can make it shorter by just doing -f https://github.com/…$rev.tar.gz rather than -f '<nixpkgs>' with -I
rosa has joined #nixos
<jD91mZM2>
Yesterday sphalerite helped me package a program which for some reason can't find the libpulse runtime dependency normally for some reason. This works using patchelf or a LD_LIBRARY_PATH wrapper. But how would I continue developing an application like this?
<jD91mZM2>
I can't keep on patching the binary every single time I compile it, can I?
<sphalerite>
probably use a nix-shell that sets LD_LIBRARY_PATH, or have a script that wraps the executable
<sphalerite>
the former is probably easier since you can use it with cargo run
<sphalerite>
all the arguments passed to mkDerivation (apart from a few special exceptions) just become environment vairables for the builder, so you can just set LD_LIBRARY_PATH = "${libpulseaudio}/lib"; in the expression you wrote for it and nix-shell into that.
<adisbladis[m]>
Also protip: `nix-shell -A pkg` will drop you in to a nix-shell with the build time closure of `pkg`
<jD91mZM2>
Would it be bad to add it to the package file so I don't have to copy-paste it in order to use it in nix-shell?
<sphalerite>
It doesn't compose with an existing LD_LIBRARY_PATH unfortunately, but you can cross that bridge when (if) you come to it I guess? x)
Shados has quit [Ping timeout: 240 seconds]
<adisbladis[m]>
jD91mZM2: LD_LIBRARY_PATH is a (fragile) hack
asuryawanshi has joined #nixos
<jD91mZM2>
What do you suggest instead adisbladis?
<sphalerite>
jD91mZM2: yeah kind of. I'd recommend writing a shell.nix that looks like (import ./default.nix).overrideAttrs (orig: {LD_LIBRARY_PATH = …;})
hamishmack has joined #nixos
<adisbladis[m]>
jD91mZM2: What sphalerite said, nix-shell
<{^_^}>
→ 977f9a12 by @srhb: Merge pull request #39954 from cleverca22/fix-virtualbox-master
<{^_^}>
→ 51998c67 by @cleverca22: runInLinuxVM: fix ext4 and crc32c-intel interactions
<jD91mZM2>
nix-shell would still use LD_LIBRARY_PATH behind the scenes though?
<adisbladis[m]>
jD91mZM2: You can use `nix-shell -A package` to get a nix-shell with all the build goodies from `package`
asuryawanshi has quit [Remote host closed the connection]
spear2 has quit [Remote host closed the connection]
<adisbladis[m]>
So if there is already a nix package you may not have to create a shell.nix for your project
asuryawanshi has joined #nixos
<sphalerite>
adisbladis[m]: you're missing part of hte context — they've already got their thing building with nix including in nix-shell
<jD91mZM2>
Yeah. Is it fine to make an environment variable inside default.nix to avoid having to make a shell.nix wrapper that adds it?
<sphalerite>
it just doesn't run because it can't find libpulseaudio at runtime without patchelfing or wrapping
Shados has joined #nixos
wchresta_ has quit [Ping timeout: 240 seconds]
<sphalerite>
jD91mZM2: I'd recommend not doing it because you don't actually want LD_LIBRARY_PATH set to that for the build
asuryawanshi has quit [Remote host closed the connection]
<sphalerite>
the shell.nix can be as simple as what I wrote above though
<jD91mZM2>
"simple"
<sphalerite>
I mean, probably nothing would go wrong with putting it in default.nix too. It just feels wrong :p
<adisbladis[m]>
sphalerite: Ahh, sorry for the noise then
asuryawanshi has joined #nixos
<jD91mZM2>
Is there no way to make shell.nix auto-patch the binary so I don't have to use the binary inside nix-shell every time?
humanoyd has quit [Ping timeout: 255 seconds]
<sphalerite>
at what point is it supposed to get patched?
<jD91mZM2>
IDK! When cargo build is run... somehow?
<sphalerite>
actually one other hack that might work is setting NIX_LDFLAGS to ensure that the path gets added to the executable's RUNPATH when it's first generated, rather than patching it after the fact. Not sure about the exact flags to pass though
rosa has quit [Quit: rosa]
rosa has joined #nixos
<jD91mZM2>
Ok so imagine I get my package pushed officially to nixpkgs
<jD91mZM2>
And imagine I'm using the shell.nix method you posted
<jD91mZM2>
How would I import that nix file from shell.nix?
<sphalerite>
(import <nixpkgs> ()).packagename
<sphalerite>
err s/()/{}/
simukis has joined #nixos
<jD91mZM2>
Say then I need to add a dependency. Obviously I can't wait for the new nix to be merged. Can I specify the file path to nixpkgs?
<sphalerite>
yeah just replace <nixpkgs> with /path/to/nixpkgs, or pass -I nixpkgs=/path/to/nixpkgs to nix-shell or nix-build or whatever
<jD91mZM2>
Oh, nice
<srhb>
jD91mZM2: My NIX_PATH actually has nixpkgs=/home/sarah/src/nixpkgs. rebelrebel
<tilpner>
sphalerite - And then possibly remove all other entries from nix-defexpr
<sphalerite>
tilpner: but that doesn't look up across all of NIX_PATH
<sphalerite>
I want to be able to use the same args as for nix build, for nix-env
<tilpner>
The exact same flags? That's not going to happen, but you didn't mention that earlier
<sphalerite>
>one day we will have a bunch of consistent nix tools that all use NIX_PATH
<sphalerite>
"consistent" is the key word :p
<sphalerite>
actually, I just came up with a hack.
* sphalerite
rubs hands together gleefully
Ariakenom has quit [Ping timeout: 240 seconds]
Plato[m] has left #nixos ["User left"]
humanoyd has joined #nixos
joehh has joined #nixos
<jD91mZM2>
What's your opinion on NixOS and rust packages? Should I add stuff like cargo-release so it can be installed using nix-env over `cargo install`?
<jD91mZM2>
opinons*, I can't get enough
<sphalerite>
did you mean: onions?
<tilpner>
Generally yes, there's already precedent with cargo-edit and cargo-vendor
<tilpner>
But I would prefer rustPackages.* over that
<jD91mZM2>
I can't find cargo-edit in nix search
amir has quit [Ping timeout: 276 seconds]
joehh has quit [Ping timeout: 240 seconds]
<tilpner>
Oh, it's marked as broken
<jD91mZM2>
kek
katyucha has quit [Ping timeout: 240 seconds]
<jD91mZM2>
sphalerite: What exactly is "orig" in overrideAttrs btw? Can I use overrideAttrs in my configuration.nix in order to override a package version?
<srhb>
Speaking of which, shouldn't we start deprecating packageOverrides at some point?
<sphalerite>
srhb++
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #39968 → xidlehook: init at 0.4.5 → https://git.io/vpaj6
<{^_^}>
srhb's karma increased to 2
<srhb>
Woah, at this rate I'll be fully ascended by the end of the day.
<sphalerite>
:D
wchresta_ has joined #nixos
amir has joined #nixos
<jD91mZM2>
sphalerite: That doesn't show the parameters anywhere tho?
<jD91mZM2>
Only an example that uses oldAttrs, whatever that is
joehh has joined #nixos
<sphalerite>
jD91mZM2: oldAttrs and orig are both just possible names for the argument to the function you're passing in
<srhb>
jD91mZM2: (foo: bar foo) and (baz: bar baz) are the same functions :)
<sphalerite>
the name doesn't actually matter, you can choose whaty ou want
<jD91mZM2>
Why does it even have a name?
<sphalerite>
in case you want to use it.
<srhb>
Or you can be extra specific about _not_ using it and do (_: bar)
<srhb>
That's usually nice from a readability standpoint, but less often seen in nix.
<sphalerite>
say you want to add a build input to some existing thing without removing the original ones: foo.overrideAttrs (orig: {buildInputs = orig.buildInputs ++ [openssl];})
<sphalerite>
orig, or oldAttrs, or blart, whatever you want to call it. According to the manual oldAttrs is the convention, although I usually use orig (or just o) because oldAttrs is more of a fuss to type :p
puckipedia has quit [Quit: *eh*]
puckipedia has joined #nixos
joehh has quit [Ping timeout: 265 seconds]
jperras has joined #nixos
<jD91mZM2>
So overrideAttrs basically adds the key:value to a map, and then merges everything in that map for the final value?
<sphalerite>
it takes what was previously passed to mkDerivation (let's call it oldAttrs), then passes (oldAttrs // (yourFunction oldAttrs)) into mkDerivation
<sphalerite>
and yourFunction is what you passed to oldAttrs
srl295 has quit [Quit: Connection closed for inactivity]
kier has quit [Read error: Connection reset by peer]
<srhb>
overrideAttrs
<sphalerite>
um. Yes.
<sphalerite>
srhb++
<{^_^}>
srhb's karma increased to 3
<sphalerite>
Again.
<srhb>
\o/
kier has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<jD91mZM2>
I have no idea what // is :P
<adisbladis[m]>
jD91mZM2: Attribute set merging
<jD91mZM2>
Aha
<adisbladis[m]>
`{foo="foo";} // {bar="bar";}` results in {foo="foo"; bar="bar";}
<{^_^}>
[nix] @edolstra pushed to 2.0-maintenance « Bump version »: https://git.io/vpVeM
<sphalerite>
{a = 1; b = 2; c = 3;} // {c = 4; d = 5;} ⇒ {a = 1; b = 2; c = 4; d = 5;}
<adisbladis[m]>
With the right attribute set taking precedence
<jD91mZM2>
Woot! Cool!
wchresta_ has quit [Ping timeout: 256 seconds]
<adisbladis[m]>
jD91mZM2: Just beware that it's only merges top-level attributes, not nested.
<jD91mZM2>
Aha
<jD91mZM2>
Ah crap, overriding discord version variable doesn't seem to actually update the source
<adisbladis[m]>
jD91mZM2: No you have to override src too
<leary`>
The module system on the other hand does merge with arbitrary nesting. Why don't we have an operator for that?
<sphalerite>
it's been proposed
<jD91mZM2>
IT WORKED!!11111 WOOOT!
<jD91mZM2>
Although I didn't have to update the sha256 sum. I believe this is a bug.
<TimePath>
there's lib.recursiveUpdate
<etu>
jD91mZM2: No, that only means that you got the old version
fendor has joined #nixos
<etu>
jD91mZM2: Because you already had that source on your system it didn't download the link to check it. It used the already existing source with that hash.
<Shados>
jD91mZM2: if Nix recognizes the sha256 as already existing in the store, it just uses that file as cached, basically
dvim has quit [Quit: WeeChat 2.1]
NightTrain has joined #nixos
<adisbladis[m]>
leary`: Personally I think such behaviour should not be hidden in an operator, a utility function is more suitable
<etu>
jD91mZM2: !tofo
<etu>
!tofo
<etu>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<etu>
There we go
<adisbladis[m]>
jD91mZM2: src is what's called a fixed-output derivation (which means the sha256 is _exactly_ what you expect).
<adisbladis[m]>
jD91mZM2: If that hash is already present in the cache nix will happily go ahead and use it
<Shados>
{^_^}: or just use nix-prefetch-{url,git,etc} utilities
<adisbladis[m]>
Which in your case is the old version
<sphalerite>
Shados: {^_^} is a bot :p
Ariakenom has joined #nixos
<Shados>
looks like we have nothing to fear from a possible robotic revolution then
<jD91mZM2>
Actually the new version works
<jD91mZM2>
I have discord 0.0.5 now
<TimePath>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
* adisbladis[m]
had tofu for lunch
<etu>
{^_^}++
<{^_^}>
{^_^}'s karma increased to 114
<etu>
woha
<etu>
{^_^} has been helpful :D
joehh has joined #nixos
<leary`>
TimePath: adisbladis[m]: a utility function is fine too, I just wasn't sure it could be expressed in regular nix. I'll have to take a look at the source for that one.
<jD91mZM2>
How do I get the new hash?
<jD91mZM2>
just sha256sum <file it downloaded>?
<adisbladis[m]>
jD91mZM2: Either through what the nice bot just told you or you can use `nix-prefetch-url`
hakujin has joined #nixos
<jD91mZM2>
Yeah but when it downloads the source it doesn't tell me the new sum in a nice way like it would have if it would have failed instead
<jD91mZM2>
I find "woah, it works (and your sha256 is totally not incorrect at all)" and then having to manually get the downloaded sha more annoying than "oh noes, <hash> does not match <correct hash>
<gmarmstrong>
adisbladis: I thought that was about ledger-cli and got very confused. I knew accounting was weird, but why does my finance journal need access to /dev? :D
<adisbladis[m]>
Haha :D
<cmcdragonkai>
adisbladis[m]: Cool PR. but in that PR there's nothing about u2f
<cmcdragonkai>
adisbladis[m]: So is u2f actually needed at all?
<adisbladis[m]>
cmcdragonkai: u2f is the only interface that your browser groks to talk to the device
<cmcdragonkai>
adisbladis[m]: That's very strange. Because I ran ledger nano s before with the OWNER rule instead. And the chrome app did work and find the ledger nano s.
<cmcdragonkai>
I didn't have the u2f module
<adisbladis[m]>
It's not needed to use the ledger, it is needed to use it with the browser
<adisbladis[m]>
So if you wanna use anything like metamask the u2f layer is required
<{^_^}>
→ f2b58139 by @peti: Merge pull request #39903 from endgame/hold-blank-canvas
<cmcdragonkai>
adisbladis[m]: Does the hardware.u2f.enable = true; Bring all the CLI apps mentioned in the u2f README?
<jD91mZM2>
I literally just added udiskie to my package list and it allows me to mount usb devices from my normal user. I do have the "wheel" group though - that may be it?
<adisbladis[m]>
cmcdragonkai: All it does is setting `services.udev.packages = [ pkgs.libu2f-host ];`
<adisbladis[m]>
Just in a more discoverable and easy to understand fashion
<{^_^}>
[nixos-homepage] @edolstra pushed to master « Nix 2.0.2 released »: https://git.io/vpVT3
<adisbladis[m]>
jD91mZM2: That's managed by systemd/polkit. If you are the user of the current active desktop session you get permission to do things like that.
<jD91mZM2>
Oh
<jD91mZM2>
So it doesn't work for him because he's not in a DE?
<jD91mZM2>
Hey, me too! (I do have xfce enabled though so I can use xfce4-panel)
<cmcdragonkai>
I don't have a DE environment behind it
<cmcdragonkai>
just raw xmonad
<infinisil>
Using xmonad too \o/
<adisbladis[m]>
Get a room...
<jD91mZM2>
Oh no, I have that too. But I have xfce installed as well just for xfce4-panel
<adisbladis[m]>
jD91mZM2: I believe it's more important how you launch your sessions and such.. But I am no expert
<infinisil>
I'm not surprised that xmonad is rather popular on nixos, because Haskell
<jD91mZM2>
Is there a way to query installed system packages (and dependencies) btw?
<jD91mZM2>
xfce4-panel requies a lot of packages installed to work, and I have no idea what those are, so I just enabled services.xserver.xfce.enabled
<jD91mZM2>
Although that's a really bad way of doing it and I'd love to know which packages are currently installed so I can move all those to my systemPackages list
<adisbladis[m]>
I use a full KDE DE + exwm as my wm
<adisbladis[m]>
I really like it
<jD91mZM2>
Emacs WM?!?!?
<adisbladis[m]>
jD91mZM2: Shouldn't the package for xfce-panel work as-is?
xcmw has quit [Ping timeout: 264 seconds]
<adisbladis[m]>
jD91mZM2: Yeah it's AWESOME
<jD91mZM2>
It should, but it doesn't seem to. In fact even after installing the whole of xfce, it didn't work until I booted into a proper xfce environment and then back
<jD91mZM2>
Seems like when booting into xfce it creates some necessary configs.. or something
<jD91mZM2>
IDK
<jD91mZM2>
Are you at least using evil mode in emacs?
<adisbladis[m]>
Nope
<adisbladis[m]>
Good old emacs bindings <3
<{^_^}>
[nix] @edolstra pushed 0 commits to refs/tags/2.0.2: https://git.io/vpVkn
<jD91mZM2>
You have to forgive me - I was under the impression that I was talking to a sane person
<jD91mZM2>
:P
xcmw has joined #nixos
<adisbladis[m]>
jD91mZM2: You'll soon notice that emacs is _really_ popular in nix circles ;)
<jD91mZM2>
Okay pure xfce4panel does work, as long as you have used xfce at least once. That's really werid.
<jD91mZM2>
weird*
<yorick>
adisbladis[m]: and there's still no good nix-mode
<adisbladis[m]>
yorick: Don't remind me :'(
<unacceptable>
vim 4eva
<jD91mZM2>
yass
<cmcdragonkai>
can someone simply explain what is u2f for and why i should care?
<yorick>
cmcdragonkai: you know those codes that google makes you type from your phone? u2f tokens are the same idea, but without any typing
<cmcdragonkai>
alright i'm enalbing hardware.u2f.enable then
gmarmstrong has quit [Quit: Quit]
<unacceptable>
adisbladis[m]: I have read that, years ago
<jD91mZM2>
Never mind my never mind - xfce4 panel does not work out of the box after all. You need xfce4-session. Darn it.
<cmcdragonkai>
I only use xmonad, because before I was using it with KDE
<jD91mZM2>
I should probably try some other panel which doesn't depend on xfce
<cmcdragonkai>
And things just broke
<cmcdragonkai>
nothing worked
<cmcdragonkai>
so i threw away plasma5
<cmcdragonkai>
but it's really nice
<cmcdragonkai>
wish the plasma 5 would have a nice window manager like xmonad
acowley has quit [Ping timeout: 240 seconds]
<jD91mZM2>
xmonad is supposedly really easy to integrate with DEs, unlike i3
<jD91mZM2>
Maybe you could try combining plasma and xmonad?
<kahiru>
cmcdragonkai: you can replace kwin with any other wm, you just have to configure the replacement wm properly
<{^_^}>
[nixpkgs] @ikervagyok opened pull request #39972 → mathematica: add mesa, fix `libGL.so.1 not found` messages → https://git.io/vpVIM
acowley has joined #nixos
<cmcdragonkai>
that's what i tried all that time before
<cmcdragonkai>
xmonad + plasma 5
raynold has quit [Quit: Connection closed for inactivity]
<cmcdragonkai>
ok so this doesn't quite make sense to me. On a new 18.03 machine. All I do is add "plugdev" to the extraGroups of my user. nixos-rebuild, reboot, and still no plugdev when I run `id`. Is `plugdev` meant to be created some how. Note that I have mutableUsers = false;.
rauno has joined #nixos
Neo--- has joined #nixos
<cmcdragonkai>
Maybe... I actually need to say `users.extraGrp
<cmcdragonkai>
Not just extraGroups for a specific user.
NightTrain has quit [Ping timeout: 256 seconds]
<jD91mZM2>
Yeah if it doesn't exist you need to create it
<cmcdragonkai>
It appears you can leave out the GID.
<cmcdragonkai>
I saw in the wiki that lp and scanners group should also be used for scanners. But these were created without me having to explicilty set the group in the `users.groups` set.
freusque has quit [Ping timeout: 256 seconds]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<cmcdragonkai>
Hmm I don't really like this style, it's too implicit. Groups are just magic strings coming from everywhere.
<cmcdragonkai>
Coming from potentially anywhere.
jqtrde has quit [Quit: WeeChat 2.0.1]
jD91mZM2 has joined #nixos
disasm has quit [Quit: WeeChat 2.0]
humanoyd has quit [Quit: WeeChat 2.1]
<infinisil>
etu: I have cleaned up the karma counter regex :)
wchresta_ has quit [Ping timeout: 248 seconds]
<etu>
infinisil ++
<{^_^}>
infinisil's karma got increased to 4
<etu>
:D
knupfer has joined #nixos
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
katyucha has joined #nixos
xcmw has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<adisbladis[m]>
Gah.. I think I lost my ledger nano s somewhere....
krey has joined #nixos
i-am-the-slime has joined #nixos
<i-am-the-slime>
Hello
<i-am-the-slime>
Docker is frying me.
<srhb>
Yeah, this happens...
<i-am-the-slime>
I need to map my docker binary into a container
<i-am-the-slime>
so saying - /usr/bin/docker:/usr/bin/docker
<i-am-the-slime>
does not fly with nixos
<i-am-the-slime>
But even /run/current-system/sw/bin/docker is some funky shell-script with hardcoded paths
<adisbladis[m]>
You could map /nix/store ro?
<i-am-the-slime>
Ah okay, so that it would find the stuff?
<adisbladis[m]>
Yeah
daveo has joined #nixos
<jD91mZM2>
What panel are you guys using? I used to use xfce4-panel but it's acting really weird so I might just try some other one
lord| has quit [Quit: WeeChat 2.1]
Rusty1_ has joined #nixos
jperras has joined #nixos
<yorick>
jD91mZM2: polybar
reinzelmann has quit [Quit: Leaving]
jperras has quit [Ping timeout: 240 seconds]
maingo has quit [Quit: Connection closed for inactivity]
ckauhaus has quit [Quit: Leaving.]
grw has quit [Ping timeout: 264 seconds]
<jD91mZM2>
yorick: are you using the siji font as well?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sir_guy_carleton has joined #nixos
daveo has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 268 seconds]
Ross has quit [Ping timeout: 268 seconds]
Ross has joined #nixos
waleee has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
Ross has quit [Ping timeout: 260 seconds]
Ross has joined #nixos
<jD91mZM2>
Does anybody happen to know the fix for xfce4-panel having an empty "Add New Items" dialog?
lonokhov has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
lonokhov has quit [Client Quit]
<silver_hook>
Hm, since 18.03 LibreOffice looks very spartan (almost like an old Motif look)
lonokhov has joined #nixos
<silver_hook>
Ideally I’d like to have it look like (and intagrate with) Plasma, but at this stage, even just the stock LibreOffice look would be great.
<waleee>
silver_hook: I were referring to the answer in the stackoverflow link, ie. that you could try to set the JAVA_OPTS environment variable with the wanted look-and-feel
<{^_^}>
[nixpkgs] @Ma27 opened pull request #39974 → simplescreenrecorder: port to qt5 → https://git.io/vpVGv
xcmw has quit [Ping timeout: 276 seconds]
nick_l has quit [Ping timeout: 260 seconds]
<silver_hook>
waleee: I tried the GTKLookAndFeel and the WindowsLookAndFeel and it doesn’t seem to change anything.
joehh has quit [Ping timeout: 248 seconds]
blankhart has quit [Ping timeout: 260 seconds]
blonkhart has quit [Ping timeout: 240 seconds]
<waleee>
silver_hook: did you remember to re-source .bashrc or whichever file you exported the variable from?
<silver_hook>
I just did `set -x` in Fish
xcmw has joined #nixos
pangool has joined #nixos
jperras has joined #nixos
xcmw has quit [Client Quit]
pangool has left #nixos [#nixos]
xcmw has joined #nixos
<waleee>
silver_hook: I have no idea if that works the same way as in bash or not, is JAVA_OPTS set if you do an echo of it?
<silver_hook>
It echoes the last setting, yes.
<leary`>
exit
<leary`>
oops..
leary` has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 256 seconds]
freusque has joined #nixos
Neo--- has quit [Ping timeout: 256 seconds]
xAFFE has left #nixos ["Error from remote client"]
<sphalerite>
silver_hook: waleee: yeah this is indeed an odd new bug with nixos
<sphalerite>
it was introduced sometime between the 18.03 release and now iirc
cryp2nomicon has joined #nixos
<waleee>
ok, I saw some github issues with android-studio, but nothing on libreoffice
<silver_hook>
sphalerite: Is it filed already?
eddyb has joined #nixos
leary` has quit [Remote host closed the connection]
<jD91mZM2>
How do I specify the channel for a certain package in configuration.nix?
<cryp2nomicon>
waleee: how's android development in nixos? is it ok?
asuryawanshi has quit [Ping timeout: 256 seconds]
katyucha has quit [Ping timeout: 265 seconds]
andreabe_ has joined #nixos
andreabe_ has quit [Client Quit]
<jD91mZM2>
Does anybody else have issues with icons btw? I'm using Numix-Circle and the icons aren't really loading at all
justanotheruser has joined #nixos
<waleee>
cryp2nomicon: I'm not using android-studio on nixos. I noticed that it had some issues filed for the look-and-feel when searching for possible fixes
linarcx has joined #nixos
leary` has joined #nixos
zybell_ has quit [Ping timeout: 256 seconds]
<waleee>
cryp2nomicon: but intellij is a "piece of complaining about updates"-software though
<sphalerite>
silver_hook: not that I know of, haven't checked
<cryp2nomicon>
waleee: sounds like not well.. then
<{^_^}>
→ 23d98f9e by @WilliButz: prometheus-postfix-exporter: 0.1.1 -> 0.1.2
<{^_^}>
→ 026dc16b by @xeji: Merge pull request #39971 from WilliButz/update-postfix-exporter
<jD91mZM2>
Where do I get the cargoSha256 value from?
<clever>
jD91mZM2: i think your only option is to put in the wrong hash, then look at the error nix gives
<jD91mZM2>
The thing is I'm using an old hash that should cause an issue.... but doesn't
<clever>
if you use the exact hash you used before, nix will believe you and assume nothing has changed
<jD91mZM2>
ah
<clever>
you need to increment a digit or 2, to make it invalid
<jD91mZM2>
That's pretty clever, thanks!
<jD91mZM2>
clever+=
<jD91mZM2>
clever++
<{^_^}>
clever's karma got increased to 1
<clever>
heh, didnt know the bot did that
<srhb>
If it had before, I think your karma would be _somewhat_ higher ;)
<clever>
yeah
<jD91mZM2>
Wait what, the cargo hash is exactly the same?
fendor has quit [Ping timeout: 256 seconds]
<jD91mZM2>
"with sha256 hash '<old hash>' instead of the expected hash '00000...'"
<{^_^}>
[nixpkgs] @FRidh merged pull request #38530 → pytorch: 0.2.0 → 0.3.1 with CUDA and cuDNN → https://git.io/vxHcq
<{^_^}>
[nixpkgs] @FRidh pushed commit from @andersk to master « pytorch: 0.2.0 → 0.3.1 with CUDA and cuDNN (#38530) »: https://git.io/vpVWM
<clever>
did you update the cargo.lock file?
patrl has joined #nixos
<jD91mZM2>
I bumped the version number, yeah
Jackneilll has quit [Quit: Leaving]
<clever>
if you check the build output, did it fetch the new version?
<jD91mZM2>
I mean I can install the package using nix-env and it has the latest one
fendor has joined #nixos
Ariakenom has quit [Ping timeout: 256 seconds]
wchresta_ has quit [Ping timeout: 264 seconds]
<clever>
i try to only use nix-build when testing, nix-env can cause issues
<jD91mZM2>
I was using nix-build first and then nix-env to install
<clever>
ah
<clever>
not sure then
<jD91mZM2>
I'll just assume some spooki ghost did something spooki
jD91mZM2 has quit [Quit: WeeChat 2.0]
Synthetica has joined #nixos
dbmikus has joined #nixos
jD91mZM2 has joined #nixos
<infinisil>
clever: i just added the karma thing yesterday
Jackneill has joined #nixos
<dtz>
Is https://github.com/NixOS/nixpkgs/pull/39866 "safe" to merge re:mass-rebuilds? Not sure if those rebuild tags get updated as the PR evolves. I think they do. I've checked hashes of stdenv.cc and compared to master, so things should be good... but just wanted to check O:)
<dtz>
FWIW the rebuild script says lots of things change, not sure what's going on there.
<gchristensen>
dtz: they do get updated as the PR evolves
<leary`>
Why does fontforge look so much worse on NixOS than it did on Debian? E.g. the icons you can see on the fontforge.github.io page aren't being used, but some ugly bitmaps instead. Anything I can do about this?
<{^_^}>
[nixpkgs] @hedning opened pull request #39978 → Make plymouth work with gdm wayland → https://git.io/vpV8G
<dtz>
gchristensen: <3 ty
patrl has quit [Quit: WeeChat 2.0]
<gchristensen>
dtz: thank WilliButz for filling in for my deficient monitoring :P
<clever>
infinisil: ah, that explains things
patrl has joined #nixos
patrl has quit [Client Quit]
patrl has joined #nixos
<infinisil>
Along with the command thing and the PR thing
Ariakenom has joined #nixos
<dtz>
leary`: mine seems to look awfully like the screenshot
<dtz>
maybe I've installed some theme bits it wants, honestly I find those things a bit confusing :3
patrl has quit [Client Quit]
patrl has joined #nixos
<leary`>
dtz: Then I guess it's deriving its look from something in the environment. Best guess you're using a DE that sets something somewhere, or just pulls in an optional dependency.
cryp2nomicon has quit [Quit: leaving]
cryp2nomicon has joined #nixos
cryp2nomicon has quit [Client Quit]
<leary`>
No idea how to figure out what that is though, since google hasn't gotten me very far. :|
cryp2nomicon has joined #nixos
<dtz>
leary`: using awesome-wm, but to avoid this sort of issue I went and installed all the themes (and the deps for a full kde env) "just in case" lol :/
<dtz>
so in a way, yes I probably have deps already xD
patrl has quit [Client Quit]
patrl has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
Sonarpulse has joined #nixos
jD91mZM2 has joined #nixos
carl_ has joined #nixos
<carl_>
hi
patrl has quit [Quit: WeeChat 2.0]
patrl has joined #nixos
<carl_>
First i would thank everyone here
patrl has quit [Client Quit]
phdoerfler has joined #nixos
<carl_>
i am beginner and i have problem getting nix work
<{^_^}>
→ 659363fb by @Synthetica9: gcc8: init at 8.1.0
<{^_^}>
→ 736dab4a by @Synthetica9: gcc8: register to all-packages
<{^_^}>
→ 728eb276 by @Synthetica9: gcc8: added myself as maintainer
xcmw has quit [Ping timeout: 264 seconds]
fendor has quit [Ping timeout: 255 seconds]
jgertm has joined #nixos
wchresta_ has joined #nixos
linarcx has joined #nixos
<jD91mZM2>
carl_ What's the issue?
orivej has quit [Ping timeout: 264 seconds]
<srhb>
carl_: (It's always a good idea to write out your issue instead of asking for undefined help, more people will respond that way. And welcome! :-))
<gchristensen>
simpson: have you made a tahoe-lafs-based binary cache yet?
<jD91mZM2>
Apparently somebody made a website just for that lol
<simpson>
gchristensen: I have done some experiments. I don't have a `fetchtahoe` yet.
jmeredith_ has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<gchristensen>
I don't want a fetchtahoe, but like a `--substitutors` / binary cache
<simpson>
I've also done experiments with Dat. There can't be an obvious `fetchdat` because the Dat tooling insists on writing a .dat into *any* folder it manages.
stephenjudkins has joined #nixos
<gchristensen>
ack
<simpson>
Oh, interesting. I could set up an HTTP thing backed by Tahoe, but I haven't felt the pressure for that.
yegortimoshenko has joined #nixos
<gchristensen>
hmm ok I'm might like something like that ... may have to play around.
ertes-w has quit [Quit: Bye!]
kiloreux has quit [Read error: Connection reset by peer]
carl_ has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
wchresta_ has quit [Ping timeout: 268 seconds]
periklis has joined #nixos
linarcx has quit [Quit: Konversation terminated!]
<jD91mZM2>
Aaahh! Turns out all this time my issues with xfce4-panel have been becaue of - or rather, the lack of - `environment.pathsToLink = [ "/share/xfce4" ];`
<jD91mZM2>
Would it break anything to add that to the xfce4-panel package, or would that cause "duplicated configuration" issues when using the normal xfce service?
carl_ has joined #nixos
fendor has joined #nixos
<carl_>
the problem happens when i invoke "nixos-rebuild switch" on the config file https://justpaste.it/2gip5
<jD91mZM2>
... but what problem? A error?
<clever>
carl_: you have 2 attribute sets in the same file, the }\n\n{ has to be removed
<clever>
3 actually, there is another redundant }\n\n\n{ at the top half
<carl_>
the error "error: attempt to call something which is not a function but a set, at /etc/nixos/configuration.nix:3:1 (use '--show-trace' to show detailed location information) building Nix..."
kiloreux has joined #nixos
waleee has quit [Quit: WeeChat 2.1]
cryp2nomicon has quit [Read error: Connection reset by peer]
<carl_>
thank you. i removed them and it worked.
stephenjudkins has quit [Remote host closed the connection]
<globin>
Synthetica: If you haven't created the defaulting to gcc8 PR i can do so in the next few hours including setting up a hydra jobset
<carl_>
i know this happened cause i do not understand what the config file is and what is its structure. i tried the official manual but things seem a little more complicated to me. Any good tutorial on nix configuration available?
<etu>
jtojnar++ for creating the issue upstream
<etu>
jtojnar++
<{^_^}>
jtojnar's karma got increased to 1
knupfer has joined #nixos
<jtojnar>
etu: would mconnect or gconnect work for now?
<nschoe>
Hi everyone, is there something tricky about nginx? I've enabled it in my configuration.nix, I've used pkgs.lib.readFile for the 'config' entry, and I have a fairly standard, basic config file, but when I try to access localhost, I've got "[error] 18098#18098: *2 "/var/spool/nginx/html/index.html" is not found (2: No such file or directory)" in nginx log. But I have no idea where this /var/spool/nginx thing comes from.
<{^_^}>
→ 9fe26eed by @lionello: nix-prefetch-git: fix handling of submodules with spaces
<{^_^}>
→ f7860724 by @adisbladis: Merge pull request #39957 from enumatech/fix/nix-prefetch-git-spaces
jperras_ has quit [Ping timeout: 248 seconds]
<jD91mZM2>
jtojnar: Aww. Would `services.xserver.xfce-panel.enable = true;` make sense?
jperras_ has joined #nixos
doyougnu has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
smichel has joined #nixos
carl_ has quit [Quit: Page closed]
<jtojnar>
jD91mZM2: I do not think this would be much more discoverable than pathsToLink
Jackneill has quit [Quit: Leaving]
<jD91mZM2>
I think so. If you search nixpkgs' github for "xfce4-panel" it'd pop up
<jtojnar>
jD91mZM2: maybe we could introduce meta.extensionPoints to derivations, and a NixOS module that would link the extension points of installed packages automatically
<jD91mZM2>
Or if you add it to `man configurations.nix`
<jD91mZM2>
extensionPoints sounds great though
<clever>
`man configurations.nix` is auto-generated from every mkOption defined in the nixos modules
nuncanada has joined #nixos
<jD91mZM2>
I meant that services.xserver.xfce-panel would then show up
AstroBadger has left #nixos ["WeeChat 1.6"]
cryp2nomicon has quit [Quit: leaving]
<jtojnar>
jD91mZM2: another possibiilty would be patching xfce-panel to use XDG_DATA_DIRS instead of a fixed Nix profile and creating `xfce-with-plugins` derivation (see for example `gimp-with-plugins` or `deadbeef-with-plugins`)
<jD91mZM2>
You should write these ideas to GitHub so more people can see them
<jtojnar>
jD91mZM2: I think there are already several issues about this somewhere
<jD91mZM2>
But dropping plugins to a folder doesn't really follow the "everything works if you copy paste your config" model...
<maurer>
jtojnar: I was more suggesting that rather than adding /nix/store/package/share to XDG_DATA_DIRS, putting a symlink in .nix-profile/share/, at least for imperative stuff
<maurer>
jD91mZM2: Yeah, you need with-plugins style for that to really work
<jtojnar>
maurer: adding a symlink to the profile is what adding the path to pathsToLink does
<maurer>
(Of course, the downside to the profile approach is that it will not work with nix-shell I think)
<maurer>
(You'd need to use a hook to add to XDG_DATA_DIRS there)
<Synthetica>
globin: I'm gonna have diner first, I can do it in an hour or so. Not sure how I'd setup the Hydra jobset tho
<jtojnar>
maurer: right, and it gets complicated with some plugins in e.g. lib/programname (deadbeef)
<globin>
Synthetica: you could most probably not do that, therefore the offer that I can do it in one go :)
<Synthetica>
globin: Would it hinder you if I created the PR? I basically have that ready to go now
<globin>
Synthetica: I'd probably push it as another branch to the nixos/nixpkgs repo for fixing up the issues, so that more people can collaborate on it
<Synthetica>
Okay, I'll leave it up to you then.
<globin>
Synthetica: will ping you, testing a basic build first, before pusing
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @voobscout to master « ntfs-3g: fix debian url »: https://git.io/vpVrn
jgertm has quit [Ping timeout: 260 seconds]
freusque has quit [Quit: WeeChat 2.0]
andrewmiller1 has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
<jtojnar>
jD91mZM2: I have starting a discussion about how plug-ins are to be implemented on my to-do list but it probably will not get to the top anytime soon
<jD91mZM2>
Awesome, thanks!
<jtojnar>
jD91mZM2: one idea would be `*-with-plugins` for everything and relying on something like intensional store where items would be defined by their interface (ABI/directory tree)
<nick_l>
I have imports = [ ./foo.nix ] Now, I want to generalize foo.nix, so I added {bar}: to the top of the module foo.nix, but how can I then use "imports" in combination with this generalized version of foo.nix?
<jtojnar>
jD91mZM2: basically `-with-plugins` style works great for programs but the libraries (gstreamer, enchant, …) are the hard part
jgertm has joined #nixos
<jD91mZM2>
To be entirely honest I'm not completely sure what you mean
taktoa has quit [Remote host closed the connection]
<Lisanna>
Hey, wondering if anyone can help me understand how the PXE image is built (nixos/release.nix -A netboot). Specifically, what NixOS configuration is used, and can it be changed?
AstroBadger has left #nixos ["WeeChat 1.6"]
lonokhov has quit [Quit: WeeChat 2.0]
wchresta_ has quit [Ping timeout: 265 seconds]
Lisanna2 has joined #nixos
<nick_l>
How can I access a variable set via set-args in an imported (as in imports = [ ./module.nix ]) module? Example of setting a variable via set-args: nixops set-args --arg nrMachines 10
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « openscad: fix build by switching to git master and Qt5 »: https://git.io/vpViy
<jD91mZM2>
jtojnar: Wow, that would indeed be great
<jD91mZM2>
Does it currently rebuild even if you only change settings?
<jD91mZM2>
Like services.xserver.displayManagers.lightdm.background or something minor
jperras_ has quit [Quit: WeeChat 2.1]
smichel has quit [Quit: smichel]
orivej has joined #nixos
<jtojnar>
jD91mZM2: that is currently usually handled by global settings in /etc
<jtojnar>
so only the etc derivation needs to be rebuild
<jtojnar>
you would need to rebuild everything that depends on at
<jD91mZM2>
Oh wow
<{^_^}>
[nixpkgs] @timokau opened pull request #39981 → [WIP] Sage on nixos → https://git.io/vpVP9
<jtojnar>
jD91mZM2: it makes sense since if one bit in a library changes, Nix cannot tell whether the depending programs will still work
<jD91mZM2>
Yeah, there's no concept of build-time/run-time options. Just options.
<jD91mZM2>
Would be great if there could be some kind of phase for regenerating configs that could somehow be used to distinguish
<jD91mZM2>
(Sorry if I'm saying something stupid, I don't know nix)
knupfer has quit [Ping timeout: 240 seconds]
daveo has joined #nixos
periklis has quit [Ping timeout: 255 seconds]
jgertm has joined #nixos
xcmw has quit [Ping timeout: 256 seconds]
smichel has quit [Quit: smichel]
xcmw has joined #nixos
<LnL>
there's a difference between buildtime and runtime dependencies
<LnL>
but changing either results in a new store path
<nick_l>
Is nix-collect-garbage -d the most aggressive I can get?
<nick_l>
I see that I have two versions of systemd in my store for example.
<srhb>
nick_l: /run/booted-system is probably holding onto one
<Pneumaticat>
Hmm does NixOps support 32 bit systems!
<Pneumaticat>
*?
<LnL>
the currently booted system will stay alive until you reboot and the current becomes that
<nick_l>
Is there any way to do that more efficient in a cloud environment?
Czen has quit [Quit: Tumbling down]
<srhb>
nick_l: Only by doing Unsafe Things.
<nick_l>
srhb: that's my secret middle name.
Czen has joined #nixos
<LnL>
why? the last booted system is the only one known to boot correctly
simukis has quit [Ping timeout: 276 seconds]
<LnL>
just because you where able to switch to the current one doesn't necceceraly mean it works
<LnL>
(eg. kernel upgrades)
andrewmiller1 has joined #nixos
<nick_l>
OK, other question. Is there an easy way to see how much space every service takes in journalctl output?
<andrewmiller1>
exploring nix and nixpkgs code via github.com and grep is a pain. i'm new to development. is there a way to easily explore the source code?
<LnL>
I know how to limit the journald size, not sure if you can query the usage
zeronineseven has joined #nixos
Czen has quit [Client Quit]
jrolfs has quit [Ping timeout: 256 seconds]
<nick_l>
LnL: I already have: SystemMaxFileSize=5M MaxFileSec=48h '';
<nick_l>
LnL: but I also see log files that are older than that on the system.
<andrewmiller1>
nick_l: does journalctl --disk-usage work for you?
Czen has joined #nixos
<nick_l>
andrewmiller1: Not really, but cool command: Archived and active journals take up 306.6M in the file system.
<nick_l>
So, I basically want to throw away logs when there is too much.
<nick_l>
(yes, yes, I know that storing them on some external system is better and that will likely also be done at some point)
tmaekawa has joined #nixos
<LnL>
journald or logfiles?
<LnL>
maybe one of the services just writes to a file and doesn't rotate it
<nick_l>
SystemKeepFree
<nick_l>
That's the solution I need.
<{^_^}>
[nixpkgs] @ookhoi opened pull request #39983 → fix-way-cooler - remove 'mv' commands not needed anymore, and replace… → https://git.io/vpVDa
tmaekawa has quit [Client Quit]
<andrewmiller1>
nick_l: journalctl -N | grep -i disk and journalctl -N | grep -i us may also give more ideas for customizing anything you're looking into
zeronineseven has quit [Quit: Konversation terminated!]
winem_ has quit [Ping timeout: 240 seconds]
muzzy has joined #nixos
muzzy__ has joined #nixos
muzzy_ has joined #nixos
<nick_l>
Documentation for that option is uhm... sub-optimal.
<nick_l>
Total disk usage: 2.6 GiB Apparent size: 128.0 TiB
<nick_l>
LOL
<mightybyte>
Is there a way to figure out which nixpkgs version corresponds to a specific stack snapshot?
<jD91mZM2>
Does anybody have any recommendations for how to build a NodeJS package? Should I just use npm like normal or should I use node2nix? What's the advantage of either?
<nick_l>
Looks like ncdu doesn't work.
<jD91mZM2>
ncdu works for me... kind of. I don't remember if it used to be possible to navigate to a previous dir, but it isn't now.
<Dezgeg>
sure you can, just pick the top directory which is /..
jrolfs has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<jD91mZM2>
Dezgeg: Yeah but... never mind
asuryawanshi has joined #nixos
<jD91mZM2>
I just couldn't remember if it used to be possible to change to a dir outside of the one you selected, but probably not
nschoe has quit [Ping timeout: 276 seconds]
AstroBadger has joined #nixos
<nick_l>
error: executing SQLite statement 'pragma synchronous = normal': disk I/O error (in '/nix/var/nix/db/db.sqlite')
<nick_l>
Any way to fix that?
<nick_l>
Don't really see any hardware errors otherwise.
<{^_^}>
[nixpkgs] @nicknovitski closed pull request #35063 → yarn: add yarnpkg binary to outputs and use nodejs dependency → https://git.io/vAW3W
jrolfs has quit [Ping timeout: 260 seconds]
<thoughtpolice>
mpickering: If you're willing to blast /nix/store, then yes, it's very easy. But otherwise I don't think there's a clean upgrader to the new daemon-based installer, for now.
<catern>
man, I wish there was a "nix install" command which was cached
<thoughtpolice>
mpickering: Assuming you're not using NixOS, of course. Because if you were I imagine you wouldn't need to ask (it's trivial, there)
<catern>
nix-env --install is so terribly slow
<mpickering>
Well I am using NixOS
<catern>
and I hate to tell my users to use nix-env -iA, which is not at all intuitive
<mpickering>
But updating nixpkgs and then nixos-rebuild switch doesn't install 2.0?
<thoughtpolice>
The real solution is to just never tell them about anything other than -iA, then there's nothing non-intuitive about it because there's only one option.
<thoughtpolice>
You can make that nicer by using an overlay or something to make user environments more declarative, anyway. You should always get used to using attribute names, IMO.
wchresta_ has joined #nixos
<thoughtpolice>
mpickering: Well, I'm on nixpkgs-unstable, and I have 'nix.package = pkgs.nixUnstable' on my machine, which is at 2.1, but I believe nixStable was also bumped to 2.0 recently
<thoughtpolice>
mpickering: Are you on 18.03 or unstable?
<mpickering>
ok right, so I will try again
<mpickering>
I am on a custom checkout
<mpickering>
which is usually quite recent
<thoughtpolice>
You can use Import-From-Derivation to write a custom nix.package as well if you want, if you want new-nix, but a locked, older nixpkgs checkout
<mpickering>
It's two weeks old. 651239d5ee66d6fe8e5e8c7b7a0eb54d2f4d8621
<mpickering>
So if something changed in that time I will try it again
<dtz>
idk how anyone lives without tab completion of nix commands lol--particularly attributes/attribute names
<dtz>
huge advantage of the '-A' variants is you can tab-complete your way to what you mean xD
<thoughtpolice>
Yeah, attribute names are what you use 99.9% of all places anyway, so IMO any real usage should just bite the bullet and always use them.
Lisanna2 has quit [Ping timeout: 276 seconds]
<thoughtpolice>
mpickering: No, that should be way more than recent enough. nixStable was bumped to 2.0 sometime back in Feburary.
szicari has quit [Quit: szicari]
szicari has joined #nixos
<thoughtpolice>
mpickering: Just to be clear, you're *sure* you're building with your nixpkgs clone, and not some channel, e.g. nixos-version matches exactly?
szicari has quit [Client Quit]
<thoughtpolice>
Because unless your nix.package is explicitly set to nix1, I think it should upgrade with more or less no intervention.
<mpickering>
How do I check this?
jperras has joined #nixos
<thoughtpolice>
git rev-parse HEAD in your nixpkgs clone, i.e. what version you *expect* to be on
<thoughtpolice>
then just check the hash against the output of `nixos-version`, to be 100% sure
<thoughtpolice>
You can also use `nixos-option nix.package` I think to maybe get the path to the Nix version your configuration.nix is set to use, which should be unambiguous, as well.
<{^_^}>
→ 7f53ee84 by @bachp: restic-rest-server module: init
<{^_^}>
→ b051cdfd by @dotlambda: Merge pull request #39943 from bachp/restic-rest-server
<thoughtpolice>
Though using an overlay to just name all the local packages I want in a sorta-declarative way is a lot nicer, IMO.
xcmw has joined #nixos
<andrewmiller1>
Dezgeg: you're right it works
<thoughtpolice>
mpickering: Nice. Yeah I really wish there was a better way to link my configuration.nix directly to a version of nixpkgs
<thoughtpolice>
mpickering: Right now I just have an alias for -I nixpkgs=/path/to/nixpkgs but ideally I would be able to 'bootstrap' my configuration.nix much like I do using builtins.fetchTarball for my projects.
<johnw>
thoughtpolice: that's a nice idea
<thoughtpolice>
I keep all my configurations in git so I could add a submodule but I hate them out of principle.
nschoe has quit [Ping timeout: 256 seconds]
<johnw>
"pinned bootstrapping"
<dtz>
fwiw I think -A is only needed once
<dtz>
nix-env -iA nixos.bash nixos.hello
<maurer>
Is there a way to allow use of caches for all but the last package in a nix-build -A request?
<maurer>
Specifically, I'm looking to grab the kernel build directory from nix-build -A linux_latest before it installs, and wanted to nix-build -K to get it
<thoughtpolice>
johnw: Yeah, nixos-rebuild would need some way of being told the nixpkgs checkout to use... In an ideal world, you could do 'nixos-rebuild' even with an empty NIX_PATH. That's _almost_ possible today, I think.
<thoughtpolice>
Some of the NixOS tests do things like 'import <nixpkgs/nixos/some/thing/or/another.nix>', but nothing in NixOS itself uses direct NIX_PATH-ish includes; they all use relative paths instead. But that's just the tests, at least.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpVFy
<{^_^}>
→ 81c1b9c9 by @woffs: googleearth: remove
<{^_^}>
→ ac18012d by @matthewbauer: Merge pull request #39426 from woffs/googleearth
<thoughtpolice>
Actually I'm not sure if nixos-rebuild works with an empty NIX_PATH. In any case it would be good if it could... Then I could have all of my machines trivially bootstrapped from the same nixpkgs version at all times.
<johnw>
yep
<johnw>
I'd like that too
<thoughtpolice>
Building image closures with an empty NIX_PATH works though, more or less, IIRC. (I just can't remember if nixos-rebuild itself does anything like 'import <nixpkgs>', maybe it doesn't)
<johnw>
you can at least achieve this when using nix-docker to bootstrap NixOS within Docker containers, which is what I mostly now do to start up NixOS
<thoughtpolice>
Right now an alias is basically the best way to go, AFAICS
<thoughtpolice>
Yeah, if you build the actual system closure yourself with nix-build, then you can just switch-to-configuration manually.
<infinisil>
Um, was the ssh-substituter-hosts option changed?
<thoughtpolice>
That _can_ work and be done with a pinned version, using the fetchTarball strategy, in fact.
<thoughtpolice>
So maybe I should just write a small alternative to nixos-rebuild myself...
MichaelRaskin has joined #nixos
freeman42x[nix] has joined #nixos
nschoe has joined #nixos
<infinisil>
Ah I think it got changed to just extra-substituters
<catern>
maurer: could you just do the build of all the first n-1 things, allowing caches, and then do the build again without caches with the last thing added on? the second time they'd be already built/downloaded
<maurer>
catern: Yeah, what I've done now is nix-shell -A linux_latest, the ndid another run of nix-build with caches disabled
<maurer>
seems kinda janky just force a particular build, but what can you do
andrewmiller1 has quit [Quit: Page closed]
andreabe_ has joined #nixos
andreabedini has quit [Ping timeout: 240 seconds]
<Dezgeg>
if you plan to ctrl-c it anyway maybe nix-build --check would do
<maurer>
Hm, check doesn't appear in the man page
<maurer>
what does it do?
dbmikus has quit [Quit: WeeChat 2.1]
<Dezgeg>
a rebuild to check for bitwise reproducibility (with the second result thrown away, I think)
<{^_^}>
→ 5c63fbda by @xeji: Merge pull request #39977 from Ma27/update-minitube
<tmplt>
Which package contain the X11/xpm.h header? Apparently, xorg.libXpm only contain shared libraries
<bebarker>
I'm probably missing something obvious, but after searching and skimming the docs, I haven't found the answer; I'd like an easy way to test out my local nixpkgs clone, by doing nix-env -if test-env.nix. Is there a way to specify the path to the local nixpkgs clone, in e.g.: with import <nixpkgs> {}; ?
<leary`>
Hmm, I just found logs from fontforge in my ~/.xsession-errors: it's looking for it's shares in /run/current-system/sw/share/fontforge, which doesn't exist. I checked $(dirname $(readlink $(which fontforge)))/../share and I can see that the files it's looking for are present, just apparently not symlinked. Sounds like a bug?
phdoerfler has joined #nixos
jacob_ has quit [Quit: Lost terminal]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « kotlin: move LICENSE to separate place »: https://git.io/vpVxA
<elvishjerricco>
bebarker: You've got a few options. You could code the path into your file. i.e. replace `import <nixpkgs> {}` with `import ./nixpkgs {}`. Or you can tell nix to substitute `<nixpkgs>` using `-I`: `nix-env -I nixpkgs=./nixpkgs -if ./test-env.nix`
katyucha has joined #nixos
dbe_ has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
sydney has joined #nixos
ixxie has joined #nixos
ChongLi has quit [Ping timeout: 264 seconds]
sydney has quit [Quit: Leaving]
globin has quit [Ping timeout: 260 seconds]
<bebarker>
elvishjerricco, awesome, the first one was definitely sufficient for me, also easy to just swap it out with my existing production env as a single-line-swap
<{^_^}>
→ 814938a7 by @LnL7: ruby: fix darwin dependencies
<{^_^}>
→ b5968f26 by @LnL7: Merge pull request #39928 from manveru/update-ruby
radvendii has joined #nixos
ldlework has quit [Ping timeout: 256 seconds]
smichel has joined #nixos
<radvendii>
For certain matomo features, I have to add things to various directories, but when I use the matomo nixos service, it puts the directory in the nix store, which is immutable
daveo has joined #nixos
<radvendii>
is there a way to add a file to a service / package in configuration.nix?
<radvendii>
or do i have to abandon the nix-style install, and install it manually?
<johnw>
radvendii: can you create another package whose 'src' is the output of the other package?
phdoerfler has quit [Quit: Leaving.]
jrolfs has quit [Ping timeout: 264 seconds]
<johnw>
then you can setup the 'out' for that package to exactly what you need
<{^_^}>
→ cf50edf5 by @Ma27: python3Packages.yowsup: 2.5.2 -> 2.5.7
<{^_^}>
→ f79e0fcf by @dotlambda: Merge pull request #39926 from Ma27/update-yowsup
<zybell>
jtojnar:plugins:as I analyse it you need 3 (small) packages per extension point: 1) path package,provides a symlink into /run for link to package 3. 2) contract package,depends on 1,provides an output that explains the way the packages are linked,computer readable (script or lib),human readable good to have,all expanders depend on it. 3)point package, depends on 2) and 1), imports the list of all *reverse* dependecies of 2) as deps into a
<zybell>
dir.sets the /run link to that dir and provides (via its dep on (1) )a way to access that plugin dir in the hosts. The hosts depend on 3).
Slabity has joined #nixos
wchresta_ has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #39987 → yubikey-personalization-gui: port to qt5 → https://git.io/vpwqz
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @svanderburg pushed to master « libgdiplus: remove conflicting libungif that causes segfaults when opening a GIF file »: https://git.io/vpwqo
<{^_^}>
→ 94a3649e by @LnL7: ruby: fix darwin dependencies
lord| has joined #nixos
hakujin has quit [Ping timeout: 248 seconds]
xcmw has joined #nixos
<radvendii>
I've set up a nix override that downloads and installs an extra piece, but when I diff it with a version that I downloaded myself, I get that there are differences (they're binary files, so I don't know what exactly)
<radvendii>
any idea what would be causing this?
<radvendii>
fetchurl is also completely ignoring the checksum as far as I can tlel
<radvendii>
because I know the checksum is wrong but it's not complaining
<srhb>
radvendii: Did you ensure to not leave the hash at the old value?
<srhb>
radvendii: Otherwise Nix will conclude that it already has that file and carry on happily with the old one.
<radvendii>
srhb: ohhh
<radvendii>
srhb: hahaha. whoops
<radvendii>
that's why it's ignoring the hash
<srhb>
radvendii: More like the url. :-)
<radvendii>
right
<radvendii>
very clever
<radvendii>
sort of
<radvendii>
I think this has confused me in the past, too
<srhb>
Yes, it's a common gotcha.
<srhb>
It would be extremely costly to always download and verify though, so it's hard to avoid.
<srhb>
Just a tradeoff of fixed output derivations.
hiratara has quit [Ping timeout: 265 seconds]
<clever>
the storepath is based on the name and the sha256
<clever>
so if neither has changed, it reuses the old one
<radvendii>
wait but the name was completely different
<clever>
though the tarballs.nixos.org may get in the way
<srhb>
The /urlselect
<srhb>
Woops
aarvar has joined #nixos
<radvendii>
you would expect what to work? the gist I sent you does work, but that's because I updated the hash
<radvendii>
before it was the same hash as the tremulous file
<clever>
i would expect it to have a different storepath and to correctly fail if you reuse an old hash
<radvendii>
oh
<radvendii>
yeah
<clever>
but, if the old hash is mirrored on tarballs.nixos.org
<clever>
that mirror doesnt include the name in the hashing
<clever>
and it may mess up
<clever>
i can see that happening for any hash in nixpkgs
<clever>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever>
but that hash is safe to use
<clever>
bitcoin would be broken if anybody ever found that hash :P
<radvendii>
hahaha
<radvendii>
that's a good call
<radvendii>
does it have to have the right number of zeros?
<clever>
yeah
<radvendii>
gotcha
<radvendii>
how many is it?
<radvendii>
wow. i can count
<srhb>
52.
<radvendii>
thanks
<srhb>
Which makes 52i0 very handy in vi
<radvendii>
yuuup
<clever>
needed an escape after the 0, but that does work nicely
ixxie has quit [Quit: Lost terminal]
globin has quit [Remote host closed the connection]
Slabity has quit [Ping timeout: 240 seconds]
joehh has joined #nixos
<srhb>
My vimrc just magically knows when I want to quit insert mode. :-)
<clever>
doesnt seem to replicate things with arrow keys in it though
<clever>
so i cant just 5ispace<down><escape>
<Dezgeg>
arrow keys aka heresy?
<srhb>
Hmm, I have arrow keys killed in insert mode, never thought of that.
<radvendii>
clever: yeah at that point you probably want macros
<radvendii>
srhb: how does it know when you want to exit?
<srhb>
radvendii: It doesn't, I was joking. Sorry. :P
<radvendii>
srhb: oh. I could totally imagine that being a vim package though
<clever>
Dezgeg: how else would you move the cursor while in insert mode? lol
<srhb>
(But I can type jk together and it exits insert mode)
<radvendii>
Dezgeg: exit insert mode
<radvendii>
clever*
<radvendii>
srhb: I feel like once you allow special keybindings for multiple keys pressed together, you've oppened the floodgates
<clever>
radvendii: the cursor moves 1 to the left when i edit insert mode, and there is no way to get the cursor to the position at the end of a line
<srhb>
radvendii: My vimrc has been static for I think 10 years. No additions or removals. Seems ok. :)
<clever>
exit*
<srhb>
clever: Think of the cursor as having two positions instead, left corner and right corner. :P
sdemos has quit [Ping timeout: 240 seconds]
<srhb>
Now it's always at the end of the line!
<srhb>
:-)
* srhb
ducks
<clever>
lol
hamishma_ has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdemos has joined #nixos
sdemos has quit [Changing host]
sdemos has joined #nixos
rauno has joined #nixos
sm0rux has joined #nixos
patrl has quit [Ping timeout: 256 seconds]
<leary`>
When nix is building the system path, it doesn't seem to uniformly stow the contents of ${program}/share. E.g. I get ${mpv}/share/zsh/site-functions/_mpv but not ${mpv}/share/mpv/subfont.ttf. What's the deal with that?
<zybell>
jtojnar:ok,you caught me. I was cheating. The /run link must be maintained at boot. Therefore exists an additional package. That package depends on all path packages and restores the /run link at boot time. To not make every point package depend on it the path (and its restore script) is spirited away in its own package. For symmetry the boot package can be constructed like a point package for a restore contract, and the contract package for
<zybell>
that would be a dependency of every path package. With some creative scripting the boot script could then install a *subset* of currently installed plugins in user profiles.
<{^_^}>
→ bfb3232a by @romildo: theme-obsidian2: init at 2.5
<{^_^}>
→ 34497806 by @xeji: Merge pull request #39939 from romildo/upd.obsidian-2
jrolfs_ has quit [Ping timeout: 260 seconds]
sir_guy_carleton has joined #nixos
<ij>
yorick, what's nixops copy?
doyougnu has quit [Ping timeout: 240 seconds]
joehh has quit [Ping timeout: 260 seconds]
<stammon>
hi there. I'm trying to build a homemanager configuration, where i have a main configuration, which sets the machinename (and other things) and then imports other configuration and passes the machine name to those imported config files. A very simplified version of what I want to do looks like this: https://pastebin.com/0BKyJLgF . I tried a lot and always get errors, as I have not fully understood how mkOption and the config variable in nixexpressions work.
<stammon>
Can someone have a look at it?
<jtojnar>
zybell: still getting lost in this
<jtojnar>
but at least this should be possible to implement
<ajmccluskey>
I was about to embark on a hard disk upgrade in my NixOS laptop. I've previously used `dd` to clone drives and then expanded partitions and LVM stuff with success, but are there any caveats for NixOS?
<srhb>
ajmccluskey: I don't think so. As long as all the identifiers used to mount the various partitions stay the same.
<stammon>
srhb: Right now it's Module `/home/timon/experimentdir/configuration.nix' has an unsupported attribute `host'. This is caused by assignments to the top-level attributes `config' or `options'
<ajmccluskey>
srhb: cool, thanks. I was thinking I might need to regenerate hardware-configuration.nix from an install USB if the UUIDs change.
<ajmccluskey>
But I'll deal with that if it comes up. I guess the UUIDs for the volumes will be the same if I clone?
<stammon>
But I've fighted with so many other errors and I am not even sure whether I'm on the right way
<srhb>
ajmccluskey: I think so.
NightTra1n has joined #nixos
blankhart has quit [Ping timeout: 256 seconds]
<srhb>
stammon: Okay, perhaps it will help with a minimal example
<Myrl-saki>
ssh_exchange_identification: read: Connection reset by peer
<Myrl-saki>
could not connect to ‘root@54.179.190.54’, retrying in 1 seconds...
<zybell>
Xal echo?
<Myrl-saki>
`nixops destroy` works though, FWIW.
<zybell>
(echo yes;echo IAccept;...)|install
<Xal>
it's got one of those silly probably-not-legal eulas
<Myrl-saki>
clever: Also, the machine itself gets deployed.
<clever>
Myrl-saki: is the keypair setup in the deployment file?
<clever>
Myrl-saki: resources.ec2KeyPairs.edgekey = { inherit region accessKeyId; }; or similar
<Myrl-saki>
clever: Yes.
<clever>
it should just work then
<clever>
check the console output on the ec2 instance, nixops has a cmd for that
Mateon3 has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<stammon>
srhb: I finally found my error. Thanks for pointing out my mistakes. My actual error which I had caused all my headache was not present in the minimal example.
<srhb>
stammon: Oh, typical. :) Great that you found it.
<stammon>
I made the imports statement dependant of the variable I was passing around
<srhb>
Fun!
daveo has quit [Ping timeout: 256 seconds]
<srhb>
Infinite recursion is tricky business.
<stammon>
yes I got that infinite recursion error and was thinking that I have something wrong with mkOption
<stammon>
thats why I tried to change it in so many ways
<stammon>
but the error was never there
<Myrl-saki>
clever: No output.
<stammon>
also I accidentaly built once my minimal homemanager configuration, which essentially deleted all the installed programs
<Myrl-saki>
clever: "(not available")
<Myrl-saki>
...I don't know how brackets work, do I.
<stammon>
can you explain me how exactly that infinite recursion happens?
<stammon>
or point me to some ressource which explains how imports, options and config variables work
<clever>
stammon: the value of pkgs passed to your module comes from config._module.args.pkgs
<Myrl-saki>
clever: I think I found what happenned.
<Myrl-saki>
You need to ensure that your EC2 security groups are set up to allow (at the very least) SSH traffic from your network. By default, NixOps uses the security group default. You can set the option deployment.ec2.securityGroups to use other security groups:
<clever>
stammon: and nixos cant compute where _module.args comes from, until it has evaluated all of the imports
<clever>
stammon: so imports can never refer to pkgs