xkapastel has quit [Quit: Connection closed for inactivity]
<daddy_james[m]>
```https://nixos.org/nixos/manual/options.html#opt-boot.loader.grub.extraInitrd``` mentions using an initrd image to save luks keys. I have an encrypted /boot and I'm trying to remove the second password prompt after booting into nixos. How could I create a custom initrd which contains a luks key? I already have the key, I just need to store it in an initrd image so I can use
<samueldr>
I never noticed that, being a trusted user, so I went source-diving
<pmwhite>
I assume its to prevent GC'ing things that are being used by running processes.
<samueldr>
exactly
<energizer>
`nix-copy-closure --to host /nix/store/.../bin/foo` then i ssh to host and /nix/store/.../bin/foo isn't in the store. does that make sense?
digitalgrease has joined #nixos
jbetz has joined #nixos
<energizer>
haha it fails silently, -vvv shows the error
<{^_^}>
[nixpkgs] @purcell opened pull request #94919 → asdf: don't restrict to linux, since darwin works too → https://git.io/JJXa5
pingveno has joined #nixos
angerman has joined #nixos
higherorder has joined #nixos
pr06lefs has quit [Ping timeout: 260 seconds]
parsnip has joined #nixos
parsnip is now known as Guest75538
realisation has joined #nixos
user_0x58 has joined #nixos
<energizer>
or maybe -vv caused the error. who knows :)
lordcirth_ has joined #nixos
<pmwhite>
Is there an easy way to only show GC roots that aren't children of other roots? Or is that already true for all the roots? I could make a script to walk backward for each root, but that sounds little complicated.
fnlaai has joined #nixos
<fnlaai>
hi there, urgent
<fnlaai>
anyone know how to upgrade discord ?
lordcirth has quit [Ping timeout: 244 seconds]
<fnlaai>
it's ask for upgrade v0.0.11 while nixpkgs only v0.0.10
<DigitalKiwi>
03:24 samueldr: DigitalKiwi: think of other people and offer to them, <-- yeah if anyone wants to volunteer/request i am planning on making at least 144...
<DigitalKiwi>
samueldr: i used vinyl transfer move them onto matte transparency film
<DigitalKiwi>
kind of yellow (the first ones i did were brighter dunno what i did wrong with these)
<Graypup_>
DigitalKiwi, i definitely want a trans nixos sticker but I live in Canada :/
<DigitalKiwi>
i'm in the us so it's only one border
<Graypup_>
ah cool! I keep (incorrectly) casually assuming most of the nix folks are in Europe
<DigitalKiwi>
i'm trying to figure out the logistics of this and not go bankrupt on shipping or go crazy doing addresses lol but i'm just giving a bunch away because why not
<DigitalKiwi>
so if you know anyone who wants sticker or a few or you think deserves one (i got the idea because jonringer always tests and merges my PRs and then i was like there are a ton of people that help out too so)
bqv has joined #nixos
<DigitalKiwi>
i have a stack of stencils for 144 of them and now gotta figure out what colors to make...
<DigitalKiwi>
if anyone would prefer a haskell one i'll be doing a few batches of those too eventually
realisation has joined #nixos
<Graypup_>
is there a printf equivalent function in nix?
<Graypup_>
I can just concat my stuff together, it's not too bad, but I was just wondering
<DigitalKiwi>
ryantm: or if you want i could make just yellow ones
<DigitalKiwi>
or yellow and something else
<DigitalKiwi>
i need to write down what people want >.>
griff_ has quit [Quit: griff_]
bqv has quit [Quit: WeeChat 2.9]
realisation has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
maybe make a spreadsheet but then it feels like work
<Graypup_>
is it possible to get the position of a function?
<Graypup_>
evidently the nix repl can do it, but getAttrPos only works on sets, right?
<energizer>
there's some unsafe thing you see in here occasionally
<Graypup_>
unsafeGetAttrPos is *usually* the answer, but I want a thing specifically for functions
<Graypup_>
> f: "2"
<{^_^}>
<LAMBDA>
<Graypup_>
interesting that this thing has a different print format than the nix repl
<energizer>
lib.debug has some formats
kraeXen has joined #nixos
<Graypup_>
ooh
<Graypup_>
nope
<Graypup_>
doesn't have anything like that
<Graypup_>
going to implement it with unsafeGetAttrPos for now until I go post it and some angel more versed in nix internals points out the right function lol
<{^_^}>
[nixpkgs] @ehmry pushed commit from @prusnak to master « electrum: 3.3.8 -> 4.0.2 »: https://git.io/JJXXR
tsruser2 has joined #nixos
tsruser has quit [Ping timeout: 240 seconds]
xO1 has joined #nixos
<energizer>
`nix-store --realise /nix/store/3fl8c1gpwp1jh5al9n6xyjk7412xs5zq-lndir-1.0.3/bin/lndir` -> /nix/store/3fl8c1gpwp1jh5al9n6xyjk7412xs5zq-lndir-1.0.3 but that dir is empty
<{^_^}>
[nixpkgs] @vcunat merged pull request #94704 → gperftools: fix dlopen() of gperftools on AArch64 → https://git.io/JJ6Uo
<Graypup_>
aha I got it, just had the wrong gcc path, needed to give it the one in the nix store
domogled has joined #nixos
<Graypup_>
pax-12, looking at it
<Graypup_>
so it appears that the overlays going in is indeed ending up not being a list when the ++ operator is applied, which is obviously bad
<srhb>
Yes, ~/.config/nixpkgs/overlays.nix is supposed to be the list, not a set of `nixpkgs.overlays = thelist`
wallacer3 has quit [Ping timeout: 260 seconds]
<Graypup_>
that would do it!
<srhb>
pax-12: So just get rid of the ste and nixpkgs.overlays = -- the rest looks correct.
<pax-12>
srhb, what part is the ste?
<srhb>
pax-12: The what, sorry?
h0m1 has quit [Quit: WeeChat 2.9]
<Graypup_>
welp time to go try to write a nix plugin because my desire to do rust ffi greatly outweighs my desire to write any C++ to fix https://github.com/NixOS/nix/issues/3904
<{^_^}>
nix#3904 (by lf-, 2 days ago, open): Feature: add `:doc` command to nix repl
<pax-12>
srhb, you said I have to get rid of the ste, what is that?
<Graypup_>
*set
<srhb>
Graypup_: oh, nice :)
<srhb>
pax-12: Sorry, I type so poorly these days :/
<srhb>
pax-12: But yes, set*
wallacer3 has joined #nixos
h0m1 has joined #nixos
<srhb>
pax-12: The entire file should look like [ (self: super: { ... }) (self: super: { ... } ) ] etc.
pax-12 has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<srhb>
asbachb: Usually points at the wrong loader or interpreter: patchelf --print-interpreter $yourexecutable
<{^_^}>
[nixpkgs] @Mic92 opened pull request #94925 → nixos/ec2: remove dependency on NIX_PATH → https://git.io/JJXQ6
sputny has quit [Quit: sputny]
<asbachb>
srhb: Ah I guss I got the problem. In order to run it within NixOs I'd need to rcompile it or wrap that executable?
adieu has joined #nixos
adieu has quit [Remote host closed the connection]
realisation has joined #nixos
griff_ has joined #nixos
<{^_^}>
[nixpkgs] @jakobrs opened pull request #94926 → Explicitly require Polkit in the libvirtd module in the form of an assertion → https://git.io/JJXQx
xO1 has quit [Quit: leaving]
realisation has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
<srhb>
asbachb: It depends. You may be able to patch all the require paths :)
<MichaelRaskin>
I believe some Debian packages have «hanging» references — references to very weak (listed but not pulled) dependencies that lead nowhere on a typical system
<__dan>
enabling vvulkan was a bit of a adventure
<__dan>
who whould have tough enable opengl does that too
<MichaelRaskin>
Nix basically sacrifices space for ease of giving guarantees 100 times out of 100
<__dan>
thats cool yes
stephaneyfx has quit [Quit: Leaving]
invokesus has joined #nixos
<MichaelRaskin>
Basically that means you should plan for double space use of your installed packages, because a glibc bump means you need both old (for rollback) and new builds of _everything_ installed
<__dan>
if ill need help to configure my cutom kernel is this a good place ? Basically I only need it to be buit with BTF type info
<srhb>
Yeah, this is a good place. Traffic varies though, so whether help is readily available depends on the hour
<srhb>
There's also the discourse, and the issue tracker on github
<MichaelRaskin>
BTF type info can be enabled via a KConfig parameter, right?
<__dan>
yes
<__dan>
its needed by newish EBPF tools
<MichaelRaskin>
Re: Vulkan — well, it kind of is guessable if you look up _what_ implements Vulkan (Mesa), and what is Mesa _most_ known for
<MichaelRaskin>
But yeah, such things take experience
<srhb>
__dan: We may to soon want to enable that by default then..
<__dan>
issue with old tools, they used clang to parse kernel header for type info
<tobiasBora>
Hello, I'd like to pin the nixOs channel in my configuration.nix in order to be able to version control my system completely (right now I'm having an issue where I suspect that the channel commit makes a difference). However, if I read that [1], it seems to be not trivial to do. I can see basically 2 approches: 1) use a script to rebuild that uses -I option 2) use flakes. The script sounds a bit
<__dan>
so you can guess the pain if headers out of sync with kernel
<tobiasBora>
strange to me (I guess it does not integrate nicely with nix-build/nix-shell as I'll need to always add the -I), and I never used flakes and I don't know if it solves the issues of 1), and if it's stable enough. Any idea?
<srhb>
tobiasbora: It is a weak coupling, but controllable
<__dan>
oh thank you MichaelRaskin
<energizer>
i have a wrapProgram in postBuild. what do i need so i dont get "/work/tmp/nix-build-git.drv-0/.attr-0: line 5: wrapProgram: command not found" ?
<__dan>
shouldnt changing the config for hardware.pulseaudio.enable to true from false cause a systemd unit reload so the demon can atually be started without a reboot ? Whats the policy on this ?
zupo_ has quit [Remote host closed the connection]
<tobiasBora>
(I managed to make it work with "nix eval --raw", but I'm curious to know the syntax with nix-build
<{^_^}>
[nixpkgs] @GuillaumeDesforges opened pull request #94930 → Add KLU support to sundials → https://git.io/JJXFn
pr06lefs has joined #nixos
malook has quit [Quit: malook]
<ilya-fedin>
How to run mutter in nested mode on NixOS? It says me `(mutter:7685): mutter-ERROR **: 13:25:59.097: Could not find cursor. Perhaps set XCURSOR_PATH?` and immediately crashes
<immae>
tobiasbora: you should try with fetchurl instead of builtins.fetchTarball
zupo has joined #nixos
<immae>
(if you absolutely want to use nix-build)
<immae>
The result should be a derivation, and builtins.fetchTarball result is a path, not a derivation
karantan has joined #nixos
sangoma has joined #nixos
mounty has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
mokasin has joined #nixos
<mokasin>
If I try to run `nixos-rebuild switch` I get `/nix/store/j8vysakw78bpgngba32hfwwikqda9yx2-bash-4.4-p23/bin/bash: symbol lookup error: /nix/store/bqbg6hb2jsl3kvf6jgmgfdqy06fpjrrn-glibc-2.30/lib/libpthread.so.0: undefined symbol: __nanosleep_nocancel, version GLIBC_PRIVATE`. Happened sometime three weeks ago after an update on the unstable channel. Can this be repaired?
<mokasin>
Somehow nixos-reubuild uses a broken version of bash, while `/run/current-system/sw/bin/bash` points to a working version. Not sure, how this happend or how to fix this
<{^_^}>
[nixpkgs] @NinjaTrappeur pushed 2 commits to master: https://git.io/JJXNl
<siraben>
How do I delete all user packages in NixOS?
<siraben>
not sure if nix-env -e '*' will do the right thing.
karetsu has joined #nixos
<Graypup_>
that's a good guess, it might also erase nix itself though
<siraben>
Right. There was something like nix-env -iE '*' or something
<cab404[m]>
`nix-env -q | xargs nix-env -e`?
<siraben>
cab404: Ah that works, thanks!
pr06lefs has quit [Ping timeout: 256 seconds]
<cab404[m]>
I packaged several things with flakes, and after trying throwing those at people it got me wonderint: will flakes have any cache suggestion mechanism?
<karetsu>
how do I find the conditions that mark a package as 'broken' under haskellPackages despite all of the dependencies and the thing itself having 0 issues compiling with the default ghc?
<karetsu>
(with all the same version numbers as using nix to manage it)
<cab404[m]>
karetsu: git blame, and then if everything is OK, PR unbreakage
<qyliss>
karetsu: is it marked as broken in configuration-hackage2nix.yaml?
<qyliss>
if so, try removing it
<qyliss>
if it builds, make a removal PR, targetting the haskell-updates branch
<qyliss>
things have a tendency to get added to the broken-packages section of configuration-hackage2nix.yaml, and then never get removed again, even if they get fixed.
<karetsu>
where would I find configuration-hackage2nix.yaml?
<qyliss>
in nixpkgs
<karetsu>
its marked in haskell-modules/hackage-packages.nix
<qyliss>
The documentation for this could be a lot better
<qyliss>
The haskell workflow is very much unlike anything else in Nixpkgs, because usually you would regenerate the files and stuff, but for haskell the haskellPackages maintainer (peti) does it for you.
<qyliss>
(I think)
mokasin has quit [Quit: Leaving]
<karetsu>
interestingly, the nix derivation tries to build things that cabal doesn't so I'll just leave it to the people that know what they're doing
<karetsu>
and its one of those things which is broken
<qyliss>
as long as it builds successfully, it shouldn't be marked as broken
pr06lefs has joined #nixos
<qyliss>
oh, I see
<qyliss>
that's unfortunate
<karetsu>
ah well, I have a billion other pet projects I can get on with :)
<yorick>
is anyone here a gcc wizard?
<yorick>
I'm trying to build a binary with statically linked libc, that can still be loaded by /usr/lib/ld-linux.so.3
<yorick>
I suspect leah2
tsruser2 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « kmetronome: init at 1.0.1 »: https://git.io/JJXxJ
<cab404[m]>
yourck: maybe just musl it, if it's small?
<qyliss>
again, I'm sure there's a better way, but I just poke around in sysfs
realisation has joined #nixos
<Graypup_>
anyone know how to just print out a string in the nix repl?
<qyliss>
you will be learning that I am not a great person for software recommendations :P
<qyliss>
Graypup_: :p ?
<siraben>
Alright
<Graypup_>
otherwise I *am* going to just printf it in the nix function and so *be* it
<siraben>
Thanks for the help, qyliss
<qyliss>
siraben: people in #sway might have suggestions.
<qyliss>
Graypup_: ah I should have looked at the image first
<Graypup_>
qyliss, I made my tool, nix-doc into a nix plugin that can dump the documentation for any nix lambda
meh` has joined #nixos
<Graypup_>
which, holy crap this is really cool
<pmwhite>
I'm trying to run "nix-build --substituters ssh://me@machine" to reuse the nix-store of a machine on my LAN. However, it says "ignoring untrusted substituter ssh://me@machine". What can I do to trust the user?
<Graypup_>
but I need to actually print out the string for it to be any good lol
<{^_^}>
[nixpkgs] @teto closed pull request #89767 → lua.pkgs.pulseaudio: Move from generated to lua-packages.nix → https://git.io/JfMxw
<{^_^}>
[nixpkgs] @teto pushed commit from @doronbehar to master « luaPackages.pulseaudio: remove (#94939) »: https://git.io/JJ1UB
tlaxkit has joined #nixos
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
Rajasun has joined #nixos
<inquisitiv3>
Is the `?` symbol overloaded in Nix? The difference between setting a default value for an attribute in a set; and checking if a set has a value seems like different things. But maybe it's the same thing in an abstract way?
<centi[m]>
Hmm I clearly have some reading to do, a simple snippet of `test.c` didn't work for compilation in clang with NixOS: it can't find stdio.h, but at least I managed to successfully installed NixOS
<siraben>
qyliss: it works!
<symphorien>
centi[m]: note that to compile with clang you must use clangStdenv
<symphorien>
the normal stdenv only works with the gcc it provides
<symphorien>
and unfortunately, nix-shell -p implicitely uses the normal stdenv
<qyliss>
siraben: :D
<centi[m]>
Oooh
<symphorien>
so you have to write a real shell.nix with `clangStdenv.mkDerivation ...`
<centi[m]>
Is there a link to documentation covering this?
<centi[m]>
Gotta admit, it a bit confusing and little overwhelming amount of information on trying to figure out custom-sandbox-shell to maintain some of the workflow I have from Arch Linux
<centi[m]>
Well, mostly trying to maintain some level of resemblance to simply running `clang test.c` to get the expected `a.out` without having to write nix package build script just for building simple c/c++ application
meh` has quit [Ping timeout: 240 seconds]
<symphorien>
you have to write a shell.nix and use nix-shell
<symphorien>
you can copy it around once you have it, because they all look alike
<philipp[m]>
Ooooh! I think I just solved my problem. The switch gets confused by the different mac.
<symphorien>
if you get tired of forgetting entering the nix-shell of each project, have a look at lorri
<centi[m]>
I plan on creating a few desktop files to make it easier to run various editors in it's own shell
<centi[m]>
And looking at the doc for nix-shell now
<GuillaumeChrel[m>
I hacked package (mblaze) to fix something. I made a pull request to master only. Should I also do a PR to nixos-20.03 and unstable?
<qyliss>
GuillaumeChrel[m: you never make pull requests to unstable. It's just the last version of master that passed some tests.
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/JJ1YX
<qyliss>
GuillaumeChrel[m: as for 20.03, let the PR to master be reviewed first, and if it's merged, then you can open a backport PR if it's appropriate
<qyliss>
(If it's just fixing something that was broken before, it's probably appropriate)
<{^_^}>
[nixpkgs] @costrouc opened pull request #94947 → iruby: init at 0.3.0 → https://git.io/JJ1OC
stephaneyfx has joined #nixos
<typetetris>
I am reading into the poetry2nix stuff. As it relies on the poetry.lock file, I guess it will create nix expressions for all dependencies and two different `mkPoetryApplication` from different apps will create two separate dependencies trees, not sharing any of the dependencies?
turlando has joined #nixos
sangoma has quit [Ping timeout: 265 seconds]
realisation has joined #nixos
turlando has quit [Ping timeout: 256 seconds]
cole-h has joined #nixos
noudle has quit []
malook has quit [Ping timeout: 240 seconds]
pfr has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @costrouc opened pull request #94948 → python3Packages.nix-kernel: init at 0.1 → https://git.io/JJ1O7
drakonis has joined #nixos
domogled has quit [Ping timeout: 256 seconds]
pr06lefs has joined #nixos
<fionera>
can I import nixpkgs master as overlay? So my nixos builds from 20.03 and only uses unknown packages from master?
<fionera>
so when I have an overlay and do this `fuzzel = unstable.fuzzel;` it should work?
<higherorder>
Hi! I am trying to write a ruby script, starting it like so" `#!${pkgs.ruby}`. However, getting `bash: /run/current-system/sw/bin/helloWorld: /nix/store/sjhav3sln8cd8bwzzjx1whqjk6c3cb5r-ruby-2.6.6: bad interpreter: Permission denied` (on NixOS). Any idea why this might be?
__monty__ has joined #nixos
<immae>
higherorder: you might want to try #!${pkgs.ruby}/bin/ruby instead
<higherorder>
immae: ah! silly me; that worked :) thanks!
<higherorder>
immae: I've got another follow-up question if you don't mind (learning Nix, sorry 😬). I am trying to spin up a basic systemd service (a simple http server in ruby), like so:
<emily>
I mean you should only need to build from source if there is some problem with the package on hydra or you modified things...
<emily>
(ok, or the things that are explicitly marked not to build I guess)
<emily>
personally I have to build my own kernel but only a handful of other packages I got from overlays or tweaked
<diogenes_>
emily, i hope at least firefox and libre office are pre-built.
<emily>
of course
<bqv>
or hydra just doesn't build what you want, which i've seen for a few packages i want
<emily>
pretty much everything you would expect to be packaged on a normal distro is built on hydra
<bqv>
see: webkitgtk, graalvm8
<__monty__>
How do I set a default for a new config value? I'm not defining a module but a package.
<diogenes_>
thanks emily
<emily>
diogenes_: NixOS has the flexibility of a source distro so theoretically you can need to built unbounded amounts of stuff in your config
<emily>
but you probably won't run into that much unless you really go off into the weeds
<emily>
it's fundamentally a source distro model, but the vast majority of stuff in nixpkgs is at least attempted to build on hydra and served via the cache
<emily>
can anyone comment on the current state of Nix on macOS these days? is Big Sur going to make things better, worse, or the same? can you properly have an encrypted-with-your-FileVault-password `/nix` on an encrypted `/` yet (I remember there being some options but them only mounting after login or something)?
<Ke>
though if you pull one straw from the base, it's full rebuild time
<emily>
right
sangoma has joined #nixos
<emily>
if you want to do "gentoo stuff" like changing global cflags you gotta pay the gentoo price :p
<diogenes_>
i'm gonna have to read a great deal of docs, so it's a bit similar to gentoo.
<emily>
it does get annoying when you want to tweak something in a package that has some convoluted connection to stdenv bootstrap
<__monty__>
emily: Afaik the darwin situation hasn't changed much.
sangoma has quit [Read error: Connection reset by peer]
AmandaC has quit [Quit: Toodles]
<__monty__>
diogenes_: You can search for binaries in a PM with {^_^} ",locate bin vim"
<diogenes_>
,locate bin vim
<{^_^}>
Found in packages: vim, vimHugeX
<diogenes_>
__monty__, thanks that's useful.
<__monty__>
diogenes_: Actually, if what you want is to make sure they're *cached* that won't help : s
<emily>
__monty__: changed much since when, though? I'm not really clear on what the current state has been since I never really looked in depth, only that things were bad
malook has quit [Quit: malook]
malook has joined #nixos
Cale has joined #nixos
<{^_^}>
[nixpkgs] @ymarkus opened pull request #94955 → zfs-prune-snapshots: init at 1.1.0 → https://git.io/JJ1Zp
<__monty__>
emily: Hasn't changed much from what you described. I *think* the installer was patched to work as smooth as possible but it's not a great situation.
malook has quit [Ping timeout: 246 seconds]
malook1 is now known as malook
<__monty__>
symphorien[m]: So it doesn't require any definition like modules' mkOption?
<emily>
energizer: right. do you know if 4.3.2.3 means hardcoding the /nix encryption password in the clear on the encrypted FileVault root, or completely in the clear on the disk?
<emily>
the former seems like an acceptable tradeoff given that /nix is world-readable anyway; the latter not so much
pr06lefs has quit [Ping timeout: 244 seconds]
<energizer>
emily: i dont know nuthin
<emily>
hehe
nerdypepper has quit [Ping timeout: 260 seconds]
nerdypepper has joined #nixos
malook has quit [Quit: malook]
<symphorien[m]>
monty well I'm not completely sure what you want, but, no packages don't use the module system, so no options
<symphorien[m]>
if you want the package with a different build flag, use `bar.override {fooSupport = false;}`
<__monty__>
symphorien[m]: infinisil told me to use a configuration option instead. Because it's easier to use with nix-env. `config.bar.fooSupport` as it were.
urkk has quit [Quit: leaving]
<symphorien[m]>
ah, I've seldom seen this
<symphorien[m]>
let fooSupport = config.bar.fooSupport ? defaultValue;
<__monty__>
And the default value if the configuration option isn't defined is null which is interpreted as false?
<symphorien[m]>
no, ? is a nix operator
<symphorien[m]>
`a.b ? c` equals `a.b` if the attrset a has an attr b and `c` else
<symphorien[m]>
no null involved
<symphorien[m]>
just `a.b` will error out if a has no attr b
<__monty__>
symphorien[m]: I mean if I drop the ? default.
<__monty__>
I was already doing `{ ..., bar ? config.foo.bar }: blah`, and it doesn't error out. Just trying to understand why.
<symphorien[m]>
what does not error out
<__monty__>
config.foo.bar isn't defined at all. But it's still behaving as if it's defined as false.
pr06lefs has joined #nixos
<symphorien[m]>
can you paste the actual package definition ?
<symphorien[m]>
oh by the way: it's not `config.foo ? default`, it's `config.foo or default`
<symphorien[m]>
`config.foo ? default` tests if config.foo has a default member iirc
<symphorien[m]>
I misremembered
<{^_^}>
[nixpkgs] @elliottvillars opened pull request #94956 → python3.8-hdlparse: Init at 1.0.4 → https://git.io/JJ1cF
<__monty__>
symphorien[m]: With override approach my package has an argument `{ stdenv, etc., acceptLicense ? false }: blah`, I'm trying to switch to a config option and all I did is `{ stdenv, etc., config, acceptLicense ? config.mypackage.acceptLicense }: blah`.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sangoma has quit [Quit: WeeChat 2.9]
<symphorien[m]>
__monty__: if I try to build `with import <nixpkgs> {}; callPackage ({ stdenv, config, acceptLicense ? config.mypackage.acceptLicense }: builtins.trace "${toString acceptLicense}" stdenv) {}` I get an error: `error: attribute 'mypackage' missing, at /tmp/foo.nix:1:74`
<symphorien[m]>
do you actually use acceptLicence ? If you don't, no error since nix is lazy
<{^_^}>
[nixpkgs] @Mic92 pushed 9 commits to release-20.03: https://git.io/JJ1Cy
<higherorder>
In NixOS, should I use `nix-env -iA ...` to install a package, or add it to my `/etc/nixos/configuration.nix`? Or are both acceptable depending on when?
<symphorien[m]>
they both work, but I would advise you to avoid nix-env
<higherorder>
symphorien[m]: is the trade-off that `configuration.nix` is declarative, whereas nix-env kinda just mutates the system's state? Or is there another trade-off?
<symphorien[m]>
there is also the fact that nix-env is full of traps
<symphorien[m]>
like: if you install jdk8, and then run nix-env -u, it will update to jdk10, and there is no way to avoid that
<higherorder>
I see. So I should be able to live on NixOS without ever invoking `nix-env`?
<symphorien[m]>
yes.
invokesu` has quit [Read error: Connection reset by peer]
<higherorder>
Ok; thanks!
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<bqv>
speaking as someone who just accidentally nuked my nix store and had to completely reconstruct it from config, nix-env has some pretty big-ass downsides
invokesu` has joined #nixos
<__monty__>
,declarative higherorder
<{^_^}>
higherorder: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env; 2) buildEnv, providing more control over the paths that are linked into the profile; 3) home-manager, providing nixos-like config for your ~. https://git.io/fp0aU contains a comparison of the three methods and a sample expression for option 2.
<__monty__>
higherorder: This kinda shows the differences.
<__monty__>
(Didn't remember it doesn't specify configuration.nix as an option though.)
<higherorder>
{^_^}: what would you recommend for someone who's just learning NixOS and wants as few layers as possible? So far I have only been working direclty in `configuration.nix`
<symphorien[m]>
higherorder: {^_^} is a bot.
<symphorien[m]>
configuration.nix alone is fine
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<symphorien[m]>
home-manager is very handy, but not required
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
<higherorder>
symphorien[m]: ah; lol
<higherorder>
Ok, I'll stick to configuration.nix for now then
bogdb has quit [Remote host closed the connection]
<__monty__>
Hmm, I was wrong about the undefined config attribute not mattering. infinisil, halp!
kenran has quit [Quit: leaving]
malook has quit [Quit: malook]
diogenes_ has quit [Quit: vergissmeinnicht]
kalbasit has joined #nixos
wnklmnn has quit [Read error: Connection reset by peer]
wnklmnn has joined #nixos
realisation has quit [Ping timeout: 240 seconds]
realisation has joined #nixos
<afreakk>
when i run nix-channel --update now, i get "8e2b14aceb1" instead of "b50ef9afa11" (which is the newest), is there a reason for that ?
<afreakk>
also for some reason, it wants to build "'/nix/store/zfkmmxxvmav751vay3c939ndbhy2xil4-qtwebkit-5.212-alpha-01-26-2018.drv'" when i run nixos-rebuild --switch, which takes forever and fails :/
<higherorder>
in the configuration of a systemd service, e.g. `systemd.services.helloWorld = { ..., serviceConfig = { ... } }` it seems like the keys in serviceConfig have to be capitalised, but not the keys in the parent map?
<centi[m]>
Thank you for helping me on this, though I have largely reconsidered NixOS. I don't think it's there yet for developer-friendly environment, I hope it might change someday with NixOS. I really like what it have to offers other than developer-purpose.
<kini>
Design question: I'd like to modify the NixOS option `fileSystems.<name?>.encrypted` to allow for multiple encrypted backing devices for a single filesystem.
<kini>
The straightforward way would be to replace it an attribute set `fileSystems.<name?>.encryptedDevs` with keys corresponding multiple values of the old `fileSystems.<name?>.encrypted.label`, but that's not backwards compatible with users' current configurations.
<kini>
How is backwards compatibility usually handled for NixOS options in these cases?
<{^_^}>
[nixpkgs] @elliottvillars opened pull request #94973 → pythonPackages.hdlparse: init at 1.0.4 → https://git.io/JJ1Bv
<energizer>
i dont know what's usual, but backcompat is nice
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
lunik1 has quit [Quit: :x]
shibboleth has quit [Quit: shibboleth]
<dsal>
Is there good magic for running nixos on AWS right now? My previous mechanism doesn't work because the root volume size is too small. It's also a bit unfortunate in that I have to login and rebuild before I can start anyway.
lunik1 has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<Graypup_>
uhhhhh wat
<Graypup_>
if I `nix-shell -p nix pkg-config boost` I can find nix headers with pkg-config
<Graypup_>
if I nix-shell with my rust project that has the same as nativeBuildInputs then it fails