<atlas_>
I've got an issue I would appreciate help with: I'm trying to make my users' default passwords expire when they log in. I figured chage would be the best way to do this. Whenever I try to execute any chage commands (other than --help) I get "PAM: Authentication failure"
Rusty1 has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
oida has quit [Remote host closed the connection]
oida has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Je5bO
leo_ has joined #nixos
Rusty1 has joined #nixos
<leo_>
What gives "executable not found" when trying to run an ELF executable - that exists -?
<gchristensen>
its interpreter is probably not setup
<leo_>
what do you mean?
<leo_>
I know it's due to nixos particular locations
<leo_>
I tried replicating the dependencies in a nix-shell with no success
<leo_>
Proly an implicit global dependency? How to solve?
<gchristensen>
run `ldd ./your-executable`
<leo_>
genius. .-.
<leo_>
first time having to do it.
<leo_>
and then study some "patchelf"?
takeda has quit [Ping timeout: 268 seconds]
<gchristensen>
yeah, patchelf --set-interpreter
<gchristensen>
iirc
<leo_>
thanks. .-.
<leo_>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 186
<gchristensen>
yep!
<leo_>
i thought it'd take longer for me to touch it
<leo_>
xd
<gchristensen>
:D
diamondman has joined #nixos
taserlag[m] has joined #nixos
<diamondman>
Hello, I learned yocto/bitbake and kind of wish I hadn't. I am looking for a more sane build system to do some embedded linux work, and a friend recommended nix. I do not assume this would be easy to do out of the box, but I was wondering how possible/relevant is this use case? I heard I could build all of nixos from nix, but have not found how, so I want to see if this is even the right place to look. Even if this is
<diamondman>
not what I need, I do like what I see of the system :)
alvaro121 has quit [Ping timeout: 265 seconds]
thc202 has quit [Ping timeout: 245 seconds]
<gchristensen>
diamondman: you might give it a try starting with a VM? :) but from a checkout of nixpkgs, try this: nix-build nixos/tests/wireguard/default.nix <- this will build a few NixOS systems, boot them in VMs, and verify the network and wireguard works correctly between them
<diamondman>
thank you. That is the type of kick start I need to dig in.
silver has quit [Read error: Connection reset by peer]
<drakonis>
hoo boy
<drakonis>
time to fix up soundfonts because shit is broooooken
<samueldr>
mind the harsher words please :)
<gchristensen>
thanks, samueldr :)
<samueldr>
diamondman: not as a first step, but something to keep around to look at, is not-os, a non-nixos based linux "toy" implementation https://github.com/cleverca22/not-os/
kleisli has joined #nixos
boogiewoogie has quit [Remote host closed the connection]
<nh2>
Ofborg gives different results than my NixOS here
<samueldr>
nh2: just checking, ofborg merges to master before running, it doesn't test the commit as-is
<samueldr>
could it make a difference with your change?
mexisme has joined #nixos
werner291 has quit [Remote host closed the connection]
<nh2>
samueldr: I tried it on very recent staging, but just to make sure I'll rebase again
<samueldr>
oh s/master/staging in my sentence :)
<samueldr>
but I see the point was understood
<samueldr>
other issue could be overlays or stuff like that causing small impurities
h0m1 has quit [Ping timeout: 246 seconds]
<duairc>
When using self.callCabal2nix to generate nix expressions to build Haskell projects, is there a way to tell it that the source is a particular directory, disregarding the dist folder?
turbo_MaCk has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
<duairc>
I had hydra build everything for me, but the derivations on my own machine were different, and it turned out it was because on my local machine there a dist/ folders that are generated by cabal which nix thinks is part of the source, which changes the hash and thus the derivation
<duairc>
I just deleted the dist folders and now the derivations are the same but cabal will probably create them again at some point
Supersonic has quit [Ping timeout: 248 seconds]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
jluttine has joined #nixos
mexisme has quit [Ping timeout: 258 seconds]
<mla>
is there a hack to take a sd install image (arm) and enable ssh by just modifying the filesystem manually by hand -- i can't seem to get uart/console, what files would i need to change to the image/fs.. is it just a symlink to make or something?
<nh2>
samueldr: still the same with ofborg job just started, and staging just re-pulled. I'm out of ideas. I'm inclined to merge it and see what Hydra thinks about it. Which types impurities are you thinking of, given that the `.drv`s are truly the same?
<samueldr>
if drvs are the same I assume there wouldn't be
<juxiemaotu>
File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 1045, in run_with_notify
<juxiemaotu>
f()
<juxiemaotu>
File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 1056, in <lambda>
<juxiemaotu>
File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 664, in build_configs
<juxiemaotu>
raise Exception("unable to build all machine configurations")
<juxiemaotu>
Exception: unable to build all machine configurations
<clever>
juxiemaotu: did you check dmesg?
softinio has quit [Quit: WeeChat 2.6]
dingenskirchen has quit [Ping timeout: 245 seconds]
<juxiemaotu>
clever: what is dmesg? not the error prompt?
<clever>
juxiemaotu: just run `dmesg` in the terminal
vld has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 268 seconds]
<infinisil>
juxiemaotu: Don't spam this many lines
<juxiemaotu>
oh, it a long long log file , let me take some time to read.
<juxiemaotu>
infinisil: ok ,i got
<clever>
juxiemaotu: are there any errors at the tail end of dmesg?
<juxiemaotu>
clever: wait some time. i should to make a code share website like infinisil sad.
takeda has quit [Ping timeout: 260 seconds]
takeda has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
<day|flip>
dmesg | grep error or dmesg | grep fail
<day|flip>
be faster?
drakonis has quit [Quit: WeeChat 2.6]
vonfry has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @cdepillabout opened pull request #76078 → spago: add update script for automatically updating to new versions → https://git.io/Je5Ny
mexisme has joined #nixos
bt` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<{^_^}>
[nixpkgs] @cdepillabout merged pull request #76078 → spago: add update script for automatically updating to new versions → https://git.io/Je5Ny
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Je5NF
<{^_^}>
[nixpkgs] @danbst pushed commit from @skykanin to master « Add mimeType to discord package (#76057) »: https://git.io/Je5Au
<inferencerules>
is there some means of seeing what nix is... actually doing at any given point? i’ve got a system rebuild just hanging after unpacking channels and nix-build is pegging one core at 100% for several minutes, but it’d be nice to have some visibility into the execution sequence if possible
<clever>
inferencerules: that sounds like decompression on the tar file for channels
juxiemaotu has quit [Quit: WeeChat 1.9.1]
bt` has joined #nixos
<inferencerules>
clever: like, there’s some issue with the tar file itself? or what? i was able to run a separate install alongside the hung nixos-rebuild with no problem
<clever>
inferencerules: how fast is the cpu, how long has it been running?
<inferencerules>
clever: fast enough, recent i7 at 3.7ghz. running for about 10 minutes now. only had this type of behavior one time before when i left an infinite recursion in my configuration.nix, but i don’t think that’s the case here; the same config files worked just fine prior to the botched upgrade a few days ago
<clever>
inferencerules: which pid is consuming 100% cpu?
<inferencerules>
pid like process id? 4520 but aren’t they just assigned out as needed? i’m sure i don’t understand
dingenskirchen has quit [Remote host closed the connection]
<clever>
inferencerules: so i can give directions for the next steps
<clever>
inferencerules: start by doing `strace -p 4520 -f`, does it output anything?
bt` has quit [Ping timeout: 260 seconds]
<inferencerules>
oh yeah, a lot of lstat and readlink on my configuration.nix
EdLin has joined #nixos
dansho has quit [Remote host closed the connection]
<clever>
inferencerules: that definitely sounds like it could be infinite recursion
<clever>
inferencerules: re-run it with `nixos-rebuild build -vv` and see what it says
dansho has joined #nixos
<inferencerules>
clever: looks like it stopped at evaluating channels/nixos/nixos/lib/from-env.nix
<clever>
inferencerules: can you pastebin the configuration.nix file?
<pie_>
apparently something somewhere for containers enables systemd-resolved
<clever>
inferencerules: any symlinks happen to be involved in that file?
<pie_>
clever: any idea if theres a bug report yet? or out of scope?
<clever>
could be interesting to try and reproduce it
domogled has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 268 seconds]
<inferencerules>
i keep the dotfiles repo in ~/ and symlink all the .nix files to /etc/nixos, if that’s what you mean
<clever>
inferencerules: was it setup the exact same way before the upgrade failed?
<clever>
inferencerules: what i would instead do, is create a /etc/nixos/configuration.nix, that has just 1 line: { imports = [ /home/clever/nixcfg/configuration.nix ]; }
<clever>
inferencerules: then you dont need any symlinks, and that might have also fixed it
<inferencerules>
it was
<inferencerules>
ah i’ll try that
<pie_>
clever: the one weird thing about that is if anyone can write to your home folder they can influence the system config, but i guess thats not a very relevant problem
<clever>
pie_: thats why i keep it in /root/ instead
<clever>
but its mostly user preference at that point
<pie_>
clever: at that point why bother moving it out of /etc
<clever>
user preference again
<clever>
i prefer having it in a $HOME, so i dont have to cd as far
<iMatejC>
can we revert libfprint 1.90, because even dev version of fprintd does not yet support the latest libfprint... fprintd in unstable channel can not build at all right now... and... I kinda miss fingering my thinkpad
softinio has quit [Quit: WeeChat 2.6]
justanotheruser has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
mexisme has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
day|flip has quit [Remote host closed the connection]
EdLin has quit [Remote host closed the connection]
Tucky has joined #nixos
patagonicus has joined #nixos
fl0_id is now known as step21
<patagonicus>
Hi. I'm new to NixOS and currently trying to install git-annex on a 32bit x86 machine, but the hspec haskell package fails to build because the test suite fails - on 64bit the package is downloaded from binary caches, so this doesn't happen. Full output is here: http://ix.io/24V3 Is there anything I can do to fix this other than report a bug to nixpkgs?
<ocharles>
This is a bit weird (and I'm definitely build a hack atm), but given something produced by `stdenv.mkDerivation`, is there a way to add a given `.drv` path to its `inputDrvs`?
<siers>
is base stuff of / called the "root structure" or something?
<siers>
question is: what's the smallest root structure nixos can create? the default one is quite fat
<ocharles>
Basically I have something like: `{ foo }: ..; stdenv.mkDerivation { ..; buildPhase = ''... ${foo} ''; }`but `foo` is actually a /nix/store output. With a sandboxed build this is obviously impure, but I also know the `.drv` that produces that path, so I just need to add it as an inputDrv to the above
<ajs124>
ocharles: how do you know the drv?
<ocharles>
from doing `nix path-info`. I'm calling `nix-build` from a larger script
<ocharles>
sorry, from doing `nix-store --query --deriver` even
<cihancan>
im using gentoo right now if i ask tell me a reason to hop on nixos what would you say?
<ajs124>
Why can't you reference it from the file you're doing the mkDerivation in?
<ocharles>
I don't have access to the nix expression that produced that `.drv`
<ocharles>
I only have the `.drv` and it's output
<clever>
ocharles: you can use nix-diff to compare 2 .drv files
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever>
ocharles: and then incrementally recreate the nix expression
<Taneb>
cihancan: I'm not too familiar with Gentoo but a big advantage of NixOS is you describe your OS configuration in one place, and have it version-controlled if you like
<clever>
if you know which nixpkgs it came from, its much simpler
<ocharles>
oof, that's a lot more work than I was hoping!
<cihancan>
ok
pie_ has joined #nixos
<ocharles>
but this is obviously quite sketchy
<patagonicus>
cihancan: I used to used Gentoo for a long time, just recently switched (moslty because I don't have time to care for my Gentoo installations anymore). Being able to copy two config files from a backup and getting the system to the same state as before a fresh install (minus /home) is somewhat magical.
<cihancan>
hmm its good yes
mexisme has joined #nixos
veske has joined #nixos
werner291 has joined #nixos
<ajs124>
Also, if you have similar hosts, it's just so cool. I first switched my laptop and then my desktop (from archlinux) to NixOS and I was able to reuse >80% of my (non-hardware specific) config.
<cihancan>
ajs124, what about package manager i heard its a hybrid of both source and binary management
m4ts has quit [Quit: bye]
<duairc>
Does anyone have any idea how to tell if nix is actually signing builds? How do you know if a build is signed or not? Is there an artefact of that in the filesystem somewhere?
<patagonicus>
cihancan: It builds from source if there's a need, but most packages have binary packages on an official cache. And it's more a cache than a binary packages - similar to how you can host it yourself on Gentoo.
m4ts has joined #nixos
<cihancan>
hows stability looks like nixos have pretty many users
mexisme has quit [Ping timeout: 260 seconds]
<cihancan>
there is 900~ people in channel same as gentoo
<ajs124>
There's dozens of us :P
veske has quit [Quit: This computer has gone to sleep]
Chiliparrot has joined #nixos
<evanjs>
Hrm. Best practices: update PR with version bump or make a new PR with a source branch with the right version name?
<evanjs>
Also, any ideas on easiest way to expand my init.el so I can share it for debugging on e.g. #nixos-emacs? I could just share the init.el as is; not sure if expansion is really necessary
<evanjs>
Wasn't sure if there's a nix-ish way to get it
<boogiewoogie>
is anyone here using the `services.xserver.extraLayouts` option to use custom keyboard layouts? I'm looking to try gnome, but simply `xkbcomp`ing my layout doesn't seem to work, and it's suggested to have the .xkb file in the xkb/symbols directory for gnome to find and use it via setxkbmap. so I figured said option would be the way to get it there
<ocharles>
clever: ah nuts, that doesn't work. It seems that nix doesn't actually end up adding that to inputDrvs :(
<clever>
ocharles: if a set has an outPath and you try to treat it as a string, it just uses whatever the outPath is
<clever>
> let foo = { outPath = "bar"; }; in "${foo}"
<{^_^}>
"bar"
<ocharles>
blurgh
<clever>
the other attrs are just misc data, that let you do other things with the object
<ocharles>
I was hoping I was onto something because `{ type = "derivation"; }` does something special in nix repl, but I guess it's just that misc data interpretation stuff
<clever>
yeah
<ocharles>
I wish you could just write a .drv and add it to the store
<clever>
that just tells it how to pretty-print the object
<clever>
ocharles: if you call builtins.derivation with the right args, it should create that
domogled has quit [Quit: domogled]
<ocharles>
I'm half thinking it might be easier for now to just add the whole thing I want to the nix store again
newbie42 has joined #nixos
<ocharles>
Basically, here's the situation. I'm trying to write a replacement for `ghc --make` that will use Nix as a cache for .o files. Ideally, when you call `ghc-nix`, it will just use the `ghc` you have on $PATH, but add magic caching to it
veske has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nixpkgs] @cdepillabout merged pull request #76095 → haskell-lsp: Added 0.18.* to extra-packages for ghcide → https://git.io/JedTn
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JedkJ
<ocharles>
For Nix users, that GHC on $PATH is in the nix store, so ideally all of the .hs -> .o compilation steps (which are nix expressions) would refer to that exact GHC
<ocharles>
I think I'll have to re-add that whole GHC to the Nix store again, I can't see any other way for a nested `nix-build` from `ghc-nix` to see the `ghc` currently on $PATH
<ocharles>
Will `nix-store --add` scan for runtime references?
<clever>
ocharles: sounds like you just want to run `nix-build ghc.nix --arg file ./file.hs` basically
<clever>
ocharles: nix-store --add cant deal with any dependencies
<ocharles>
god damnit
<clever>
only something that nix-build is building can have deps
<evanjs>
Woo! that's all it was. Had to change doom-modeline-icon from (display-graphic-p) to t
<ocharles>
But note that that `compile-hs.nix` file imports `<nixpkgs>` to get a GHC - but that is very different from what the user may have on their $PATH
veske has joined #nixos
<newbie42>
Hi, I need help, I want to install nixos alongside with ubuntu,and I have encrypted partition, which now occupied bu ubuntu, how can I do that?
<clever>
ocharles: you could just pass it the path to a ghc, --arg ghc $(which ghc)
<ocharles>
that will copy GHC into the nix store, but won't copy any runtime references
<ocharles>
that was my thought above, but it sounds like it won't work if ghc is dynamically linked
<clever>
ocharles: if the ghc is already in the nix store, it will just use it, and it already has deps
<ocharles>
not with sandboxing enabled
<ocharles>
at least, this hasn't worked before
<LnL>
isn't it possible to add a store path as string context?
<ocharles>
let me try again then...
<clever>
ocharles: the key is --arg, not --argstr
<ocharles>
I am using --arg
<clever>
ocharles: and no toString on that value?
<ocharles>
but I thought `nix-build --arg /nix/store/...-foo` would be just the same as `nix-build --arg /home/ollie/foo` and end up doing a copy
<clever>
if the item is already in the store, it wont copy it
<clever>
since its already immutable
werner291 has quit [Quit: werner291]
<LnL>
no it will
<ocharles>
well, that --arg ghc /nix/store/..-ghc/bin/ghc will eventually be consumed in a buildCommand to do ''${ghc} -c ..''
<ocharles>
but is that ok?
<ocharles>
Yea, I'm pretty sure it will copy it...
<ocharles>
but let me put my money where my mouth is
<clever>
ive only seen it copy when using a symlink to the store
<{^_^}>
[nixpkgs] @teto pushed commit from @filalex77 to master « starship: 0.30.1 -> 0.31.0 »: https://git.io/Jedks
<ocharles>
Yea, this definitely doesn't work. My buildCommand in the `.drv` is: `nix/store/xf5zihz12kszk0xiv6c0d0psc0mj10xs-ghc-8.6.5/bin/ghc/bin/ghc`, but if you realise this derivation you just get `build input /nix/store/fkn701vr78qjlrjnr1z6z8xkr97kd0zh-ghc does not exist`
<{^_^}>
[nixpkgs] @teto pushed commit from @bcdarwin to master « netcdf: 4.6.1 -> 4.7.3 »: https://git.io/JedIG
<niksnut[m]>
ocharles: What is the input to the derivations? With C/C++ we can just pass the preprocessor output, but I imagine with Haskell compilation you have to pass in a lot more stuff
<pie_>
hm... clever do you know if there's an mkmerge for two modules?
<ocharles>
basically when you do `cabal build`, cabal calls `ghc --make` with all the source files at once, so the first thing I have to do is unpick that and form a dependency graph and then compile each file individually. But even then, there's a ton of stuff that I can't deal with at the moment
<clever>
but it was computing the closure before running nix-build
<ocharles>
it's similar to snack, but I think a bit different
ixxie has joined #nixos
<pie_>
ocharles: if that does what i think it does, :DDD
<clever>
pie_: just call mkMerge with a list? or use imports?
cihancan has quit [Quit: Leaving]
<pie_>
clever: see what i asked infiisil about above
<pie_>
clever: i think the problem is im doing some idiosyncratic stuff and nixpkgs is doing some idiosyncratic stuff too
<pie_>
clever: i *think* the problem is that im trying to mkmerge to config sets and imports only works if its a funciton?
<pie_>
hm i have one more idea but i need to check
<pie_>
no yeah i dont see how to make this wokr
<clever>
pie_: imports can accept sets or functions, or paths, its best to just always give it a path
<clever>
the errors get nasty if you dont
<pie_>
yeah i gave it a path
<pie_>
the problem is it doesnt recognize the "imports" attr
<pie_>
lemme see if i can make a smaller repro if needed
<clever>
imports isnt a child of config, its a sibling
<clever>
so you want imports = [...]; config = mkMerge [];
<pie_>
u....h if youre right, oops
<pie_>
clever: i think this config = takes a module thogh, namely the entire nixos config for the container, not the config module attr
boogiewoogie has quit [Remote host closed the connection]
<clever>
pie_: i think you want containers.retiolum.config.config then?
<clever>
the outer config takes a module, which can optionally have a config key
inferencerules has quit [Remote host closed the connection]
siers is now known as zn-dev
zn-dev is now known as siers
<clever>
evanjs: currently only tested on grub, but if you figure out how to add extra entries to systemd-boot, you can fix that
<brnzz>
clever: I need to copy some files there during build time and having it writable during runtime
<pie_>
clever: what the heck that worked. ._.
<pie_>
well, or it did it wrong
<clever>
brnzz: then wrap the program with a shell script, that will copy from $out to the \$HOME, if the files are missing
jakobrs has left #nixos [#nixos]
<brnzz>
clever: yes that should work, thank you
<evanjs>
*looks at whatever memtest86 does* omg wtf is this haha
<clever>
evanjs: memtest doesnt work under systemd-boot, it doesnt support efi
boogiewoogie has joined #nixos
<evanjs>
oh that's why it looks weird/has to be scripted in. ow
<pie_>
holy crap why do i have 50 instances of inotify running
<pie_>
does it daemonize away from bash or something
<ajs124>
clever: evanjs: there is boot.loader.systemd-boot.memtest86.enable
<clever>
thats new...
Rusty1 has joined #nixos
<evanjs>
ajs124: yeah that's what I was referring to. I have that enabled but was wondering how easy it might be to add something else... looks like it isn't set up to accept extraEntries atm
<clever>
ah, its using a new memtest86-efi package
<clever>
i dont think systemd-boot has an option at all to add custom configs
<clever>
the memtest86 support is specialy coded directly into systemd-boot-builder.py
<ajs124>
evanjs: true. Yeah, that's kind of weird. Then again, you kind of don't need extraEntries, because you can use multiple EFI bootloaders/executables.
<clever>
evanjs: just switch to grub, youll thank me for it :P
<evanjs>
blahhhhhhhhhhhh
<evanjs>
not like it's difficult on nixos haha
turbo_MaCk has quit [Ping timeout: 260 seconds]
<clever>
evanjs: just `nixos-rebuild switch --install-bootloader` and your done
<pie_>
oooook now something really weird broke...
<evanjs>
oh right that's what it was
<evanjs>
well, grub.devices too, right?
<clever>
evanjs: grub.devices is only if your not using efi
<evanjs>
ohhhh
<clever>
evanjs: boot.loader.grub.devices = [ "nodev" ]; to make it shut up
<boogiewoogie>
is anyone here successfully using the `services.xserver.extraLayouts` option right now or can anyone confirm it's broken? I've just tried the example from https://nixos.org/nixos/manual/index.html#custom-xkb-layouts and the rebuild still fails.
<evanjs>
ah okay. then remove nodev after?
<clever>
evanjs: need nodev there to keep it happy
<evanjs>
clever: just how big is your ESP/grub partition?
<evanjs>
because mine is ~500MB.... oops
dingenskirchen has joined #nixos
<evanjs>
I had been using the root partition for boot before but can't remember how I got that working. Trying https://nixos.wiki/wiki/Bootloader#Keeping_kernels.2Finitrd_on_the_main_partition, ignoring #61718...
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jedt3
<exarkun>
I see powerManagement.cpuFreqGovernor in configuration.nix but is there a cli tool somewhere that makes an ephemeral governor change?
werner291 has joined #nixos
<clever>
evanjs: boot.loader.grub.extraFiles is what copied things to /boot for you
eri451 has quit [Ping timeout: 250 seconds]
deadvader[m] has joined #nixos
<evanjs>
clever: right, the recovery image is like 500 mb and my efi is 512 mb. I was storing all that stuff on root before but had an issue the other day and had to switch back
<clever>
Filesystem Size Used Avail Use% Mounted on
<clever>
/dev/sda2 488M 422M 32M 94% /boot
<clever>
-r--r--r-- 1 root root 286M Dec 31 1969 rescue-initrd
<clever>
not sure why yours is bigger
leotaku has quit [Ping timeout: 260 seconds]
eri has joined #nixos
rootatarch has quit [Quit: WeeChat 2.7]
leotaku has joined #nixos
Chiliparrot has joined #nixos
<evanjs>
clever: I'm tempted to just back up my boot partition and format it. Probably a bunch of cruft tbh
<evanjs>
Just NixOS on this system so it should be fine
<evanjs>
mmm zstd. 500MB in like 1s
ddellaco1 has joined #nixos
<evanjs>
nope. still not enough :D that's without even memtest haha
<{^_^}>
[nixpkgs] @teto pushed commit from @romildo to master « volctl: init at 0.6.2 »: https://git.io/JedmR
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0_ has joined #nixos
boogiewoogie has joined #nixos
ng0 has quit [Disconnected by services]
ng0_ is now known as ng0
<ocharles>
Does anyone know a way to get the transitive closure of all Haskell dependencies for a haskell package built with nixpkgs Haskell infrastructure?
<ocharles>
there is `.passthru.haskellBuildInputs`, but this is not transitive, it's just immediate deps
<evanjs>
clever: just now realized how different the initrd sizes are. what the. 286M -> 443M??
<clever>
evanjs: that will tell you how big everything it depends on is, and sort by size
leex has joined #nixos
<ocharles>
ok, it's not propagatedBuildInputs either. Looks like I have to write a function to figure this out...
<clever>
ocharles: what about ghcWithPackages?
<clever>
ocharles: and check what generic-builder.nix did with .env
<ocharles>
oh, .env is a good shout
<evanjs>
clever: do I need to give nix-store any arguments outside the path there?
<leex>
Is there a guide for how to upgrade a package?
<clever>
evanjs: oops, yeah, -qR
<boogiewoogie>
still on my keyboard-layout-in-gnome mission. I want to try and simply use my vconsole layout in X via `localectl --no-convert set-x11-keymap`, however this gives `Failed to set keymap: Changing system settings via systemd is not supported on NixOS.`. I can't find a nixos option that would correspond to this, is there one?
<clever>
ocharles: looks like the children survived, systemd will likely -9 them
gilligan_ has quit [Quit: Leaving]
<betawaffle>
kill all the children!
mexisme has quit [Ping timeout: 250 seconds]
<ocharles>
Yea I'm back now
<ocharles>
nix-collect-garbage -d works again, looks like I got Nix very confused
ng0 has quit [Quit: Alexa, when is the end of world?]
thePirateKing has quit [Quit: Leaving]
boogiewoogie has quit [Remote host closed the connection]
<ocharles>
I'm almost certain that nix has some kind of locking race condition. Forking a gazzilion nix-builds at the same time seems to keep getting in this mess
<ocharles>
could be recursive nix complicating matters
<coco>
to watch tv, i use vlc and open network streams under addresses like udp://@239.77.0.78:5000 . under distros i used before, this worked flawlessly. under nixos, i see in tcpdump that the udp data of the stream is received, but it doesn't make its way to vlc. any hints as to what could be the problem?
<clever>
coco: allow port 5000 udp?
fleaz has left #nixos [#nixos]
<clever>
coco: of note, tcpdump bypasses the firewall
<clever>
coco: you could also just `systemctl stop firewall.service` short-term, to confirm if that is the issue
<{^_^}>
[nixpkgs] @jonringer pushed 6 commits to python-unstable: https://git.io/Jed3O
<coco>
clever: no idea how the firewall is set up by default on nixos (just installed it). can you point me to documentation?
ddellaco1 has quit [Ping timeout: 258 seconds]
<clever>
just stopping the firewall is a quick way to confirm if that is indeed the problem
<clever>
then youll know if its even worth trying to configure
<coco>
clever: it says "Failed to stop firewall.desktop.service: Unit firewall.desktop.service not loaded."
<clever>
where did the .desktop come from?
<coco>
from my stupid fingers :D
<coco>
clever: no, without a typo, i can confirm the firewall was the issue
<coco>
now*
<clever>
coco: nixos.org/nixos/options.html and search for firewall
<{^_^}>
[nixpkgs] @NeQuissimus pushed 2 commits to release-19.09: https://git.io/Jed3S
boogiewoogie has joined #nixos
lukash_ is now known as lukash_|away
lsix has quit [Quit: WeeChat 2.6]
zupo has joined #nixos
<coco>
clever: although i can watch stuff now, it's far from fluent. the ts demuxer complains about lots of discontinuities received. any idea what could be the problem? other machines on the same network don't have this issue
<clever>
coco: wifi? wired? how much bandwidth does the video consume?
<coco>
wired. bandwidth shouldn't be the problem because it's the only thing consuming bandwidth atm
<clever>
not sure then
vld has joined #nixos
nschoe has quit [Ping timeout: 265 seconds]
takeda has joined #nixos
<boogiewoogie>
phew. does the option `services.xserver.extraLayouts` prevent rebuilds for anyone else? also, does anyone maybe have a completely different idea how I could get my symbols file in there? is there maybe an equivalent for `environment.etc` to have files placed in `/run/current-system/sw/share/`?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<clever>
boogiewoogie: anything you put into systemPackages gets merged into /run/current-system/sw/
<clever>
boogiewoogie: so if the package has a $out/share, your already set
<boogiewoogie>
clever: it's not a package per se, I'm just trying to place an .xkb file containing a keyboard layout there for xkb to find
<boogiewoogie>
clever: oh. okay. that seems like it could work, I'll try it. thanks.
boogiewoogie has quit [Remote host closed the connection]
ddellacosta has joined #nixos
boogiewoogie has joined #nixos
<{^_^}>
[nixpkgs] @jonringer pushed 4 commits to python-unstable: https://git.io/JedsO
NixOsFun has joined #nixos
<evanjs>
clever: lol couldn't figure out why it wasn't working... until I rubber-ducked it and realized I was adding the firmware overrides to the host system options vs the recovery image module >.>
<evanjs>
Oh look, it worked :P
<NixOsFun>
Hello. I have some problem with VirtualBox, I got Kernel driver not accessible. My config https://pastebin.com/sbGRJ6GW
<{^_^}>
#76106 (by jonringer, 50 minutes ago, open): Hydra seems to be down
waleee-cl has quit [Quit: Connection closed for inactivity]
fenedor has quit [Read error: Connection reset by peer]
dirkx_ has quit [Quit: dirkx_]
fenedor has joined #nixos
boogiewoogie has quit [Remote host closed the connection]
mexisme has joined #nixos
dirkx_ has joined #nixos
mexisme has quit [Ping timeout: 260 seconds]
boogiewoogie has joined #nixos
vld has quit [Ping timeout: 260 seconds]
<siers>
should nix-env -iE '..callPackage (import nix) {}' work?
<siers>
I'm getting "error: attempt to call something which is not a function but a set, at undefined position" for % nix-env -iE '(import <nixpkgs> {}).callPackage (import ./lib/names-lv/names.nix) {}'
<siers>
Ah, I figured how to google it. I just need to wrap it in a constant function – "nix-env -iE '_: callPackage nix {}'
<siers>
"
Neo-- has quit [Ping timeout: 248 seconds]
boogiewoogie has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JedZo
Guest13147 has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
orivej has joined #nixos
horner has joined #nixos
Irenes[m] has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: keep old haskell-lsp-test around for ghcide »: https://git.io/JedZi
horner has quit [Remote host closed the connection]
kolby_ has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: keep old lsp-test around for ghcide »: https://git.io/JedZ9
<turbo_MaCk>
Anyone knows what is going on with hydra?
noudle has quit []
_reanimus_ has quit [Ping timeout: 260 seconds]
reanimus has joined #nixos
<gchristensen>
#76106
<{^_^}>
https://github.com/NixOS/nixpkgs/issues/76106 (by jonringer, 2 hours ago, open): 🚨 New commits are not being built by Hydra, and channels updates are stopped due to a down database server. 🚨
<ornxka>
hmm, i dont want to transparently proxy all traffic, just nix traffic
<bt`>
true, it's easy to leak things.
<qyliss>
(Notably read Tor's stuff about why you probably don't want to use it)
<bt`>
ornxka: okay, that's cool.
<ornxka>
proxy.default sets httpProxy, etc but is there any guarantee that all nix processes honor that?
<ornxka>
probably not
<Orbstheorem>
Hello, I'm trying to bootstrap a new haskell project using `stack new dodo` (stack is configured to use nix), but I get `error: attribute 'ghc843' missing,...`. Am I doing something wrong?
<ornxka>
i think for this to work id have to do some kind of remote build thing to another, transparently-proxied nixos system
<Orbstheorem>
I'd expect it to just work...
<Orbstheorem>
(If I specify a resolver (e.g. lts-14.17), it works as expected)
<Orbstheorem>
But it's certainly confusing
<mpickering>
Orbstheorem: This has been an issue with stack for ages, it is not a problem with nix
luc65r has quit [Remote host closed the connection]
knupfer has joined #nixos
sebass[m] has joined #nixos
ashesham` has joined #nixos
growpotkin has joined #nixos
pie_ has joined #nixos
<gustavderdrache>
is there a guide to buildInputs vs. nativeBuildInputs for dummies? i keep mixing up which ones my derivations seem to need
<gchristensen>
I'm also curious :P
<gchristensen>
gustavderdrache: you jumped right past me and in to cross compilation Nix, which I think is super cool.
<LnL>
well, there's a simple explanation and then there's the actual correct one, which I don't fully understand either
<Henson>
I'm having a problem with the "unison" package on a Debian system with the Nix package manager installed. It looks like the unison package has been built with X11 support, which means it's in a wrapper that calls xset to add a specific font path. Both xset and the font path have been installed (by Nix) but xset gets upset when trying to add the font path. Any ideas?
civodul has joined #nixos
<gustavderdrache>
i'll take the simple explanation for starters and come back in a few years for the detailed one :P
<clever>
anything you use at build time (cmake, pkgconfig) goes into nativeBuildInputs
<clever>
anything you use at runtime goes into buildInputs (libraries, binaries ran at runtime)
<LnL>
yeah, native inputs are binaries
<gustavderdrache>
so something like nativeBuildInputs = [ autoconf ]; buildInputs = [ libxml2 ] would be the right way to organize things?
<LnL>
regular inputs are libraries, etc. that the output will link against
schneid3306 has joined #nixos
<LnL>
that looks correct yes
<clever>
gustavderdrache: there is also `autoreconfHook` which will give you the autoconf binaries, and automatically run them for you, to generate a new configure script
<gustavderdrache>
ah
<gustavderdrache>
clever: oh, useful
<gustavderdrache>
sheepish next question: how do i use that hook? :|
<clever>
nativeBuildInputs = [ autoreconfHook ]; i believe
pbb has quit [Ping timeout: 246 seconds]
<clever>
and the stdenv will take care of the rest
<gustavderdrache>
i don't have to mess around with CFLAGS manually anymore
<gustavderdrache>
thanks clever++ and LnL++
<{^_^}>
LnL's karma got increased to 14, clever's karma got increased to 286
lordcirth has quit [Remote host closed the connection]
gregburd[m] has left #nixos [#nixos]
zaeph has joined #nixos
siiky has quit [Quit: leaving]
lovesegfault has joined #nixos
siiky has joined #nixos
leotaku has quit [Ping timeout: 260 seconds]
<Henson>
I'm trying to install unison without X11 support. I see that "enableX11 ? true" is one of the options, and that in nixpkgs it depends on config.unison.enableX11. That makes me wonder if there's a binary version of it with enableX11 = false set, and if so, how I might install it.
<Henson>
"one of the options" -> "one of the options in Unison's default.nix file"
disynthetic[m] has joined #nixos
imdoor has joined #nixos
<{^_^}>
[nix] @puffnfresh opened pull request #3284 → Disable use-sqlite-wal under WSL → https://git.io/JedCt
<Henson>
grw: is there a chance Hydra has compiled a binary with "enable X11 = false" already and I can use nix-env or something to install it without having to compile it?
<grw>
Henson: no, i tried it and was not available
<grw>
hydra will only build things that are explicitly included in channels or tests, its rare that this includes packages with overrides like this
<Henson>
grw: can you tell me how you tried itl, so if I encounter something similar in the future I can check myself?
<grw>
i ran `nix-shell -p 'unison.override { enableX11 = false; }'`
<Henson>
grw: do I need to use the "-E" switch with nix.env?
<Henson>
grw: ahhhhh, ok!
pbb has joined #nixos
is_null has quit [Ping timeout: 240 seconds]
<Henson>
grw: is it possible to do something similar with nix-env?
<grw>
probably but i dont know how, sorry
<Henson>
grw: ok, thank you for your help
dywedir[m] has joined #nixos
vld has joined #nixos
fusion809 has joined #nixos
<Henson>
grw: something like this might be the answer: nix-env -i -E 'f: (import <nixpkgs> {}).unison.override {enableX11 = false;}'
ZoomZoomZoom has quit [Ping timeout: 260 seconds]
<grw>
Henson: ah, seems so
reallymemorable has quit [Quit: reallymemorable]
<grw>
i never use nix-env really- i either add to declarative config and rebuild or use ephemeral nix-shell
<grw>
it seems to defeat the point of nixos to me
<Henson>
grw: I like that each user can have their own set of installed packages, that are different from the system packages.
lovesegfault has quit [Ping timeout: 265 seconds]
<grw>
ah i guess that is a good reason. i use home-manager for this
gyroninja__ has quit [Ping timeout: 258 seconds]
lovesegfault has joined #nixos
reallymemorable has joined #nixos
ashesham` has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @nh2 opened pull request #76113 → qtpass: Fix /usr/lib hardcode to pass-otp. → https://git.io/JedCV
<emilsp>
After the above error message nixops deploy hangs. I'm trying to deploy to an SSH host, that is actually a VM running locally in qemu. Allegedly it should be copying over the closures, but there is no network activity.
chin-tastic has joined #nixos
drakonis has quit [Quit: WeeChat 2.6]
leotaku has quit [Ping timeout: 260 seconds]
imdoor has quit [Quit: imdoor]
bvdw has quit [Read error: Connection reset by peer]
fendoer has quit [Read error: Connection reset by peer]
<blackriversoftwa>
Hello. Does anyone know how to get NetworkManager to give up a dhcp lease?
dirkx_ has quit [Quit: dirkx_]
<blackriversoftwa>
I am using a wired connection to configure a couple of routers, and it is holding very tightly to the address on 1 routers subnet, even after I plug it into the next router
<blackriversoftwa>
I want to to ask for a lease from the router it's plugged into