<__red__>
If I type a command, and the shell responds with: "The program 'foo' is currently not installed. You can install it by typing:" ... Where is that database of commands to packages to be found?
hph^ has joined #nixos
<__red__>
and is there a file that I can put in an overlay to reference those executables that exist in my overlay?
thedavidmeister has quit [Quit: WeeChat 2.3]
xkapastel has quit [Quit: Connection closed for inactivity]
<laas>
is there any way to use clang to cross-compile in nix?
maximiliantagher has joined #nixos
ddellacosta has joined #nixos
spear2 has quit [Quit: Leaving]
Adluc has joined #nixos
jluttine has joined #nixos
hexo_ has joined #nixos
init_6 has joined #nixos
srk has joined #nixos
slack1256 has joined #nixos
freeman42y has joined #nixos
xkapastel has joined #nixos
o1lo01ol1o has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
Makaveli7 has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
stites has joined #nixos
ddellacosta has quit [Ping timeout: 272 seconds]
ddellacosta has joined #nixos
nD5Xjz has quit [Ping timeout: 246 seconds]
slack1256 has quit [Remote host closed the connection]
<nand0p>
i added a package to `configuration.nix` and `nixos-rebuild switch`, however i was surprised to see that `nix-env --list-generations` does not show a new generation? what does it take to make a new bootable generation?
maximiliantagher has quit [Ping timeout: 250 seconds]
<nand0p>
so the first command does not accurately report generations
i1nfusion has quit [Remote host closed the connection]
<infinisil>
No
<infinisil>
Read what I wrote
<nand0p>
gotcha thanks
i1nfusion has joined #nixos
justanotheruser has quit [Ping timeout: 268 seconds]
<infinisil>
nand0p: Wait no, this "No" was as in "You're incorrect, it does accurately report generations"
goibhniu has quit [Ping timeout: 245 seconds]
<nand0p>
why would those two things report such a difference?
<infinisil>
Read what I wrote..
<infinisil>
The first thing I said specifically
<nand0p>
` the first command does not accurately report generations`
<nand0p>
` nix-env uses the users nix-env generations by default`
<infinisil>
Yes that ^
simukis has quit [Quit: simukis]
camsbury has quit [Ping timeout: 240 seconds]
<nand0p>
interesting. running `sudo nix-env --list-generations` returns nothing as a user, and as root, only the 3 pasted above.... but apparently, there are 48, via `sudo nix-env -p /nix/var/nix/profiles/system --list-generations`
<infinisil>
Those are different, have different profiles, because they can each install different things
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<infinisil>
The NixOS profiles don't come from nix-env, they come from NixOS, these are the declarative configuration.nix generations, these have nothing to do with nix-env
<infinisil>
(but nix-env can be used to look at the generations)
<infinisil>
nand0p: Look into /nix/var/nix/profiles to see all profiles
<infinisil>
nix-env ones and NixOS ones and what have you not
<nand0p>
right, im just pointing out that `sudo nix-env --list-generations` apparently does not return accurate results, you need the `-p /nix/var/nix/profiles/system` to get the true value. thanks for sharing that
<infinisil>
NO
<infinisil>
Read what I wrote damnit
<infinisil>
I won't explain it another time
<nand0p>
heh ` nix-env can be used to look at the generations` thanks
<nand0p>
maybe someone would be gracious enough to explain why `nix-env --list-generations` returns 3, and `nix-env -p /nix/var/nix/profiles/system` returns 48. or even better any links to documentation, as i did not find it in manual.
<nand0p>
`Those are different, have different profiles, because they can each install different things` it is a bit confusing, but thanks for helping
<infinisil>
So, did you get it?
<nand0p>
are you sure that was right link?
<infinisil>
I guess I didn't explicitly mention it, but /nix/var/nix/profiles/system is *not* the root's nix-env profile, which would be /nix/var/nix/profiles/per-user/root
<nand0p>
`Those are different, have different profiles, because they can each install different things`
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #55489 → llvmPackages_7.clang-unwrapped: don’t link to libatomic on darwin → https://git.io/fhHDl
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhH7B
nD5Xjz has joined #nixos
<laduke-13>
hey, i'm trying this out for the first time (on a pi3), when I do nix-channel --add then nixos-rebuild switch then reboot, it boots into the previous channel, not the one I added. Am I reading this wrong?
eadwu has quit [Quit: WeeChat 2.3]
<mdash>
laduke-13: what does nix-channel --list say?
nD5Xjz has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
eadwu has joined #nixos
<laduke-13>
mdash: it says nixos ... nixos-18.09 (the one I want) sorry, no way to paste from there right now
eadwu has quit [Client Quit]
maximiliantagher has joined #nixos
rcshm has quit []
<mvnetbiz>
Can I make some kind of package alias, so I can run "nix-shell -p myalias" and I would have a shell with git and vim for example
eadwu has joined #nixos
eadwu has quit [Client Quit]
<laduke-13>
rebooted back into 19.03.git.56b9f6fc8e1 (Koi) from the boot menu to get wifi working again
<samueldr>
laduke-13: assuming you started form sd_image; is the FAT32 partition mounted under /boot/ ?
<samueldr>
and uh, you did a rebuild after updating the channel, right?
<laduke-13>
hmm yeah
<laduke-13>
did I run out of space...
<laduke-13>
should `nixos-rebuild switch --upgrade` counts as "rebuild" right?
<cransom>
as root? yes
<laduke-13>
yeah
<laduke-13>
I must've forgot --upgrade last few times
maximiliantagher has quit [Ping timeout: 245 seconds]
i1nfusion has quit [Remote host closed the connection]
eadwu has joined #nixos
i1nfusion has joined #nixos
eadwu has quit [Client Quit]
pie__ has joined #nixos
hellrazor has quit [Ping timeout: 268 seconds]
noonien has quit [Quit: Connection closed for inactivity]
pie_ has quit [Ping timeout: 240 seconds]
counting1ort has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
<laduke-13>
ran out of space rebuilding :/
countingsort has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
ericsagnes has joined #nixos
nD5Xjz has joined #nixos
ashkitten has quit [Quit: WeeChat 2.2]
<bpye>
How well is KDE supported on nix?
leex has joined #nixos
ashkitten has joined #nixos
<leex>
Hey, does anyone else here have trouble with "nix-env -i all"? Mine dies because it's unable to download some package. But just running it again (and again) will make it work.
<leex>
So just by trying often enough I am eble to install new packages/update, but it's quite annoying that it doesn't just run cleanly.
endformationage has quit [Quit: WeeChat 2.3]
nD5Xjz has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
nD5Xjz has joined #nixos
elgoosy_ has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
fusion809 has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pikajude>
lua stuff is all broken for me (on macos) and it seems that NIX_DEBUG might help me debug why
ericsagnes has quit [Ping timeout: 250 seconds]
tdbgamer has joined #nixos
maximiliantagher has joined #nixos
daniele- has quit [Read error: Connection reset by peer]
jmeredith has joined #nixos
Serus has joined #nixos
Melkor333 has quit [Ping timeout: 240 seconds]
balsoft has joined #nixos
nD5Xjz_ has quit [Ping timeout: 250 seconds]
ericsagnes has joined #nixos
nD5Xjz has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
nD5Xjz has quit [Ping timeout: 240 seconds]
palo1 has joined #nixos
fiola has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
maximiliantagher has quit [Ping timeout: 268 seconds]
slack1256 has joined #nixos
nD5Xjz has joined #nixos
slack1256 has quit [Remote host closed the connection]
DrLambda has quit [Ping timeout: 268 seconds]
<fiola>
"nix-env -q gcc" says "matches no derivations" but there are plenty of entries in /nix/store with "gcc" in the name. So what is nix-env's option for a non-exact match?
<mdash>
fiola: mmm, typically there's no need to get at gcc all by itself, what do you want to do?
<fiola>
mdash: Thanks for replying. Trying to learn the workflow: (i) find which (say) gcc versions are available, (ii) pick one, (iii) install it.
<fiola>
gcc is just an example. I already have several gcc versions installed, but want to query "What versions are available?"
<mdash>
fiola: right, so, the cheap way is to rely on the command-not-found hook, where you try to run something and it then spits out an error about it not being installed and then tells you a bunch of things that could provide it
<mdash>
fiola: another way is to grep the nixpkgs repo for it
<mdash>
a third is to use nix-index and nix-locate
<mdash>
fiola: more specifically though it's rarely a good idea to install gcc in a user environment
<mdash>
since that's only needed in build environments
<fiola>
nix-index builds a local index of available packages? If so, sound what I need.
<fiola>
mdash: Yes, gcc was just an example, to not say "foo" .:P
<mdash>
more than that, a local index of files installed by packages
<fiola>
mdash: Running nix-index said "+ querying available packages" and has now been running for 3/4 of an hour. Is this normal? (It seems to have kicked off nix-env, which has consumed virtually all memory.)
<dunk>
I'm trying and failing to get nix to build on Ubuntu 18.04. I get "No package 'libeditline' found". I've now installed anything remotely related - editline, readline, dev packages, libs... all to no avail. I've even now built editline from source and still get the error. Anyone know what might be up?
<wedens>
dunk: what are you trying to do?
mounty has quit [Quit: Konversation terminated!]
<leotaku>
fiola: Is there any specific reason "nix search" is insufficient for what you want to do?
<dunk>
wedens: It's a long and convoluted story, but I basically just need to build it
<fiola>
leotaku: It helps, although it still uses some kind of external scan so takes minutes. I was hoping the nix-locate was going to give instant info after a completed nix-index.
<mdash>
Word of advice: don't `zfs destroy` a zfs filesystem your nix config has its heart set on mounting at boot
<mdash>
you won't have a good evening
<fiola>
Sounds bad. :-)
<mdash>
fiola: Having just done this, I am reaching a similar conclusion
<leotaku>
fiola: The usual workflow for "nix search" is only passing "-u" every once in a while, mostly after an upgrade.
<fiola>
leotaku: Unfortunately nix-index uses nix-env, and nix-env seems to do everything in memory so isn't scalable.
<leotaku>
Without "updating" the database everytime nix search is blazingly fast.
<fiola>
leotaku: Thanks, going to do some testing with search.
<fiola>
leotaku: \o/ You're right, it only took 5 mins on the first lookup. Excellent!
mounty has joined #nixos
ottidmes has joined #nixos
<{^_^}>
[nixpkgs] @etu opened pull request #55507 → aldo: init at 0.7.7 → https://git.io/fhHdQ
<cyris212>
Could someone explain me why you need to specify your dependencies in the arguments of the expression as well as in buildInputs?
<etu>
Not everything belongs in buildInputs
<cyris212>
I guess the arguments of the expression is a super set?
fendor has joined #nixos
<etu>
Some stuff should be in nativeBuildInputs for example
<dunk>
I get the same thing when I try to build nix on base debian - No package 'libeditline' found
LeshaInc has quit [Max SendQ exceeded]
maximiliantagher has quit [Ping timeout: 272 seconds]
LeshaInc has joined #nixos
<tilpner>
dunk: The Arch package builds Nix with readline, so you could look at that. But note that someone was complaining about the repl being somewhat broken with readline
Ariakenom has joined #nixos
maximiliantagher has joined #nixos
DrLambda has joined #nixos
<dunk>
tilpner: How do I disable the need for this lib?
maximiliantagher has quit [Ping timeout: 250 seconds]
Glider_IRC has joined #nixos
<tilpner>
Did you find the Arch build description?
<dunk>
tilpner: I'm not sure where to look for it, sorry
<immae>
(I am the one who was complaining about readline being unusable with nix repl)
<immae>
The editline you should use is the one there: ftp://ftp.troglobit.com/editline/editline-1.15.3.tar.xz
<immae>
And you may use the build script I quoted here: https://aur.archlinux.org/packages/nix if you don’t know how to do (it has nothing different from usual ./configure make makeinstall)
Soo_Slow has quit [Remote host closed the connection]
<dunk>
I am getting this error when trying to compile
<dunk>
There's no network connectivity problem
<dunk>
Trying on release 2.2.1
<clever>
dunk: nix disables all network access during the build, something must be wrong for it to want to download a file
<dunk>
🙁
<ottidmes>
when you have Nix files as part of your package, in the case of Java I believe you would put it in $out/lib/java/ (or at least .jar files), but with Nix I am contemplating what is better $out/lib/$pname/ or $out/lib/nix/
<steveeJ>
hey Mic92, I've stumbled upon the NUR project, pretty cool! can I add a regular nix overlay to it?
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
<Mic92>
steveeJ is the overlay intended to override or add packages?
<steveeJ>
Mic92: I'm talking about this one: https://gitlab.com/steveeJ/infra/blob/master/nix/overlay.nix I'm happy for feedback on it. also, I have a variety of nixos and home-manager modules in it which I would like to share without necessarily have the changes live upstream. is that also a place for NUR?
<Profpatsch>
Hm, what is the easiest way to fetchPatch a github PR patch? That is when you append .patch to a PR
<Profpatsch>
Because just dumping it into fetchpatch doesn’t work, since it does the a/ and b/ prefixing thing
<steveeJ>
Mic92: is there an example of how the overlay is then used instead of with the overlay process? I'm not sure I get the practical difference here
<tilpner>
steveeJ: I think it's among the packages that should live in nixpkgs. #55446 is still looking for a maintainer, and maybe you can review it too
<{^_^}>
[nixpkgs] @vcunat pushed commit from Lassi Haasio to master « maintainers: add ilikeavocadoes (Lassi Haasio) »: https://git.io/fhHN2
<tilpner>
steveeJ: Yes, and I got it working for a while. But then something changed and now networking is broken during image builds (but not while running the base image)
nD5Xjz_ has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #55514 → vcs_query: init at 0.4.0 → https://git.io/fhHNa
<Profpatsch>
Mic92: What’s the easiest way to get that for a PR?
<steveeJ>
tilpner: to make this support multiple users we need a group for the podman users and then add 65k to the start of each users range. that could also live in the module.
<tilpner>
Yes, I just didn't have the time, and it was an experiment anyway
<EffSquared>
Good day. It seems like staging has not been merged for almost a month. Then again the metric I used searching 'merge branch staging', there must be a correct way to check this.
zupo_ has joined #nixos
<MichaelRaskin>
Staging or staging-next?
<MichaelRaskin>
The flow is staging -> staging-next -> master
<tilpner>
steveeJ: I tried it because I wanted to try another project that was using Docker as a build system (but I didn't want to use Docker). Now that the other project is no longer relevant to me, I no longer have a need for Docker or podman. I don't think I'll be able to put much time into NixOS support for it
<MichaelRaskin>
You can see the discussion in the PRs from staging-next to master
zupo has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
Ah indeed #54306 is abount a month old
<gchristensen>
interesting, nixos/release-combined.nix can't be called with --pure-eval
<clever>
gchristensen: how does it fail?
<gchristensen>
pkgs = import ./.. {};, and this depends upon builtins.currentSystem
<clever>
ah
<gchristensen>
I could do a scopedImport >:D to fix it
<clever>
ew! :D
iqubic` has joined #nixos
<gchristensen>
ofborg should probably switch to a pure eval
silver has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iqubic has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
tmaekawa has joined #nixos
Guanin has joined #nixos
fuzzy-id has joined #nixos
<EffSquared>
MichaelRaskin: I see. Thanks. Thats interesting. Staging and staging-next are more than 200 commits apart, with a lot of cherry picking.
<Guanin>
Hi, what is the nix/home-manager way of declaring to start something when launching the X session? Writing ~/.xprofile?
<fuzzy-id>
which desktop environment(s) would you guys say is the most integrated/beginner friendly one in nixos?
<srhb>
fuzzy-id: Given that the "graphical installer" uses KDE, (I think) that's probably a reasonably safe bet.
<clever>
fuzzy-id: i use xfce for all of my systems
<srhb>
Guanin: xsession.
<EffSquared>
MichaelRaskin: Why is there no pull request to merge staging into next-staging? Is it rude to open one, if I think patches are ready to ship?
<clever>
ive found that kde has a lot of bloat, it installs a crap-ton of things when enabled
<sondr3>
I have a bit of a weird problem, me and my SO built identical computers together but she's running Arch and I'm NixOS with KDE5 but for some reason the audio settings in KDE doesn't allow me to use the builtin audio
<sondr3>
It just says it's off in the settings
<sondr3>
I have a USB DAC/AMP combo that works fine, but this means I cannot connect my microphone
<sondr3>
running `lspci -k | grep -E "Audio" -A 2` shows both audio devices, but the one from the motherboard has no driver in use
<clever>
sondr3: check the profiles on the configuration tab, in pavucontrol
<clever>
sondr3: also, see what driver arch is using, and try to modprobe it on nixos
regulus_ has quit [Read error: Connection reset by peer]
<sondr3>
is lsmod enough to list the drivers or should I do something more?
regulus_ has joined #nixos
<clever>
sondr3: lspci -k tells you what driver it is
<sondr3>
huh, pavucontrol lists a ton of options that the plasma module doesn't
Anton-Latukha has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<sondr3>
it shows that she's using snd_hda_intel
balsoft has quit [Ping timeout: 240 seconds]
<clever>
sondr3: and on nixos, does `lsmod | grep snd_hda_intel` list it?
<sondr3>
gimme a sec, I'll power it off and check the cables
<sondr3>
thanks for the great help clever
<clever>
yep
<clever>
sondr3: something neat you can do that most others cant, you have a working machine to compare against, or even swap hdd's between@
<clever>
s/@/!/
<ottidmes>
gchristensen: I had hoped rustc 1.32 would be in the staging merge, but I guess its in the next one, guess I will have to wait a bit longer
<gchristensen>
ack
<MichaelRaskin>
EffSquared: the goal seems to be that only the necessary build fixes get picked into staging-next, and once staging-next ships, the entire staging is merged into staging-next and stabilisation is restarted
slyfox_ is now known as slyfox
teehemka_ is now known as teehemkay[away]
sondr3 has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
zupo_ has joined #nixos
fuzzy-id has quit [Ping timeout: 250 seconds]
sondr3 has joined #nixos
<sondr3>
clever: hot damn, I hadn't plugged it in properly, it now works
<noonien>
the compilation results in a .so that rofi needs to load
<noonien>
i think rofi has a flag that lets me instruct it where to find its plugins, however
teehemkay[away] has quit [Ping timeout: 244 seconds]
zupo has quit [Ping timeout: 245 seconds]
<noonien>
i think i can only supply one path, not multiple (i haven't checked)
<noonien>
either way, if the flag were not present, how would one add the .so from the build of rofi-calc to an existing path in the `rofi` package
<noonien>
i'm guesssing this would require some kind of support from the `rofi` package
<symphorien>
the usual way to do this is: make a rofi-with-plugins function which takes a list of plugins and symlinkJoins them with the original derivation for rofi
<symphorien>
then install rofi-with-plugins instead of rofi
<noonien>
oh, cool!
Soo_Slow has quit [Ping timeout: 246 seconds]
acarrico has quit [Ping timeout: 250 seconds]
fusion809 has joined #nixos
Makaveli7 has quit [Quit: Leaving]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximiliantagher has quit [Ping timeout: 240 seconds]
Makaveli7 has joined #nixos
<Thra11>
If I run `cabal2nix --shell . > shell.nix` then `nix-shell --run ghci` in a Haskell project, I can import the modules which the project depends on, but I can't import the modules in the project itself. How can I do this?
rfold has joined #nixos
<clever>
Thra11: i use `runhaskell Setup.hs configure` and then `runhaskell Setup.hs repl`
<Thra11>
clever: Thanks!
tilpner has quit [Quit: WeeChat 2.3]
acarrico has joined #nixos
EffSquared has quit [Quit: Leaving]
<ToxicFrog>
Argh. ledger-autosync is broken becaue it depends on fuzzywuzzy, which doesn't appear to even be packaged, let alone listed in its dependencies
<{^_^}>
[nixpkgs] @matthewbauer pushed 204 commits to staging-next: https://git.io/fhHxS
Guest64117 has quit [Ping timeout: 250 seconds]
elgoosy has quit [Remote host closed the connection]
maximiliantagher has quit [Ping timeout: 245 seconds]
mbrock has joined #nixos
<mbrock>
hey, I'm wondering why a build depends on a certain thing (llvm), but since the build fails I can't use `nix-store` to check the dependency graph
<symphorien>
use nix-store on the .drv file
<mbrock>
ah, the .drv is generated even before the build starts?
<symphorien>
yes
<symphorien>
it describes what to build
<mbrock>
thanks, that's good to know
<symphorien>
you can use nix-instantiate instead of nix-build to obtain it
<joepie91>
is there some sort of utility in nixpkgs yet for installing a global package from cargo via systemPackages?
<symphorien>
there is buildRustPackage
<joepie91>
that is only a small piece of the puzzle though
<symphorien>
then I don't understand what you want
<joepie91>
what I'm looking for is effectively `fromCargo "somepackage"` with maybe some extra options for non-cargo dependency specification, for quickly specifying a thing from cargo (like bootimage or cargo-xbuild) to install without having to essentially package it for nixpkgs
<pie__>
its really not user friendly that unfree packages arent listed in the search
<symphorien>
is there a history of the state of crates.io ? I mean is there a way to checkout the list of crates as it was last week ?
<symphorien>
that would be a requirement for a fromCargo function
<pie__>
joepie91, eh, wrong link. its kinda disappointing peoples' tooling is better than the official pages
<pie__>
theres an 18.09 at the top
<joepie91>
symphorien: right, okay, but that's still not a one-shot built-into-nixpkgs utility for quickly adding a Cargo package to systemPackages, it's still just a component to be used *for* building such a thing... so is the answer here "no, there's no such thing in nixpkgs yet"?
<joepie91>
pie__: I mean as in, it doesn't get regularly updated according to samueldr
<pie__>
joepie91, ah.
<joepie91>
symphorien: not sure I follow, why would that feature be needed?
<symphorien>
as far as I know, yes, but maybe I ignore such a tool
<symphorien>
because nix can only fetch stable resources
<symphorien>
using a impure fetcher would be a no-no given rust build times
mkoenig has quit [Remote host closed the connection]
<joepie91>
symphorien: Cargo claims an immutability guarantee on released versions like most language registries, afaik
<joepie91>
ie. once a version number has been used for a release, no new release under that number can ever be uploaded
<ToxicFrog>
Ok, wait, no, I packaged ledger-autosync and fuzzywuzzy myself
<ToxicFrog>
And ledger-autosync has buildInputs = [ pkgs.fuzzywuzzy ]
eadwu has quit [Client Quit]
<ToxicFrog>
But it can't find it at runtime, and it used to be able to
<ToxicFrog>
Did something change about python27Packages.buildPythonPackage in the last year that would affect this?
agander has quit [Ping timeout: 244 seconds]
hlolli has joined #nixos
<hlolli>
I'm thinking about finally upping my security, what password manager works well both with NixOs and devices like iPhone?
endformationage has joined #nixos
o1lo01ol1o has joined #nixos
<gagbo>
I'm curious about how you'd make it work with mobile devices too
<adisbladis>
Pass probably has ios applications
<gagbo>
(For the time being I use keepassxc on Linux and windows, synchronized with a nextcloud instance ; and I generate easy enough passwords to write for when I need mobile passwords)
<ToxicFrog>
I've been using keepass, which has an android version, and using a separate sync app to keep the vault synced between my computer and my phone
<ToxicFrog>
I don't know if there are iOS versions
<{^_^}>
#55413 (by msteen, 2 days ago, open): bitwarden_rs: init at 1.4.0
maximiliantagher has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
random_yanek has quit [Quit: random_yanek]
o1lo01ol1o has joined #nixos
shibboleth has joined #nixos
balsoft has joined #nixos
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
ryantrinkle has quit [Ping timeout: 245 seconds]
random_yanek has joined #nixos
mmlb3 has quit [Ping timeout: 246 seconds]
rycwo has joined #nixos
mightybyte has quit [Ping timeout: 250 seconds]
<noonien>
i've added systemd.users.services.myservice in my configuration.nix
<noonien>
and switched to it
<noonien>
but i don't see the service in systemctl --user list-units
<noonien>
it appears only after a reboot
<noonien>
reload-daemon didn't seem to add it either
mightybyte has joined #nixos
<noonien>
/etc/systemd/user/myservice.service exists though
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
drakonis has joined #nixos
balsoft has quit [Ping timeout: 246 seconds]
dsiypl4_ has joined #nixos
dsiypl4 has quit [Ping timeout: 250 seconds]
<das_j>
Are nix builds run in an own networking namespace?
<clever>
das_j: normal builds are, fixed-output are not
<das_j>
Thank you :)
<clever>
das_j: they only see `lo` with the normal 127.0.0.1
fsdlajfdlsakjfls has joined #nixos
<das_j>
So if the build starts a daemon that listens on a already-occupied port, that's no problem?
<fsdlajfdlsakjfls>
Hey guys, bit awkward. But I'm high on LSD and really need to delete all my old NixOS generations to free up space and I'm too high to figure it out how do I do that again
<fsdlajfdlsakjfls>
Thanks :D
<simpson>
das_j: It might be fine. What are you building?
<das_j>
simpson: Galera cluster. And iirc it does listen during some tests. And the server running the hydra already has a Galera node running
<das_j>
fsdlajfdlsakjfls: Try sudo nix-store --gc
<fsdlajfdlsakjfls>
Or just the unused packages that are in the cache I guess?
applePrincess has joined #nixos
<fsdlajfdlsakjfls>
das_j: Yes, that's what I wanted
<fsdlajfdlsakjfls>
Thank you!
<fsdlajfdlsakjfls>
Bye!
<das_j>
you're welcome
<das_j>
enojoy the trip
<fsdlajfdlsakjfls>
Weee
fsdlajfdlsakjfls has quit [Client Quit]
<das_j>
wtf...
<simpson>
das_j: Ah, for testing. I appreciate your testing dedication. I think that even the `lo` is isolated with a namespace or something similar, so that you should be able to indeed use the same port number every time.
<das_j>
Okay, that should do the trick
<das_j>
I didn't say "nix test". I meant the tests the makefile (?) executes
<clever>
das_j: yeah, builds have their own private `lo` they can listen on, so you dont have to do anything special
<das_j>
nice
<das_j>
btw, is /tmp for the temporary build root hard coded in nix?
<clever>
das_j: on newer versions of nix, its /build/
maximiliantagher has quit [Ping timeout: 246 seconds]
<simpson>
clever: ...Wait. So if I promise that, say, I'll compile a Monte module to a fixed output, then I'm allowed to do whatever networking I'd like towards that goal?
<das_j>
I mean on the host system
<simpson>
In particular, I'd be allowed to turn up something like a DHT node?
<das_j>
The directory under /build in the chroot
<clever>
simpson: yep
<clever>
simpson: you can even open a reverse shell and let an attacker into the box (under the nixbld user)
<clever>
das_j: i believe nix-daemon will obey its $TMP or $TMPDIR
<simpson>
clever: u'ii Amazing.
<das_j>
But there is no way to just change it for ONE build?
applePrincess has quit [Remote host closed the connection]
<clever>
das_j: not easily, why do you want to move it?
<clever>
simpson: the build will only pass if $out has the hash you defined upfront, and will fail if anything else happens
<clever>
simpson: but in some cases, having the build "never stop" could be worse
<das_j>
clever: Well, ajs124 and I have a system that builds AOSP in nix. However, /tmp (when on tmpfs) is usually to small to hold the entire AOSP source tree. So the only real solution currently is persisting the entire /tmp directory
<clever>
simpson: it could just be a crypto-coin miner :P
<clever>
das_j: you could use systemd.services.nix-daemon.Environment to mess with TMPDIR, so all builds use a diff temp dir
xkapastel has quit [Quit: Connection closed for inactivity]
<das_j>
clever: That might be a good solution, thank you
hlolli has quit [Quit: Leaving]
slack1256 has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dasJ opened pull request #55532 → mumsi: Init at git-2019-02-10 → https://git.io/fhHjY
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
stranger___ has quit [Quit: Connection closed for inactivity]
_kwstas has joined #nixos
o1lo01ol1o has joined #nixos
shibboleth has quit [Quit: shibboleth]
o1lo01ol1o has quit [Remote host closed the connection]
<noonien>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<noonien>
,
<{^_^}>
Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu IFD library unfree -A declarative escape'' paste libraries help stateVersion callPackage profiling pr unstable imperative which-channel escape" exec fancy-uninstall overlay xy NUR channels loot nixlang++ ping howoldis jDwhat pills pinning xml cloak error gctest.html nixGL runtimeDeps smart-questions tias upgrade wololo configsearch haskell
<noonien>
hmm, is there a channel wheere i can find more about the bot, without spamming here?
<qyliss>
You can PM it
<noonien>
oh, cool
<noonien>
there was a website where one could searech thought other peope's config, but i don't remember it
<qyliss>
I do it all the time for ,locate
o1lo01ol1o has joined #nixos
kleisli has quit [Read error: Connection reset by peer]
<samueldr>
,configsearch noonien
<{^_^}>
noonien: To search public NixOS/Nixpkgs/NixOps configs, use https://search.tx0.co (Ping ${"til" + "pner"} if it acts up again)
o1lo01ol1o has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
<noonien>
oh, cool
<noonien>
oh, can't find what i'm looking for
<noonien>
i'm using i3blocks, and i currently have `/nix/store/klqv1dy2z5awi9lij6m8a67j58z2yayl-i3blocks-1.4/libexec/i3blocks/$BLOCK_NAME` but this is not a good solution
<noonien>
oh, i just realised it's passed to `sh -c`, so i should be able to have a command that gives me the derivation path
<noonien>
how do i get the store path for a package?
<elvishjerricco>
Or environment.etc the config file
<noonien>
OH
<noonien>
i didn't think of that
<elvishjerricco>
(If it's an etc file)
<srhb>
noonien: If you're willing to generate your i3 config file through nix itself, you can also do what samueldr showed you and elvishjerricco suggested.
<srhb>
(Then it's okay to refer directly to a store path, since everything is in sync)
<srhb>
But having it in your system profile should be just fine too.
<srhb>
noonien: did you rebuild after adding i3blocks to your systemPackages?
o1lo01ol1o has joined #nixos
<clever>
noonien: find doesnt follow symlinks
<cswl>
HI
<srhb>
I'm not certain it's in the default pathsToLink anyway.
<cswl>
Im trying to start services from nix pkgs.. but nothing is there
<cswl>
I mean the service files for systemd
<noonien>
srhb: yes, i3blocks is installed for quite a while, i had the store path in the config file, which works, but it's hacky
<noonien>
i don't want to generate configs or anything, there is no need, it seems like an overengineered solution
<srhb>
noonien: You probably want to do environment.pathsToLink = [ "/libexec" ]; then
<noonien>
oh, great, i'll try that
<elvishjerricco>
cswl: Are you trying to use these services on NixOS or non-NixOS?
<cswl>
Non..
maximiliantagher has joined #nixos
<cswl>
Just nikpkgs in /nix/store
<noonien>
wohoo! thanks srhb! i can now use `/run/current-system/sw/libexec/i3blocks/`
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<noonien>
i'm planning to get rid of i3blocks soon anyway, just wanted to learn how to fix these kinds ofissues
<elvishjerricco>
cswl: NixOS has services defined for many nix packages, but none conveniently written to be used as systemd services on other distros. Home-manager is the closed thing for that
<srhb>
noonien: Great :) Yeah, you either generate a nix expression that can interpolate a store path directly, or you install into a profile (such as the system profile) to get a stable path across versions.
<jD91mZM2>
How do you access the entire log from `nix build`? Or should one just resort to `nix-build` for now?
<{^_^}>
[nixpkgs] @seqizz opened pull request #55533 → gita: init at 0.7.2 → https://git.io/fhHjF
<noonien>
/run/current-system/sw/libexec/i3blocks seems like a better solution, beacuse the store path might change after starting i3blocks then doing an upgrade + gc
mmlb3 has joined #nixos
<symphorien>
jD91mZM2: nix log
<noonien>
well, one could argue the reverse
maximiliantagher has quit [Ping timeout: 244 seconds]
o1lo01ol1o has joined #nixos
Church_ has quit [Ping timeout: 240 seconds]
<srhb>
noonien: The idea with using a nix expression with interpolation is used many places and works just fine because your wrapper or whatever will always depend on the "newest" path -- the one that you've currently built
MinceR has quit [Ping timeout: 240 seconds]
<noonien>
well, that would have also been a solution, since i3blocks allows me to do that
<noonien>
but i couldn't figure out how to do it
<noonien>
nix eval i3blocks did not work
<srhb>
Nono, I mean a _nix_ expression, not a command line.
<srhb>
nix eval nixpkgs.i3blocks.outPath would work, but is a bad solution exactly because of the decoupling you mentioned.
<noonien>
is `nixpkgs.i3blocks.outPath` not a nix expression in this case?
MinceR has joined #nixos
<srhb>
Yes, it is. What I meant is that the expression that generates your config should be in sync with i3blocks store path always
<srhb>
This solution will not
<cswl>
elvishjerrico.. I see.. theres systemd.services = mapAttrs'.. which I think creates systemd files for NixOS
<noonien>
Oh, i see, so basicallly turning my config into a derivation
<srhb>
noonien: That's right.
<noonien>
I will eventually do this, but i'm currently working on migrating away from ubuntu
<srhb>
noonien: That would inject the dependency on the store path of i3blocks directly, ensuring there can never be a "desync"
<symphorien>
noonien: it may be worth the time, yet. You are currently going "against" the design of nix, and this will make everything more complicated for you.
<noonien>
I understand, I'm making things better with each iteration, but i need to get stuff working first
<symphorien>
my point is: you might go faster doing it the "right way"
hellrazo1 has quit [Quit: WeeChat 2.3]
<noonien>
i don't disagree. i'm still learning what the "right way" is, the nix way of doing things is unlike any os i've ever worked with before
<{^_^}>
[nixpkgs] @samueldr opened pull request #55534 → pythonPackages.mailman-rss: init at 0.2.4 → https://git.io/fhQee
MinceR has quit [Ping timeout: 246 seconds]
MinceR has joined #nixos
i1nfusion has quit [Remote host closed the connection]
iqubic has joined #nixos
i1nfusion has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
Yaniel has quit [Excess Flood]
Yaniel has joined #nixos
agander has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
I have a systemd user service that I expect to be restarted when I change it, but it does not. I first thought it had to do with it inactive/dead, so it cannot be restarted before being started, but after changing it to Type=oneshot and RemainAfterExit=yes, starting it, and rebuilding, it still did not restart, any ideas?
hph^ has quit []
<clever>
ottidmes: why is it Type=oneshot?
JosW has quit [Ping timeout: 252 seconds]
<ottidmes>
clever: its a script that checks something and if it passes, it copies some files over, which it should only need to do once at start and rebuild
hphs^ has joined #nixos
<clever>
ottidmes: ah, not sure then
<clever>
ottidmes: an activation script might do it, but you need to be careful not to fail there, or the machine wont even boot
<elvishjerricco>
ottidmes: I had an issue with user services one time. I had to call `systemctl --user daemon-reload` manually. No idea what caused it, but ever since, I've always made sure to do that myself just in case.
asymmetric has joined #nixos
<elvishjerricco>
Not sure if user services are automatically reloaded or not
<ottidmes>
their config seems to imply they do, but in practice the seem not to
<clever>
ottidmes: it restarts when changed by default
<clever>
ottidmes: the restartifchanged flag is to disable that
<ottidmes>
if only it did :P that is the behavior I expect, but it does not seem to do so for user services
<clever>
ottidmes: last i looked, user services dont have any support for that, but it may have been changed recently
<ottidmes>
my point was, if there is a flag to disable this default behavior, it ought to be the default behavior, or else, why have such a flag
rfold has quit [Quit: leaving]
<noonien>
hmm, i'm trying to install nerdfonts, however, nixos-rebuild seems to hang after a 127byte curl
<clever>
noonien: what happens if you manually run curl on the same URL?
<clever>
with just the url and no other flags
rcshm has quit [Remote host closed the connection]
<ottidmes>
I don't mind making my service a system service, it that makes things easier for me, though is there an easy way to use the target directory permissions when copying as root?
<noonien>
it's a github URL, which redirects, and curl doesn't follow redirects by default
<clever>
noonien: add -L to the flags
asymmetric has quit [Remote host closed the connection]
<clever>
ottidmes: you could just set the User= flag to run as that user
rcshm has joined #nixos
asymmetric has joined #nixos
<noonien>
it doesn't hang
<ottidmes>
clever: yeah but I would prefer not having to hardcode that
<ottidmes>
clever: since I plan on sharing this with others
<clever>
noonien: try downloading it with -L -O, then run `nix-store --add-fixed sha256 ./file`
<clever>
ottidmes: not sure then
<elvishjerricco>
noonien: I'm building nerdfonts now. I don't think it hangs
<elvishjerricco>
noonien: The build log stops moving, but my network usage remains high
<elvishjerricco>
I think the binary is just very large
<elvishjerricco>
and takes a while to download
<noonien>
oh, i'll install something to monitor my bandwith to see if that's the issue
<clever>
noonien: vnstat -i eth0 -l
<ottidmes>
clever: chown --reference="$dir" "$dir" will work I guess
<clever>
ottidmes: ah, that should work
<clever>
ottidmes: -R may also be required
<tilpner>
noonien, elvishjerricco: 2027M
<noonien>
oh, yeah, it appears to still be downloading from github, just REAL slow
<noonien>
i was expecting for the progress to be displayed in the log
<noonien>
that's a lot of fonts
<elvishjerricco>
noonien: It's been going at 6M/s for like 5 minutes now on my machine :P
<noonien>
< 30KB/s for me
<noonien>
heh
<elvishjerricco>
noonien: Yeesh. That'll never finish
<noonien>
damn UK ISPs suck
Anton-Latukha has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<tilpner>
Is your connection just that bad, or is it a GH mirror problem?
<noonien>
i'm from romania, where i pay 9EUR/month for 1Gbps fiber
<noonien>
UK internet, by comparison, is stuck in the stone ages
<noonien>
tilpner: i's vodaphone, it's not uncommon to work a LOT faster via vpn
freeman42x has joined #nixos
<noonien>
i usually get >8MB/s via vpn on wifi, while without vpn, it's not uncommon to get 30KB/s for connections
<tilpner>
Ah, okay. I thought you might have to wait 20h for some fonts now
<noonien>
especially with content that's supposed to sit on CDNs
<noonien>
well, i just won't install nerdfonts
<__monty__>
Wow? They delay inspectable traffic that much?
<noonien>
2GB is too much anyway for me using just one font
<noonien>
__monty__: for some reason, i don't trust UK IPS at all
<tilpner>
noonien: You can probably adapt the package to install just a single font, and that might even save bandwidth if you have remote builders
<noonien>
tbh, i'm pretty sure they even do promiscous packet capture on the router they so generously provided
<noonien>
i need to get nordvpn working, it works with openvpn, but i quite like their CLI
<tilpner>
noonien: Or you could adapt the package to select fonts from the GitHub releases
slack1256 has quit [Ping timeout: 268 seconds]
<noonien>
oh, yes, i'll do that. i was digressing into my VPN issue
agander has joined #nixos
jabranham has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<noonien>
withFont seems to download the entire .tar.gz as well
<noonien>
oh well
o1lo01ol1o has joined #nixos
JosW has joined #nixos
<tilpner>
noonien: Is withFont a function in nixpkgs?
<tilpner>
Or did you just write that?
<noonien>
i did not, i saw it used by someone, i wouldn't find it in the .nix files for nerdfonts, but for some reason withFonts failed, while withFont worked
zupo has joined #nixos
<noonien>
it worked as in "it did not error", didn't actually seem to do anything
<tilpner>
Then you'll have to write your own function that downloads the fonts separately from the releases
<noonien>
will do, kinda weird that's not what the version in nixpkgs does
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhQvt
<samueldr>
main issue I can see is that some software will default open/save dialogs to $HOME
<samueldr>
but I *think* most will default to another XDG spec
<noonien>
hmm, yeah, that might be a better solution than patching the kernel to hide files, or map paths
_kwstas has quit [Client Quit]
<noonien>
even if not perfect
<noonien>
i wonder if i can get zsh to behave as if ~ == $HOME/..
<noonien>
so i can just `cd` to go home
<samueldr>
(and semi-related, I was thinking of doing the dumbest thing just to see what breaks, of having gobohide hide everything, and have C:/Documents and Settings/samuel/ be my home :))
<noonien>
haha
aanderse has joined #nixos
<samueldr>
oooh, right, hadn't thought of shells and `cd`
<noonien>
gobohide seems to require quite a bit of hacking though
aanderse_ has quit [Ping timeout: 244 seconds]
<noonien>
you never know when hacks might break
<samueldr>
right, a reason why I haven't upstreamed the patch
<MichaelRaskin>
nsjail with a proper set of mounts
shibboleth has quit [Quit: shibboleth]
<noonien>
a LD_PRELOAD hack might work
<MichaelRaskin>
Until the first Go program
<noonien>
or setting $HOME for programs that might abuse it
<MichaelRaskin>
(or FPC program…)
eadwu has quit [Quit: WeeChat 2.3]
ibxth has quit [Ping timeout: 246 seconds]
eadwu has joined #nixos
<noonien>
hmm, now that i have my own overlay, i'll try to get opensnitch running at some point
<{^_^}>
[nixpkgs] @samueldr merged pull request #55040 → Fix manual Makefile by including function doc generation → https://git.io/fhybg
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhQvg
Church_ has joined #nixos
<tazjin>
samueldr: Thanks for the merge!
<samueldr>
thanks for the fix tazjin
<tazjin>
I was also the one who originally broke it, so it evens out 😉
mr_noobs has quit [Ping timeout: 244 seconds]
mrnoobs has joined #nixos
Mrmaxmeier has quit [Quit: Ping timeout (120 seconds)]
mrnoobs has quit [Client Quit]
Mrmaxmeier has joined #nixos
ibxth has joined #nixos
iqubic has quit [Ping timeout: 264 seconds]
tuxubuntu[m] has joined #nixos
<noonien>
is there a documentation for nixpkgs.lib?
<noonien>
i'm trying to understand fetchFromGithub and related functions
<noonien>
and i don't even know where it is defined
<ottidmes>
noonien: I just always read the source code
<ottidmes>
noonien: that particular fetcher is defined in all-packages.nix
<qyliss>
fetchFromGitHub isn't actually part of lib, fwiw
<noonien>
i see
<tazjin>
noonien: yes there is, but it's not yet on the public website
<noonien>
is there a command i can run so i can go to the file that defines, for example, fetchFromGitHub?
<tazjin>
at least for the lib stuff
<qyliss>
nix edit nixpkgs.fetchFromGitHub
<tilpner>
That doesn't work for functions
<qyliss>
Oh, yes, my bad
<qyliss>
I usually do stuff like `git grep fetchFromGitHub =`
<tilpner>
Same here
<qyliss>
err, `git grep 'fetchFromGitHub ='`
<noonien>
hmm, ok
<noonien>
is there a way of getting the nix store path of a channel?
<noonien>
or, an easy way to just cd to it, so i can grep inside
seanparsons has quit [Remote host closed the connection]
<ottidmes>
noonien: I don't use channels via nix-channel, so I cannot test, but I guess this ought to work: realpath "$(nix-instantiate --eval --expr '<nixpkgs>')"
<tazjin>
noonien: if you just type `<nixpkgs>` or whatever into the repl you'll get the path
<tazjin>
or what ottidmes said
seanparsons has joined #nixos
cswl has quit [Quit: Connection closed for inactivity]
<noonien>
i see
<noonien>
ottidmes: do you have that aliased by any chance? isn't that something you do often?
<ottidmes>
noonien: I do have an alias, but I never really use it, no
<noonien>
hmm, is there an other way you browse through nixpkgs's source? do you have a local clone?
<ottidmes>
noonien: not sure what your use case is? I use <nixpkgs> in scripts often enough, but I rarely actually need to know what that resolves to myself
<ottidmes>
local clone
<noonien>
i see
<ottidmes>
for PRs and some local patches
<ottidmes>
and I use it instead of nix-channel
ddellacosta has quit [Ping timeout: 250 seconds]
<noonien>
i see
rcshm has quit [Remote host closed the connection]
<noonien>
hmm, i want to create a derivation for installing specific fonts from nerdfonts, each font has an url from which it can be downloaded
ddellacosta has joined #nixos
<noonien>
i'm unsure if i should create a derivation for each font, create a derivation on the fly, something like `nerdfonts.font "Something"`, or provide package options, with a default set of functions
<noonien>
s/functions/fonts
rcshm has joined #nixos
<ottidmes>
well if you create one for each font, it should be easy enough to combine them, so that would be the most flexible I guess
endformationage has quit [Ping timeout: 272 seconds]
<noonien>
imho, the best solution would be to create a derivation for each font, however, in this case, should i have one folder per derivation? or one file?
<noonien>
or, better yet, since i have a list of "name" "url" "sha", perhaps generate the derivations from that
random_yanek has joined #nixos
<ottidmes>
you could even have a whole bunch in a single file, the boilerplate per font can just be done by a function
<ottidmes>
well its not necessary to make it usable as an attrset of packages, but it allows it to be found by the build machines and search tools
halfbit has joined #nixos
Glider_IRC has quit [Ping timeout: 240 seconds]
<noonien>
attrset, so using it as nerdfonts.afont?
<ottidmes>
yep
<noonien>
hmm, that's pretty awesome
_kwstas has joined #nixos
<arianvp>
what's the benefit of nix-copy'ing a closure over to a server, instead of sending it the nixfile and letting it nix-instantiate itself?
_kwstas has quit [Client Quit]
<arianvp>
it shouldnt make a difference, if the build server and the server to deploy share the same build cache, right?
q6AA4FD has joined #nixos
<arianvp>
wondering if it would be more pratical to send nix files to my servers in prod, than nix-copy-closur'ing
<noonien>
is this a commmon convetion? are there packages that don't follow this conventions and do something similar to nerdfonts-afont?
_kwstas has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<ottidmes>
noonien: its actually uncommon, I could not find many examples of it myself at least, when writing those mods/engines for openra, there are of course the language packages
<noonien>
i remember xorg doing this
<noonien>
xdpyinfo is actually xorg.xdpyinfo
<ottidmes>
right, xorg is another example
slack1256 has joined #nixos
sakalli_ has joined #nixos
<ottidmes>
so what they do, and in hindsight I should have done as well, is just use callPackage as you always do, and have { pkgs }: as the argument at least
iqubic has joined #nixos
<ottidmes>
for your set file
sakalli_ has quit [Client Quit]
xkapastel has quit [Quit: Connection closed for inactivity]
rcshm has quit [Remote host closed the connection]
<noonien>
i'm unsure about the comment
rcshm has joined #nixos
<noonien>
and why exactly they call lib.callPackageWith
xkapastel has joined #nixos
<tilpner>
arianvp: It makes a great difference if your evaluation needs many local files
<tilpner>
arianvp: You are speaking of copying the closure of derivations (not outputs), right?
o1lo01ol1o has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
ddellacosta has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
i1nfusion has quit [Remote host closed the connection]
<laas>
what's the difference between all the normal packages and the unwrapped packages?
longanonname has joined #nixos
<longanonname>
Hiho
<longanonname>
I'm having some trouble with a fresh nixos setup on my laptop
o1lo01ol1o has joined #nixos
<longanonname>
been using it without trouble on my desktop for a while but I got a new laptop and I just set the networking.wireless.enable to true and thought everything'd be fine
<longanonname>
but I can't connect (or more like I can't get an ip address? there's no dhclient?) to the internet no matter what
fl0_id_ is now known as help
<longanonname>
and I can't rebuild-switch into a networkmanager cause I don't have internet
<longanonname>
-_-
help is now known as Guest35439
Guest35439 is now known as step21
<ottidmes>
longanonname: if you cannot connect via ethernet, maybe use the liveCD again and mount your filesystems, and do another nixos-install (after changing your config to include networking.networkmanager.enable = true;)
<longanonname>
egh
<longanonname>
was afraid that'd be the answer
<longanonname>
so no idea why wpa_supplicant aint working?
<ottidmes>
its probably possible somehow without going with that route, but is definitely the easiest route
<longanonname>
to be precise: I can scan and find networks, I can activate the networking interface, I can register a network and put in a ssid etc. but then I get stuck on what I perceive to be the penultimate step: getting an ip address and re
<ottidmes>
never used wpa_supplicant myself, I always sticked with networkmanager since it never failed to work for me
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<ottidmes>
maybe someone else can help
<longanonname>
okay
<longanonname>
I'll just go with network manager then
<lassulus>
longanonname: can you run dhcpcd $yourwifi
<longanonname>
sec
<longanonname>
aha
<longanonname>
no such file or directory for dhcpcd.conf
<longanonname>
also was not aware of this dhcpcd command
agander has quit [Ping timeout: 244 seconds]
<lassulus>
not sure if it's the default, it's been a while since I last installed nixos without networkmanager
<lassulus>
how do you connect to the wifi? wpa_cli? are you editing /etc/wpa_supplicant.conf manually?
<longanonname>
tried both of those
<longanonname>
and also making the supplicant.conf thing with wpa_passphrase or whatever it was called
<longanonname>
but yeah becoming increasingly clear that network manager is the way to go -_-
<lassulus>
does iwconfig show the wifi as connected?
<srhb>
longanonname: network manager actually has a tui (nmtui) these days that isn't horrible.
<infinisil>
Maybe take a look at `systemctl status dhcpcd`
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhQfC
<lassulus>
then there is a problem with the wifi-config I would guess
halfbit has quit [Ping timeout: 268 seconds]
<longanonname>
okay I checked the service status and it's failing arp_open and arp_announce
random_yanek has quit [Ping timeout: 244 seconds]
<longanonname>
but I'm 99% sure it's that I don't have this dhcpcd.conf thing
<longanonname>
so I'm going to figure that out and see what happens
<lassulus>
`read_config: fopen `/etc/dhcpcd.conf': No such file or directory` is also shown for me, but it's just a warning at the beginning, afterwards an ip is still requested
<longanonname>
oh
<longanonname>
huh
<longanonname>
then I'm somewhat out of ideas except going back to the installation media
o1lo01ol1o has joined #nixos
_kwstas has quit [Quit: _kwstas]
<lassulus>
does journalctl -u wpa_supplicant show any errors? association attempts?
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
Church_ has quit [Ping timeout: 246 seconds]
<noonien>
hmmm, i have a derivation with dontBuild = true, yet i still get "patching, configuring, installing" these are not part of the build process?
<srhb>
noonien: dontBuild skips the build phase, not patch, configure, or install phases.
<noonien>
hmm, i see, i have a zip of ttf files that only really need copying to a path
<longanonname>
hey thanks all for the help I fixed it
<longanonname>
and now I have networkmanager (y)
<noonien>
is it safe to just do phases = [ 'install' ];? or is this not recommended?
<lassulus>
noonien: you can just use the src derivation directly?
ryantrinkle has joined #nixos
<noonien>
yes
<lassulus>
or the src of the derivation, if you don
<lassulus>
don't need to edit it in any way
<noonien>
nope, i just need to change a path
<ottidmes>
noonien: try buildCommand instead
<ottidmes>
if you just have a src and want to do something with just the src
<ottidmes>
no standard phases that is
<noonien>
i just do `mkdir -p $out/share/fonts/truetype; cp *.ttf $out/share/fonts/truetype` in instalPhase
<obadz>
POLL - I'm switching out of GMail and looking for a good desktop E-mail client (would have gone for Mutt but need HTML E-mails). Thinking Thunderbird. Any recommendations?
<lassulus>
imo setting phases to [ "install" ] is a good enough solution
<noonien>
ottidmes: hmm, it seems fetchzip doesn't actually unzip
<noonien>
or, actually, just a second
<lassulus>
obadz: people recommended sylpheed to me, haven't really looked into it
random_yanek has joined #nixos
<obadz>
lassulus: thanks will have a look.
longanonname has quit [Quit: Page closed]
<noonien>
oh, nvm, cool!
<noonien>
btw, the sha256 from fetchzip is the sha256 of the zip, not the content, correct?