<jackdk>
kvda: what is your ultimate objective? You may not need to fiddle with channels to do that.
<kvda>
so i've created a new package (AWS session manager, not in any of the channels currently) .. now I want to test it with my project where i need it, before opening a PR
<kvda>
nix-build -A awscli-session-manager is building ok, I want to test if the bin is avaiable for awscli to use etc
<kvda>
session manager being a plugin for awscli which is available in nixpkgs
<johann_>
I just wanted to say hi! I am a completely fresh nixos user and currently fiddling with the base configuraton
<johann_>
but i love it so far
<kvda>
johann_ it's pretty neat, people here are very helpful too, welcome
<jackdk>
kvda: how is the "project where I need it" set up? is it nixified itself? A lot of haskell projects, for example, have a default.nix that takes nixpkgs as an argument, so you can `nix-shell --arg nixpkgs 'import /path/to/local/nixpkgs {}'`
<kvda>
ah so the project use nix-shell which just provides core packages (node, ruby, awscli)
notgne2 has joined #nixos
<kvda>
i think this will work how i have it setup, will try now
<jackdk>
kvda: is this project open-source? can you share the shell.nix?
<johann_>
I think i will have to dive deeper into nix expressions :-)
<johann_>
Currently I am running most of my tools in docker containers
oida has quit [Quit: byez]
<dashkal>
Is it possible to, at the command-line/bash, make queries of my /etc/nixos/configuration.nix? I'd like to be able to check if a key is true or false in a shell script. (Context: switching what I execute based on bumbleebee being on or off)
<ThatGuy>
hi all, general question about nix, if I create a build derivation that is say gcc8 in a nix shell, should not any deps that I pull in also be required to be using gcc8?
<ThatGuy>
i'm asking since i am in fact not getting deps with gcc8, but a different gcc version.
jluttine has quit [Ping timeout: 272 seconds]
erictapen has joined #nixos
Baughn has quit [Read error: Connection reset by peer]
Rusty1 has quit [Remote host closed the connection]
astk has joined #nixos
<astk>
what does it mean that the default.nix is "called without required argument _"
<ThatGuy>
looks like i can override the stdenv with proper compiler, but i kind of expected the lib to either do it automatically or blow up :/
<ThatGuy>
astk: probably have an argument to function that is not defined/in scope
<ThatGuy>
maybe?
<dashkal>
Hrm, anything lower level than nixos-option? The docs for that don't reveal what it's passing to nix-instantiate to get the option stuff, and I'm getting nowhere with nix eval.
<astk>
it builds with cabal ok...
<dashkal>
nixos-option coughs up a lot of extra information I'd have to parse. Hoping to cut the output down to a simple true/false.
<clever>
dashkal: if you add that to your nixos config, it will generate a /etc/whatever file, that contains the bool
<clever>
might want to use if though, toString does weird things with bools
<clever>
dashkal: environment.etc.whatever.text = if config.hardware.bumblebee.enable then "bumblee on" else "wheres the bee";
<dashkal>
hrm, if that's the level I need to jump to, it's probably easier to just probe for a GLX visual and switch on that.
kvda has joined #nixos
<dashkal>
I'm hacking around the fact that I can't get a GLX visual for the intel card in this hybrid laptop if I enable bumblebee.
<clever>
dashkal: the reason i say to make a file like this, is state vs config
<dashkal>
The hack will be to just run everything on the nvidia if in that mode.
<astk>
ThatGuy: do you mean in haskell or nix?
<clever>
dashkal: if you edit configuration.nix and dont nixos-rebuild, then querying configuration.nix gives you the wrong answer, and everything breaks
<clever>
dashkal: but if your config generates an answer in /etc, that answer will always match your current state
<ThatGuy>
astk: nix, the first line of default.nix should have parameters for function
<dashkal>
Hence wanting to just ask the system what the value for that key is on the current configuration.
<dashkal>
Not the file itself, but the current active profile
<clever>
dashkal: nixos doesnt keep the configuration.nix around after it builds
<clever>
dashkal: so you need to either look for the side-effects that hardware.bumblebee.enable causes, or just make your own side-effect that is obvious (the above example)
<kvda>
I've done this before with another package but forgot how to do it
<dashkal>
Alright, sad panda, but so be it. I'll just probe for GLX visuals and check that way.
<dashkal>
If I have to parse things, I might as well parse authorative things.
<clever>
dashkal: you could also just make a shell script, that does the right thing, and choose which shell script to install, based on hardware.bumblebee.enable
<clever>
then you have 2 different scripts, that both do basically the same thing, and nixos installs the right one
erictapen has quit [Ping timeout: 265 seconds]
<dashkal>
I don't even begin to know how to do that.
<clever>
dashkal: what command do you need to run when bumblebee is active?
<kvda>
clever do you happen to know how to 'link' a package built in local nixpkgs to a shell.nix file in another project? I've managed to build that package http://dpaste.com/20EKDFW but want to test it before opening a PR
<clever>
kvda: you need to build it with nix-build, thats the only way that another package can then depend on it
<kvda>
clever it is built, in nixpgs git directory
Rusty1 has joined #nixos
<clever>
kvda: then you can just add it to the buildInputs of anything else within that nixpkgs dir, and it should just work like any other package
gkmngrgn has quit [Ping timeout: 265 seconds]
<kvda>
Did try this, as suggested by jackdk, nix-shell --arg nixpkgs 'import /Projects/nixpkgs {}'
<kvda>
clever i need it out be outside of the nixpkgs dir though
<kvda>
essentially i want to use local nixpkgs elsewhere
<dashkal>
clever: optirun xmonad vs xmonad.
CMCDragonkai1 has quit [Read error: Connection reset by peer]
<clever>
dashkal: save that file to /etc/nixos, and add ./module.nix to the imports list, then do a nixos-rebuild switch, and `cat /etc/whatever`
<dashkal>
Gotcha. Much appreciated.
<dashkal>
Once I have one of those, I can wrap specifically what needs to be under optirun and just invoke that.
<dashkal>
I'll need to iterate of course. Thanks again. Unblocked for now :)
<clever>
dashkal: yeah, you could probably just delete the word xmonad from both scripts, then script2 will do nothing, and script1 will prefix it
<dashkal>
More or less what I was going to do. An optimaybe script.
<dashkal>
I'm not even sure invoking xmonad under optirun is transitive. But it wouldn't matter that much if it isn't. I can wrap at whatever level I need to.
<clever>
dashkal: you could also change it to be in systemPackages, one sec...
johann_ has quit [Quit: leaving]
<clever>
dashkal: gist updated, it will now give you a `whatever` command, that is in the default $PATH
<clever>
rename as needed
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvGOo
<dashkal>
Got it. Next up, reading every bit of documentation I can around these bits. I'll climb this learning cliff yet.
* clever
heads off to bed
<kvda>
see you clever, thanks for your help
<kvda>
nix-env -i /nix/store/mrg8mpdb8q00r61xwdnm296h28csa9j6-awscli-session-manager-1.1.54.0 worked
astk has quit [Ping timeout: 260 seconds]
<kvda>
Now the question is how do paths work in Nix
<clever>
kvda: nix-env -i adds it to ~/.nix-profile
<clever>
kvda: youll find it in ~/.nix-profile/bin/
<kvda>
I've also used 'addToSearchPath _PATH $out/bin' in installPhase
<kvda>
oh so it's just my terminal that needs to be restarted for it to become available
<kvda>
All working! thanks again clever and jackdk
<xavierzwirtz[m]>
Is it possible to use the output from sha256sum for a file to refer to that file in nix? Or does it have to be wrapped up in the nix store before you can compute its hash
endformationage has quit [Ping timeout: 240 seconds]
<jackdk>
is there an easy way to overlay single files in a directory? I'm trying to construct a dir that contains an unpacked package from hackage (tarball) plus some updated metadata files that haven't hit all-cabal-hashes yet
<jackdk>
I have tried symlinkJoin but that's no good as my fetchurl to get the updated cabal file isn't a directory
palo1 is now known as palo
zupo has joined #nixos
captn3m0 has joined #nixos
zupo has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karantan has joined #nixos
rsoeldner_ has quit [Ping timeout: 265 seconds]
noudle has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dansho has quit [Remote host closed the connection]
iqubic has joined #nixos
dansho has joined #nixos
Chiliparrot has joined #nixos
civodul has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
Soo_Slow has joined #nixos
<{^_^}>
[nixos-org-configurations] @tilpner opened pull request #99 → delft/eris: drop alerts with severity!='page', ignore stuck channels → https://git.io/JvGC4
m0rphism has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
gxt has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @thefloweringash closed pull request #77103 → makeKernelHeaders: expose via passthru, support kernel 5.3 and newer → https://git.io/JejVQ
v88m has quit [Read error: Connection reset by peer]
lsix has joined #nixos
knupfer has joined #nixos
civodul has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chenhq2005 has quit [Ping timeout: 260 seconds]
four has joined #nixos
Tucky has joined #nixos
Makaveli7 has joined #nixos
<eyJhb>
What is the correct way to nix-shell unstable channel?
<four>
Hello, what is the easiest route to go to be able to install something that's not in nixpkgs? I have a binary right now, is there any way to run this without needing to write a whole nix expression to install it?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
dansho_ has quit [Quit: Leaving]
<tilpner>
four: Try steam-run on it
__monty__ has joined #nixos
v88m has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kleisli has quit [Ping timeout: 268 seconds]
lukash|away is now known as lukash
arjen-jonathan has joined #nixos
karantan has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.7]
<four>
Anyone use yarn2nix before? I keep getting errors with electron not getting installed properly. I'm trying to use it to install an app, since npm and normal yarn don't work i guess.
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ma27[m]>
don't know the details, but IIRC electron has some postInstall magic that isn't run by yarn2nix. And why wouldn't npm/yarn not work?
<manveru>
because it downloads a binary for electron, which needs to be patched
nikivi has joined #nixos
ramses_27 has joined #nixos
<manveru>
take a look at packages depending on electron in nixpkgs, there are some ways around this
karetsu has joined #nixos
<Shoubit>
four, what do you mean by Electron not getting installed properly?
<Shoubit>
As a package.json dependency?
<four>
Yes, first I tried using npm to install and run the app, but I ran into an error regarding run-electron. I then tried using yarn2nix to create a nix expression to build the app, but executing the binary that results immediately crashes, saying electron was not installed properly and to delete node_modules/electron and reinstall.
<Shoubit>
four, during `patchPhase` I would try to remove NPM's dependency on Electron and use a Nix provided Electron if possible.
<Shoubit>
You can run arbitrary shell commands (w/o network access) during these phases and do things like delete lines in a package.json. I _think_ you can just pass in a `prePatch = '' my commands '';` but it may require its own attribute
Soo_Slow has quit [Quit: Soo_Slow]
<Shoubit>
Unfortunately in my experience with yarn2nix your best bet is to just read its source code and look at what attributes it takes in its function argument and what it does to them
<anohigisavay>
but i got this error: The option value `environment.systemPackages.[definition 1-entry 34]' in `/etc/nixos/packages.nix' is not of type `package'.
<srhb>
anohigisavay: Usually that's missing parantheses. What did you actually type into systemPackages?
chenhq2005 has quit [Ping timeout: 260 seconds]
<anohigisavay>
let me put it on a pastebin
<infinisil>
anohigisavay: (Spaces are list separators)
<bahamas>
hello. I've added a package to nixpkgs with an override in `config`. but that package is not available in python37.withPackages. is there a difference between python37Packages and python37.withPackages?
four has quit [Quit: WeeChat 2.7]
hyper_ch2 has quit [Remote host closed the connection]
<anohigisavay>
srhb: infinisil packageOverrides seems to work. but i
sigmundv has joined #nixos
<anohigisavay>
though i haven't finished rebuild with packageOverrides, and i'm not sure what's a better approach
<infinisil>
anohigisavay: i guess you don't have a space there, but
hyper_ch2 has joined #nixos
<infinisil>
> :p [ python3.withPackages(p: []) ]
<{^_^}>
[ <LAMBDA> <LAMBDA> ]
<infinisil>
anohigisavay: This is two list elements
<anohigisavay>
infinisil: wow!
<anohigisavay>
infinisil: _(:з」∠)_
<anohigisavay>
at first i didn't get why there's an extra pair of parentheses_(:з」∠)_
<anohigisavay>
thank you infinisil and srhb
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karantan has joined #nixos
zupo has joined #nixos
<bahamas>
I have this setup: https://bpaste.net/BPWA. if I just use `bull` instead of `pkgs."${pyVersion}Packages".bull`, nix complains that bull is undefined. why?
Makaveli7 has quit [Ping timeout: 265 seconds]
plutes has quit [Remote host closed the connection]
plutes has joined #nixos
aveltras has joined #nixos
Sigma has joined #nixos
arjen-jonathan has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @mmahut opened pull request #79217 → dat: move from all-packages to aliases → https://git.io/JvGR4
<{^_^}>
[nixos-hardware] @Mic92 pushed to master « README.md: link to dell xps 15-7590 »: https://git.io/JvGRB
<rajivr___>
zimbatm: I just finished watching your NixOS friday around `direnv`. Thanks for doing it. I used to previously build by own docker containers and use `buildEnv` to build up the Nix based development environment that I needed inside Docker. Now I can just use `direnv` + `buildEnv` without Docker, which is really neat!
<pie_[bnc]>
where does networking.nameservers and networking.useHostResolvConf get evaluated? :/
<DigitalKiwi>
when i work on matomo i have a test that launches a virtual machine with QEMU options that let me port use an ssh port forwarding and actually install it >.>
<pie_[bnc]>
eyJhb: i dont suppose you know how to figure out which resolver is being used
<eyJhb>
pie_[bnc]: nope, not that great a nix master yet ;)
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kenjis1 has joined #nixos
<pie_[bnc]>
eyJhb: well, i straced ping...
<pie_[bnc]>
apparently it accesses some nscd socket
<pie_[bnc]>
and looks like nscd is enabled by default
<pie_[bnc]>
so ...im not sure but thats one datapoint at least.
<pie_[bnc]>
not sure who nscd talks to or if nscd can just directly query
<Aleksejs>
is there a way to modify parameters that will be used for qemu vm made with build-vm? I need to add more RAM for VM
lstanley has joined #nixos
<pie_[bnc]>
argh how the heck does this stuff work
<gchristensen>
like you might want a snapshot every 5 minutes, but only keep them for 1hour, and keep hourly snapshots for 1 day, and daily snapshots for 1 week, and weekly snapshots for 1 year, and monthly snapshots for 10 years?
<pie_[bnc]>
the problem is if i have a 50 gig fileN backups in the past, i cant free up that space without deleting all N snapshots
<gchristensen>
that is true
<pie_[bnc]>
this is my breaking problem with zfs snapshots right now, ive done it multiple times
ddellacosta has joined #nixos
<gchristensen>
you want to be able to "break them up" or like delete an object
<pie_[bnc]>
two options, one is dont backup the large files, the other is make zfs able to "rebuild" the snapshot structures, but it doesnt do the latter :P
<gchristensen>
like git-filter-bracnh but for zfs
<pie_[bnc]>
gchristensen: yes exactly!
<gchristensen>
fwiw I broke up my zfs hierarchy in to a set which is backed up and a set which isn't, and I do sometimes have to take care to write big garbage files to the one that isn't
<pie_[bnc]>
this stuff needs to be automatic for me to use it properly :(
<pie_[bnc]>
i leave all kinds of crap arond in my project directories
<gchristensen>
aye
<gchristensen>
then it is perhaps not a good fit
<pie_[bnc]>
i want it so bad though
<gchristensen>
one solution is to just get more disk
<pie_[bnc]>
i dont have the money for that :P
<pie_[bnc]>
i havent really found a solution
<gchristensen>
I know that feeling
<pie_[bnc]>
i guess i could start making a lot more datasets, but then im gonna need tools to manage those better
<__monty__>
Maybe borg style deduplicated backups are a better fit? Afaik you can delete files from the store?
<pie_[bnc]>
__monty__: yeah i should look into that
<__monty__>
Should be a breeze to setup with nixos.
<DigitalKiwi>
Might be able to compromise and delete everything over like 2 weeks or 30 days old or something.
ddellacosta has quit [Ping timeout: 265 seconds]
cfricke has joined #nixos
<karantan>
I've created a new file "wordpress.nix" (atm just a copy of the original) and I want to use this one instead of the one in the nixpkgs. I run "nixos-rebuild -I nixos-config=wordpress.nix build-vm" and I get an error:
<karantan>
The option `services.wordpress' in `/root/.nix-defexpr/channels/nixpkgs/nixos/modules/services/web-apps/wordpress.nix' is already declared in `/etc/nixos/wordpress.nix'.
<codygman_itprotv>
I'm having a lot of trouble getting an existing repo that uses docker to build volumes using the host uid/gid. I'm distilled it down to a minimal repro here if anyone can help: https://github.com/codygman/minimal-nixos-volume-guid-uid-issue
gustavderdrache has joined #nixos
<gchristensen>
codygman_itprotv: it seems likely to me that you're running as root inside the docker container
<codygman_itprotv>
gchristensen So I guess for that specific example `docker run --user` would probably fix it. My more complex example I'd like to also get a repro up of used the nginx image. I tried using https://github.com/nginxinc/docker-nginx-unprivileged/blob/master/stable/alpine/Dockerfile. It creates a user called nginx I believe with uid 1000 and gid 101.
<codygman_itprotv>
This will differ from nixos so I won't be able to modify files it creates from host right? I have a lot of pieces of this puzzle but I'm struggling to pull them together.
<codygman_itprotv>
will differ from nixos default uid 1000 and gid 100*
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @primeos pushed 2 commits to release-19.09: https://git.io/JvGaB
jophish has joined #nixos
acarrico has quit [Ping timeout: 265 seconds]
cfricke has quit [Quit: WeeChat 2.7]
numerobis has left #nixos ["WeeChat 2.6"]
zupo has joined #nixos
sigmundv has quit [Ping timeout: 265 seconds]
mojjoo has quit [Ping timeout: 260 seconds]
<evanjs>
okay, so busybox takes an extraConfig like the kernel, but it simply overlays extraConfig on top of that. Is there anyway to e.g. disable certain features in busybox but largely keep the default config?
<evanjs>
I want to disable various applets that come with it, but enableMinimal seemed to disable too much, even after applying my config
ramses_27 has quit [Ping timeout: 260 seconds]
<evanjs>
hrm, looking at it now, it does look like the busybox expression, unlike the kernel, accepts N, rather than just Y options. Maybe I just need to make sure all the "Not defined" options are switched to "N"?
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
evanjs: something i noticed while playing with the kernel lately, is that it only says "# not defined" if the option can be enabled but isnt
<clever>
evanjs: if the option depends on something else, which is disabled, then it entirely vanishes from the .config
acarrico has joined #nixos
<evanjs>
clever: hrm. I'm trying to take a config my coworker ended up with and apply that to busybox, but various things stay enabled, like hush. Which, thinking about it now.... okay maybe that actually makes sense
minicom has joined #nixos
<evanjs>
defconfig + my options, which don't have no's, only "not set", would obviously not do anything
karetsu has quit [Quit: WeeChat 2.6]
ramses_ has joined #nixos
sigmundv has joined #nixos
<evanjs>
bah. hush remains enabled. I have to wonder why my config doesn't seem to do anything.
captn3m0 has joined #nixos
run500 has quit [Ping timeout: 265 seconds]
<evanjs>
clever: .... okay I just dropped into a nix-shell to confirm... at the very least... .config doesn't seem to listen to my changes from extraConfig >.>
<clever>
evanjs: which phase in the default.nix does something with extraConfig?
ng0_ has joined #nixos
<evanjs>
clever: configurePhase, though I was checking after running genericBuild
magnetophon has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @alyssais pushed to master « Revert "mailman-wrapper: crazy hack to work around the missing urllib3 dependency" »: https://git.io/JvGVC
<evanjs>
mmmyup. it ignores my config :D CONFIG_HUSH remains Y
<evanjs>
.... I have a thought...
<evanjs>
extraConfig needs to be a string, doesn't it >_>
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #79229 → ocamlPackages.parmap: init at 1.1 → https://git.io/JvGVB
<monadplus>
Is it possible with nixOps to compile the derivation on your machine and send it to the server ?
<evanjs>
Oh look, it behaves differently not that I gave it `extraConfig = (lib.readFile ./busybox.config);` ...
<clever>
monadplus: nixops always compiles it locally
captn3m0 has quit [Ping timeout: 265 seconds]
captn3m0 has joined #nixos
virus_dave has joined #nixos
<monadplus>
I was wrong then :facepalm: clever
opthomasprime has joined #nixos
<monadplus>
Just to confirm, is the derivation compiled in the machine executing the nixops commands ? Or in the remote machine ?
gxt has quit [Ping timeout: 240 seconds]
captn3m0 has quit [Ping timeout: 268 seconds]
<clever>
monadplus: if the machine running nixops is linux, it will build it locally, but also obey any build machines configured in /etc/nix/machines
<clever>
monadplus: if nixops is being ran on darwin, it cant build linux things, so it will try to configure the remote machine as a build machine, automatically
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvGVr
<monadplus>
clever++
<{^_^}>
clever's karma got increased to 317
nahamu has joined #nixos
<Taneb>
Around here we only post-increment people
zupo has quit [Ping timeout: 240 seconds]
<evanjs>
hrm, alright, definitely further, now. Though it seems to require input for some options halfway through (normal nix-build fails with "sed: -e expression #1, char 37: expected newer version of sed") and even when just choosing the defaults for those, it still includes the options I disabled. Hrm
growpotkin has joined #nixos
<evanjs>
checked my config, and the options it is prompting for _are_ defined
<{^_^}>
[nixpkgs] @vbgl pushed commit from @bcdarwin to master « ocamlPackages.parmap: init at 1.1 »: https://git.io/JvGwF
<Shoubit>
wild_buffalo, you can also use `man configuration.nix` if you're on the CLI
<wild_buffalo>
Shoubit: also awesome
<wild_buffalo>
mdash: thanks for the tip!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chloekek has quit [Quit: WeeChat 2.6]
kleisli has quit [Ping timeout: 260 seconds]
v88m has quit [Ping timeout: 268 seconds]
<wild_buffalo>
Can I get program specific options for only certain users?
<clever>
wild_buffalo: thats what home-manager does
<wild_buffalo>
ah but not directly through the configuration.nix
komasa has joined #nixos
<clever>
enless you use the home-manager nixos module
<wild_buffalo>
I see
<wild_buffalo>
cool, thanks
drakonis has joined #nixos
<Taneb>
I'm running into an issue trying to move from 19.09 to a recent unstable. One of the Python packages we have internally has stopped working.
<Taneb>
It's a library and executable, packaged with buildPythonPackage, where the executable calls the library
<Taneb>
But trying to run the executable, it seems like it can't find the library to import
<Taneb>
This was working previously and I can't work out what's changed
<blackriversoftwa>
Taneb: do you have `nix-diff` installed?
<Taneb>
blackriversoftwa: yes but because I'm changing version of nixpkgs, an awful lot will have changed
arjen-jonathan has quit [Ping timeout: 248 seconds]
<blackriversoftwa>
Taneb: sure but it can still be helpful, especially if you can diff just the attribute that is broken and not your whole codebase
<blackriversoftwa>
If you run `nix-store --query --references` on the output for the executable, does the library still show up?
chagra has joined #nixos
worldofpeace_ has joined #nixos
<Taneb>
Yes, they're in the same derivation
l_inus[m] has joined #nixos
<Taneb>
If I nix-shell -p that derivation I can import the library in the repl (but the executable doesn't pick it up)
kleisli has joined #nixos
<evanjs>
clever: yeah the busybox config parser rules are weird, afaict. numbers need and equals, y|n and strings/paths don't, trying to figure out how flags get parsed, now ...
<evanjs>
okay, needed to change "-R -n" -> "-Rn" ...
<evanjs>
fiiiiiinally, hush is gone
gnidorah has joined #nixos
<infinisil>
Hm, how about a nixos option that sets up a basic system, enabling some defaults for the most common usecases
<mdash>
infinisil: is it better to do that or generate a basic-system config
<infinisil>
Such that you can say "enable this option if you just want a working system with basic utilities"
chagra has quit [Ping timeout: 240 seconds]
<evanjs>
jk that was busybox >_>
<clever>
infinisil: the demo.nix profile?
<infinisil>
Generating is basically the same as generating "the.option = true"
<infinisil>
clever: Not quite, more realistic
<infinisil>
Well the graphical demo is close. Though
<mdash>
infinisil: i'm just thinking of what makes for a more incremental path to mastery
<infinisil>
Maybe that's it yeah, or something like it
gagbo has quit [Quit: I'm out !]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
gkmngrgn has quit [Ping timeout: 265 seconds]
sigmundv has quit [Ping timeout: 240 seconds]
anohigisavay has quit [Quit: Konversation terminated!]
dm9 has quit [Quit: WeeChat 2.7]
<Taneb>
Seems like PYTHONPATH being set in the environment is interferring here
lsix has quit [Quit: WeeChat 2.6]
kleisli has quit [Remote host closed the connection]
kleisli_ has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<buckley310>
does anyone know how to add a nixos machine to MS Active Directory? ive been messing around with sssd, samba, and krb5 but i cant quite get all the pieces together
<pie_[bnc]>
buckley310: not momentarily relevant to me but im interested if you figure it out
<pie_[bnc]>
meanwhile, there was something for cleaning a git repository when using it as a src but i dont remember what?
<qyliss>
you mean a local git source?
<pie_[bnc]>
yes
<qyliss>
builtins.fetchGit or lib.cleanSource, depending on what exactly you want.
<qyliss>
builtins.fetchGit is usually what you want, unless you need untracked files.
<pie_[bnc]>
qyliss: what if i want untracked?
<pie_[bnc]>
cleansource?
<qyliss>
Yeah then use cleanSource
<qyliss>
but it doesn't respect gitignore, just applies some hardcoded rules, IIRC
<pie_[bnc]>
aha.
scoates has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
wildtrees has joined #nixos
<scoates>
hi. I'll preface this with: I'm not good at xcode. But: is there a simple trick to get xcode's build phases to use what effectively amounts to a nix shell? (Happy to read docs if people point me in the right direction; searches didn't turn up anything useful/obvious)
<arianvp>
has anybody tried getting openvpn with pkcs11 working on nixos?
peanutbutter144 has joined #nixos
<arianvp>
openvpn --show-pkcs11-ids $(nix-build '<nixpkgs>' -A opensc --no-out-link)/lib
<arianvp>
Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: show-pkcs11-ids (2.4.7)
<arianvp>
Use --help for more information.
<arianvp>
for some reason it doesn't recognise the CLI option for me ... :(
<arianvp>
this has been in there for a decade at least. do we patch it out in nixos?
<arianvp>
:/
<arianvp>
ah yeh we disable it in the derivation. Why? :O
<arianvp>
also systemd support is disabled too :/
smatting has quit [Ping timeout: 268 seconds]
cosimone has quit [Quit: Terminated!]
<jared-w>
There's an openvpn module that setups systemd stuffs
drewr has joined #nixos
<evanjs>
clever: pretty sure it's working now. Forgot to remove e.g. CONFIG_PREFIX from our config :P
<evanjs>
the problems I was initially seeing though, were not reading the configFile, I was passing it in like a file when it expected a string, and not doing what the parser wanted.... which was the weirder bit imo
<evanjs>
After reading the file in like it expected, and eventually figuring out the rules for the busybox config parser, all seems to build like I wanted it to
<AmandaC>
So, I may have found what's got my raspberry pi stuff so angry. Who knew, a 5 pack of 32G for like 20$ would result in sub-par writeability.
plutes has quit [Ping timeout: 260 seconds]
tester123 has joined #nixos
<clever>
AmandaC: you get what you pay for!
<tester123>
How do I get a derivation contained in a GitHub repo? `fetchFromGitHub` gets the source of a derivation. Is there an idiomatic way to get the actual derivation?
<AmandaC>
It's either the SD cards being garbage, or my laptop's SD card thingy is shot.
<clever>
tester123: you need to do something like run callPackage on the return value of fetchFromGitHub
<tester123>
clever: When I do `callPackage (fetchFromGitHub { ... }) { }` I get
<tester123>
`error: attempt to call something which is not a function but a set`
orivej has quit [Ping timeout: 268 seconds]
<clever>
tester123: what does the default.nix in the root of the repo contain?
logand has joined #nixos
<logand>
is there a way to write something like rec {"x.a" = 42; y = "x.a";}.y so that it returns 42?
<logand>
use-case: nginx vhosts where i want to reuse the vhost definition
<dminuoso>
infinisil: Essentially you just specify a grammar
psyanticy has quit [Quit: Connection closed for inactivity]
<infinisil>
dminuoso: Having a hard time deciphering what each part of those lines means
<dminuoso>
infinisil: Are you familiar with BNF
<infinisil>
Yea, Haskell as well
<dminuoso>
infinisil: It's essentially just a grammar production rule from BNF.
<dminuoso>
Parser generators like Happy/Bison/yacc can turn such files into LALR parsers.
fendor has quit [Read error: Connection reset by peer]
<infinisil>
What's generated from that though? Is the part between { .. } a Haskell expression?
<infinisil>
Probably, but then the % confuses me
<mdash>
anybody using delve with golang on nixos? i'm new to both and wondering if there's a trick to getting it to work
<mdash>
it's trying to write to store paths apparently
<dminuoso>
infinisil: The part between { .. } is sort of a Haskell expression, think of the $1 as something similar to TH splicing.
<infinisil>
Yeah kinda guessed that
<infinisil>
dminuoso: Considering that both haskell and nix use it, it's probably powerful enough for pretty much anything, so yeah why not have that as a Nix builtin
<dminuoso>
infinisil: Well parser generators are somewhat unwieldy. It's a surprise GHC is still using them!
<infinisil>
Parser combinators are nice that's true..
<dminuoso>
They tend to have really bad diagnostics, and they are usually near impossible to debug. :)
<mdash>
dminuoso: there's two of every possible parsing approach available for haskell
<mdash>
parsers with good diagnostics and easy debuggability are too slow for large-scale problems
<dminuoso>
mdash: That's not true.
<mdash>
nah, it is
<mdash>
you gotta sacrifice one of them
<mdash>
if you want fast and good diagnostics you gotta write it all by hand
<dminuoso>
mdash: If your grammar can be turned into LL, top-down recursive descent parsers give you everything in a bundle.
<mdash>
no.
patrl has joined #nixos
<infinisil>
mdash: Run the fast parser, but if it errors, run it with a parser with better diagnostics :)
<infinisil>
Speed of the fast parser + the diagnostics of the slow one
<dminuoso>
infinisil: That's what trifecta is great for. :)
<mdash>
trifecta definitely is the best of a certain kind of thing
<dminuoso>
infinisil: Though, if you handcraft imperative parsers carefully, you can get a pretty good parser. Clang is a good example.
<dminuoso>
Their diagnostics are really great, and it performs good.
kleisli has joined #nixos
<infinisil>
(I guess we're going a bit offtopic aren't we)
<mdash>
yeah, i'd love to see an example of a better approach than what clang does
<OmnipotentEntity>
Trying to get deep learning functioning on NixOS is just hell. I mean it's hell everywhere, but still.
<mdash>
omnipotententity: but it's only hell once
<gustavderdrache>
petition to make "it's only hell once" the slogan for reproducible builds
<OmnipotentEntity>
It's been hell for me three times so far. Because of changes to nixpkgs. I finally pinned to a revision. But I can't find a revision that has all the libraries I need functional at the same time.
<infinisil>
Because adding libraries to NixOS config's is usually an antipattern
<o1lo01ol1o>
is there a way to assign a default build priority to attributes of a hydra job? I have, for example, a release.nix that defines among other things, a foo. I would like to give foo higher priority that any of the other attributes.
<OmnipotentEntity>
to my shell.nix?
<OmnipotentEntity>
by libraries I mean pip packages.
<infinisil>
Ohh you're talking about a shell.nix, never mind then
<OmnipotentEntity>
like dm-sonnet is busted sometime after July but before October
<infinisil>
I thought you meant NixOS
nek0 has joined #nixos
leothrix has joined #nixos
<OmnipotentEntity>
Trying to find a revision where everything lines up.
justanotheruser has quit [Ping timeout: 265 seconds]
justan0theruser has joined #nixos
<OmnipotentEntity>
My system is functioning just fine.
<OmnipotentEntity>
Hell, if I wasn't running NixOS I'd already be in an impossible situation because most of the projects I work on require mutually exclusive versions of stuff.
<infinisil>
Hehe yeah
<infinisil>
omnipotententity: I've been wanting to write some meta-nixpkgs tool that can find such a fitting nixpkgs version for a while
leotaku has quit [Ping timeout: 268 seconds]
<infinisil>
I think this would be really useful e.g. for this situation
<infinisil>
So you could say "I need version >2.3 of foo, and a working bar build" and it would spit out the latest nixpkgs version that has those (and cached versions of their builds)
leothrix has quit [Ping timeout: 268 seconds]
<infinisil>
This would also allow an installation method that always chooses the latest successful build of something. E.g. you could say "give me package hello", and it would go through the build history of the master channel on hydra and give you the latest one
<infinisil>
Instead of failing the installation when there's no cached version it would just choose an older one
leothrix has joined #nixos
codygman_itprotv has quit [Ping timeout: 260 seconds]
chloekek has quit [Ping timeout: 265 seconds]
leothrix has quit [Ping timeout: 268 seconds]
sondr3 has joined #nixos
<sondr3>
evanjs: you available for some xmonad/taffybar questioning?
kraem has joined #nixos
drew__b has joined #nixos
<drew__b>
hey friends, I'm having a few problems with my path and nix-profile
chagra has quit [Ping timeout: 272 seconds]
<drew__b>
wondering if you could be of some help
<drew__b>
so the first issue is that I have no idea what is adding `/home/drew/.nix-profile/bin` to my path. Whatver is doing that is adding the entry twice
<drew__b>
the second issue is that this is getting added lower in my path than cabal and stack binaries - so when i'm in an impure shell, there can be issues with system libraries getting sourced instead of nix ones
<drew__b>
how can i control that?
<clever>
drew__b: what is installed into that dir, that is causing problems?
<drew__b>
i also have `/nix/var/nix/profiles/default/bin` on the path
<drew__b>
let's say i'm in a nix shell, and i want to use "cabal new-build"
<clever>
drew__b: ~/.nix-profile is for the current user, profiles/default/bin is roots profile
<clever>
root's profile is a default fallback for all users
<drew__b>
ok what is adding these to my path?
<clever>
nix.sh
<clever>
and nix wont work without those, thats how nix itself gets into PATH
<drew__b>
so when i ran the nix install, it added this to my bash-profile
<drew__b>
# if [ -e /home/drew/.nix-profile/etc/profile.d/nix.sh ]; then . /home/drew/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
<CRTified>
other imported submodules. What is my mistake?
<CRTified>
Hi, short question regarding the scope of imports: I want to use the simple-nixos-mailserver and want to add accounts in different places. When I import that in my configuration.nix (using fetchTarball), the options are available in the configuration.nix, but not in other imported modules. But when I'm importing (again in the configuration.nix) a local module that defines new options, they are available in
<drew__b>
thanks for helping me btw
<OmnipotentEntity>
Try disabling your .direnvrc temporarily and see if that helps.
<drew__b>
but keep .envrc?
<OmnipotentEntity>
yeah
aveltras has quit [Quit: Connection closed for inactivity]
<OmnipotentEntity>
CRTified, I do not know, sorry. I hope someone else can help.
o1lo01ol1o has quit [Remote host closed the connection]
leothrix has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @sikmir opened pull request #79241 → pythonPackages.pyosmium: init at 2.15.3 → https://git.io/JvGMv
shibboleth has quit [Quit: shibboleth]
marek has quit [Ping timeout: 268 seconds]
<{^_^}>
[mobile-nixos-website] @samueldr pushed to master « Add January 2020 round-up »: https://git.io/JvGML
eeyun[m] has left #nixos ["User left"]
<CRTified>
aanderse, you asked for a PR to fix the fail2ban-issue when the firewall is disabled ( https://github.com/NixOS/nixpkgs/issues/41422 ) - could you give me some input on the two possible solutions?
<{^_^}>
#41422 (by coretemp, 1 year ago, open): fail2ban module configuration: Fatal: can't open lock file /run/xtables.lock: Read-only file system
zeta_0 has joined #nixos
<aanderse>
CRTified: hey... sorry, i've been meaning to comment on that
<aanderse>
though i'm not a fail2ban expert so anyone else who is up on their fail2ban please comment :)
<CRTified>
No problem, I just stumbled across a tab that had that issue open :)