<selfsymmetric-mu>
I'm making some progress, but getting `Failed to determine user credentials: No such process`.
b has joined #nixos
noudle has quit []
Heirlung has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
<charukiewicz>
I'm deploying a Haskell project using nix and nix-copy-closure to target a remote NixOS machine. I have no problems with my executable file getting copied over, but since this is a webserver, I need to copy over a /static directory that contains some files. Does anyone have any suggestions on how to best do that? Can I specify that the /static dir is part of the project and should get copied along
<charukiewicz>
with the executable?
jluttine has quit [Ping timeout: 268 seconds]
mbrgm_ has joined #nixos
kleisli_ has quit [Ping timeout: 264 seconds]
mbrgm has quit [Ping timeout: 276 seconds]
mbrgm_ is now known as mbrgm
toppler has quit [Ping timeout: 268 seconds]
MmeQuignon has quit [Ping timeout: 268 seconds]
<selfsymmetric-mu>
Hm. `Missing native library dependency for dbus service: no unix-java in java.library.path`. I have libmatthew_java installed somehow. Here is how to do it on Fedora: https://github.com/AsamK/signal-cli/wiki/Setup-on-fedora-26-with-dbus. But I don't know how to do it in NixOS.
teressa has quit [Ping timeout: 240 seconds]
mexisme has quit [Ping timeout: 276 seconds]
toppler has joined #nixos
<{^_^}>
[nixpkgs] @nh2 opened pull request #72057 → musl support for polkit, add elogind → https://git.io/JeE9j
<selfsymmetric-mu>
I tried `sudo ln -s /nix/store/c764v07frma64dnnwjniax7jmp0y54hb-libmatthew-java-0.8/lib/jni/libunix-java.so /usr/lib64/libunix-java.so` but it didn't help.
<{^_^}>
[nixpkgs] @nh2 closed pull request #72032 → WIP: polkit: Disable systemd support on musl → https://git.io/JeEHv
<selfsymmetric-mu>
Anyone know how to add it to signal-cli's Djava?
mexisme has joined #nixos
abathur has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeEHf
b1000101 has joined #nixos
leungbk has joined #nixos
<leungbk>
how can I install a NPM package?
<leungbk>
I've tried variations of "nix-env -i -A pkgs.nodePackages.prettier", but they all seem to fail
<slack1256>
Hi, what values do your /proc/sys/kernel/sysrq files have? I almost certain nixos changed from 1 -> 16 on some update, or was it always like this?
felixfoertsch23 has joined #nixos
oida has quit [Remote host closed the connection]
felixfoertsch has quit [Ping timeout: 268 seconds]
justanotheruser has joined #nixos
xkapastel has joined #nixos
reallymemorable has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
felixfoertsch has joined #nixos
fusion809 has quit [Remote host closed the connection]
toppler has quit [Ping timeout: 265 seconds]
felixfoertsch23 has quit [Ping timeout: 246 seconds]
Neo-- has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
<yorick>
dhcpcd is using 100% cpu
justanotheruser has joined #nixos
toppler has joined #nixos
kvda has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
spacefrogg has quit [Changing host]
spacefrogg has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<slack1256>
yorick: Mine did some days ago, I just killed it.
kvda has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #72060 → sanoid: add package, NixOS module and test → https://git.io/JeEQB
mexisme has quit [Ping timeout: 246 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xd1le>
lovesegfault: I'm not sure but I think eventually it would
Fare has joined #nixos
MichaelRaskin has left #nixos [#nixos]
toppler has joined #nixos
<lovesegfault>
xd1le: I see :)
<etu>
lovesegfault: No they won't end up in 19.09 unless we backport it. And we don't do that with new things. So they will remain in unstable until 20.03 is branched off
<lovesegfault>
etu: Got it, that makes sense
<etu>
:)
<xd1le>
ah my bad, I don't know about how the releases are maintained
Heirlung has quit [Ping timeout: 245 seconds]
<xd1le>
lovesegfault: you could probably use nixos overlays to get the vim plugins on 19.09 if you want, assuming they are more or less pure vimscript plugins
<{^_^}>
[nixpkgs] @ehmry pushed commit from @colemickens to master « rclone: 1.49.5 -> 1.50.0 »: https://git.io/JeE76
<lovesegfault>
Nix has this very annoying behavior where if a dep's hash is already in the store it will use it, even if the has is for an outdated dep (like when you change the rev in fetchFromGit but not the sha)
<lovesegfault>
Is there a plan to change this behavior?
<sphalerite>
my loopback interface has no addresses since I switched to networkd. Anyone know what's wrong here?
<jD91mZM2>
sphalerite: Wait, so 127.0.0.1 no longer works?
<sphalerite>
jD91mZM2: exactly. And CUPS and systemd-resolved are failing to start because they can't bind that address.
<lovesegfault>
O.o
<jD91mZM2>
sphalerite: Is the config you used in your dotfiles repo?
<sphalerite>
no
<jD91mZM2>
Can I see it?
<sphalerite>
hm
<sphalerite>
difficult
<jD91mZM2>
What about only the networkd stuff?
<sphalerite>
I don't want to publish my whole config, but it's also probably not just the networkd config (all I have is useNetworkd = true;)
jonringer has joined #nixos
<jD91mZM2>
sphalerite: That's good because I'm looking in the man page and finding stuff like "incompatible with networking.useNetworkd" for networking.useDHCP which defaults to true.
<jD91mZM2>
There's also systemd.network.enable and other stuff. Have you taken care of all that?
<sphalerite>
yeah, but I've disabled that (having both as true causes eval errors)
<sphalerite>
I still get DHCP through nm
<jD91mZM2>
But systemd.network.enable, is that true?
palo1 has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
<sphalerite>
yes, not explicitly, but it seems to be enabled by useNetworkd
<jD91mZM2>
Oh
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
<jD91mZM2>
Right, I see, relevant code in nixos/modules/tasks/network-interfaces-systemd.nix if anyone else is interested in taking a look
<sphalerite>
I've got it
<jD91mZM2>
That was fast, what was it?
<sphalerite>
gl*bin to the rescue. It's an artifact of 99-main.network and potentially a systemd bug
Heirlung has quit [Read error: Connection reset by peer]
<sphalerite>
and the reason why networking.useDHCP was deprecated in combination with networkd
<jD91mZM2>
Ooo what's gl*bin?
Heirlung has joined #nixos
<sphalerite>
jD91mZM2: a colleague of mine, replaced the o with * to not highlight him :p
<jD91mZM2>
Oh lmao, I thought it was some kind of diagnosation tool
noudle has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 4 commits to nixos-unstable-small: https://git.io/JeE5v
<{^_^}>
[nixos-hardware] @disassembler pushed to dell-thermald « dell/xps: enable thermald service »: https://git.io/JeE56
jonringer has quit [Ping timeout: 252 seconds]
lord| has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixos-hardware] @disassembler opened pull request #127 → dell/xps: enable thermald service → https://git.io/JeE5X
kreisys has joined #nixos
<disasm>
domenkozar[m]: ^^ review??? :)
<disasm>
niso: sadly I didn't jump on the github train early enough in life and got stuck with disassembler because someone else stole disasm :( Same thing happened on twitter (which I don't care nearly as much about)
<contrun[m]>
wedens (@wedens:matrix.org): great . thank you
tmaekawa has joined #nixos
<mrSpec>
Hi! I'm trying to start grafana service in nixos container. It works fine on port 3000, but is there anything particular I need to do to start it at port 80? port = 80 is not enough as I get "Server shutdown" logger=server reason="listen tcp 0.0.0.0:80: bind: permission denied"
<{^_^}>
[nixpkgs] @graham33 opened pull request #72070 → Fix handling of lists in whitelistedLicenses and blacklistedLicenses → https://git.io/JeEF2
<__monty__>
mrSpec: Maybe you need to open the firewall explicitly?
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<lassulus>
mrSpec: services are normally not allowed to run below port 1024, you need special capabilites for that, I would recommend settings up an nginx reverse proxy which forwards everything to port 3000
<{^_^}>
[nixpkgs] @JohnAZoidberg opened pull request #72076 → lua5_1: Properly name CVE patch → https://git.io/JeEFj
chreekat has joined #nixos
<ixxie>
Hello folks; I have a NixOS docker host used for personal project development that currently has a basic docker/docker-compose setup. I have been thinking of upgrading this a little, but going for something like Kube seems like overkill. What kind of setups do people have for this situation?
<{^_^}>
[nixpkgs] @sylv-io opened pull request #72077 → nixos/networking: add fqdn to /etc/hosts → https://git.io/JeEbT
<Gopal[m]>
hello, people
<sylv-io>
first PR yay :)
<Gopal[m]>
I'm importing a global file which defines `environment.systemPackages` in configuration.nix
<Gopal[m]>
so what i want to do is add something to `environment.systemPackages` in configuration.nix
<W1lkins>
I can't find any references to this error anywhere, what does it mean? "warning: unknown setting 'sandbox-fallback'" it appears when I run `nixos-rebuild build -I nixos-config=./roots/foo/default.nix` just after "building the system configuration..."
<Gopal[m]>
is there a way to turn that snippet into an equivalent config in nix (arion) ?
<pie_>
samueldr: i want to build a search engine, currently thinking about data ingestion, 1) could you dump your irc log database somewhere (temporatily?) 2) could you expose some way to get stuff later
<samueldr>
I'm not in a situation where I can do that quickly :/
<{^_^}>
[nix] @roberth opened pull request #3168 → Add inNixShell = true to nix-shell auto-call → https://git.io/JeENU
<das_j>
grahamc[m]: I created the page: https://nixos.wiki/wiki/OpenLDAP but I had no idea what to put in. Just ping me when you have additional questions, I'll work them in, then
<{^_^}>
[nixpkgs] @ehmry pushed commit from @jtojnar to master « verifpal: 0.2.0 → 0.7.5 (#72026) »: https://git.io/JeENG
chloekek has quit [Ping timeout: 268 seconds]
prusnak has joined #nixos
dpausp has quit [Quit: WeeChat 2.6]
emily has quit [Remote host closed the connection]
emily has joined #nixos
kleisli_ has joined #nixos
burkelibbey has quit [Quit: Connection closed for inactivity]
kleisli_ has quit [Ping timeout: 276 seconds]
burkelibbey has joined #nixos
b101010 has quit [Quit: Leaving]
jonringer has joined #nixos
aristid_ has quit [Ping timeout: 245 seconds]
<Athas>
I'm interested in making the 'futhark' package in nixpkgs also build and install its manual pages. Where should I start? It is a Haskell package, so it goes through all the Hackage infrastructure. I guess something there should be overridden.
<{^_^}>
[nixpkgs] @merijnb opened pull request #72085 → treewide: replace make/build/configure/patchFlags with nix lists → https://git.io/JeENr
<chris__>
Hello! I'm trying to get NAT working on a Nixos container with a private network. It can ping the host, but it does not have internet access. It seems the host just drops the packets. Has anyone perhaps tried to do this before? I've only found some discussion previously where you forward specific ports only (I think).
<{^_^}>
[nixpkgs] @bhipple opened pull request #72087 → dropbox: add version to package name → https://git.io/JeEN6
<__monty__>
Athas: It should be as easy as moving the built manpage into $out/share/man/man1 or the proper category.
snicket has joined #nixos
<prusnak>
joko: i don't have the commit locally and i just fetched all remote branches, so i'd say it's not a part of any branch and will probably get garbage collected eventually
<exarkun>
Anyone have any experience with problems removing a removable device with luks on it? For the second time, now, after removing the device, I still have a luks device mapped and I cannot reopen the device because luks thinks it already exists.
<W1lkins>
What's the recommended way to store things like the psk for a wireless network if you plan to have your nix configuration in source control?
<wedens[m]>
W1lkins: encrypt it
<{^_^}>
[nixpkgs] @PanAeon opened pull request #72090 → pin conkeror to firefox esr-5.2 → https://git.io/JeEAf
<W1lkins>
alright, that sounds good :-) what does the internals of secret.nix look like as an example? I'm not sure how to just store arbitrary strings that I can reference elsewhere
sylv-io has quit [Quit: bye]
<wedens[m]>
any nix expression. for example, `{ homeWifi = { ssid = "my_network"; psk = "1234"; }; }`
<W1lkins>
wedens[m]: Thanks. I'm setting up the secrets.nix file, is there a way I can add an option to the built-in config object? so I can reference it as ${config.private.keys.X}?
tmaekawa has quit [Quit: tmaekawa]
<pie_>
using a path already pulls it into the store so having to wrap it in another mkderivation is redundant
<W1lkins>
so I have a file which has { private = { passwords = { x = "abc"; }; }; } in it, and I import it as external/private - can I then reference the variable as ${private.passwords.x}?
<W1lkins>
my file is at external/private/default.nix
<__monty__>
W1lkins: If you assign the import to "private", yes.
<{^_^}>
[nixpkgs] @FRidh pushed 437 commits to python-unstable: https://git.io/JeExC
<{^_^}>
[nixpkgs] @jtojnar opened pull request #72097 → glib: enable separate debug info → https://git.io/JeExW
<{^_^}>
[nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/JeExl
Izorkin has quit [Ping timeout: 265 seconds]
dm9 has quit [Quit: WeeChat 2.6]
<otwieracz>
Hey!
<otwieracz>
How can I in configuration.nix override one python-module to be taken from /etc/nixos/otwieracz-nixpkgs/pkgs/development/python-modules/sentry-sdk/default.nix ?
<otwieracz>
(or something like that?)
<otwieracz>
I am creating pull request, but need it now to un-break my system (and test it)
<otwieracz>
I need to override python27Packages.sentry-sdk
fling is now known as flang
Wizek has joined #nixos
eviscares has joined #nixos
<eviscares>
Hi folks, I was wondering if someone could help me with replacing dmenu with rofi. I'm rather new to nixos so I have trouble finding my way around
<__monty__>
otwieracz: Are you installing/using python27Packages.sentry-sdk? Or are you trying to use the one at the top-level?
<{^_^}>
[nixpkgs] @FRidh pushed 241 commits to python-unstable: https://git.io/JeEps
drakonis has joined #nixos
<otwieracz>
OK, to explain. Deep in dependency chain `octoprint` requires `sentry-sdk` which I (tried to) fixed.
<otwieracz>
I am trying to override `sentry-sdk` system-wide from configuration.nix.
<otwieracz>
As octoprint is python27-based, we are talking about python27Packages.sentry-sdk.
<eviscares>
@adamt that was way too simple. Cheers
<__monty__>
Then I don't know why the overlay's not working.
<otwieracz>
The snippet I shown you is from configuration.nix - this paste will show exactly how am I using it: https://pastebin.com/cpypXxZK
<otwieracz>
I am trying by both `nixos-rebuild build`, which fails (as the `services.octoprint.enable` is set to `true`)
kreisys has joined #nixos
<adamt>
eviscares: Hehe, no worries. Reminder that rofi by default only shows apps with .desktop files, unlike dmenu that shows everything when searching for it
<otwieracz>
And by `nix-env -iA nixos.python27Packages.sentry-sdk`
<otwieracz>
Neither of those work.
<__monty__>
otwieracz: Ah, they use "python2", try overriding that.
<otwieracz>
__monty__: no luck :(
<{^_^}>
[nixpkgs] @FRidh pushed 168 commits to python-unstable: https://git.io/JeEpl
<ar>
(hopefully octoprint will get a release supporting py3 before the end of this year…)
<otwieracz>
Yes, 1.4 should be running on python3.
eviscares has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed 346 commits to python-unstable: https://git.io/JeEp8
<orbit234234>
hi, I want to modify the $src of a package, which I retrieve from github, adding some directories that were present in an older version of the package on github; I *think* I have to modify one of the phases in mkDerivation, what would be the right one?
<rycee>
otwieracz: You could use the `nix.nixPath` option.
<rycee>
otwieracz: For example, I have `nix.nixPath = [ "nixpkgs=/home/rycee/devel/nixpkgs-19.09" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ];` in my configuration.
toppler has joined #nixos
leungbk has joined #nixos
<rycee>
orbit234234: The directory is necessary to build the package?
<rycee>
orbit234234: I guess `prePatch` would be suitable.
<orbit234234>
rycee thanks, it's not really necessary, I'd only like for it to be there in the final output
<orbit234234>
it's assets more than code required for the build
<rycee>
Ah, if the dirs are going in `$out` then perhaps in `preFixup`?
<orbit234234>
that's good, thanks! The build is fairly long, is there a way for me to test my preFixup phase without doing the build each time?
<rycee>
You can use nix-shell and run the phases manually?
knupfer has quit [Ping timeout: 245 seconds]
<rycee>
I think that's described somewhere in the nixpkgs manual.
<orbit234234>
rycee thanks! Also, when I do oldSrc = fetchFromGitHub {...} can I just refer to the folders like ${oldSrc}/folder1?
gmarmstrong has left #nixos [#nixos]
<clever>
orbit234234: when in a string, yep
<rycee>
orbit234234: Just `$oldSrc` should work. I.e., as a shell variable.
<rycee>
orbit234234: Ah, but only if you define `oldSrc` inside the derivation.
neiluj has quit [Quit: Konversation terminated!]
<AmandaC>
clever: You mentioned a couple times using a function to strip things like .git directories, what was it again? I feel like I can lower one of the things I've got a nix expression for's size a lot that way.
<rycee>
If it's defined, e.g., in a let expression then ${oldSrc} should be fine if it's in a string like clever said.
<clever>
AmandaC: lib.cleanSource
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #72108 → scaff: init at 0.1.1 → https://git.io/JeEhA
<Raito_Bezarius>
Is there a way to accelerate browsing a local nixpkgs repo by removing some history or whatever?
<Raito_Bezarius>
I'm trying git gc --aggressive but unsure if it'll do something
<otwieracz>
adamt: rycee: thanks!
<clever>
Raito_Bezarius: git gc wont delete history
<clever>
Raito_Bezarius: have you tried `git grep` ?
jgt has joined #nixos
<Raito_Bezarius>
clever: not really, but I'm using a shell which invokes some git command in order to display a statusline (dirty status, etc), due to the nature of the repo, it slows down browsing
<Raito_Bezarius>
I can just disable it, but wanted to know if there was a way
<jgt>
thanks everyone for putting on a great show in Brno
chloekek has joined #nixos
<jgt>
I'd like to bump the pinned nixpkgs version in my project. How can I find a good commit?
dustinm- has joined #nixos
dustinm has quit [Ping timeout: 246 seconds]
<adamt>
jgt: Good in what way? The newest one from the channel?
<AmandaC>
oh, figured out what was causing the bloat! Apparently .vscode hadlike 900M of completion data in it? Any way I can exclude that directory from the closure?
<Orbstheorem>
orbit234234: If you just need a command, you can use nix-shell to run it (e.g. `nix-shell '<nixpkgs>' --command unpackPhase -A btrfs-progs`)
<orbit234234>
Orbstheorem what will that do? I'm installing the package through nix-env -i -f . -A on a nixpkgs fork
<Orbstheorem>
orbit234234: Nah, just the command itself
glowpelt has joined #nixos
<Orbstheorem>
for instance, if you'®e in `~/tmp/` and you run the command above, it will retrieve the sources for btrfs-tools and unpack them. Nothing else
<orbit234234>
Orbstheorem but can I refer to $out and other veariables in my build that way?
jgt has joined #nixos
<orbit234234>
"patching" the build I just did?
turion has joined #nixos
<Raito_Bezarius>
If a software uses the Amazon Software License, what licence is this considered for NixOS?
fusion809 has quit [Remote host closed the connection]
<rycee>
orbit234234: You can do just `nix-shell -I nixpkgs=/absolut/path/to/your/nixpkgs -A btrfs-progs` and then inside the shell you can run `unpackPhase` to unpack the source and, e.g., `$oldSrc` will be available as a shell variable if you defined in the derivation.
<rycee>
(i.e., next to the regular `src` attribute)
<Notkea[m]>
hello, I'm trying to build some python package on nixos 19.09. It was previously building fine on the 19.03 channel but seems to fail on 19.09 and unstable
<Epsilon37>
Should I use a UserFHSEnv for this build? How would you go about that?
toppler has joined #nixos
<AmandaC>
You'd be better off patching the makefile
<simpson>
Epsilon37: Nah, just patch the Makefile.
<symphorien>
I would use sed in patchPhase, Epsilon37
civodul has joined #nixos
orivej has joined #nixos
<evils>
unrelated, i'm trying to switch kicad to python3 and wxPython_4_0, i'm getting "Found Phoenix 4.0.6/gtk3 (wxWidgets 3.0.4); ...; Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
<evils>
"
jgt2 has quit [Ping timeout: 252 seconds]
is_null has quit [Ping timeout: 265 seconds]
jgt2 has joined #nixos
<evanjs>
Okay, here’s a weird one. It was happening when I was still using Gentoo, even, I think? But whenever I open my laptop lid, if it’s been asleep for a while, there’s a good chance I need to reboot before the display lights up at all
<evanjs>
e.g. everything seems to work fine but the display just doesn’t turn on 😕
<evanjs>
So idk if it’s even a NixOS thing
<dminuoso>
evanjs: Its nothing to do with nixos
<tilpner>
evanjs: No idea, but check logs, and enable ssh to remote in next time and restart things until it works for troubleshooting
<dminuoso>
evanjs: The actions on lid close/open are controlled by systemd and/or a power-manager that is responding to said events.
orivej has quit [Ping timeout: 240 seconds]
jgt2 has quit [Ping timeout: 264 seconds]
jgt2 has joined #nixos
b1000101 has joined #nixos
<evanjs>
dminuoso: yah I figured it was something with power manager or the like. Tried ssh'ing before I rebooted this time... but my phone is usually weird. Guess I could use my desktop next time
<evanjs>
And also maybe enable debug logging for power stuff
m2 has joined #nixos
m2 is now known as epta
<evanjs>
Last time I tried that, though... wow. lots of vomit haha
<dminuoso>
evanjs: Check how systemd/logind is configured - if you are using a power manager logind must be inhibited.
<dminuoso>
(Or rather, its very likely)
<Raito_Bezarius>
I don't understand how to add a new nixpkg, I create a folder, but where should I add the reference to the default.nix in the top-level folders?
<dminuoso>
What's the regular mechanism of feeding secrets to a nixos module? Should I pull them in via `let secrets = import ./secrets.nix`?
<dminuoso>
(Turning my module into a function has some annoying side effects since it destroys the value of module features like detection of duplicate imports)
<Raito_Bezarius>
It sounds like all-packages.nix is a good candidate
<evanjs>
dminuoso: Oh boy. Reminds me of, erm, this issue? #24288 infinisil has his secrets generated from pass and fed in but he hasn't made the generator bit public, yet :P
<Epsilon37>
:/ https://hasteb.in/qanonaqo.gradle patches the makefiles okay, but flops during the build with `No rule to make target 'core_st.cpp', needed by '../../obj/unicodedebug/core/core_st.o'` it doesnt seem to happen if I nix-shell then make
<__monty__>
evanjs: Any reason you're not using lorri? It's great : )
<__monty__>
Raito_Bezarius, symphorien: Mnemonic, it's as many zeroes as there are cards in a deck. Or use stdenv.lib.fakeSha256.
b1000101 has quit [Remote host closed the connection]
<makefu>
das_j: a bit late, i saw you created the openLDAP page, any chance that you could describe how to set up nixOS to authenticate to the ldap server (client variant if you will)
<{^_^}>
[nixpkgs] @jonringer pushed commit from @risicle to master « pythonPackages.rpyc: fix tests to actually execute »: https://git.io/Jeuex
<{^_^}>
[nixpkgs] @kierdavis opened pull request #72117 → pylint: fix on Python 2.7 → https://git.io/Jeuep
<tdeo>
hmm, i'm having problems with gnupg saying 'gpg: problem with the agent: No pinentry' even after a reset of .gnupg and nothing i remember changed... is anyone else having the same problem (on git master)?
toppler has quit [Ping timeout: 246 seconds]
jgt3 has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
<mrSpec>
I've noticed that my issue with lxd container was fixed in nixpkgs master few days ago. Currently I'm using https://nixos.org/channels/nixos-19.09. Is there a way to upgrade just lxd (from 3.13 to 3.18)? Should I switch to unstable channel?
FRidh has quit [Quit: Konversation terminated!]
jgt3 has joined #nixos
<reallymemorable>
whats the best laptop for running nixos?
<dminuoso>
reallymemorable: The one you like best.
<dminuoso>
reallymemorable: Hardware support is, for the most part, a Linux problem.
<dminuoso>
And nixos uses the standard linux kernel. There's some hardware specific fixes, but in general you shouldn't have any problem running nixos on any machine.
<__monty__>
I have an old 32bit system that takes way to long (and might never finish) building a certain haskell package. Any suggestions for workarounds? The package isn't distributed prebuilt as 32bit binary so that's not an option.
tilpner has quit [Quit: tilpner]
jgt3 has joined #nixos
<reallymemorable>
dminuoso: thanks. i installed NixOS on an old Macbook Air and it was a nightmare.
<reallymemorable>
glad to know the world beyond that is less painful
prusnak has quit [Quit: leaving]
tilpner has joined #nixos
<maralorn>
Is there any way to prevent some ifd dervations from being garbage collected?
<maralorn>
And: Will that problem be solved, once we use flakes?
cosimone has quit [Quit: Quit.]
jgt3 has quit [Ping timeout: 276 seconds]
jgt4 has joined #nixos
<infinisil>
maralorn: I think there's a PR to nix that makes IFD'd derivations not be gc'd
<maralorn>
Because right now, I have something on my system which has a pinned nixpkgs and some hackage.nix as ifd dependencies which get redownloaded everyday during auto-update …
<infinisil>
Yeah that's why I don't run GC..
prusnak has joined #nixos
<infinisil>
See the linked issue as well
<slack1256>
What do you guys use for managing transient cgroups? I currently use systemd-run but seems verbose.
Thra11 has joined #nixos
dpausp has joined #nixos
burkelibbey has quit [Quit: Connection closed for inactivity]
<maralorn>
infinisil: But not garbage collecting sounds like it will blow up the nix-store quite soon.
<evanjs>
__monty__: with my current rust+direnv creates these temp folders like rustc0wnwiofne, no idea why...
<__monty__>
fresheyeball: cabal doesn't get dependencies from haskellPackages.
<evanjs>
but then every time I type anything in emacs, it'll try to read from those folders for some reason, and fail, and flash my editor, etc
<fresheyeball>
__monty__: since when?
<__monty__>
Forever.
<fresheyeball>
so... it nix-build works here
<evanjs>
(with an open buffer with a direnv-enabled rust project)
<fresheyeball>
and I have used similar project structure elseware and cabal gets the nix-shell provided deps
<__monty__>
It'll either fetch deps from hackage or you can provide a ghcWithPackages, in which case those packages come from haskellPackages and cabal doesn't have to fetch them.
jgt has joined #nixos
<fresheyeball>
__monty__: callCabal2nix should setup the later scenario
<__monty__>
evanjs: lorri doesn't create any dirs for me. But that sounds like a weird issue.
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixpkgs-19.09-darwin: https://git.io/JeEjf
<fresheyeball>
__monty__: I figured it out
<fresheyeball>
I needed to make the last line dev.env not dev
<fresheyeball>
so yeah, it gets it from haskellPackages
<__monty__>
Ah, the callCabal2nix didn't register with me.
<__monty__>
That doesn't need cabal-install though.
<fresheyeball>
it doesn't but I find it nice ergonomically
tilpner has joined #nixos
lord| has joined #nixos
<turion>
What's the syntax error with "thing = import ./default.nix { haskellPackages };"?
justanotheruser has quit [Ping timeout: 240 seconds]
<fresheyeball>
turion: { haskellPackages }
<fresheyeball>
is not valid
<fresheyeball>
sets are named fields
<fresheyeball>
you might mean this { haskellPackages = haskellPackages; }
<fresheyeball>
which can also be written like this
<fresheyeball>
{ inherit haskellPackages; }
<turion>
fresheyeball: Ahhhh yes :)
<evanjs>
__monty__: I’m all for trying lorri, just the brief glances I’ve made at the repo and the whole daemon thing sorta scare me 😝
<gchristensen>
you can skip the daemon and use `lorri watch`
<__monty__>
Isn't watch basically a per-project daemon? : )
jgt has quit [Ping timeout: 245 seconds]
<gchristensen>
yup
jgt has joined #nixos
cosimone has joined #nixos
<charukiewicz>
I'm using cabal2nix on a cabal file that has a data-files option set, and the resulting .nix derivation file includes `enableSeparateDataOutput = true;`. I do NOT want that option, so I want to force it to false. Is there some flag I can pass to cabal2nix to do that?
<mrSpec>
systemctl status lxd shows: /nix/store/16z5hmi8k2dy5bcd16xjshlliy5hgnbm-lxd-3.13-bin/bin/lxd --group lxd
<mrSpec>
so looks like 3.13, not 3.18 which is returned by lxd --version.
<maralorn>
I get the following error, when deleting an unused container: rm: cannot remove '/var/lib/containers/web/var/empty': Operation not permitted
<evanjs>
eh or I guess just set up the daemon system wide like I have direnv right now. I try to do as much as I can with NixOS rather than nix-env and etc
<tdeo>
any way to set a custom PS1 for nix-shell? seems like nix-shell will overwrite it unless PS1 is an empty string
<maralorn>
Root has no write rights on that dir. chmod +w on that dir does not help. How can this be? I am root! There has to be a way to get rid of that file.
burkelibbey has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
b1000101 has quit [Ping timeout: 246 seconds]
<maralorn>
mrSpec: The systemd-unit is not built with the package that you put into "systemPackages". It uses the package from the nixpkgs version the module is in. (unless there is an override, which is often the case.)
<infinisil>
maralorn: It has the immutable bit set
* infinisil
tries to remember how to unset it
<mrSpec>
maralorn: huh I see, and what is recommended solution?
<emilsp>
what's the state of updating my laptops firmware through nixos? I've seen fedora has had a _thing_ for it recently, but I couldn't find any info about doing any kind of firmware upgrades in the wiki. Is this something that is applied auto-magically? Looking to do this since I received an email from lenovo about having to upgrade firmware due to issues with thunderbolt
<infinisil>
turion: Usually you wouldn't want to define a builder directly though)
<otwieracz>
mrSpec: so maybe, in case we manage to solve it, somebody in future won't have to dig through IRC archives.
<mrSpec>
at least they are online ;)
<otwieracz>
mrSpec: please do :)
jgt1 has quit [Ping timeout: 240 seconds]
<turion>
infinisil: What's placeholder in that case?
<__monty__>
You can use nix-env but it's not recommended for reasons.
<reallymemorable>
oh duh
<reallymemorable>
sorry havent booted my nixos macchine in a while
<__monty__>
If you only need it very briefly a nix-shell is handy.
<turion>
reallymemorable: nix-shell -p xz-utils
<infinisil>
turion: SOME_ENV_VAR = ./foo; should do it
bastion-tester has quit [Quit: ZNC 1.7.4 - https://znc.in]
<turion>
reallymemorable: (Something along those lines, at least)
<turion>
infinisil: Where do I write that? in the derivation set? And then I need to read the path via getEnv?
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #72097 → glib: enable separate debug info → https://git.io/JeExW
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/Jeufz
<infinisil>
Yeah all derivation attributes get turned into environment variables
<infinisil>
mkDerivation { FOO = ./foo; ... }
<turion>
(What even is xz-utils?)
<turion>
infinisil, ah, so "src" is no special thing in a derivation?
ddellacosta has quit [Ping timeout: 250 seconds]
bastion-tester has joined #nixos
bastion-tester has quit [Remote host closed the connection]
<infinisil>
turion: Oh yes it is something special, unfortunately
<evanjs>
hrm so with lorri, basically all I need to do (existing direnv setup) is run `lorri daemon` in a project and keep the terminal open?
<turion>
To what should I set it then?
<infinisil>
turion: known derivation attributes are used in some special way and all others get turned into env vars
<__monty__>
evanjs: No. lorri turns your shell.nix into a direnv setup.
<turion>
I thought that src should probably be the markdown files I'm using to build the site from
<infinisil>
turion: Oh I think you're wondering why when you set src it isn't available in the build?
ocmylife has quit [Quit: ocmylife]
<turion>
infinisil: Yes, I was wondering that. I think that's more or less clear to me now thanks to your explanation :) I'm still wondering what I should set it to
<infinisil>
turion: The src attribute gets unpacked into the build directory, but only if you allow mkDerivation to run its unpackPhase and then write your commands into some other phase. By setting builder or buildCommand you're overriding the part that runs all the phases
<turion>
Ahhhhh :) that's where the magic happens
<evanjs>
__monty__: Well whatever the case... I'm not seeing those errors now
<infinisil>
So something like `mkDerivation { src = ./foo; buildPhase = "ls ."; ... }` should work
<evanjs>
*looks around suspiciously*
<turion>
infinisil: But how else would I run my own program if not setting the builder myself?
<turion>
Or should I modify buildPhase and not builder?
<infinisil>
Yup
jgt1 has quit [Ping timeout: 265 seconds]
<turion>
Ah. And I just add a command to the buildPhase that does some work in the /build directory and everything that's left at the end is the build product?
bastion-tester has joined #nixos
<infinisil>
Nope, you need to install it into $out manually
<infinisil>
Usually that's done in installPhase
<infinisil>
Which could look like `installPhase = "mkdir $out; mv some-result $out"`
jgt1 has joined #nixos
<infinisil>
The default buildPhase is ~`make` while the default installPhase is ~`make install`
<infinisil>
So you could put a makefile with a default and install target to do the work too
<turion>
Ok... plot thickens. General question. "derivation" is builtin, but there are many different "mkDerivation"s, and they are just regular nix values?
<infinisil>
I'd just do the install with some shell script in nix directly though
<infinisil>
turion: mkDerivation is like a smart wrapper around the derivation builtin
<infinisil>
And then there's smart domain-specific wrappers around mkDerivation like buildPythonPackage and such
<evanjs>
__monty__: well, whatever. Don't see the errors now so I might as well just try this for the time being. Plus, lorri=rust=<3
<turion>
Yes. In my case, my builder is a custom program I wrote, so there is no sensible mkDerivation around, right?
<infinisil>
turion: But yeah, mkDerivation is a regular nix function, while the builtin derivation is a "primop"
<infinisil>
(which is also a function really)
<turion>
Yes
<turion>
I'll just use derivation then, I guess?
<__monty__>
evanjs: If your .envrc isn't `eval "$(lorri direnv)"`, then lorri isn't doing *anything*.
<{^_^}>
[nixpkgs] @rycee opened pull request #72119 → haskellPackages.pandoc-emphasize-code: mark unbroken → https://git.io/Jeuf1
<infinisil>
turion: I recommend mkDerivation still, it can unpack automatically, has support for patches, support for overrideAttrs
<turion>
Ok, I'll try
<infinisil>
meta attributes, build hooks, cross compilation, and probably more I can't think of right now
<turion>
Maybe an embarrassingly late question in my nix career, but is there any reference documentation for builtins and common nixpkgs functions?
<evanjs>
__monty__: oh no I mean I did do that bit as well
<evanjs>
event just normal cached environments via lorri seem to be working fine, anyway
<evanjs>
/s/event/even
<evanjs>
Rust project seems to load direnv/lorri cached env just fine, rustic builds it in the background, I get errors via flycheck, and etc
slack1256 has quit [Remote host closed the connection]
<DigitalKiwi>
fresheyeball: please don't use pastebin.com it's the worst :(
* DigitalKiwi
sees someone else mentioned it
<maralorn>
DigitalKiwi: How so?
<turion>
Again and again I'm amazed how far NixOS and nixpkgs have ventured with the given dev tools
<maralorn>
The lack of a nice standard-lib doku for nix(pkgs) is one of the biggest painpoints of nixos imo.
<DigitalKiwi>
it's not even a good paste site has annoying copy paste behavior, that it has tons of ads with a history of containing malware doesn't help
<DigitalKiwi>
there are so many better alternatives there's no reason to use it
<maralorn>
nix is amazing as a package manager. But it has some serious short comings as a programing language.
<infinisil>
I wrote my own little paste service thing :)
<maralorn>
I love termbin.com
<DigitalKiwi>
he d/c while i was typing LOL
* DigitalKiwi
has d/c notifcations off but his name wasn't highlighted
toppler has quit [Ping timeout: 240 seconds]
idf has quit [Ping timeout: 265 seconds]
<turion>
> nix is amazing as a package manager. But it has some serious short comings as a programing language.
<turion>
Very true. Documentation. Type system.
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):270:1
<infinisil>
I'm a Haskell guy, but I'm really wondering whether a type system for Nix is worth it
<maralorn>
Well … The type system thing is a train which left the station a long time ago. (Not sure if you can say that in english …). But a std-lib doku should be very doable.
<evanjs>
*rustacean wishes for type system on Nix* :P
<DigitalKiwi>
nfinisil: heh, i either use gist, or i have a script that rsyncs files to my server, i started implementing one into my hakyll site but never wrote the script to sync it i used to use dpaste.de a lot until it doesn't work for me now half the time...and he changed the copy paste/raw feature, rather, disabled it :(
* DigitalKiwi
can't type lately
oscarvarto has quit [Quit: Konversation terminated!]
oscarvarto has joined #nixos
<turion>
Wat. If I run my program locally, everything is fine. If I let nix run it, it says "hGetContents: invalid argument (invalid byte sequence)" What's going on here?
<Thra11>
If I'm using overrideDerivation in an overlay, can I specify an input at the same time (e.g. setting an optional dependency to null)?
<infinisil>
turion: Something to do with Locale probably
<maralorn>
infinisil: Yeah, it definitely would. 1. lazyness without static typechecking can lead to really late errors. It would speedup the write > build > debug loop significantly 2. warnings for unused variables and stuff would be very useful.
<Thra11>
Or do I have to do foo1 = overrideDerivation ...; foo = foo1.override { thing = null; }?
bastion-tester has quit [Quit: ZNC 1.7.4 - https://znc.in]
<Thra11>
If a package defines pname and version, and my overlay overrides version, should I expect the name to include my version instead of the original?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JeuJ0
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
<neiluj>
Hey! I'm trying to make my ocaml environment in nixos and tried to install the ocaml graphics library through opam :
<infinisil>
Thra11: To override branch you need to use .override
<infinisil>
.overrideAttrs for derivation attribute overrides, .override for function argument overrides
<neiluj>
I created a nix-shell with the dependencies to build the library but I can't get the x11 command
<neiluj>
(nix-shell -p gcc pkg-config)
kreisys has joined #nixos
<infinisil>
A literal x11 binary?
<infinisil>
,locate bin x11
<{^_^}>
Found in packages: x11vnc, lcdproc, x11idle, xlibs.x11perf
<neiluj>
infinisil: indeed! it fails at .opam/opam-init/hooks/sandbox.sh build pkg-config x11
<neiluj>
so one of those packages provide the x11 binary right?
<infinisil>
The x11 binary would be xserver
toppler has joined #nixos
<infinisil>
I think those packages provide bin/x11<something>
<neiluj>
I installed libX11
<neiluj>
but I can't pass it to nix-shell
<infinisil>
Having a hard time following what you're really doing and what's the problem, do you have an error?
<infinisil>
If so with what command?
<neiluj>
so I'm installing graphics through opam with opam install graphics
<neiluj>
but it fails with
<Thra11>
infinisil: Can I chain the two together, e.g. `myffmpeg = (super.ffmpeg.overideAttrs ( ... )).override { ... };` ? If so, does the order matter?
<neiluj>
"The compilation of conf-libX11 failed at
<infinisil>
Thra11: Yes you can, no it doesn't matter :)
<infinisil>
Or are you asking for how to use the nixos-unstable version of the package+module?
<Thra11>
Although it's still not getting the overridden branch (It's including a version dependent configure flag which shouldn't be there for my branch)
<karetsu>
infinisil: so it states that I can change services.plex.package, I'm wondering what that line of my config would need to be to get that package from the url, or if I need to take just that package from local, dump it into a specific location for it to find it and whether I would need an import x somewhere
<adamt>
karetsu: It still brings us back to the question of whether you need a package newer than the one in staging (since you linked to the master branch of nixpkgs) :-)
<karetsu>
adamt: my plex server is 1.16.0.something, every other version has 1.18 and my 5 year old gets confused navigating to her cartoons on the old one and I'd quite like to make things easier for her
<karetsu>
every other version being phone, tv etc,
<infinisil>
> stable.plex.name
<{^_^}>
"plexmediaserver"
<infinisil>
> stable.plex.version
<{^_^}>
attribute 'version' missing, at (string):269:1
jgt1 has joined #nixos
<infinisil>
-.-
<infinisil>
> stable.plexRaw.name
<{^_^}>
"plexmediaserver-1.16.5.1554-1e5ff713d"
<karetsu>
I mean I installed 19.09 and used nixos-rebuild with just plex in my config and it gave me 1.16.5.1554
<karetsu>
yeah
<infinisil>
> unstable.plexRaw.name
turion has joined #nixos
<{^_^}>
"plexmediaserver-1.18.0.1944-f2cae8d6b"
<infinisil>
I see
<infinisil>
karetsu: I recommend doing something like this then: `services.plex.package = (import (fetchTarball { url = "4cd2cb43fb3a87f48c1e10bb65aee99d8f24cb9d"; sha256 = "..."; }) {}).plex;`
<neiluj>
so I did strace on the script in question /home/jco/.opam/opam-init/hooks/sandbox.sh
<infinisil>
The rev there is latest nixos-unstable, so you should get a cached version
<neiluj>
and I indeed get errors of the type ccess("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
<neiluj>
i'm a bit puzzled
<infinisil>
neiluj: That's nothing to worry about, lots of these errors are normal, you'll have to find the ones that aren't expected :P
<{^_^}>
karetsu: 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. See: tofu-vim
<adamt>
Wait what, is that all it takes to basically remove firefox non-esr from stable? (re: #72126)
<infinisil>
BlessJah: And it's the same exact derivation with the same hash?
<Blessjah>
I've nix-copy-closure'd the .drv to the other host
<infinisil>
neiluj: Oh, is it calling bwrap with some parameters that would map /lib into the wrapper? That would make sense on other distros, but not on NixOS
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 11 commits to nixos-unstable-small: https://git.io/JeuU8
<neiluj>
is there a workaround I could try?
reallymemorable has quit [Quit: reallymemorable]
<Blessjah>
then nix-store -r'd the copied closure, the output path is the same and none of the command complained
turion has quit [Ping timeout: 276 seconds]
<karetsu>
infinisil: sorry, hopefully last one, with the revision you gave I'm getting an unable to download, could not resolve host name, do I need fetchTarball explicitly named or is it included in {config, pkg, lib}?
<infinisil>
neiluj: I'd first try to verify that this is actually what happens, what I said was just a guess. I'd try reading the source to see what that command really does. Then you could also verify that that's the problem by creating /lib manually (and then deleting it again)
<infinisil>
BlessJah: You could try verifying and repairing the store to see if it's some corruption
Chiliparrot has joined #nixos
<neiluj>
the script has this line add_sys_mounts /usr /bin /lib /lib32 /lib64 /etc /opt /home /var
<neiluj>
followed later by exec bwrap "${ARGS[@]}" "$@"
<Thra11>
For some reason, override-ing branch has no effect. (overriding other arguments, such as packages, does seem to work). I wonder if it's something to do with how 4.nix calls generic.nix.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.jaraco_collections: 2.0 -> 2.1 »: https://git.io/JeuUw
<symphorien>
infinisil: yes there are several duplicates of this bug reported in nix and nixpkgs
<Thra11>
infinisil: I think I've worked out why it doesn't work: in 4.nix it does `callPackage ./generic.nix (args // rec { branch = "4.2" .. })`, which if I understand it correctly, will take your args and // them, overriding certain arguments with its own ones. If I change the order to `rec { branch = "4.2" } // args`, I *can* override branch.
dpausp has joined #nixos
oscarvarto has quit [Quit: Konversation terminated!]
<infinisil>
Thra11: Ah nice find, yeah that should probably be the other way around
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @r-ryantm to master « rabbitmq-server: 3.7.18 -> 3.8.0 »: https://git.io/JeuTe
leungbk has quit [Remote host closed the connection]
<infinisil>
NixOS usually doesn't resolve deps for you no. The nix files/derivations do
bastion-tester has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<infinisil>
It might be a good idea to put your packaging efforts into a nixpkgs issue so it's easy to see what you did and where the current problems are
<infinisil>
It's hard for me to help when I know so little
<{^_^}>
ocaml/opam#3773 (by umazalakain, 33 weeks ago, open): Searching for gcc inside the bwrap sandbox on NixOS
<symphorien>
?
<symphorien>
apparently there is a OPAM_USER_PATH variable
<neiluj>
yes I try to understand the suggested solution
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<exarkun>
Anyone have any experience with problems removing a removable device with luks on it? For the second time, now, after removing the device, I still have a luks device mapped and I cannot reopen the device because luks thinks it already exists.
<{^_^}>
[nixpkgs] @jonringer pushed 4 commits to staging-next: https://git.io/JeuT3
knupfer has quit [Ping timeout: 264 seconds]
toppler has joined #nixos
johnnyfive has quit [Ping timeout: 265 seconds]
qz has quit [Ping timeout: 246 seconds]
<sshow>
betawaffle: how do you install the service.nix you sent me? my python package is building now (thanks!!), but I'm not quite sure how to invoke the service.nix file
cosimone has quit [Quit: Quit.]
Wizek has quit [Quit: Connection closed for inactivity]