<clever>
appleclusters: line 12 is the new way i recomended above, when you `nix-env -iA nixos.newstuff`, it will install each thing in the set as a seperate entry, so you can still uninstall or upgrade a single item
<Laalf>
so when i define an overlay in home-manager via nixpkgs.overlays its not available in home.packages. does that mean that my overlay is wrong or is there something i am forgetting?
<nek0>
hi folks. is this the right hanel to ask questions about nixops?
<nek0>
simpson: cool. I need help setting up a server with NixOps. I want to have encrypted hard drives and decryot them using dropbear ssh, but when I deploy the configuration, The server gets unresponsive.
<infinisil>
Laalf: overlays you set for the home-manager config only apply to home-managers' pkgs. If you want to use NixOS' pkgs, you need to set the overlays in nixpkgs config
<Laalf>
infinisil: have a look at the config. the overlay is defined in the home-manager config and the package is in the home-manager.home.packages
dermetfan has quit [Ping timeout: 245 seconds]
<infinisil>
Laalf: Yeah, but what matters is where pkgs comes from
<infinisil>
That's coming from NixOS, not home-manager
<Laalf>
so the overlay must be outside of home-manager?
<infinisil>
Laalf: Yeah, that's the preferred way to do it
maximiliantagher has quit [Remote host closed the connection]
<clever>
drakonis: just remember, i'm the nut-job that tried to convert a gentoo machine to nixos, without using any install media or formatting anything :P
<clever>
drakonis: and the lustrate stuff in the initrd is based on the tales of how i fixed it :P
<drakonis1>
hahaha
tom39291 has joined #nixos
<drakonis1>
it can always get polished
<drakonis1>
turn lustrate into a sanity check tool
<clever>
and when doing something like recursively traversing directories, zfs can compare the seq# to see if a change is older or newer then a given snapshot
<gchristensen>
nixos modules merge together based on how their type defines merging behavior.
<clever>
and thats how it knows what to do
<gchristensen>
lists merge by concatenating together
<tom39291>
gchristensen: Ah, okay. Is that a nixos module thing, or something in Nix language spec?
<clever>
if the type is bool, then true will merge with true, false merges with false, and true+false == error
<clever>
if the type is un-specified, true+false == true, silently
<tom39291>
For context, my motivation is to do a similar thing for backed up directories. I want each service (which typically lives in its file) to define which directories ought to be backed up. And then a separate part of my NixOS setup deals with the "how do I backup a directory".
<gchristensen>
sounds great!
<bgamari>
If I have an executable which really expects to find, e.g., rm in /bin/rm, what are my options for running it?
<bgamari>
I was thinking perhaps fakechroot might do
maximiliantagher has joined #nixos
<bgamari>
but then I need to build the FHS environment myself
<praetorg>
what kind of executable is this
<bgamari>
frankly it's a bit unclear where the path is
<bgamari>
it occurs while running an installer written in java
<bgamari>
but I've grepped the tree for /bin/rm and found no references
<bgamari>
but then again, there is 15 GB of xz'd data as well
<bgamari>
which I've not tried looking at
<praetorg>
nothing except sh reside in bin
<drakonis1>
hmm
<bgamari>
tell that to xilinx :)
<drakonis1>
is lutris still absolutely broken?
<drakonis1>
oh xilinx
<drakonis1>
i solved that by running it inside a container
<bgamari>
hmm]
Ariakenom has quit [Read error: Connection reset by peer]
<drakonis1>
provide all libraries it needs without much effort
<bgamari>
drakonis1, with runInLinuxVm?
<drakonis1>
with nspawn
<drakonis1>
not particularly the best way to handle it, but it was what i had on hand
<bgamari>
drakonis1, did you do this within nix?
<drakonis1>
i wanna experiment with lxd now
<drakonis1>
yeah it was
<bgamari>
I would have thought that nspawn would require root
dsiypl4 has quit [Ping timeout: 245 seconds]
<bgamari>
drakonis1, were you on nixos?
<drakonis1>
yes
shibboleth has quit [Quit: shibboleth]
<bgamari>
drakonis1, do you have an example? I'm intrigued
gagbo has quit [Ping timeout: 268 seconds]
<drakonis1>
i ran a debian container inside
<drakonis1>
used xhost to allow the binary to reach my x server
<drakonis1>
worked decently well there
<bgamari>
drakonis1, right, but the question is how you actually created the container
<drakonis1>
nspawn can be made to not require root
<bgamari>
I see
<drakonis1>
in this particular case i did use root
<drakonis1>
systemd-nspawn i guess
<bgamari>
you used root from within a nix builder?
<drakonis1>
nooo
<drakonis1>
i used systemd-nspawn to create a container, from which, i ran the binaries i needed
<drakonis1>
it wasn't for package building, sadly.
maximiliantagher has quit [Remote host closed the connection]
<drakonis1>
it was to avoid running patchelf just for this
maximiliantagher has joined #nixos
zukaboo has joined #nixos
<bgamari>
libredirect looks like it may help here
acarrico has joined #nixos
simukis has quit [Quit: simukis]
<maximiliantagher>
I'm trying to figure out which channel to use for Haskell packages for an application. Is it correct that nixpkgs-unstable might have broken Haskell builds, since only the critical packages (constituents) are required for a passing build? Do I need to use 18.09 to get guaranteed building Haskell packages?
<clever>
maximiliantagher: i would just start on unstable, and if it works, keep using it, and probably pin it to the current rev
<infinisil>
maximiliantagher: There's gonna be broken packages in all channels, there's no way every build could succeed
<zukaboo>
How can a VST plugin ignore LD_LIBRARY_PATH?
<infinisil>
We have all hackage packages after all
justanotheruser has quit [Ping timeout: 240 seconds]
<clever>
`_: then nix-serve.enable isnt enabled
<`_>
clever: you're correct.
morgan_ has quit [Quit: Page closed]
<`_>
We're also at a revision in which nix-serve was broken, which is why I was confused earlier today as to how morgan_ managed to get it working
hedning has joined #nixos
<clever>
`_: there is also a minor security issue with both hydra and nix-serve, if you posted `ls -l /run/current-system`, and i enabled your cache on my machine, i could `nix-store -r /nix/store/foo` to download your entire nixos build (the hydra install)
<clever>
`_: that would include any defaults fed to passwd, and the secrets in hydra.conf
<`_>
Um
<`_>
clever: thank you for that info
<drakonis>
ah geoclue isn't working with redshift :(
<clever>
just be careful when posting storepaths that depend on secrets
<`_>
Will do. Appreciate it
<clever>
`_: using the S3 bucket in hydra can solve that issue entirely
<`_>
clever: can you explain?
<iqubic>
Can people really reverse engineer secrets from store paths?
<{^_^}>
input-output-hk/iohk-ops#352 (by cleverca22, 33 weeks ago, merged): [DEVOPS-836] configure hydra to upload everything to S3
<`_>
clever: thanks
<clever>
iqubic: they cant reverse engineer the secrets directly, but if nix-serve is running on the box with secrets, you can just download the whole storepath
<clever>
nix-serve doesnt provide list, but if you know the path, you can download
<iqubic>
Doesn't that require the owner of the machine to give you permission to download stuff?
<clever>
iqubic: nix-serve doesnt have any password protection
maximiliantagher has quit [Read error: Connection reset by peer]
<clever>
iqubic: so its entirely up to your firewall, but in cases like `_ , your opening that on purpose, to let people download things
<iqubic>
But don't you need their IP or something so that you know which machine to download from?
<clever>
iqubic: yeah
<`_>
iqubic: clever can easily figure that out
<clever>
`_: both you and morgan lack IP masking on freenode, so your local machines are clearly visible
<clever>
iqubic: you as well
doyougnu has joined #nixos
<gchristensen>
hopefully their machines aren't running nix-serve publicly
<clever>
gchristensen: iqubic's firewall appears to block all ports
justanotheruser has joined #nixos
<iqubic>
I'm running on a laptop, and I don't even know what nix-serve is.
<iqubic>
I think I'm fine.
<`_>
clever: for the time being we're disabling nix-serve and hydra
maximiliantagher has quit [Ping timeout: 240 seconds]
<bgamari>
is vmTools.diskImageFuns.debian9x86_64 broken?
<bgamari>
I'm seeing " error: cannot download base-files_9.9+deb9u5_amd64.deb from any mirror"
<apajx>
What's the right way to have applications persistent across boots (in terms of there options) and opened on boot? (specifically things like latte-dock and qsyncthingtray)
<{^_^}>
[nixpkgs] @allowthere opened pull request #54657 → Update to Go 1.11.5 → https://git.io/fh6Z8
<wedens>
yeah, I understand that it may not be reliable
<q6AA4FD>
wedens: do you want to clean a work directory or something?
<samueldr>
ooh, TIL
<wedens>
I have a process that is started in `shellHook` and I want to terminate it when I exit the shell
mounty has quit [Read error: Connection reset by peer]
maximiliantagher has quit [Ping timeout: 268 seconds]
<q6AA4FD>
wedens: what process?
mounty has joined #nixos
<wedens>
postgresql :D I'm toying with idea of local postgresql isntances
<clever>
wedens: you should be able to just set a normal bash exit hook
<q6AA4FD>
are you using nix-shell for the shebang with -I ? because you might do better to implement some of this in the program itself
<samueldr>
clever: since there is apparently a exitHook, setting your own trap would mess with the one from stdenv
<clever>
samueldr: possibly, but i think the stdenv one might only be used for nix-build, and the special hydra flag to "suceed" even on failure
<wedens>
q6AA4FD: no, I don't use it for shebang
<samueldr>
wedens: as for me, I settled on running it through something else, with the development server, not sure how it fits in your idea https://github.com/samueldr/hydra-in-a-bag/
<samueldr>
how I envision it for the developer is that they only one command to start the server processes, and runs another shell (tab, tmux pane, etc) for entering the shell if needed
<samueldr>
makes it less likely to leave proceesses around I hope
<samueldr>
though I'd like to compare notes about the postgresql instance
aleph- has quit [Ping timeout: 240 seconds]
<samueldr>
my script to start a postgreSQL instance is a battlescarred script that fought maybe too many battles :)
<samueldr>
(without a fresh look at)
<q6AA4FD>
i see, for debugging?
<wedens>
samueldr: does it stop hydra instance when you exit shell? I see that there is a trap to kill postgres, is it enough to stop hydra?
<samueldr>
ah, uh, the scirpt itself only manages postgresql
<clever>
wedens: `let packages = self: { ... }; in in pkgs.lib.makeScope pkgs.newScope packages
<clever>
wedens: this will create a new package set, where you can use self to refer to your own output, but it also has both a callPackage and extend function
<clever>
wedens: callPackage will first search the result of packages, then search pkgs
<clever>
wedens: and extend can insert an overlay between the result of packages and self
<clever>
so you can now apply overlays to any custom set of things
<clever>
wedens: extend will remove override, so you cant do it in the wrong ordder
<wedens>
clever: that's good
palo1 has joined #nixos
<clever>
override is added as a side-effect of callPackage
<clever>
and override works by re-calling the package with different args
<clever>
extend is part of the packages return value, and doesnt have access to the override function, so it cant preserve override
<clever>
(but it could add its own duplicate override, that is only exposed when you use extend)
palo has quit [Ping timeout: 244 seconds]
palo1 is now known as palo
<wedens>
can there be some more declarative interface (function) that uses extend/override underneath when you don't need to do anything fancy? it seems to be pretty common issue
<elvishjerricco>
wedens: My preference would be to fix extend to operate friendly with override
<elvishjerricco>
But a convenience function for using override properly would be nice too
<wedens>
maybe `developPackage` is closest thing to such convenience function
smolboye has quit [Quit: WeeChat 2.2]
maximiliantagher has quit [Remote host closed the connection]
smolboye has joined #nixos
tdbgamer has joined #nixos
rauno has quit [Remote host closed the connection]
rprije has quit [Remote host closed the connection]
<ixxie>
I need a certain font, and would like to try and make a derivation for it but test it on my own NixOS configuration (since I actually need it in inkscape today)
<elvishjerricco>
wedens: I really dislike developPackage. The resulting derivation can’t be used as a dep of any other project that intends to use nix-shell
<nimblepoultry>
hi I'm booting from nixos-graphical-18.09.1985.749a3a0d00b-x86_64-linux.iso and systemctl start display-manager flicks 3 times and fails, journalctl seems to say No screens found, I found a similar problem here https://github.com/NixOS/nixpkgs/issues/10381 , i then checked grub to see if nomodeset was a param (and it wasn't) I also tried the other boot entry that provides it
<{^_^}>
#10381 (by cstrahan, 3 years ago, closed): Can't start display-manager.service on LiveCD
<nimblepoultry>
any ideas?
<wedens>
elvishjerricco: I haven't tried using it as a dep, so I don't know the issues. but at least its easy to use for beginners and those who don't want to dig into override/extend and other non-trivial stuff
<wedens>
`developPackage` is what nix is good at. it's declarative
<ixxie>
hmm, this font is distributed with a docker-based pythonic build environment, and I am not exactly sure how to package it: https://github.com/rsms/inter
<ixxie>
but I guess the intuitive thing for this package if I don't add those options is to install everything
<wedens>
if you don't want to bother with customization, I'd just install hinted ttf
jtojnar has joined #nixos
<wedens>
if they're not exclusive (font name is different), you can install all variants. but I would not bother with anything other than ttf
<ixxie>
this font is designed for UIs
<ixxie>
the web variant may be desirable
<ixxie>
but I guess for now I will install one an when submitting to nixpkgs I will add options
infinee_ has joined #nixos
orivej has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<Mic92>
ixxie: does it really make sense to have an option for that? If there is one variant where most people are be happy with then we don't need an option for that.
sakalli_ has joined #nixos
sakalli_ has quit [Client Quit]
dermetfan has joined #nixos
maximiliantagher has joined #nixos
_kwstas has joined #nixos
<ixxie>
Mic92: well I don't know, as I said in this case its specifically a font designed for UIs. So if you do an inkscape mockup (like I am doing now) maybe TTF makes sense, but if you are actually making a UI you want the web font...
<wedens>
I don't think you'll use the same packaging for web font
maximiliantagher has quit [Ping timeout: 250 seconds]
<clever>
the cons (relative to fetchurl+runcommand) is that it has to re-download each time you change the blacklist, or if you want to build a different subset on the same machine
<clever>
the pros, is that it wont leave a copy of the full tar in /nix/store (until the next gc), causing you to spend $tar_size + $fontsize to build it
<clever>
(different sides of the same coin)
pointfourone has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<jomik>
Anyone have any idea why my taffybar service does not work, when me executing it manually in a terminal does? I.e. I run `/nix/store/2h6awcmybhsrlcxqvch5fg3zqx1n9gal-taffybar-with-packages-8.4.4/bin/taffybar` in ExecStart, it does not work, but in my terminal, it does.
<jomik>
symphorien: But I would expect that the packages that taffybar needs is part of the path that the executable has. That is. I don't have hicolor and adwaita explictly installed - which is what it complains about.
<jomik>
Any idea how to solve this tho?
<jomik>
I'd prefer running it as a service - a bit easier to restart it that way I'd think :P
<wedens>
in home-manager you can do `xsession.profileExtra = ''systemctl --user import-environment XDG_DATA_DIRS";` or set it to specific value in polybar service
<jomik>
I can try that - but why :O
<jomik>
brb
jomik has quit [Quit: WeeChat 2.2]
maximiliantagher has quit [Ping timeout: 240 seconds]
jomik has joined #nixos
<jomik>
wedens: I tried adding that line to my xsession.profileExtra, but no luck.
<jomik>
I can't really see why that'd help tho, afaik I have nothing in my xdg_data_dirs? From what I could see, gtk3 is given to the taffybar package
<jomik>
OH... I don't use home-manager to start my xsession though.
<srhb>
jomik: Taffybar truly is getting weirder and weirder with implicit deps everywhere these days..
<wedens>
yeah. I prefer polybar for many reasons
<srhb>
But I do have mine working (with home-manager) with services.taffybar.
<srhb>
The old taffybar 1 really wasn't very objectionable, but the rewrite is completely chaotic.
<wedens>
jomik: have you tried explicilty adding adwaita and hicolor to packages?
<srhb>
And buggy on top of everything..
<jomik>
wedens: Yeah - I also had it somewhat working when it was in my path and started by xmonad
<jomik>
I just had to press mod+q to actually get it running, lol.
<jomik>
srhb: Do you have a gist or dotfiles dir thing?
<wedens>
you can also try passing `packages` to taffybar derivations and specify icon themes there.
<jomik>
I tried that :D
<jomik>
I.e. I set `service.taffybar.package = self: [ pkgs.hicolor-icon-theme gnome3.... ];`
<jomik>
I.e. I set `service.taffybar.package = pkgs.taffybar.override { packages = self: [ pkgs.hicolor-icon-theme gnome3.... ]; }`
<wedens>
what if you start it manually? (not as a service)
<jomik>
Well, it works just fine now, even without specifying the icon themes
<wedens>
yeah. it must be something missing in environment
<jomik>
Launching /nix/store/2h6awcmybhsrlcxqvch5fg3zqx1n9gal-taffybar-with-packages-8.4.4/bin/taffybar is good.
<wedens>
is the service started by home-manager?
<jomik>
taffybar is, yes.
<jomik>
Well, the user is my user.
<wedens>
and XDG_DATA_DIRS is empty?
<jomik>
Mine is /run/opengl-driver/share:/home/jomik/.nix-profile/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share:/etc/profiles/per-user/jomik/share
smolboye has quit [Ping timeout: 240 seconds]
<wedens>
what's the value in `systemctl --user show-environment`?
<nefix>
Good morning! I'm trying to build a Nix Docker image. The issue is that I'm trying to do it with two stages (so I don't ship all the development dependencies) but I can't make it work since the result is in the store and I can't find the way to copy it from the build stage to the main stage
<symphorien>
actually this will embed bash in your docker
<symphorien>
there may be better ways to manipulate the path in the docker image
<symphorien>
but I don't know docker
<symphorien>
so I can't help
<nefix>
symphorien: why is it going to embed bash?
<symphorien>
the firefox binary you have on your path is an output of makewrapper
<symphorien>
run `cat $(which firefox)` to understand what makeWrapper does
<nefix>
I see
jomik has joined #nixos
<jomik>
New development. The taffybar service works, but not when started "automatically"
<jomik>
If I run `systemctl --user restart taffybar.service` then it works..?
<tilpner>
If you put a serviceConfig.ExecStartPre = "${pkgs.coreutils}/bin/sleep 1";
agander has joined #nixos
agander_ has quit [Ping timeout: 246 seconds]
<tilpner>
... it will sleep for a second before starting your service. That helped with polybar, although it's an ugly solution
Tony305 has left #nixos ["Quit"]
<tilpner>
I tried various combinations of requires/after/partOf/etc., but it usually didn't start properly
<symphorien>
restart = always could maybe help
<jomik>
Oh, that could work maybe, symphorien . I'll try yours tho, tilpner
<jomik>
It's a GTK icon error. Bit odd xD
<jomik>
I have added the icons to my home.packages now..
<jomik>
Just noticed that, for some reason, my xmonad overlaps the bar a bit now xD
<jomik>
Anyway, restarting to test
jomik has quit [Quit: WeeChat 2.2]
agander_ has joined #nixos
agander has quit [Ping timeout: 244 seconds]
daifa has quit [Quit: Page closed]
jomik has joined #nixos
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #54691 → nixos/prometheus: add `ec2_sd_configs` section to `scrape_configs` → https://git.io/fh6gf
<jomik>
Well, restart="always" solved it in this case.
jomik has quit [Quit: WeeChat 2.2]
maximiliantagher has joined #nixos
jomik has joined #nixos
i-net has joined #nixos
<jomik>
So. My remaining issue is that batteryIconNew doesn't show up on the status bar, but that is probably a taffybar issue :D
<i-net>
Hi, can someone help me to get Wifi running on my TP440? It is a fresh nixos installation. I can scan Wifis but I do not receive an IP address from my wifi router. Your Wiki was not helpful unfortunately :(
<i-net>
Thank you in advance!
maximiliantagher has quit [Ping timeout: 245 seconds]
<jomik>
i-net: What are you scanning with? Did you set `networking.networkmanager.enable = true;` ?
pointfourone has joined #nixos
<i-net>
...mmh. This was not in the fefault configuration.nix. I have networking.hostName enabled and networking.wireless.enable = true
pointfourone has left #nixos [#nixos]
<i-net>
With journalctl I have seen that szstemd-networkd is not running. But this program is not installed.
<{^_^}>
[nixpkgs] @Anton-Latukha opened pull request #54692 → clementine: use fetchFromGitHub → https://git.io/fh6gg
<i-net>
Will it work when I do nixos-rebuild test with the updated netwroking.networkmanager.enable = true; ??
<i-net>
Normally I do not use networkmanager. I use connman or netctl only
<i-net>
I can connect to the internet without it and with PPoE.
<gagbo>
That aside, is there a way to curl (in an impure way, I guess) content from internet and put it in the $HOME directory of a user in /etc/nixos/conf.nix ?
<gagbo>
I thought only the swiss and german use qwertz
<Yaniel>
let's not forget that austria *is* a separate country these days
<i-net>
My Wifi is up but I cannot connect to my network. How I do this? wpa_supplicant works in other distros
<gagbo>
my bad Yaniel
maximiliantagher has joined #nixos
<bigvalen>
Ever see a system that won't dhcp (or get past any network init, so won't give a login prompt) when you boot it...but if you boot it in single user mode, then run 'systemctl default', it boots fine ?
teehemka_ has joined #nixos
_kwstas has joined #nixos
regulus_ has quit [Ping timeout: 240 seconds]
<i-net>
@praetorg. Can I use Wifi without print the passwords in clear somewhere?
<i-net>
How you guys connect to your wifi with a freshly installed NixOS? If I find the chat history with a search function I can search for a solution there too fortunately.
<symphorien>
i-net: I use network manager :p
maximiliantagher has quit [Ping timeout: 240 seconds]
<praetorg>
@i-net use wpa_passphrase to generate an obfuscated passkey
rfold has joined #nixos
<i-net>
I did wpa_passphrase already. Thanks for the hint.
agander_ has quit [Ping timeout: 250 seconds]
<i-net>
how can I view the error log after I did wpa_supplicant -B -i wlps30 -c /etc/wpa_supplicant.conf ??
<i-net>
Wifi has worked sometimes. E. g. after I have used another profile. But I cannot reinitialize Wifi after I have switched to another profile or after I have moved outside of the Wifi radar
<wedens>
you need to add `networking.wireless.userControlled.enable = true;` to be able to use wpa_cli
jomik has joined #nixos
<jomik>
What is the easiest way to override a hackage package? Taffybar in nixos is version 3.0.0, but current is 3.1.1
<wedens>
callHackage, I think
<i-net>
wedens: Will it work after nixos-rebuild test too?
knupfer has joined #nixos
<wedens>
i-net: no idea. if it doesn't, you can restart the service manually
<wedens>
jomik: note that callHackage will work only if all-cabal-hashes used by nixpkgs have the specified version
<wedens>
another option will be to use `callCabal2Nix "taffybar (fetchFromGithub ...)`
<i-net>
I'll view the error log and find a way. Thank you for your patience.
<jomik>
wedens: that sounds unlikely :D
<jomik>
Or what do you mean with all cabal hashes have the specified version?
<jomik>
I am trying to make an overlay like this `haskellPackages.gi-gdkpixbuf = unstable.haskellPackages.gi-gdkpixbuf;`, but it says that `ghcWithPackages` is missing..?
<srhb>
jomik: Overriding haskell package sets is a bit clunky unfortunately..
<raduom>
Hi everyone. I am trying to start using the nix package manager on an ubuntu system and I am having trouble installing what on ubuntu would be build-essentials. How can I do that with the nix package manager?
<jomik>
Hmm, I see that. God :D
<srhb>
raduom: We don't really have something very similar, nor is that the way we usually develop packages.
<raduom>
I am not really interested in developing packages. I just want a system that can build things.
<srhb>
raduom: Okay. That's really not an approach that is very suitable for Nix.
<srhb>
Or vice versa :)
<simpson>
raduom: Hm. Why do you want to use Nix, then? I worry that you may have been misled about how it works.
<raduom>
could be that i have been misled.
<symphorien>
,libraries raduom
<{^_^}>
raduom: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<simpson>
raduom: Well, let's unpack this. Why do you want to use Nix? What do you hope it will bring to your workflow?
<jomik>
srhb: No luck :(
<raduom>
simpson: basically i would have liked a brew for linux. nix seemed to fit this space plus a lot more options.
<symphorien>
raduom: when you want to use anything which looks like a compiler with nix, it will always be inside nix-shell
<simpson>
raduom: On Ubuntu, Brew is spelled `apt`. It works alright. Lots of packages available.
<srhb>
jomik: More details please?
<symphorien>
to have a compiler and zlib available: nix-shell -p zlib
<jomik>
srhb: I am getting the same exact error, so maybe taffybar isn't seeing the new gdbpixbuf?
<raduom>
simpson: that is not very helpful.
<simpson>
The packages are called 'debs' or '.debs' instead of 'casks'.
<raduom>
is there a document i could read about how nix-shell is working?
<srhb>
jomik: Where did you override it?
<simpson>
raduom: I am being quite serious. If you want a brew-like system, then Ubuntu's package manager will do fine. Nix is not like other package-management systems; you will have to learn to think within Nix and unlearn some of your old habits.
<jomik>
nixpkgs.overlays in home-manager.
<MichaelRaskin>
raduom: the core Nix feature that we value, is that we don't need in terms of globally installed things, we have a ton of sub-environments that cannot conflict
<raduom>
simpson: it installs everything as root and there is no easy way to rm -rf everything if i feel like it.
<raduom>
Ok. Thanks. I'll go read some of the links you posted.
<simpson>
raduom: Nix is not a system where you may `rm -rf` to uninstall packages. There are tools for removing packages and you will break your Nix installation if you do not use them. Also, Nix packages are stored as root in a /nix/store directory. The differences run much deeper than that.
<jomik>
That's what I'd think, but that doesn't seem to always be the case? I recall overriding a package from unstable, but it still seemingly got its dependencies from release-18.09
<jomik>
Also, gdkpixbuf seems to be version 2.0.18, so that should be fine, right?
<pbb>
okay actually it picks up the default route from a router advertisement
Makaveli7 has quit [Ping timeout: 246 seconds]
<pbb>
default via fe80::214:f1ff:fea7:2400 dev br0
<pbb>
that's really strange actually
amosbird has joined #nixos
maximiliantagher has joined #nixos
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
ixxie has quit [Ping timeout: 240 seconds]
amosbird has joined #nixos
<pbb>
wtf I just disabled autoconf and accept_ra via sysctl and it still gives me this default gateway from the ra
sicklorkin has joined #nixos
ixxie has joined #nixos
amosbird has quit [Max SendQ exceeded]
amosbird has joined #nixos
amosbird has quit [Max SendQ exceeded]
ng0 has joined #nixos
amosbird has joined #nixos
<sicklorkin>
Does nix have it's own container (akin to docker?)
<simpson>
sicklorkin: Nix does not have its own container format. It is possible to create Docker/OCI-compliant images with nixpkgs `dockerTools`.
<tilpner>
There are Docker images for Nix, Nix can create Docker images, and NixOS uses systemd-nspawn for its container feature
<tilpner>
The Nix build sandbox does not use Docker
<sicklorkin>
tilpner: thanks.
ixxie has quit [Ping timeout: 272 seconds]
<spacekookie>
Hey, I'm trying to run `nixos-install --show-trace` on on a new computer and getting "error: selector 'x86_64-linux' matches no derivation" as the only output. Anyone have an idea what could cause this?
<tilpner>
spacekookie: Did you modify the configuration much? Try passing -vvvv to nixos-install
ixxie has joined #nixos
<spacekookie>
tilpner: It appears that nixos-install doesn't have verbose options
<spacekookie>
Also...hmm, the config really isn't anything out of the ordenary but I can post it
<tilpner>
Do you tell from the manpage or because you tried?
<spacekookie>
Because I tried :P
<tilpner>
(I don't know if it does, but the manpages don't always list all options)
<spacekookie>
It's failing on nix-env [...] --set x86_64-linux
<qyliss>
-vvvvv
<qyliss>
:D
<murd3r>
linux is for niggers
ixxie has quit [Ping timeout: 268 seconds]
<nefix>
where is the local nixcache stored?
halfbit has joined #nixos
<infinisil>
nefix: I think ~/.cache/nix
ixxie has joined #nixos
<nefix>
infinisil: so If I build a package, copy the cache to another system and try to build it again is it going to use the cache from the first system?
<qyliss>
infinisil: does the bot have a way to contact the ops?
<qyliss>
would be nice if somebody could kick the troll.
<lux1>
setting `services.xserver.desktopManager.default` to "i3" seems not to work
<lux1>
yes
<tilpner>
Huh
<tilpner>
You also set services.xserver.windowManager.i3.enable = true, right?
<tilpner>
That should be all that's needed
<symphorien>
lux1: in the login prompt, there is a drop down to choose i3
<tilpner>
Your display manager may not default to i3
<lux1>
definitly no drop down
<tilpner>
Check for a session selector
<tilpner>
Which one are you using?
<tilpner>
With slim it's F1, I think
<Jonas|2>
Hey, I was writing about the problem with downloading linux-4.14.95 from cache.nixos.org but I got kicked out from the web IRC client :( I now use a proper desktop client, hoping this is more stable. Was there any response?
<{^_^}>
[nixpkgs] @pbogdan opened pull request #54709 → lightdm: inherit DPI settings from xserver config → https://git.io/fh6iu
<lux1>
but wait, I just realize there is both windowManager.default and desktopManager.default
<tilpner>
Jonas|2: srhb | Guest1376: I can download that just fine.
<symphorien>
lux1: default has no effect with lightdm because lightdm remembers your last choice
<tilpner>
And I don't think the default matters. Not sure if it hurts either
<lux1>
okay that works. thanks
<Jonas|2>
tilpner: Thanks for checking, I just clicked the link im my terminal and it screwed up the URL, so I'm getting a 200 OK now, too. But nix is still unable to decompress the file, as the error message suggests:
<countingsort>
trying to package something. got `src = fetchzip { ... };`, but it errors with `suspicious ownership or permission on '/nix/store/...-source'; rejecting`. checked it, and its owned by nixbld1, with 773. how come this happened, and how to fix it?
ixxie has joined #nixos
agander has quit [Ping timeout: 250 seconds]
<tilpner>
countingsort: I'm just guessing, you could try nix-store --verify --repair
<tilpner>
I don't know if that cares about permissions too
<countingsort>
tilpner: still the same issue
boredom101 has joined #nixos
MinceR has quit [Ping timeout: 246 seconds]
<tilpner>
Do other paths have similar problems? Did you do anything weird lately, like rw-remounting the store?
<jomik>
Anyone know how I can fix this ? I only seem to get this error when running taffybar as a service: `Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files`
<jomik>
That is, if I run taffybar from the store, then it works with no error.
<joepie91>
tilpner: I can write docs (not today though, but later) if you have like an hour at some point for me to barrage you with a stream of questions :P
<jomik>
Oh, may be at-spi2-core
<{^_^}>
[nixpkgs] @Infinisil closed pull request #17494 → nixos: set default for boot.tmpOnTmpfs to true → https://git.io/v6LKc
<tilpner>
joepie91: That would be the quickest solution. If you're willing to do that, I'll of course answer all question. :) (But it's just a few new lines that really do something, the rest is wrapping and refactoring)
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<infinisil>
Huh
<infinisil>
Ah, it quit because gchristensen restarted {^_^} earlier (restart limit was reached)
<infinisil>
,ping
<{^_^}>
pong
<gchristensen>
I recommend a delay between restart attempts to handle reboots
_kwstas has quit [Remote host closed the connection]
<gchristensen>
I saw that, such a great post, matthewbauer[m]!
maximiliantagher has quit [Ping timeout: 240 seconds]
mcnesium has quit [Ping timeout: 244 seconds]
<symphorien>
matthewbauer[m]: I thought virtualbox required a kernel module and thus more than just "nix-env" to install it ?
<{^_^}>
[nixpkgs] @etu opened pull request #54726 → nixos/sks: Add option to configure database settings → https://git.io/fh67x
mcnesium has joined #nixos
<infinisil>
symphorien: Yeah I thought so too
jomik has quit [Quit: WeeChat 2.2]
aszlig has quit [Quit: Kerneling down for reboot NOW.]
<joepie91>
also requires your user to be part of a group I think
aszlig has joined #nixos
jomik has joined #nixos
<joepie91>
great post though
<joepie91>
also definitely the kind of instructions I'd like to see more of :)
<jomik>
Hm, so for some reason my taffybar wont recompile anymore. It gives an error when trying to find the modules it needs. This seems to have happened after I overrode my taffybar in haskellPackages, though, it does not make sense to me why :(
<jomik>
I think I'll just give up on Taffybar for now tho xD
sicklorkin has joined #nixos
<neeasade>
how do you pick between multiple versions of a package to install? for example, chicken 4 vs chicken 5
maximiliantagher has quit [Ping timeout: 250 seconds]
sicklorkin has quit [Ping timeout: 244 seconds]
<tilpner>
chickenPackages_4.chicken too 7.5min to build on my laptop, I guess that's not terrible
<tilpner>
*took
eadwu has quit [Quit: WeeChat 2.3]
teehemkay[away] is now known as teehemka_
eadwu has joined #nixos
<kyren>
I have a really annoying bug and I'm not sure who's fault it is or where to give a bug report, but the end result is a hash mismatch in a fixed output derivation for an emacs package
<kyren>
on one machine but not another
<clever>
kyren: if the given path is already in /nix/store/ it wont download it, so ti wont notice the hash mismatch
<clever>
kyren: try nix-store --delete on the path, and then see if it fails on both
<kyren>
clever: you know, I even thought of that, but the moment you told me to do that I realized that I only did nix-collect-garbage, and it's not garbage is it?
<clever>
kyren: depends on if something is using it or not
<clever>
kyren: --delete wont ruin the rest of your cache, and tells you if its in use or not
<kyren>
it's not haha, I was being stupid, let me try actually deleting it
ambro718 has quit [Quit: Konversation terminated!]
rfold has joined #nixos
<kyren>
clever: was distracted there for a second, but tried to find the package on the other machine and unfortunately the hash part is probably not the same (it's macos vs linux so this probably makes sense), I deleted all of the packages following that pattern and rebuilt the other machine and now it's succeeding probably because emacs-with-packages is still up to date or something, I'm trying my hardest to make the other machine fail as well haha
dermetfan has joined #nixos
dermetfan has quit [Client Quit]
dermetfan has joined #nixos
<steveeJ>
excuse my blindness but I can't find how to specify the user for a systemd.user serivice. would someone please shine a light?
ToxicFrog has joined #nixos
<infinisil>
steveeJ: There's no way
<infinisil>
steveeJ: Those are user services, running under the user systemd --user runs as
<steveeJ>
mh I see. so if I want to run a service with a different user that's still a system service
<infinisil>
Well actually I'm not 100% sure on whether it's absolutely not possible to run as a different user with --user services
<infinisil>
But it would make sense
<infinisil>
steveeJ: Why not a non-user service?
alex_giusi_tiri has joined #nixos
<clever>
kyren: on darwin, the filesystem isnt case sensitive
<steveeJ>
infinisil: no special reason, it was more intuitive to look at user services for the use-case
<clever>
kyren: so weird things can happen if the source has both Makefile and makefile
<ottidmes>
if I want to get more insights on what time in spend in a script, say if it calls grep it would show greps time besides that of bash, is there something out there for this?
<LnL>
steveeJ: I think you want a system service with systemd.services.foo.serviceConfig.User
<{^_^}>
[nixpkgs] @dtzWill opened pull request #54733 → fontconfig: fix FC_ARCHITECTURE to match use elsewhere → https://git.io/fh6A8
<steveeJ>
LnL: nice, thank you! I'll give that a try
MichaelRaskin has quit [Quit: MichaelRaskin]
<ottidmes>
guess I will just spam `time` for now
maximiliantagher has joined #nixos
i-net has quit [Remote host closed the connection]
rprije has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.2]
maximiliantagher has quit [Ping timeout: 245 seconds]
<kyren>
clever: is there a way to blanket force things to be rebuilt, I'm still struggling to reproduce the error on my darwin machine, I don't *think* it's filesystem case related but I can't convince the right packages to be rebuilt without deleting stuff that my current profile is using
<clever>
then nix why-depends, to figure out how x depends on foo
<kyren>
or, wait maybe that wasn't it exactly, but it seemed like the contents of my profile were gone, I don't know that it was what you said actually
<clever>
then decide if you want to keep x or not, and modify it to not depend on foo
<clever>
yeah, it can also destroy your nix-env profiles
<clever>
including all history of what you had in them
<kyren>
so the end result is that it's broken across the board, and I'm free to file a bug report on nixpkgs, and it's not something to do with home-manager or the jenga tower of software which is my infrastructure?
<clever>
i think the next thing to check is git blame, and see who last touched lua-mode
<clever>
kyren: when i build from nixos-unstable, it fails
<clever>
kyren: but from 18.03, it works
<clever>
could try a bisect, lol
<tilpner>
But the 18.03 version doesn't hash to the expected hash either
<kyren>
I don't understand how emacs packages *work* precisely, but it's not in nixpkgs itself afaict, it's derived from elpa or melpa or something, there isn't the string "lua-mode" in nixpkgs
<tilpner>
So it was probably an older version, which doesn't really help here
<tilpner>
:/
<srhb>
kyren: There is. pkgs/applications/editors/emacs-modes/melpa-generated.nix:
<kyren>
oh, no there totally is
<kyren>
okay, sorry I relied on github's search
<kyren>
protip, do not rely on github's search
<clever>
Bisecting: 4572 revisions left to test after this (roughly 12 steps)
<clever>
Bisecting: 148 revisions left to test after this (roughly 7 steps)
<kyren>
tilpner: yeah I see it now, now I know that github search actually just stops working if a file is large enough or something, this is probably part of the reason I've been so confused
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « systems/default.nix: wasm in platform.uname.system »: https://git.io/fh6xx
<tilpner>
kyren: Not just search. GH doesn't even display all of all-packages.nix if you ask for it
<clever>
635114b889be9f99d4bd05bdb95b949a7e41ec67 is the first bad commit
<kyren>
oh, whoops I should have checked the issues again, I checked them the other day but since then somebody else has already filed this issue: https://github.com/NixOS/nixpkgs/issues/54641