sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<catern> Henson: one is to build the configuration for the remote computer locally, and copy all of it over
<catern> er, that is to say, build the configuration for the remote computer on the machine that currently has the package + definition; then copy the closure of that configuration to the remote computer
schjetne has joined #nixos
jluttine has quit [Ping timeout: 244 seconds]
<catern> (you might be able to optimize the copying in various ways)
Rusty1 has joined #nixos
<catern> Henson: another approach, which is your only option if you want to be able to build new configurations on that offline computer, is to copy the package definition to the offline computer
<catern> not just its contents
<{^_^}> [nixpkgs] @worldofpeace merged pull request #62788 → pythonPackages.asttokens: fix python3 build → https://git.io/fjzZn
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjzZo
<catern> then you can build the configuration directly on that offline computer
<catern> Henson: does one or both of those work? probably the latter is the easier one
toppler`` has joined #nixos
schjetne has quit [Ping timeout: 245 seconds]
Henson has quit [Ping timeout: 272 seconds]
zik[m] has left #nixos ["User left"]
Ariakenom has quit [Quit: Leaving]
simon_weber has quit [Quit: Connection closed for inactivity]
Henson has joined #nixos
<Henson> catern: by package definition, do you mean the source for the package? Including the package in environment.systemPackages works just fine, but not in services.udev.packages
shosti has joined #nixos
<Henson> catern: by "including the package" I mean including it by specifying its /nix/store path
m0rphism has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #62789 → vimPlugins.vim-csharp: init at 2017-03-29 → https://git.io/fjzZ9
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjzZQ
<{^_^}> [nixpkgs] @fuwa0529 opened pull request #62790 → altcoins.wownero: 0.5.0.2 -> 0.6.1.0 → https://git.io/fjzZ7
<tarruda1> Just tried a fresh install of nixos in my machine and it is not possible to resolve names. I can ping any IP, resolv.conf also looks good, but when I invoke `ping www.google.com` it outputs: "name or service not known". This also results in a bunch of services not working (such as time sync)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<tarruda1> The same install config (which is basically the default config) works on a virtual machine
<tarruda1> but on my desktop I get this strange error, which makes nix unusable. Anyone ever experience this?
ris has quit [Ping timeout: 252 seconds]
vitor has quit [Quit: Page closed]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/cbaa9a7ab91 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<aanderse> Henson: nixops might be a good fit for you
mighty_vee has quit [Read error: Connection reset by peer]
mighty_vee has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
<colemickens> Anyone have a preferred way of diffing two expressions that should be the same output but aren't?
<colemickens> I suspect it's nixpkgs config like nonfree tripping me up even though I'd tried to fix it in the past
mmlb1 has joined #nixos
mmlb has quit [Ping timeout: 248 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
silver_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer opened pull request #62791 → vimPlugins.SpaceCamp: init at 2019-06-05 → https://git.io/fjzZh
psy3497 has joined #nixos
<Henson> aanderse: thanks, I'll look into it.
<aanderse> Henson: i mention nixops because we have some machines behind a dmz
<aanderse> so thoses machines can't connect to the internet
<aanderse> but
<aanderse> the nixops machine can
<clever> colemickens: nix-diff
<aanderse> in your scenario you could run nixops deploy --build-only on the nixops machine when it has internet
<Henson> aanderse: right. The machines I'm working with are not interactively connected to another Linux machine. They can only have files downloaded to them and run scripts.
<aanderse> and then nixops deploy when the nixops machine doesn't have internet but is connected to the target machine
<aanderse> ah no ssh then, even on an internal network?
<clever> Henson: ive looked into that before
* Henson holds his breath
<clever> Henson: step 1, nix-build '<nixpkgs/nixos>' -A system -I nixos-config=./host1.nix -o host1.root
<clever> that will build the given config and make a result root
<Henson> aanderse: correct. These remote computers will be connected to an Android tablet that is periodically connected to the internet
<aanderse> Henson: ah i see, sorry, my mistake
<clever> Henson: step 2, nix copy --to local?root=/mnt/ ./host1.root
<aanderse> in that case what clever is saying is good... and much cooler anyways ^_^
<aanderse> clever++
<{^_^}> clever's karma got increased to 135
<clever> that will copy the closure of it into /mnt/nix/store, which can just be a USB stick
<Henson> aanderse: yeah, being connected to the internet or another linux machine would make this a no-brainer, but it's this unusual deployment that's causing the problem
<clever> Henson: step 3, nix copy --from local?root=/mnt/ /nix/store/hash-something
<clever> that will copy it back out of the usb stick, and into /nix/store on the host
<clever> Henson: step 4: nix-env --profile /nix/var/nix/profiles/system --set /nix/store/hash-something && /nix/store/hash-something/bin/switch-to-configuration switch
<clever> that wil make it active
<clever> 1/2 are done on a "deployer" type machine
<clever> 3/4 are done on the "target"
emptyflask has joined #nixos
<clever> how you get the /mnt/ dir over is up to you, usb, nfs, ssh, carrier pigeon
<Henson> clever: awesome
<Henson> clever: so I should use "nix copy" instead of "nix-store --export" and "nix-store --import"?
<clever> yeah
<clever> it has the benefit of reusing objects already in /mnt/
<clever> so less data has to copy if the /mnt device already has it
jb55 has joined #nixos
<Henson> clever: but say I know the paths the remote device already has, can I just do "nix-store -qR system.output.path" to get a list of the store paths needed for the closure, take the difference of the two to see what needs to be copied, then use "nix-store --export" and "--import" to do it?
clacke_movim has left #nixos [#nixos]
<Henson> clever: or does it have to be the "nix copy" command?
kvda has joined #nixos
<clever> Henson: its much simpler when using nix copy
<Henson> clever: I think the thing that will work with your solution is that the system building is done on the development machine (which is not running NixOS) and bypasses the "nixos-rebuild" command needing to be run on a NixOS machine. Then copying the entire system closure over and instantiating it on the deployment machine.
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/538639a55ce (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
Matthieu_ has quit [Ping timeout: 272 seconds]
Matthieu_ has joined #nixos
judson has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #62792 → postgresqlPackages.pgroonga: 2.1.9 -> 2.2.0 → https://git.io/fjznO
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schjetne has joined #nixos
iyzsong has joined #nixos
o1lo01ol1o has joined #nixos
schjetne has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
o1lo01ol1o has joined #nixos
<tobiasBora> Hum...
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/f2c18161364 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<tobiasBora> Hello,
<tobiasBora> How can you create a new systemd.user.services? I don't understand how it works... I'd like to be able to put it in a standard derivation, build with `nix-build`, and then be able to start/stop/run the service as a non-root user. Is it possible?
<clever> tobiasBora: systemd.user.service only works in configuration.nix
<tobiasBora> clever: oh, so not usable on non-nixos devices I guess. It's a limitation of systemd, or of nix?
<clever> tobiasBora: mostly a limitation of the nix expressions in nixpkgs
<clever> tobiasBora: it can be done with some effort
<tobiasBora> clever: that effort is made by project like home manager?
stepcut has quit [Remote host closed the connection]
<clever> nix-repl> config.systemd.user.units."pulseaudio.service".unit
<clever> «derivation /nix/store/xm1ll198x2hs2cfgg4b8bh9sp2d1v0an-unit-pulseaudio.service.drv»
<clever> tobiasBora: if you eval a configuration.nix via <nixpkgs/nixos> you can then pull out the .unit files like this
<o1lo01ol1o> I'm a bit mystified, my hydra-build-runner can finally ssh to my build machines, but the nix build job reports: Aborted: cannot connect to ‘nixSlave’: sh: nix-store: command not found
<clever> and then drop them somewhere
stepcut has joined #nixos
<clever> o1lo01ol1o: what happens when you `ssh user@host nix-store --version` ?
<o1lo01ol1o> I get the version!
<clever> o1lo01ol1o: with the exact command i gave?
<clever> that is one command, not 2
sir_guy_carleton has joined #nixos
<o1lo01ol1o> let me check
<clever> tobiasBora: home-manager is a bit different, its re-implementing (or copying) nixos modules, to get the same effect
<o1lo01ol1o> ah
<o1lo01ol1o> clever: sh: nix-store: command not found
<clever> o1lo01ol1o: thats the difference between interactive and non-interactive shells
<clever> o1lo01ol1o: you need to mess with .bashrc and/or .bash_profile, to get nix-store in PATH for non-interactive shells
<o1lo01ol1o> on the build machines, you mean
<clever> o1lo01ol1o: yeah
<o1lo01ol1o> hm. There's no way to handle this declaratively?
<clever> o1lo01ol1o: what OS is the remote machine?
<o1lo01ol1o> nixos
<clever> o1lo01ol1o: it should be in PATH by default
<o1lo01ol1o> (linux x86_64)
<tobiasBora> clever: non-interactive shells can call .bashrc?? You may want to use the .ssh/environment file no?
<clever> o1lo01ol1o: you can also force it with ssh command
stepcut has quit [Ping timeout: 258 seconds]
<clever> o1lo01ol1o: this forces the connection to run a given command, if using a given key
<o1lo01ol1o> aha, that's what that line does
<clever> so you can force it to always run /run/current-system/sw/bin/nix-store
<o1lo01ol1o> ok, I'll add that, thanks!
<colemickens> okay, and if I have a nix store path that I know was pushed to cachix is there an easy way I can pull it locally for use with nix-diff?
<clever> tobiasBora: it can help to sprinkle echo's in all of the files, and see which ones trigger when
<tobiasBora> clever: concerning the modules... I think I still don't get why they are "special"...
<clever> colemickens: nix-diff only works on drv files, not outputs
<clever> tobiasBora: the modules is basically a framework to create a single derivation, that has all of your config embeded into it
<colemickens> so I have to recursively copy just the derivations from my remote machine I guess. I can figure it out probably
<clever> colemickens: you can just download it from cachix using `nix-store -r /nix/store/foo`
<clever> but nix-diff cant diff that for you
<colemickens> okay, thank you, that's good to know, I should probably know that nix-store command :|
stepcut has joined #nixos
<tobiasBora> clever: and if you want to compile a module, you need to run something like "nix-build <nixpkgs/nixos> myconfiguration.nix"? That is supposed to create a new unique derivation that contains the unit files?
<clever> tobiasBora: nix-build '<nixpkgs/nixos>' -I nixos-config=configuration.nix
stepcut has quit [Read error: Connection reset by peer]
<clever> tobiasBora: and if you want a single unit file, maybe add -A 'config.systemd.user.units."pulseaudio.service".unit'
selfsymmetric-mu has joined #nixos
stepcut has joined #nixos
<clever> tobiasBora: or write a nix expr that imports it and gets several unit files
selfsymmetric-mu has left #nixos [#nixos]
stepcut has quit [Read error: Connection reset by peer]
stepcut has joined #nixos
<tobiasBora> clever: hum... why does adding something to the path helps??
<clever> tobiasBora: because the default.nix in nixos looks for <nixos-config>
stepcut has quit [Read error: Connection reset by peer]
<o1lo01ol1o> ssh hydra-queue-runner@nixSlave nix-store --version: sh: nice: command not found
<o1lo01ol1o> clever: ^^
<clever> o1lo01ol1o: the nice part was optional
<clever> o1lo01ol1o: i also suspect your build user has been created with the wrong flags, does isNormalUser = true; fix it?
<tobiasBora> clever: too many brackets for me ^^ <nixpkgs/nixos> is a shortcut for /path/of/nixpkgs/channel/nixos right? Does that mean that when I write <X/Y>, it checks "key" X in NIX_PATH, and then outputs "value_of_X/Y"?
<clever> tobiasBora: yeah, and it will also ensure the Y exists under X first
<tobiasBora> clever: I think it's the first time I actually understand these brackets^^ Thanks! What's the name of them?
<o1lo01ol1o> clever: I removed "nice -n20" from the command field and now sh: nix-store: command not found
<tobiasBora> everything makes much more sense now^^
* colemickens side-eyes channels and NIX_PATH
<clever> o1lo01ol1o: did you try adding isNormalUser = true; ?
<o1lo01ol1o> will do
<o1lo01ol1o> clever: sh: nix-store: command not found
<clever> o1lo01ol1o: something feels wrong for nixos to have this issue
<clever> o1lo01ol1o: what is in the $HOME of this remote user?
<o1lo01ol1o> clever: home = "/home/hydra-queue-runner"
<o1lo01ol1o> extraGroups = [ "wheel" "networkmanager" "keys" ];
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/00322ccb73e (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<clever> o1lo01ol1o: i usually call the build user builder, not hydra-queue-runner
<o1lo01ol1o> hydra-queue-runner on the hydra server tries to ssh to the build machines as `hydra-queue-runner@nixSlave`
<o1lo01ol1o> clever: Here's the config if you wan to glance at it. https://gist.github.com/o1lo01ol1o/df97356d495a014dc68e9547f78d3f86
<o1lo01ol1o> there's an .ssh/config in hydra/queue-runner that points to the needed key
drakonis has quit [Ping timeout: 252 seconds]
<clever> o1lo01ol1o: just use .source, dont bother with readFile, https://gist.github.com/o1lo01ol1o/df97356d495a014dc68e9547f78d3f86#file-infra-nix-L30
<o1lo01ol1o> k
drakonis has joined #nixos
<clever> o1lo01ol1o: try removing the shell= on the remote build user, also it shouldnt have any extra groups
<tobiasBora> clever: I tried to write a super simple systemd.user http://paste.debian.net/1086683. But when I run nix-build '<nixpkgs/nixos>' -I nixos-config=myconfiguration.nix, it tells me "The ‘fileSystems’ option does not specify your root file system, You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable"
<clever> tobiasBora: you left out the -A i gave above
<clever> tobiasBora: so its trying to build a fully working nixos, and the assertions found mistakes
<o1lo01ol1o> clever: he option `deployment.keys.root-secret.source'
<o1lo01ol1o> doesn't exist
<tobiasBora> clever: ohh I see. Thanks a lot!
drakonis has quit [Ping timeout: 258 seconds]
<tobiasBora> clever: and to use the service, I need to manually copy it to ~/.config/systemd/user/, or it's possible to use it "directly"?
<clever> tobiasBora: you could install it with nix-env, then you get a .service in ~/.nix-profile/
drakonis has joined #nixos
<clever> tobiasBora: nix-env -f '<nixpkgs/nixos>' -I nixos-config=myconfiguration.nix -iA 'config.systemd.user.units."pulseaudio.service".unix'
<clever> tobiasBora: then you just need to create the symlink in ~/.config/systemd/user/ once, and it will update semi-automatically
<tobiasBora> clever: woo O_o
<clever> tobiasBora: the next step would be to switch to a nix expr
<clever> let eval = import <nixpkgs/nixos> { configuration = ./myconfiguration.nix; }; pkgs = import <nixpkgs>{}; in pkgs.buildEnv { name = "things"; paths = [ eval.config.systemd.user.units."pulseaudio.service".unix ]; }
<clever> tobiasBora: shove that whole thing into anything.nix, and then simply `nix-build anything.nix`
<o1lo01ol1o> clever: $ ssh hydra-queue-runner@nixSlave nix-store --version doesn't seem to return now . . .
<tobiasBora> clever: that was my dream :D
schjetne has joined #nixos
<clever> o1lo01ol1o: the remote end forced it to be nix-store --serve, so its now waiting for some nix protocol commands
<clever> o1lo01ol1o: it is now working
* tobiasBora is finishing the step before, and try that new black magic right after
<o1lo01ol1o> oh, amazine
<o1lo01ol1o> g
<o1lo01ol1o> lol
<o1lo01ol1o> clever: next: error: you are not privileged to build derivations
<colemickens> Anyone ever seen "route" hang?
shosti has quit [Ping timeout: 248 seconds]
<clever> colemickens: it performs dns lookups on every IP in the routing table
<clever> colemickens: `route -n` tells it to not
<colemickens> Yeah that'd certainly be it.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @xrelkd opened pull request #62793 → librime: 1.4.0 -> 1.5.0 → https://git.io/fjzno
<colemickens> On my deathbed someone is going to calculate that I lost a year of my life to waiting NM to rescan for networks.
<tobiasBora> Hum... I'm super close, but not finished yet: ls ~/.config/systemd/user/
<tobiasBora> bin etc include lib libexec manifest.nix mytestservice.service share
<tobiasBora> systemctl --user start mytestservice: Failed to start mytestservice.service: Unit mytestservice.service not found
<clever> tobiasBora: you need to reload the user daemon
<clever> thats the semi-auto part i mentioned
* Henson chuckles
<Henson> NM hates it when I rescan for networks too quickly
Matthieu_ has quit [Ping timeout: 244 seconds]
<clever> tobiasBora: and you only need the .service file, and nothing else
<tobiasBora> clever: hum indeed (I've another error, but it's for another reason)
<tobiasBora> clever: but when I ln -s all the ~/.nix, I can't really link one service right?
<tobiasBora> Or you meant a link by file
<clever> tobiasBora: link each file, or use the anything.nix example above, which only has 1 file
<tobiasBora> and out of curiosity, why do you need to reload, is it because of the symlink, or we always need to reload?
<clever> tobiasBora: i think you need to daemon-reload any time the unit files are modified
<clever> tobiasBora: nixos and home-manager automate that step for you
<tobiasBora> and this is specific to nix related stuff this reload?
<clever> more that nix reloads it for you, after modifying the files
<clever> and other distros expect you to do it yourself
stepcut has joined #nixos
<tobiasBora> ok cool
<tobiasBora> hum...
<tobiasBora> Loaded: bad-setting (Reason: Unit mytestservice.service has a bad unit file setting.)
<tobiasBora> Failed to start mytestservice.service: Unit mytestservice.service has a bad unit file setting.
<Henson> clever: when you're finished your conversation with tobiasBora, could you answer another question for me, please, on the topic of remote deployment. Is it easy to upgrade to a new version of NixOS on the remote system simply by using the package list of a new NixOS version and setting that as the system profile? Or is it more complicated than that? The NixOS manual makes it seem like it could..
<clever> tobiasBora: can you pastebin the contents of that file?
<Henson> clever: be that simple with the caveat that certain Nix package manager upgrades change the store database in a way that cannot be rolled back.
<tobiasBora> clever: sure http://paste.debian.net/1086685/
<clever> Henson: once you get the closure of the new version of nixos in /nix/store, yeah, just update the profile and run switch-to-configuration
<clever> tobiasBora: run `man yes` and try `yes` in a terminal
<Henson> clever: that's so cool. Thank you.
<o1lo01ol1o> clever: miracles, it looks like it's building
stepcut has quit [Ping timeout: 246 seconds]
<o1lo01ol1o> clever: do you want to write a book on nixos / hydra?
<tobiasBora> clever: it's pretty close yes, but with full yes, and slower repetition rate. And no dependencies (just wanted a simple test)
dansho has joined #nixos
<tobiasBora> but does that explain the error?
<clever> tobiasBora: not really
<clever> tobiasBora: that sounds more like a question that #systemd could answer now
<tobiasBora> clever: true
<tobiasBora> but first I want to understand the anything stuff :P
<o1lo01ol1o> clever: now I have a pre-emptive question. I have a git repository with submodules; how can I clone them recursively?
<{^_^}> [nixpkgs] @dtzWill opened pull request #62794 → public-sans: 1.004 -> 1.005 → https://git.io/fjznM
adamantium has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
<clever> o1lo01ol1o: public or private?
drakonis has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #62795 → wpgtk: 6.0.5 -> 6.0.7 → https://git.io/fjznD
<o1lo01ol1o> clever: private
<clever> o1lo01ol1o: your in for a world of pain :P
<adamantium> Anyone know how to build Emacs 27 from the latest?
<tobiasBora> clever: great, I think I understood the anything.nix :D I even managed to install it with "nix-env -f anything.nix -i" (works also with appending things)
<o1lo01ol1o> clever: really? still?
<clever> o1lo01ol1o: yeah, submodules only work nicely on public git repos
<tobiasBora> clever: I think I don't have anymore question, the remaining part is for systemd :P Thanks a looooot!
<o1lo01ol1o> clever: if the hydra-queue-runner user has a github / lab ssh key that authenticates them as a user does that help?
<clever> o1lo01ol1o: only builtins.fetchGit can use that private key, and that doesnt support submodules
<clever> o1lo01ol1o: pkgs.fetchgit supports submodules, but not private repos
<{^_^}> [nixpkgs] @dtzWill opened pull request #62796 → grim: 1.1 -> 1.2.0 → https://git.io/fjznS
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1dc26c32edf (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<ashkitten> why are they separate?
ddellacosta has quit [Ping timeout: 272 seconds]
cantstanya has quit [Remote host closed the connection]
<clever> ashkitten: builtins.fetchGit is impure and happens at eval time, pkgs.fetchgit is pure and happens at build time
cantstanya has joined #nixos
adamantium has left #nixos ["ERC (IRC client for Emacs 26.2)"]
<clever> builtins.fetchGit kills parallelism
<o1lo01ol1o> clever: that seems like a pretty major issue, are there any examples of working around the problem?
<{^_^}> [nixpkgs] @dtzWill opened pull request #62797 → dnscrypt-proxy2: 2.0.22 -> 2.0.25 → https://git.io/fjzn9
<clever> o1lo01ol1o: your only real option is to fetch every repo seperate with builtins.fetchGit, and then piece them together with runCommand
jasongrossman has quit [Ping timeout: 248 seconds]
schjetne has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #62798 → gnumeric: 1.12.44 -> 1.12.45 → https://git.io/fjznH
<ashkitten> ah
<o1lo01ol1o> clever: that's going to mean rewriting a sizeable chunk of infrastructure. what's runCommand?
<clever> > runCommand "name" {} "mkdir $out; touch $out/foo"
<{^_^}> "<derivation /nix/store/swpy5vgd0nam981bapk5j5bbw8l4fp0w-name.drv>"
<clever> o1lo01ol1o: it just runs a chunk of bash to make something
<o1lo01ol1o> clever: can you point to an example of what you mean? Why couldn't one just use builtins.fetchGit?
<clever> o1lo01ol1o: builtins.fetchGit wont get the submodules
<o1lo01ol1o> clever: ah, right. super annoying.
<{^_^}> [nixpkgs] @dtzWill merged pull request #62692 → trilium: 0.30.8 -> 0.32.4 → https://git.io/fjuEP
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fjzn5
<{^_^}> [nixpkgs] @teto merged pull request #62789 → vimPlugins.vim-csharp: init at 2017-03-29 → https://git.io/fjzZ9
<{^_^}> [nixpkgs] @teto pushed commit from @jonringer to master « vimPlugins.vim-csharp: init at 2017-03-29 »: https://git.io/fjznd
<{^_^}> [nixpkgs] @dtzWill opened pull request #62799 → pyotherside: 1.5.5 -> 1.5.6 → https://git.io/fjznF
<o1lo01ol1o> clever: so, basically, have hydra git checkout the top-level project and then make sure that all nix expressions below use runCommand to make the submodule directory and then use builtins.fetchGit to clone into that directory
<o1lo01ol1o> (recursively, for each submodule)
<clever> o1lo01ol1o: builtins.fetchgit will always clone into a random directory in /nix/store/
<{^_^}> [nixpkgs] @teto merged pull request #62791 → vimPlugins.SpaceCamp: init at 2019-06-05 → https://git.io/fjzZh
<{^_^}> [nixpkgs] @teto pushed commit from @jonringer to master « vimPlugins.SpaceCamp: init at 2019-06-05 »: https://git.io/fjznb
<clever> o1lo01ol1o: runCommand then has to copy that into a subdir
adamantium has joined #nixos
<o1lo01ol1o> clever: ok, I'm researching runCommand's semantics. Is there an example of it used to copy builtins.fetchGit output anywhere?
<clever> o1lo01ol1o: let x = builtins.fetchGit {foo}; y = builtins.fetchGit {bar}; in runCommand "name" {} ''cp -r ${x} $out --no-preserve=mode ; cp -r ${y} $out/y''
ericsagnes has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @lopsided98 opened pull request #62800 → ubootRock64, ubootRockPro64: update → https://git.io/fjznp
lopsided98 has quit [Quit: Disconnected]
inquisitiv3_ has joined #nixos
lopsided98 has joined #nixos
<o1lo01ol1o> clever: got it. Ok, thank you. I'll probably be back after I resign myself to this task.
schjetne has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
inquisitiv3 has quit [Ping timeout: 272 seconds]
schjetne has quit [Ping timeout: 246 seconds]
drakonis_ has joined #nixos
<tobiasBora> clever: Ok, I found the issue, I needed to call bash in my loop
<clever> tobiasBora: ah right, ExecStart needs an absolute path
<clever> tobiasBora: you want .script in nixos
<clever> tobiasBora: https://nixos.org/nixos/options.html#.script
<clever> tobiasBora: that will chunk it into a bash script for you, then put that in ExecStart
<clever> chuck*
drakonis has quit [Ping timeout: 258 seconds]
<tobiasBora> clever: oh, that's great, thanks
clacke_movim has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #62801 → python3Packages.pywebpush: init at 1.9.4 → https://git.io/fjzce
ericsagnes has joined #nixos
<tobiasBora> clever: any idea why when I use "ExecStart = "${pkgs.bash} -c \"while true; do echo 'YES';" it fails?
<clever> tobiasBora: you didnt terminate the escaped "
<clever> tobiasBora: also
<clever> > "${pkgs.bash} -c \"while true; do echo 'YES';"
<{^_^}> "/nix/store/x0mlaj4z4ciycaycfwc36l1932mwywfj-bash-4.4-p23 -c \"while true; do echo 'YES';"
<clever> tobiasBora: that is a directory, not an executable
<tobiasBora> oh, again the same error
<tobiasBora> thanks a lot
buffet has joined #nixos
buffet_ has quit [Ping timeout: 252 seconds]
Henson has quit [Quit: goodnight!]
<o1lo01ol1o> clever: Output limit exceeded; I saw an issue that said this is ram related. The buildm machine has 16gb and is choking on the ghc 8.2 build, do you know what the issue might be?
Supersonic has quit [Ping timeout: 258 seconds]
ericsagnes has quit [Ping timeout: 245 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.4]
<o1lo01ol1o> clever: aha, thanks again. (Maybe I'll just start reading through that repo?)
<clever> o1lo01ol1o: its huge :P, took a month or 2 to figure it all out
<o1lo01ol1o> clever: I bet. Substantially shorter than it would take me to jump out a window and not figure out any of it, though.
Supersonic has joined #nixos
<o1lo01ol1o> clever: still seems to fail: ghc-8.2.2-binary
<clever> o1lo01ol1o: how big is the output?
<clever> o1lo01ol1o: you can check by just running du on its path, on the build slave
<{^_^}> [nixpkgs] @dtzWill opened pull request #62802 → wireless-regdb: 2019-03-01 -> 2019-06-03 → https://git.io/fjzct
reinhardt has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #62803 → tor-browser-bundle: 8.5 -> 8.5.1, security fix! → https://git.io/fjzcO
<o1lo01ol1o> clever: 1503308
<clever> o1lo01ol1o: try going admin->clear failed build cache
<{^_^}> [nixpkgs] @dtzWill opened pull request #62804 → libevdev: 1.6.0 -> 1.7.0 → https://git.io/fjzcs
<o1lo01ol1o> clever: still Output limit exceeded
<clever> o1lo01ol1o: can you confirm the new config is in /var/lib/hydra/hydra.conf on the hydra machine?
<o1lo01ol1o> max_output_size = 4294967296
<{^_^}> [nixpkgs] @dtzWill opened pull request #62805 → mtdutils: 1.5.2 -> 2.1.0 → https://git.io/fjzcG
<clever> not sure what else to check
<{^_^}> [nixpkgs] @dtzWill opened pull request #62806 → krita: 4.2.0 -> 4.2.1 → https://git.io/fjzcn
<clever> o1lo01ol1o: oh, did you turn on substituters?
<o1lo01ol1o> no, is that useSubstitutes?
<clever> yeah
<{^_^}> [nixpkgs] @dtzWill opened pull request #62807 → goxel: 0.8.3 -> 0.9.0 → https://git.io/fjzcc
ericsagnes has joined #nixos
<o1lo01ol1o> k
<tobiasBora> I need to go now, good night!
<o1lo01ol1o> what's the limit inquestion that's being exceeded?
<{^_^}> [nixpkgs] @dtzWill opened pull request #62808 → minder: init at 1.3.1 → https://git.io/fjzcC
kvda has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #62809 → rtv: 1.26.0 -> 1.27.0 → https://git.io/fjzcW
<{^_^}> [nixpkgs] @dtzWill opened pull request #62810 → kore: 3.3.0 -> 3.3.1 → https://git.io/fjzcl
adamantium has quit [Remote host closed the connection]
<clever> 2gig
<{^_^}> [nixpkgs] @dtzWill opened pull request #62811 → xkeyboardconfig: 2.24 -> 2.27 → https://git.io/fjzcR
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<o1lo01ol1o> clever: the queue runner can only handle a maximum of 2gb in a derivation? That seems small. . .
<clever> thats just the default limit
<clever> you should be able to change it easily
<clever> try restarting the hydra-queue-runner process?
<o1lo01ol1o> isn't that what max_output_size = 4294967296 does?
<clever> it may be using the old cfg
<o1lo01ol1o> ah, right
<o1lo01ol1o> so far, everything's churning along; is it fair to say that there's no danger to set the machine's ram to slightly larger than max_output_size?
<clever> it will need up to max_output_size ram, for every job its running
<clever> so if its doing 10 jobs in parallel, thats 10x as much ram
<clever> worst case
<o1lo01ol1o> right, ok.
<o1lo01ol1o> clever: ok, that's enough for tonight. Thanks again for the help, if you're in NYC, I'll buy you a beer.
<clever> usually only passing thru on connecting flights
<o1lo01ol1o> fair; offer stands.
clacke_movim has left #nixos [#nixos]
prometheus_falli has joined #nixos
lightbulbjim[m] has left #nixos ["User left"]
rauno has quit [Ping timeout: 248 seconds]
lambda-11235 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
kvda has joined #nixos
Glider_IRC_ has joined #nixos
kvda has quit [Client Quit]
Soo_Slow has joined #nixos
Glider_IRC__ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #62686 → john: 1.8.0-jumbo-1 -> 1.9.0-jumbo-1 → https://git.io/fjuE8
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzcV
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzcw
<{^_^}> [nixpkgs] @dtzWill merged pull request #62694 → toybox: 0.8.0 -> 0.8.1 → https://git.io/fjuE5
<{^_^}> [nixpkgs] @dtzWill merged pull request #62699 → udocker: 1.1.1 -> 1.1.3 → https://git.io/fjuuR
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzcK
<{^_^}> [nixpkgs] @dtzWill merged pull request #62794 → public-sans: 1.004 -> 1.005 → https://git.io/fjznM
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzc6
<{^_^}> [nixpkgs] @dtzWill merged pull request #62795 → wpgtk: 6.0.5 -> 6.0.7 → https://git.io/fjznD
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzci
xorkle has joined #nixos
rauno has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #62693 → harfbuzz: 2.5.0 -> 2.5.1 → https://git.io/fjuE9
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fjzcP
jD91mZM2 has quit [Quit: ZNC 1.7.2 - https://znc.in]
<{^_^}> [nixpkgs] @dtzWill merged pull request #62681 → fltrdr: 0.2.1 -> 0.3.1 → https://git.io/fjuET
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjzcX
<{^_^}> [nixpkgs] @dtzWill merged pull request #62649 → newt: 0.52.20 -> 0.52.21 → https://git.io/fjuLk
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fjzcM
kvda has joined #nixos
jasongrossman has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
reinhardt has quit [Quit: Leaving]
alex`` has quit [Ping timeout: 272 seconds]
gyroninja has joined #nixos
wfranzini has quit [Remote host closed the connection]
<gyroninja> Can someone help me understand how gc roots work? I don't understand why for example libogg is a root. I would figure libraries would have been pulled in by another package which would mean that package instead should be a root
<clever> gyroninja: `nix-store --query --roots /nix/store/something` to see what roots are pointing to it
o1lo01ol1o has joined #nixos
<clever> gyroninja: `nix why-depends otherthing /nix/store/something` to see how a given root points to it
mighty_vee has quit [Ping timeout: 246 seconds]
mighty_vee has joined #nixos
<gyroninja> So I use that first command on the libogg root and it shows many other roots
<gyroninja> Shouldn't GC roots have no roots?
<gyroninja> other than manually installing a program and it's dependency
<clever> gyroninja: it likely read the symlink, and showed the roots for its target instead
st4ll1_ has joined #nixos
<gyroninja> btw I'm viewing the roots with `nix-store --gc --print-roots`
st4ll1 has quit [Ping timeout: 248 seconds]
toppler`` has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<gyroninja> It just seems like I have a crazy amount of gc roots (256) as I just installed the system yesterday and only have a few programs installed
toppler`` has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gyroninja> I realized my mistake
<gyroninja> I was thinking GC roots would be similar to the contents of the world file from the Gentoo operating system
<clever> gyroninja: generations are basically nix keeping every version of the world file, so you can undo changes
<gyroninja> In NixOS GC roots seems to be any accessable contents from a package
<clever> gyroninja: the dependencies of a package cant be deleted until the package refering to it is deleted
kvda has joined #nixos
<gyroninja> The difference is that the world file includes roots from a package manager sense, where these GC roots is a super set of the roots which also include other packages which currently need to be installed on the system
<clever> also, nix gc roots refer to a specific build
<clever> while the world file is just a package name and maybe a verison
st4ll1_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
st4ll1 has joined #nixos
<gyroninja> For example mpv would be an actual root and automatically pull in lua, but lua is a GC root since it's a part of the system
<clever> its less that mpv is a root, and more that root is just the starting point for the tree
<clever> anything mpv depends on, is also rooted
<clever> if you install mpv with nix-env, then /nix/var/nix/profiles/per-user/clever/profile-42-link is a gc root, that depends on mpv
<clever> and mpv depends on lua
<clever> so both mpv and lua are rooted
* clever heads off to bed
prometheus_falli has quit [Remote host closed the connection]
clacke_movim has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4fcf0bbb208 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mexisme_ has quit [Ping timeout: 272 seconds]
st4ll1 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Tomahna opened pull request #62812 → bloop: 1.2.5 -> 1.3.0 → https://git.io/fjzcj
endformationage has quit [Ping timeout: 248 seconds]
<zfnmxt> This is what my man pages look like: https://i.imgur.com/hHpcWLS.png (that's `man ldd`). Any idea what's wrong? :(
botayhard__ has joined #nixos
botayhard_ has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
botayhard__ is now known as botayhard
<gyroninja> zfnmxt: Maybe it's compressed
emptyflask has quit [Ping timeout: 252 seconds]
<zfnmxt> gyroninja: Not really sure how to go about fixing/confirming that. I uninstalled the man page packages and tried again and got this: http://ix.io/1L7h
<zfnmxt> Sounds like the man page config is messed up. I didn't even realize such a configuration existed.
asheshambasta_m has joined #nixos
asheshambasta_m has quit [Client Quit]
<{^_^}> [nixpkgs] @vcunat pushed 79 commits to master: https://git.io/fjzCq
iyzsong has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @sgraf812 closed pull request #62785 → glrnvim: init at 0.1.1 → https://git.io/fjzG1
<{^_^}> [nixpkgs] @vcunat merged pull request #62209 → Staging next → https://git.io/fj0Ix
clacke_movim has left #nixos [#nixos]
<gyroninja> zfnmxt: Can you send a picture of the manual for cut?
<zfnmxt> Much the same, unfortunately. :
<zfnmxt> :(
tbenst_ has quit [Remote host closed the connection]
<gyroninja> yeah it's compressed with gzip
tbenst_ has joined #nixos
<gyroninja> (which is how man pages are stored on disk)
<zfnmxt> You figured that out just by looking at it?
<zfnmxt> What would cause it to not uncompress the page first?
<gyroninja> I'm not sure myself. I just know from the past that man usually stores man pages compressed
<zfnmxt> It's truly amazing how I manage to break everything :)
<zfnmxt> I'm guessing that "Unrecognized line" stuff in the config file has something to do with it
<zfnmxt> But I don't know how to fix that on NixOS.
reinhardt has joined #nixos
jD91mZM2 has joined #nixos
Synthetica has quit [Ping timeout: 248 seconds]
dukedave has quit [Ping timeout: 258 seconds]
dukedave has joined #nixos
ctp has joined #nixos
palo has joined #nixos
Synthetica has joined #nixos
knupfer has quit [Ping timeout: 248 seconds]
orivej has joined #nixos
<gyroninja> zfnmxt: Are you referring to the troff errors at the top of the screenshots?
<gyroninja> Or does the config file itself contain those errors?
<zfnmxt> No, sorry. Didn't realize I didn't paste that bit.
<zfnmxt> Ignore the "no manual entry" bit, those errors are still generated with or without the manpages package.
<gyroninja> did you look at man's config file?
<zfnmxt> Yeah, but no idea what to do with that. It's in the nix store.
inquisitiv3_ is now known as inquisitiv3
<zfnmxt> Pretty sure I'm not supposed to edit those things :D
<zfnmxt> I can paste it if you'd like.
<gyroninja> sure
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eyJhb> Any way to resolve `bin/bash: line 1: prove: command not found` while doing a rebuild?
JadoJodo has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #62786 → helmfile: 0.64.1 -> 0.73.0 → https://git.io/fjzGy
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjzCr
<zfnmxt> gyroninja: I'm not sure which to give you. The config file is in the man-db packages, and nix-store -q --references `which man` doesn't yield `man-db` as a dependency, so I don't know which hash to look at.
<zfnmxt> (I was looking at a random hash before.... >.< )
schjetne has joined #nixos
<gyroninja> My man command is a symlink into man-db
<gyroninja> well `which man` is /run/current-system/sw/bin/man which goes to man-db
kvda has joined #nixos
<zfnmxt> That fixed the problem :P
<zfnmxt> Well, indirectly.
<gyroninja> Did you not install man-db?
wfranzini has joined #nixos
<zfnmxt> `which man` gave `/home/zfnmxt/.nix-profile/bin/man`, so it was in my..uh, not sure what the terminology is. User nix environment?
<zfnmxt> So I just did `nix-env -e man` and it fixed it and now man points to /run/current-system/sw/bin/man
schjetne has quit [Ping timeout: 244 seconds]
hyper_ch2 has joined #nixos
<zfnmxt> Anyway, man was symlinked to /nix/store/0n4i2742jcp3dw32pk62c45z6yikzjfy-man-1.6g/bin/man
orivej has quit [Ping timeout: 248 seconds]
clacke_movim has joined #nixos
<zfnmxt> Now the symlink is correct. I don't know what happened. I screwed something up in my user env, obviously. =/
<zfnmxt> Thanks for the help, though, gyroninja !
jbgi has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #62813 → nixos/systemd: enable systemd-tmpfiles-setup and -clean for user sessions → https://git.io/fjzC7
adamantium has joined #nixos
<adamantium> Hey -- anyone out there manage to get slock-or-similar screenlocker to work on lidclose?
thc202 has joined #nixos
<ar> adamantium: xss-lock
<etu> adamantium: I use i3lock-pixelated with xautolock that locks on suspend and lidclose
<zfnmxt> adamantium: I use physlock and it works well. `services.physlock.enable = true` was it all it took.
<rajivr___> I am new to NixOS. When I do `nix-store --query --deriver /nix/store/....-hello-2.10` where is the reverse mapping to the derivation store?
<zfnmxt> Also one of the only lockers that doesn't let you access another tty :)
<rajivr___> I meant to ask "where is the reverse mapping to the derivation" that is the `.drv` file stored?
<etu> zfnmxt: I don't see how that matters though, I don't have things running on a tty (such as startx) because I have a loginmanager, and both the locker and the tty would require the same password to access my account :p
adamantium has quit [Read error: Connection reset by peer]
<zfnmxt> For most people it probably doesn't, but might as well lock it out as well
adamantium has joined #nixos
<adamantium> ar: please expand
emily has quit [Remote host closed the connection]
emily has joined #nixos
emily has quit [Remote host closed the connection]
jackdk has quit [Ping timeout: 248 seconds]
mexisme_ has joined #nixos
<adamantium> Does setting programs.xss-lock.enable = true; and programs.xss-lock.lockerCommand = "slock"; do what i want or ?
<ar> adamantium: except i had to specify full path for some reason, don't remember now why
<ar> adamantium: as in, programs.xss-lock = { enable = true; lockerCommand = "/run/current-system/sw/bin/i3lock"; };
<etu> you can probably do: "${pkgs.i3lock}/bin/i3lock" as well as lockerCommand
<adamantium> so is xss-lock strictly for lidclose, or is it going to do when idle, too you think?
<adamantium> thanks btw
<ar> adamantium: it binds to the APIs systemd-logind uses for issuing locks
jeschli has joined #nixos
<ar> adamantium: dbus apis
mexisme_ has quit [Ping timeout: 248 seconds]
<sphalerite> eyjhb: what does your generated bootloader config look like?
<adamantium> ar: ah, lol. I've been doing it like this: http://ix.io/1L7o ... simple, but xss is probably better
<eyJhb> sphalerite that really depends what you mean by saying that. The ones in /boot/loader/entries?
jluttine has joined #nixos
<eyJhb> It really seems like there are varoius files on /boot, that might be outdated or old. I see some grub entries that specifies builds from 2018-12-31. Which, I have deleted a couple of times by now
<eyJhb> But in loader/entries/nixos-generation-x.conf, it looks for the fiels in /nix/stire/xxxx, and /efi/nixos
<eyJhb> So it might not need to regenerate those in /boot/kernels?
<sphalerite> eyjhb: yeah if they exist in /boot/nixos or /boot/efi/nixos
<eyJhb> It does
<eyJhb> So /boot/kernels seems like some legacy
<eyJhb> Lets try to reboot, and see if I will ever come back...
<etu> eyjhb: I was very confused by your /boot/kernels
<etu> eyjhb: Never seen that :)
<eyJhb> Well, I could reboot! But I almost died a little, because the generation I rebuild, my encrypted drives didn'' want to unlock...
<eyJhb> etu: guess they are just space wasters
ambro718 has joined #nixos
<etu> yeah, probably
<etu> Good that you could reboot at least! :)
<etu> Then you're in a good state
wfranzini has quit [Ping timeout: 246 seconds]
<eyJhb> Yeah, that is the best part :D - Now to get another 30 error messages about not being able to compile bash or something because `prove command not found`..
civodul has joined #nixos
<eyJhb> Guess who were correct - https://termbin.com/zhar
<hyper_ch2> eyjhb: what encryption?
schjetne has joined #nixos
<eyJhb> hyper_ch2: LUKS Encryption, but not to worry.. I am currently building various verions of nixpkgs, to see when DisplayLink started to fail..
<eyJhb> Currently on day two of the endeavour, and hating it
<hyper_ch2> ah, ok... used to use luks encryption :9
adamantium has quit [Remote host closed the connection]
fasd` has joined #nixos
<eyJhb> Hoping I can say the same thing about DisplayLink at some point :( What havey ou switched to now?
linarcx has joined #nixos
schjetne has quit [Ping timeout: 268 seconds]
<Mateon1> Okay, so after a recent (within the last month) full-system update, I seem keep hitting some sort of bug in libpng (png_combine_row NULL dereference), triggered by gdk_pixbuf, triggered by lots of other things, like the GTK Save As... dialog, and a large amount of icons on my system
<Mateon1> One of the most annoying versions of this bug is the chromium Save As... dialog causing a segfault, every time I try to save anything, the entire browser crashes (I assume GUI is handled on the main browser process, so a segfault there crashes everything, instead of a handful of tabs)
<Mateon1> Another example is that I cannot start zenmap at all, I get a segfault before any window even shows up
<Mateon1> I want to know, how can I debug this and possibly fix this?
hmpffff has joined #nixos
emily has joined #nixos
<hyper_ch2> eyjhb: I use now native encrypted root zfs
<hyper_ch2> what's DisplayLink?
katyucha has joined #nixos
<eyJhb> proprietary software/hardware, which functions as a USB 3.0 Docking station (for my use case at least), so I can have a third monitor to my x230 connected.. But everything is.. Unstable and reallyb badly made
ambro718 has quit [Quit: Konversation terminated!]
<eyJhb> And even the logs for DisplayLink are encrypted, so you have NO clue why it doesn't work...
wfranzini has joined #nixos
<eyJhb> And some place between 18.09 and 19.03, it stopped working.. WHich can be because of a thousand reasons :(
hmpffff has quit [Quit: nchrrrr…]
<mjrosenb> is anyone familiar with building ghcjs?
<eyJhb> Does the remote build machines repsect -I nixpkgs=<something> btw.?
lambda-11235 has quit [Quit: Bye]
Shoubit has joined #nixos
kvda has quit [Quit: Textual IRC Client: www.textualapp.com]
Ariakenom has joined #nixos
goibhniu1 has joined #nixos
fasd` has quit [Ping timeout: 245 seconds]
johanot has joined #nixos
<inquisitiv3> nornagon: You wrote the instructions for how to partition ZFS for NixOS on the wiki. Do the ZFS volume need to to partition no. 1, or can I have it after the EFI boot partition?
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #62815 → weechat: 2.4 -> 2.5 → https://git.io/fjzWz
<hyper_ch2> hmmmm, I have a "mySecrets.nix" file that I do include into the configuration.nix file. So far I only set variables and assigned values in the mySecrets.nix file. However I want to tighter control the samba shares. So I wanted to create groups for hosts allowed in the mySecrets.nix file as well, but it doesn't like to just use the variables. Where did I go wrong? https://paste.simplylinux.ch/view/raw/0ab51a61
<hyper_ch2> eyjhb: thx for the explanation
<hyper_ch2> inquisitiv3: it does not matter
<tilpner> hyper_ch2: Change ^{ to ^rec {
<inquisitiv3> hyper_ch2: Thanks!
<hyper_ch2> tilpner: that's all? oO :) thx
* hyper_ch2 gives tilpner a cookie
<marek> any idea why nixpkgs is 9 days old?
fasd` has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #62782 → sigrok suite: enable for darwin → https://git.io/fjz3G
<{^_^}> [nixpkgs] @bjornfor pushed 5 commits to master: https://git.io/fjzW2
<{^_^}> [nixpkgs] @peti pushed 13 commits to haskell-updates: https://git.io/fjzWa
jasongrossman has quit [Remote host closed the connection]
<tilpner> marek: See https://howoldis.herokuapp.com/
<{^_^}> [nixpkgs] @peti pushed 7 commits to haskell-updates: https://git.io/fjzWw
<fasd`> is there a way to add custom fortunes to fortune-mod without repackaging it?
<{^_^}> [nixpkgs] @peti pushed 8 commits to master: https://git.io/fjzWo
jasongrossman has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<tilpner> fasd`: man fortune
<tilpner> fasd`: You can pass directories/files
<fasd`> I did that, and it says that foo.txt isn't a fortune file
<fasd`> even though it's formatted correctly
<tilpner> fasd`: You may need foo.dat
<{^_^}> [nixpkgs] @johanot opened pull request #62816 → kubernetes: 1.14.2 -> 1.14.3 (CVE-2019-11245) → https://git.io/fjzW9
<fasd`> oh... duh
<fasd`> I'll see how to generate it
<marek> tilpner: yeah, I mean why :)
<marek> looks like metrics are failing?
<marek> for some reason I thought nixpkgs is updated right away and nixos is the one that needs passing tests?
<hyper_ch2> inquisitiv3: you've used zfs before?
<tilpner> marek: IINM nixpkgs-unstable uses different tests than nixos-unstable, not a subset
<tilpner> marek: E.g. Darwin specific tests, which would not block the nixos-* channels
<marek> hmm I see, I'm still little bit confused about these
schjetne has joined #nixos
<tilpner> marek: This confuses me too, it says log limit exceeded, and the log seems to be random binary data
<{^_^}> [nixpkgs] @wfranzini opened pull request #62817 → WIP: improve support for crosscompiling to musl32 → https://git.io/fjzWb
<tilpner> Even though the web UI can display something
Matthieu_ has joined #nixos
fasd` has quit [Ping timeout: 248 seconds]
<marek> yeah, interesting
jasongro` has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
<Mateon1> Okay, so I narrowed down my GDK crashing issue to https://github.com/NixOS/nixpkgs/issues/54278 - @fare suggests a workaround by unsetting GDK_PIXBUF_MODULE_FILE among other env vars, but none of the vars mentioned in his comment exist in my environment, and I still get those crashes.
<{^_^}> #54278 (by minijackson, 19 weeks ago, open): Programs using gdk_pixbuf 2.38 crash with 2.36 loaders from system
<{^_^}> [nixpkgs] @timokau merged pull request #62787 → vimPlugins.semshi: init at 2018-12-05 → https://git.io/fjzG7
<{^_^}> [nixpkgs] @timokau pushed commit from @jonringer to master « vimPlugins.semshi: init at 2018-12-05 (#62787) »: https://git.io/fjzWp
<Mateon1> Oh whoops, nevermind
<Mateon1> I did a grep instead of an egrep, so the pipe character was interpreted literally
<{^_^}> [nixpkgs] @johanot opened pull request #62818 → kubernetes: 1.13.6 -> 1.13.7 (CVE-2019-11245) → https://git.io/fjzWj
<{^_^}> [nixpkgs] @dywedir merged pull request #62774 → 1password: 0.5.5 -> 0.5.6 → https://git.io/fjzTS
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjzle
<{^_^}> [nixpkgs] @timokau opened pull request #62819 → vimPlugins: update → https://git.io/fjzlv
jasongro` has quit [Quit: ERC (IRC client for Emacs 26.2)]
jasongrossman has joined #nixos
juhoh has joined #nixos
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #62745 → [19.03] chromium: 74.0.3729.157 -> 75.0.3770.80 (backport) → https://git.io/fjub6
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-19.03: https://git.io/fjzlY
winem_ has joined #nixos
adamantium has joined #nixos
<adamantium> ar: xss is great. thankyou
<juhoh> Hi, I just started using NixOS. Usually on my Linux distros I use dwm as the WM. I've had a lot of difficulties in learning how to set it up on Nix, though. I've got it working with the `windowManager.session` and setting it to dwm but I have yet no idea how to configure it myself. Do I have to use overlays or something else? Any blog posts or tutorials are gladly welcome, didn't find too much info on that
<juhoh> myself...
<Yaniel> services.xserver.windowManager.dwm.enable = true;
<juhoh> Yup, that's how I got it running for now. But how can I configure the config.h?
<andi-> juhoh: I guess overlays are the way to go. `nixpkgs.overlays = [ (self: super: { dwm = super.dwm.override { patches = [ ./my-custom-config-patch ]; } })];` the package
<andi-> juhoh: or you use `overrideAttrs` and execute a bit of code before the build starts. Most likely copying your config.h into the build root
<juhoh> Great, thanks andi- I'll try the overlays approach.
schjetne has quit [Ping timeout: 268 seconds]
<inquisitiv3> hyper_ch2: Nope, I'm looking into it
<hyper_ch2> inquisitiv3: it's awesome :)
<jasongrossman> ,quotes
Avaq has joined #nixos
johanot has quit [Ping timeout: 258 seconds]
Avaq has quit [Read error: Connection reset by peer]
v88m has quit [Ping timeout: 248 seconds]
adamantium has quit [Remote host closed the connection]
johanot has joined #nixos
<dminuoso> Interesting. autoPatchElf doing *something*.. and quite a lot of it..
<dminuoso> But no idea what.
dejanr has joined #nixos
katyucha has quit [Quit: Lost terminal]
<tilpner> juhoh: Note that you don't have to use the patches argument if you find passing the entire file more convenient
<dejanr> hi, anyone could suggest how to handle terminfo with tic -x for termite https://github.com/thestinger/termite#terminfo
<dejanr> does this has to be run as a session command?
<tilpner> dejanr: That shouldn't be necessary
<tilpner> > termite.terminfo
<{^_^}> "<derivation /nix/store/07pkhf5dci261wnhfjkyxhakam4by2y3-termite-15.drv>"
<dejanr> tilpner: i have a termite wrapper here https://github.com/dejanr/dotfiles/blob/master/nix/config/nixpkgs/overlays/10-wrappers/termite/default.nix and if i use termite -e neomutt
<dejanr> tilpner: i get that same error, if i load manually tic -x termite-terminfo it works
<tilpner> Ahh, that explains the error
<tilpner> Random guess: Put termite.terminfo into your systemPackages
sigmundv has joined #nixos
<dejanr> tilpner: found this passthru.terminfo = termite.terminfo;
<dejanr> tilpner: my wrapper didn't have terminfo before, this should work now thanks
<{^_^}> [nixpkgs] @timokau merged pull request #62819 → vimPlugins: update → https://git.io/fjzlv
<{^_^}> [nixpkgs] @timokau pushed to master « vimPlugins: update (#62819) »: https://git.io/fjzlp
hmpffff has joined #nixos
<dejanr> it works now!
Jetien_ has joined #nixos
psy3497 has quit [Ping timeout: 258 seconds]
<juhoh> tilpner: Yeah, I was trying setting the `conf` but get an unexpected argument error: `nixpkgs.overlays = [ (self: super: { dwm = super.dwm.override { conf = builtins.readFile ./config.h; }; }) ];`
<eyJhb> Anybody running the newest stable NixOS with x11 that might be so kind to grab the versionnumber/xorg version? - xdpyinfo | grep -i version
Matthieu_ has quit [Read error: Connection reset by peer]
hmpffff has quit [Quit: Bye…]
<tilpner> juhoh: It doesn't expect a conf argument
<tilpner> juhoh: But you can do something like dwm.overrideAttrs (old: { prePatch = (old.prePatch or "") + "cp ${./config.h} config.def.h"; })
<juhoh> tilpner: Exactly, but trying to read the package nix file that's defined in the repo I'm not quite sure how dwm gets built.
<juhoh> Ah, so I've to use the `overrideAttrs` like andi- already pointed out.
adamantium has joined #nixos
rauno has quit [Ping timeout: 248 seconds]
<tilpner> juhoh: In this case yes. The arguments available for .override are determined by the package author, and thus are of varying flexibility and not always consistent
<andi-> juhoh: I think our st is more streamlined for customization. Might want to open a PR adjusting the dwm package :)
<{^_^}> [nixpkgs] @Ma27 merged pull request #62605 → documize-community: 2.5.0 -> 2.5.1 → https://git.io/fjE50
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fjz8T
<gyroninja> It would be nice if there was documentation somewhere on how to configure dwm / st on nixos
<dejanr> juhoh: not sure about dwm tho
<gyroninja> I ended up just making my own local st package since it seemed to complicated to figure out how to configure and add patches
<eyJhb> Anyone got any clue, on how I can set `PageFlip` like this - https://support.displaylink.com/knowledgebase/articles/1181623 ?
<juhoh> gyroninja: That's my end goal :) To successfully set up dwm and configure dwm and write a short article to the NixOS wiki!
<andi-> gyroninja: agreed. I stopped using both a while ago so an active users would probably best to describe things.
adamantium has quit [Remote host closed the connection]
<juhoh> Learning all the stuff takes time but I'm glad to find out the support is good here
<andi-> juhoh: feel free to ping me if you need help
<juhoh> Good stuff andi-, I'm sure I will. I
<juhoh> I'll try to set it up with the overrides after lunch
<Synthetica> What's the recommended way to use (rust) Clippy on NixOS?
dejanr has quit [Ping timeout: 252 seconds]
<dminuoso> So I have autoPatchelfHook trying to fixup for a library Im fairly sure that its not used.
<tilpner> Hey offlinehacker, ping about #62071 :)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/62071 (by tilpner, 1 week ago, open): nixos/cadvisor: expose interval options
<dminuoso> Is there a way to direct autoPatchelfHook not to try and fix some needed dependency?
<dminuoso> Or do I have to manually patchelf instead?
vidbina has joined #nixos
__monty__ has joined #nixos
vidbina has quit [Client Quit]
Avaq has joined #nixos
silver has joined #nixos
<inquisitiv3> hyper_ch2: You seem to know how to use ZFS. Should I use partition type `bf00` or `bf01`? The NixOS wiki recommend the later, but Arch wiki recommends the former.
<{^_^}> [nixpkgs] @peti pushed to master « haskell-dhall: fix broken overrides »: https://git.io/fjz8X
<inquisitiv3> I trust Arch wiki more when it commes to non-Nix specific things. But our wiki is for NixOS
redsith has joined #nixos
dansho has quit [Ping timeout: 244 seconds]
juhoh has quit [Ping timeout: 246 seconds]
Avaq has quit [Ping timeout: 248 seconds]
redsith has quit [Quit: WeeChat 2.4]
redsith has joined #nixos
johanot has quit [Ping timeout: 245 seconds]
<__monty__> bf01 seems more appropriate unless it's for your root partition.
redsith has quit [Client Quit]
<__monty__> But both are solaris specific, what's that about?
johanot has joined #nixos
redsith has joined #nixos
redsith has quit [Client Quit]
<tilpner> inquisitiv3: If you tell me how to check which one I'm using, I can check
RRedcroft has joined #nixos
<tilpner> But blkid, fdisk and lsblk always give the human names
<tilpner> (And my answer would just be about what works, not necessarily about what's best)
<{^_^}> [nixpkgs] @pSub merged pull request #62696 → radamsa: 0.5 -> 0.6 → https://git.io/fjuEN
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fjz8h
<__monty__> tilpner: bf00 = Solaris Root, bf01 = Solaris ZFS.
<{^_^}> [nixpkgs] @Mic92 merged pull request #62763 → zfs: 0.7.13 -> 0.8.0 → https://git.io/fjujc
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjz8j
RRedcroft has quit [Quit: WeeChat 2.4]
dontobey has joined #nixos
inquisitiv3_ has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/5c0f5759ba3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<tilpner> __monty__: No, it says "zfs member"
<tilpner> And "Solaris /usr & Apple ZFS"
inquisitiv3 has quit [Ping timeout: 252 seconds]
<Izorkin> aanderse: how to check with "nix path-info -S" - error message - error: Please be informed that this pseudo-package...
<andi-> Synthetica: no idea, I usually have rustup and use the clippy from there
cmacrae has joined #nixos
v88m has joined #nixos
<inquisitiv3_> tilpner: Thanks! I'll go with what Arch Wiki says here. It fells like /more/ correct thing to do.
<__monty__> tilpner: Ah, according to gdisk "Solaris /usr & Mac ZFS" is bf01.
<__monty__> inquisitiv3_: Fwiw I doubt it matters on a non solaris system. Looks like legacy cruft to me tbh.
toppler`` has quit [Ping timeout: 244 seconds]
<dminuoso> Mmm. Is it possible to strip a NEEDED from a .so?
inquisitiv3 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8f5edef47e2 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
cyphase has quit [Ping timeout: 248 seconds]
inquisitiv3_ has quit [Ping timeout: 244 seconds]
inquisitiv3_ has joined #nixos
toppler`` has joined #nixos
inquisitiv3 has quit [Ping timeout: 248 seconds]
orivej has joined #nixos
<riottest000[m]> <dminuoso "Mmm. Is it possible to strip a N"> I don't think so, since you need that thing to actually run the .so
<dminuoso> riottest000[m]: Do I?
init_6 has joined #nixos
toppler`` is now known as toppler
cyphase has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<cmacrae> I asked over in #nixos-aarch64, but I figure it can't hurt to ask here too! Does anyone have a link/info to the public hydra build for the aarch64 images? I have some stuff I need to tweak in the build for my personal use :)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d28f44c56c2 (from 60 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
johanot has quit [Ping timeout: 248 seconds]
toppler has joined #nixos
johanot has joined #nixos
mexisme_ has joined #nixos
[Leary] has joined #nixos
Ariakenom has quit [Ping timeout: 258 seconds]
mexisme_ has quit [Ping timeout: 252 seconds]
Lears has quit [Ping timeout: 248 seconds]
alex`` has joined #nixos
<cmacrae> (all good on my above query, got an answer in #nixos-aarch64 :D)
asheshambasta_m has joined #nixos
jbgi has quit [Ping timeout: 248 seconds]
tarruda1 has quit [Quit: WeeChat 1.6]
tarruda has joined #nixos
ThatDocsLady has joined #nixos
<marek> I'm installing my own package from my own internal repo using nix-env -f gtihub.../archive.tar -i
<marek> but how do I install a new service in this one?
<dminuoso> marek: What do you mean by "new service"?
<sphalerite> marek: packages don't contain services that are activated automatically or anything. You can write a nixos module for it though.
m0rphism has joined #nixos
<marek> yeah like I want to update this service in my private repo
<marek> and somehow pull it down to my system
<marek> like I do with the package
<dminuoso> marek: that's a nixos module
<marek> yeah, is that possible?
<marek> pull a "newer" version of a module?
<dminuoso> marek: Sure. Just import it into your /etc/nixos/configuration.nix
<marek> and remotly like with nix-env?
<marek> hmm I guess not
<{^_^}> [nixpkgs] @fpletz merged pull request #62802 → wireless-regdb: 2019-03-01 -> 2019-06-03 → https://git.io/fjzct
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjzBs
<dminuoso> marek: It may be helpful to understand what nixos modules do, and what nix derivations do.
<dminuoso> marek: nix-env is a command for your nix package manager, the thing that manages your /nix/ store
<dminuoso> Well, user environments.
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjzBZ
<{^_^}> [nixpkgs] @fpletz merged pull request #62816 → kubernetes: 1.14.2 -> 1.14.3 (CVE-2019-11245) → https://git.io/fjzW9
<{^_^}> [nixpkgs] @fpletz merged pull request #62818 → kubernetes: 1.13.6 -> 1.13.7 (CVE-2019-11245) → https://git.io/fjzWj
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to release-19.03: https://git.io/fjzBc
<dminuoso> marek: nixos is the thing that manages the entire filesystem, the system, services, configuration, kernel, boot config
<dminuoso> (it can also control user environments)
<marek> how is a service linked to a package?
<marek> like how does the service know which nigpkgs to pull?
<{^_^}> [nixpkgs] @andir merged pull request #62815 → weechat: 2.4 -> 2.5 → https://git.io/fjzWz
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fjzBC
<dminuoso> marek: a service might add a derivation to the user environment.
<{^_^}> [nixpkgs] @fpletz merged pull request #62810 → kore: 3.3.0 -> 3.3.1 → https://git.io/fjzcl
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjzBl
<inquisitiv3_> Why isn't my virtual drive shown when I run `ls /dev/disk/by-id/` when I run the NixOS live system in a VM?
<dminuoso> or better... *a module*
<dminuoso> marek: for example a module might specify `environment.systemPackages = [ pkgs.nginx ]; `
fendor has joined #nixos
Matthieu_ has joined #nixos
o1lo01ol1o has joined #nixos
<dminuoso> marek: And then, if the module is imported and the new configuration activated, then the system environment will receive that package
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62593 → wxSVG: 1.5.16 -> 1.5.17 → https://git.io/fjE9R
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjzBB
abrar has joined #nixos
<dminuoso> marek: but that's essentially just a declarative way of doing `nix-env -iA nixos.nginx`
<dminuoso> marek: what you refer to services is actually just systemd configuration.
<jluttine> What is the correct way to pin system nixpkgs in configuration.nix? I pin nixpkgs in nix.nixPath but i have to run `nixos-rebuild switch` twice for upgrade to happen. i guess the first one upgrades the system nixpkgs and then the second call uses that nixpkgs and actually upgrades the system..
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<dminuoso> marek: and systemd is configured via `systemd`, e.g. `systemd.services`
<dminuoso> marek: so where in a manual system you'd go creating unit files under /etc/systemd/... etc, you'd now just have some nixos module add `systemd.services.foo = { ... }`, then `nixos-rebuild` lets you build the configuration and test/switch to it (activating the systemd unit)
<dhess> jluttine: yeah, it reads configuration.nix and then builds, creating a new configuration.nix with the new path, so the first build will use the old configuration.nix. What I did (for nix-darwin, which has the same issue) is just write a wrapper around rebuild, which uses the -I flag to set nixpkgs to the new path, so that rebuild uses it.
simukis_ has joined #nixos
<marek> dminuoso: but how does that installs python37Packages.trezord?
<marek> I mean, how does that service knows which dependency to install in order for it to work?
<hyper_ch2> inquisitiv3_: not really sure.... I just made a general linux partition because when you create the zfs pool, it will repartition the partition again anyway
<dminuoso> marek: This is actually just a guess, but by fact that its referenced? https://github.com/NixOS/nixpkgs/blob/release-19.03/nixos/modules/services/hardware/trezord.nix#L47
<marek> hmm, that would be pretty smart
<dminuoso> marek: That's what either produces the entire attribute set *if* its enabled, or not if its not.
<jluttine> dhess: `man nixos-rebuild` doesn't show any -I flags
<marek> yeah, that if services.trezord.enable = true;
<marek> that makes sense
<marek> just missing the reference to a package
juhoh has joined #nixos
<sphalerite> there :)
<dminuoso> marek: pretty sure that referencing it is enough.
<{^_^}> [nixpkgs] @romildo opened pull request #62821 → jgmenu: 1.1 -> 3.0 → https://git.io/fjzB9
<marek> sphalerite: so it just finds what package provides trezord-g?
<dhess> jluttine: sorry, I set NIX_PATH in the wrapper. I confused it with other tools I'm writing :)
jasongrossman has quit [Ping timeout: 272 seconds]
<dminuoso> marek: no it doesnt find.
<dminuoso> marek: pkgs is an attribute set.
<sphalerite> marek: it uses the trezord package
<dminuoso> marek: pkgs.trezord is an attribute inside that attribute set.
Anton-Latukha has joined #nixos
<dminuoso> marek: Remember, this is just nix-lang.
<dminuoso> marek: Have you ever done something like `pkgs = import <nixpkgs> {};`?
<marek> yeah hmm
<dminuoso> that's, semantically at least, the same set (whether it actually ends up the same set depends on some details)
<jluttine> dhess: ok, thanks!
<dminuoso> an attribute set in the nix language sense.
siel has joined #nixos
<dminuoso> marek: Now that entire attribute set is lazy. If it werent, then importing <nixpkgs> would amount to installing *all* packages in nixpkgs to your store.
<marek> ok, so if I use nix-env to install a newer version of the package from my private repo
<marek> the service, which comes from nixos modules won't use it
<dhess> np
<marek> I install a new trezord with nix-env, I can run ti locally
<marek> but systemctl won't run it on startup with services.trezord.enable?
<dminuoso> marek: right
<dminuoso> marek: because pkgs.trezord resolves to whatever attribute is inside pkgs.
<marek> and is there a way to override this without too much hassle?
<marek> with -E or something
lunik1 has joined #nixos
<marek> like I have a remote private repo and I want to test my new trezord package
<marek> but with using that enabled feature
<dminuoso> Well yes
<dminuoso> but not with nix-env
ThatDocsLady_ has joined #nixos
<marek> I will have to create my own configuation to override the module right?
ThatDocsLady has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Veske opened pull request #62822 → Update terraform 0 12 → https://git.io/fjzBh
<{^_^}> [nixpkgs] @fpletz merged pull request #62701 → podman, cni{,-plugins}, cri*: updates → https://git.io/fjuui
<{^_^}> [nixpkgs] @fpletz pushed 10 commits to master: https://git.io/fjzBj
katyucha has joined #nixos
katyucha has quit [Client Quit]
<{^_^}> [nixpkgs] @Veske closed pull request #62822 → Update terraform 0 12 → https://git.io/fjzBh
<dminuoso> marek: Im checking.
<dminuoso> marek: You could probably just use an overlay for this.
<dminuoso> marek: alternatively you could use packageOverrides
Mrmaxmeier has quit [Quit: The Lounge - https://thelounge.chat]
lunik1 has quit [Client Quit]
Mrmaxmeier has joined #nixos
lunik1 has joined #nixos
jbgi has joined #nixos
o1lo01ol1o has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<jluttine> i installed nixos ami to amazon ec2 in february (18.09 unstable). i now tried to upgrade that machine to recent unstable but i get: error: cannot find a GRUB drive for /dev/xvda. Check your device.map. Any ideas what could be wrong?? Previously running nixos-rebuild switch worked just fine..
<jluttine> There's no /dev/xvda on that machine.
<jluttine> I have no idea why it should now exist because previously it wasn't needed...
<jluttine> I've been trying to read nixpkgs git history for relevant files but I haven't yet figured out anything useful
linarcx has quit [Ping timeout: 272 seconds]
ilmu has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Ping timeout: 244 seconds]
juhoh has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @teto merged pull request #62716 → luaPackages.lpeg: 1.0.1 -> 1.0.2 → https://git.io/fjurz
<{^_^}> [nixpkgs] @teto pushed to master « luaPackages.lpeg: 1.0.1 -> 1.0.2 »: https://git.io/fjzRr
Jetien_ has quit [Ping timeout: 268 seconds]
<Baughn> *Wat*.
RRedcroft has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
<simpson> Happens.
reinhardt has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @domenkozar pushed to release-18.09 « backport lib.strings.hasInfix »: https://git.io/fjzR6
asheshambasta_m has quit [Quit: Leaving.]
<Baughn> simpson: "Happens", you say...
alex`` has joined #nixos
<simpson> Baughn: Yep. Happened, continues to happen, will happen again.
o1lo01ol1o has joined #nixos
<Baughn> I've got a derivation that requires relaxing the sandbox, I really shouldn't complain.
<simpson> Baughn: I think that the technique is only used for Chrome, and that's thankfully an optional package that most people don't need.
<Baughn> Except that relaxing the sandbox seems like the better option here.
wfranzini1 has joined #nixos
puckipedia has joined #nixos
<LnL> I kind of love that this is still in nixpkgs
buffet_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
wfranzini has quit [Remote host closed the connection]
buffet has quit [Quit: ZNC 1.7.2 - https://znc.in]
puck has quit [Quit: nya]
wfranzini1 is now known as wfranzini
puckipedia is now known as puck
jtcs has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #61513 → cryptpad: init at v2.23.0 → https://git.io/fjlmY
<{^_^}> [nixpkgs] @zimbatm pushed 3 commits to master: https://git.io/fjzRF
j4m3s1 has joined #nixos
j4m3s__ has quit [Ping timeout: 272 seconds]
juhoh has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #62823 → 1password: 0.5.6 -> 0.5.6-003 → https://git.io/fjzRx
o1lo01ol1o has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emily has quit [Quit: Updating details, brb]
emily has joined #nixos
alp has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
gagbo has quit [Ping timeout: 258 seconds]
alp has joined #nixos
ilmu has joined #nixos
<tokudan> where do I set kernel module options in nixos?
Matthieu_ has quit [Read error: Connection reset by peer]
schjetne has joined #nixos
ebzzry has joined #nixos
rtjure has joined #nixos
<ebzzry> Pardon me for my ignorance, but why is it that when I install openssl in my profile, I can't see the libraries in ~/.nix-profile/lib/ ?
<tokudan> ebzzry, libraries are not intended to be installed
alex`` has quit [Ping timeout: 272 seconds]
afics has joined #nixos
<tokudan> the binaries should be in your path, but libraries should be directly referenced with full path by the binaries that use them
schjetne has quit [Ping timeout: 244 seconds]
<andi-> I think it might just be the case that openssl does have a `bin` output and those are preferred. If you instead "install" `openssl.lib` they might appear there
<andi-> err it doesn't have .lib the "standard" (`out`) output is basically the lib output
alex`` has joined #nixos
<ebzzry> OK. Thanks for the input.
o1lo01ol1o has joined #nixos
<ebzzry> To provide context, the issue came up when loading the libs with https://bit.ly/2wDwJC0
<ebzzry> I forced a path in /nix/store/... and it loaded fine.
simukis_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<ebzzry> So one solution for me is to maintain a personal copy of that code with Nix-specific changes.
<tokudan> hmm... it might work with an FHS environment
jonaswouters has joined #nixos
<andi-> write a wrapper that sets LIB_LIBRARY_PATH
<andi-> *LD_LIBRARY_PATH
o1lo01ol1o has quit [Remote host closed the connection]
<ebzzry> andi-: I’ll try that.
<andi-> it might be that they have their own library loader that doesn't honor those so that might not work. Never did anything lisp.
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62474 → live555: 2019.04.24 -> 2019.05.29 → https://git.io/fjE0A
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjz0g
<tokudan> ebzzry, another option: https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
is_null has quit [Ping timeout: 248 seconds]
<ebzzry> andi-: Wait, hold on. What’s an ideal way to set LD_LIBRRARY_PATH
o1lo01ol1o has quit [Remote host closed the connection]
<ebzzry> tokudan: let me check that.
simukis_ has joined #nixos
<tokudan> ebzzry, second option mentioning FHS environment there
alex`` has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
jbgi has quit [Ping timeout: 244 seconds]
<andi-> nixpkgs commonly uses `wrapProgram $out/bin/my-binar --prefix LD_LIBRARY_PATH ${pkgs.openssl}/lib` (or similar) during the fixup phase
<ebzzry> andi-: got it
<ebzzry> tokudan: got it
o1lo01ol_ has joined #nixos
Matthieu_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
acarrico has quit [Ping timeout: 248 seconds]
DerGuteMoritz has joined #nixos
simukis_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
simukis_ has joined #nixos
fusion809 has quit [Remote host closed the connection]
jbgi has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
W1lkins has joined #nixos
W1lkins has quit [Client Quit]
domogled has joined #nixos
<jbgi> Hi. nix-shell question: within the shellHook, is there a way to know if nix-shell was launch with "--run <cmd>" arguments?
<aanderse> in case there are any vscode people in here... https://discourse.nixos.org/t/vscode-remote-development-on-nixos/3119
v0|d has quit [Ping timeout: 245 seconds]
Denommus has joined #nixos
W1lkins has joined #nixos
W1lkins has quit [Client Quit]
<klntsky> How to fix "The pkg-config package 'xft' is required but it could not be found." when building haskell projects using stack on NixOS? Dependency causing this is X11-xft
is_null has joined #nixos
W1lkins has joined #nixos
jasongrossman has joined #nixos
stepcut has joined #nixos
toppler has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62449 → kdevelop-pg-qt: 2.1.0 -> 2.2.0 → https://git.io/fjER4
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjzE4
alp has quit [Remote host closed the connection]
alp has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
<eyJhb> Anybody know why I am getting switch-to-configuration use command not found?
<tokudan> that sounds like the kernel-with-perl-shebang-issue?
<eyJhb> So old issue that has since been fixed?
<tokudan> i think so
<tokudan> problem is that you cannot switch *from* your current generation to another one
<tokudan> boot to an older generation and then switch to a new one
<eyJhb> Running it with `boot`, so it shouldn't be live switching, if that is the case?
<eyJhb> Ehm... Will try, if I understand correctly
toppler has joined #nixos
domogled has quit [Quit: domogled]
<tokudan> well, you need to build a new one that doesn't have the issue
rtjure has quit [Read error: Connection reset by peer]
<tokudan> if you want the backgrounds: https://lwn.net/Articles/779997/
<eyJhb> Ahh, so it is the current generation which has the problem
<eyJhb> And not the one I am building
<tokudan> yes
<eyJhb> Thanks ;)
Denommus has quit [Quit: leaving]
<gentauro> NixOS + Xen, does it give sense? I hear that most people on NixOS go with the Oracle VirtualBox ... But is it realistic to use Xen instead? :)
arianvp has joined #nixos
<hyper_ch2> gentauro: why not kvm/qemu?
rtjure has joined #nixos
<gentauro> hyper_ch2: what about the "old trick" with vmplayer? :D
<{^_^}> [nixpkgs] @peti pushed to master « esniper: update to latest git revision "Version_2_35_0-15-g91d2665" »: https://git.io/fjzEp
<gentauro> install that and just write manually the config files
<gentauro> the thing is that I just don't want to use anything from Oracle :)
<gentauro> (if I can avoid it)
<hyper_ch2> gentauro: no idea what you mean by that
<gentauro> hyper_ch2: fair enough
<gentauro> looks like there only `host` support for VirtualBox -> https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/virtualisation
<{^_^}> [nixpkgs] @peti pushed to release-19.03 « esniper: update to latest git revision "Version_2_35_0-15-g91d2665" »: https://git.io/fjzuT
warbo has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjzum
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62431 → gzdoom: 4.0.0 -> 4.1.2 → https://git.io/fjE86
<arianvp> hey i'm trying to use buildGoModule
<arianvp> which works with nix-build
<arianvp> but if I use nix-shell I get
<arianvp> go: rsc.io/quote@v1.5.2: mkdir /nix/store/8lnmg3zapkyhfg4vfp8lv8w1cw84738p-go-1.11.6/share/go/pkg/mod: read-only file system
<arianvp> when I type "go build"
<arianvp> any idea how to get a nix-shell working for go projects?
npmccallum has joined #nixos
ryantrinkle has joined #nixos
<manveru> arianvp: usually you only need `go` in `buildInputs`
<{^_^}> [nixpkgs] @lfont opened pull request #62825 → aseprite-unfree: 1.2.9 -> 1.2.11 → https://git.io/fjzuz
<arianvp> manveru: so make a separate shell.nix ?
<manveru> for development, yeah
<manveru> as you'll probably also want to modify the lockfile?
<manveru> otherwise, you can build in nix-shell using this:
<manveru> `mkdir out; out=$PWD/out eval "$buildPhase"`
<manveru> but i don't see the point :)
<DigitalKiwi> can someone direct me to information (existing project, blog, wiki, manual,...) about including something from a foo2nix (in this case node2nix but any will do) in another project?
<manveru> DigitalKiwi: i think the nixpkgs manual covers those mostly
<DigitalKiwi> i've only seen it cover how to make and use them standalone (i might just not have seen it tho)
<manveru> hmm, ok
<manveru> i thought it had more info, but looks like not
<manveru> and node2nix readme also doesn't really cover it
<DigitalKiwi> the vim example might be helpful hmm
<DigitalKiwi> I've seen a project that had a bunch of examples of it but I forget it :<
<manveru> the problem is that all of those $foo2nix work differently had have different usage :|
Matthieu_ has quit [Read error: Connection reset by peer]
<DigitalKiwi> I have a shell.nix I want to bring it into scope for
warbo has quit [Read error: No route to host]
peacememories has joined #nixos
<DigitalKiwi> for a hakyll project I want to run purifycss on
<manveru> yeah, you'll have to link the node_modules folder in that case
<DigitalKiwi> (and purifycss isn't in nixpkgs)
<{^_^}> [nixpkgs] @vbgl opened pull request #62826 → ocaml-ng.ocamlPackages_4_08.ocaml: 4.08.0+rc1 -> 4.08.0+rc2 → https://git.io/fjzuF
<DigitalKiwi> though it might be able to be...it's a library but it also has a binary
<manveru> or you only need the executable?
<DigitalKiwi> currently I have a file I do 'node purify.js
<DigitalKiwi> (i had to nix-env the purifycss, which i don't like)
alex`` has joined #nixos
<gchristensen> looks like we're close to having eliminating sha1 in nixpkgs
<{^_^}> [nix-steering-committee] @domenkozar pushed to master « Preliminary README with the workflow »: https://git.io/fjzzt
turion has joined #nixos
<manveru> DigitalKiwi: looks like it wants to fetch something during build time :(
Profpatsch has left #nixos ["WeeChat 0.4.3"]
<{^_^}> [nixpkgs] @joachifm merged pull request #62797 → dnscrypt-proxy2: 2.0.22 -> 2.0.25 → https://git.io/fjzn9
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fjzzB
zupo has joined #nixos
juhoh has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jabranham opened pull request #62827 → syncthing: 1.1.3 -> 1.1.4 → https://git.io/fjzz6
juhoh has joined #nixos
Matthieu_ has joined #nixos
<{^_^}> [rfcs] @domenkozar pushed to domenkozar-template-shepherd « template: add shepherd team and leader »: https://git.io/fjzz9
<{^_^}> [rfcs] @domenkozar opened pull request #47 → template: add shepherd team and leader → https://git.io/fjzzH
jbgi has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @WilliButz opened pull request #62828 → nixos/wireguard: add peer service to interface dependencies → https://git.io/fjzzx
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> DigitalKiwi: basically this part: https://github.com/purifycss/purifycss/blob/master/package.json#L29 maybe ask sander on the forum or when he shows up here
aleph- has joined #nixos
<{^_^}> [nixpkgs] @abbradar merged pull request #62806 → krita: 4.2.0 -> 4.2.1 → https://git.io/fjzcn
<{^_^}> [nixpkgs] @abbradar pushed commit from @dtzWill to master « krita: 4.2.0 -> 4.2.1 »: https://git.io/fjzgl
<manveru> gotta go, sorry
<DigitalKiwi> manveru: ok thank you
weedloser has joined #nixos
<{^_^}> [nixpkgs] @Veske opened pull request #62829 → terraform: 0.12.0 -> 0.12.1 → https://git.io/fjzg4
zupo has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
fendor_ has quit [Client Quit]
sigmundv has quit [Ping timeout: 258 seconds]
veske has joined #nixos
is_null has quit [Ping timeout: 272 seconds]
turion has quit [Ping timeout: 248 seconds]
<veske> Is it possible to somehow include a locally built Nix package inside of a mkShell's buildInputs when running nix-shell ?
Matthieu_ has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #62830 → aerc: init at 0.1.0 → https://git.io/fjz2J
mexisme_ has joined #nixos
<ebzzry> andi-: tokudan: It works now. I created an overlay that wraps the binary.
<aanderse> i want to break compatibility on the httpd service. currently virtualHosts is a list but i want to make it match nginx which has virtualhosts being an attribute set
<aanderse> anyone have any strong opinions on that?
arjen-jonathan has quit [Ping timeout: 248 seconds]
<aanderse> it is a pretty big thing to break, but migration would be easy and provides huge benefits
v88m has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 248 seconds]
v88m has joined #nixos
<NemesisD> i'm trying to persist my project's shell derivation from GCs. i ran `mkdir gcroots && nix-shell --indirect --add-root gcroots/dep` which boots into my shell, but shouldn't i see a symlink in `gcroots`? it is empty
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis_ has quit [Ping timeout: 248 seconds]
winem_ has quit [Ping timeout: 248 seconds]
drakonis_ has joined #nixos
Henson has joined #nixos
Liddy has joined #nixos
<Henson> clever: are you around?
ddellacosta has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pheoxy has joined #nixos
erasmas has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
drakonis_ has quit [Ping timeout: 272 seconds]
drakonis_ has joined #nixos
drakonis has joined #nixos
drakonis has quit [Client Quit]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62420 → gmsh: 4.2.3 -> 4.3.0 → https://git.io/fjEWj
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « gmsh: 4.2.3 -> 4.3.0 (#62420) »: https://git.io/fjzae
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62582 → tilt: 0.8.1 -> 0.8.8 → https://git.io/fjEye
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjzaJ
lsix has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to staging: https://git.io/fjzaU
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62793 → librime: 1.4.0 -> 1.5.0 → https://git.io/fjzno
wfranzini has quit [Remote host closed the connection]
endformationage has joined #nixos
ilmu has quit [Ping timeout: 244 seconds]
ubert has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #62372 → cfr: 0.143 -> 0.145 → https://git.io/fjEY9
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjzaq
sigmundv has quit [Ping timeout: 245 seconds]
<Henson> I'm trying to do a binary deployment to a remote NixOS machine that is not connected to the internet and add packages to the /etc/nixos/configuration.nix file in the environment.systemPackages and services.udev.packages lists. I can't specify the package name directly in nixpkgs, but have to refer to the nix store location for the file. I'm having the problem where specifying the store path....
veske has quit [Quit: This computer has gone to sleep]
<o1lo01ol1o> Is there a declarative way to specify the amount of swap space a machine should have?
<Henson> in services.udev.packages doesn't actually result in it being used in a nixos-rebuild call. Clever suggested yesterday using nix-build to build the system to an output and then copy that output over to the remote machine and use nix-env to set the system profile to that nix store output. The problem with this is that I need to know the contents of hardware-configuration.nix in order for that...
<ToxicFrog> o1lo01ol1o: you can declare swap files, which will be created with the specified size if necessary. I don't believe you can declare size for swap partitions, it just uses the device size.
<Henson> to work, as every machine could potentially have different filesystem UUIDs and network configuration options. Is there another way I could be doing this? It's frustrating that specifying the store path in services.udev.packages doesn't work. Perhaps I'm going about this the wrong way. Does anybody have any suggestions?
RRedcroft has quit [Ping timeout: 246 seconds]
<o1lo01ol1o> ToxicFrog: Great, thanks
<ToxicFrog> o1lo01ol1o: declaring swap partition size is a subproblem of declaring partitions more generally, which is not currently possible -- you're expected to partition by hand while installing the system.
<gchristensen> Henson: why must you use the path, instead of referring to the package via nixpkgs
<Henson> somebody suggested that if I specified the exact mkDerivation I'm using for the package, that might work, as specifying the path in the /nix/store isn't equivalent to specifying the name of the package in nixpkgs (my package isn't in nixpkgs). Is there a way to generate the equivalent of the mkDerivation call by specifying the .drv file that results from the mkDerivation call?
<gchristensen> you can import your custom package's .nix and refer to it as needed
<Henson> gchristensen: because it's a custom package that isn't in nixpkgs. I could do an overlay on nixpkgs and have it work that way, but then I'd have to copy over the overlay I'm using on my development machine, which I would prefer not to do. I'm hoping for this just to be a binary-only deployment.
<o1lo01ol1o> ToxicFrog: But for nixops, so long as the machine has a device partitioned I can just use that partition, then. Though I'm not sure the difference between using a dedicated partition and a file makes it worth it for a build slave
<Henson> gchristensen: that's a good suggestion
<gchristensen> Henson: can you copy the hardware config to deploy host? that is how nixops work
<gchristensen> then it is truly a binary only deployment
<Henson> gchristensen: oh is it? I guess that could be possible. I was hoping to avoid needing to do that.
<gchristensen> is there a specific reason to avoid it?
<Henson> gchristensen: the target machine isn't connected to the internet, and will only be connected to an Android tablet that is periodically connected to the Internet. We want the Android system to determine the nix paths currently installed, determine from our upgrade servers the paths needed for the latest software version, then copy those things to the remote machine next time it's connected to it..
<Henson> gchristensen: then have the remote machine install the latest system version
schjetne has joined #nixos
<gchristensen> neat
<Henson> gchristensen: I guess the only thing that's required in this case is that the configuration.nix and hardware-configuration.nix also needs to come over.
<gchristensen> right
<gchristensen> is the hardware different per device?
<Henson> gchristensen: and no modifications to the system can be made if one were to connect to it.
<gchristensen> also, I'd love to hear more about what you're doing (in a DM if needed) it sounds pretty cool
arjen-jonathan has joined #nixos
<Henson> gchristensen: it's just a couple of udev/rules.d files that need to be copied over.
Matthieu_ has joined #nixos
raid123 has joined #nixos
<Henson> gchristensen: it seems that nixos-rebuild somehow determines the set of store paths that need to be copied when rebuilding the system. Specifying a package using its store path does not get it included in the set of files that appear in /nix/store for the rebuild. If I could only get it to include those nix store paths then that would solve the problem.
<gchristensen> ah
<gchristensen> what about builtins.storePath /nix/store/....
<Henson> gchristensen: would that go in the configuration.nix file?
<gchristensen> wherever you're using /nix/store/... yeah
<Henson> gchristensen: also, what does DM mean?
<gchristensen> though if you're doing it in a list, do (builtins.storePath /nix/store/...)
<gchristensen> like a private message. I'm curious about your use case and more details about what you're doing, if you're able to share
ym555 has joined #nixos
Glider_IRC__ has joined #nixos
michaelpj_ has joined #nixos
<raid123> Hi. Trying to setup RAID with mdadm and not sure what to do regarding initramfs on nixos. Tutorial tells me to update it (to save the array so that ks). Any idea?
<raid123> so that it is available on early boot
ubert has quit [Remote host closed the connection]
<o1lo01ol1o> How can I give a normal user the permissions to access a secret in /run/keys/alice-secret? using deployment.keys.alice-secret.user = "alice" and deployment.keys.alice-secret.permissions = "0640"; gives correct permissions on the secrete but the user can't access the the path to the secret itself
<Henson> gchristensen: I'm a little unsure of how to use the builtins.storePath as you suggested. Say I've got services.udev.packages = [ "/nix/store/foo" ]; in my /etc/nixos/configuration.nix file. Where would the builtins.storePath be situated in configuration.nix?
<gchristensen> services.udev.packages = [ (builtin.storePath "/nix/store/foo") ];
<Henson> gchristensen: well, I can tell you more about what I'm doing, but not the specific project I'm working on. It's for a computer vision system that runs Linux. These devices are not connected to the internet, but have a front-end tablet that interfaces with them over WiFi. Since the tablet is periodically connected to the internet, we want it to convey software upgrade information to the device.
<gchristensen> nice
<{^_^}> [nixpkgs] @jluttine opened pull request #62831 → writeScript: fix docstring → https://git.io/fjzar
<gchristensen> are the devices' hardware and software configuration identical?
Glider_IRC_ has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
<Henson> gchristensen: mostly. The motherboard we were using are no longer available, so we're switching to newer hardware. The OS they run is Debian jessie (old stable) which is quite old now and doesn't support ethernet devices of the new hardware, so we need to switch to a new OS. I've been working on Nixifying the software on and off for the past year, and this seems like a good reason to try to...
<gchristensen> nice
<gchristensen> so if they really are the same, there is no need to have different hardware-configuration.nix's
<gchristensen> and then your update server send down a closure which is installed on the target and you're done
<gchristensen> no update-time evaluation / .nix stuff needed at all
<raid123> Never mind. Guessing fileSystems.<name?>.neededForBoot replaces the initramfs part
<Henson> gchristensen: finish it off. NixOS is very compelling for me because I can ensure an identical software execution environment on all of the machines, as well as having that environment be the same on the development machines. Plus, it would seem, as though you can upgrade from one NixOS version to another simply by changing channels and doing an update. No release-upgrade hell to go through...
gratto has quit [Read error: Connection reset by peer]
gratto has joined #nixos
Jetien_ has joined #nixos
<Henson> gchristensen: like with Debian or Ubuntu. I was also investigating ArchLinux for its rolling-release model, but I hate it. It requires an enormous amount of effort because none of the packages are integrated with each other. NixOS still requires a huge amount of effort (or just a huge learning curve and little documentation) but in exchange we get all of the nice things that the Nix package....
<Henson> gchristensen: management system brings with it.
<Henson> gchristensen: the only problem is our system are not connected to the internet and need a "sneaker-net" intermediary to do all software upgrades.
* Henson breathes
<gchristensen> cool :D
jonaswouters has quit [Quit: Connection closed for inactivity]
<Henson> gchristensen: yeah, I could just make all of the filesystems have the same UUID and use a single closure for everything. But say a system needs a slightly different network configuration (we have a few custom systems like that), then everything goes out of the window. It would be much easier if I could just include the udev files by specifying the /nix/store path, because then all of the...
pheoxy has quit [Read error: Connection reset by peer]
<Henson> gchristensen: devices would be able to run nixos-rebuild themselves, and only the configuration.nix file would need to be patched to include a custom-software.nix file that would add all of the extra bits our software requires.
ma27 has joined #nixos
<NemesisD> how do people persist their nix shell?
<{^_^}> [nixpkgs] @Ma27 merged pull request #62738 → weechatScripts.wee-slack: 2.2.0 -> 2.3.0 → https://git.io/fju5K
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fjzaX
<Henson> gchristensen: do you have any suggestions on how I could use builtins.storePath?
<gchristensen> services.udev.packages = [ (builtin.storePath "/nix/store/foo") ];
Jetien_ has quit [Ping timeout: 248 seconds]
raid123 has quit [Quit: Page closed]
freeman42x has joined #nixos
<Henson> gchristensen: your suggestion of builtins.storePath may have worked
<gchristensen> nice
zeta_0 has joined #nixos
sptz has joined #nixos
<{^_^}> [nixpkgs] @fpletz merged pull request #62452 → prometheus-wireguard-exporter: init at 2.0.1 → https://git.io/fjERy
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjzax
schjetne has quit [Ping timeout: 245 seconds]
peacememories has joined #nixos
Hazadaro11 has joined #nixos
ym555_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0e54f494840 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ym555 has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
init_6 has quit []
glenndavy has quit [Ping timeout: 248 seconds]
drakonis has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
stranger___ has joined #nixos
stranger___ has left #nixos [#nixos]
drakonis_ has quit [Ping timeout: 268 seconds]
toppler has quit [Ping timeout: 272 seconds]
schjetne has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<linarcx> Guys, i'm reading this guideline: https://gist.github.com/edolstra/efcadfd240c2d8906348. and i wana to use: `nix rebuild`, `nix upgrade` or `nix history`, but none of them aren't exists. Why? They don't impleneted yet?
<gchristensen> right
<gchristensen> that document is a proposal
<LnL> oh, another secret gist
schjetne has quit [Ping timeout: 248 seconds]
<gchristensen> secret? oo
<gchristensen> :o
toppler has joined #nixos
<gchristensen> it is 3 years old
Hazadaro11 has quit [Quit: Mutter: www.mutterirc.com]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<LnL> first time I've seen this one, they are not very discoverable
<gchristensen> they are not
<linarcx> gchristensen: So.. How we can see the progress of implementations?
ryantrinkle has quit [Ping timeout: 248 seconds]
ryantrinkle has joined #nixos
drakonis has quit [Ping timeout: 248 seconds]
Hazalo1122 has joined #nixos
<Henson> is there a way I can override options in configuration.nix from another file? I see the imports at the top bringing in the hardware-configuration.nix options, but say I want to include another file that overrides or appends onto the environment.systemPackages list. Is there a proper way to do that?
<tilpner> Henson: imports = [ ./your-other-file.nix ];
Hazalo1122 has quit [Remote host closed the connection]
<Henson> if I were to include my override file in the list of imports and specify a list for environment.systemPackages, would that get replaced by the environment.systemPackages definition in the configuration.nix file itself, or added onto it?
<tilpner> Henson: Then just set systemPackages in that other file, and it will be merged
<Henson> tilpner: ok, thank you
<lordcirth> tilpner, what if you wanted to remove something from systemPackages in the merge? How would you do that?
<tokudan> lordcirth, basically that's not possible
<symphorien> You can override it to null in an overlay
<{^_^}> [nixpkgs] @worldofpeace merged pull request #62761 → keychain: Add long description → https://git.io/fjuhe
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjzVg
<lordcirth> symphorien, so you'd clobber the whole thing to null, then start over?
<lordcirth> Not a -pkg
<symphorien> Well, we miss the context, but it's a solution
johnnyfive has quit [Quit: I quit now.]
Liddy has quit [Ping timeout: 248 seconds]
peacememories has joined #nixos
peacememories has quit [Client Quit]
<lordcirth> symphorien, I don't actually have a need at the moment, I was just curious.
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0563e6c907b (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
peacememories has joined #nixos
zeta_0 has quit [Quit: taking break]
Matthieu` has joined #nixos
ddellacosta has quit [Ping timeout: 248 seconds]
alex``` has joined #nixos
wfranzini has joined #nixos
Matthieu_ has quit [Ping timeout: 272 seconds]
alex`` has quit [Ping timeout: 248 seconds]
<sphalerite> lordcirth: there isn't a clean way to remove packages from systemPackages. You can use mkForce in your module, but that will remove _everything_ other than what's specified and will probably end in tears :p
gagbo has joined #nixos
Jackneill has quit [Remote host closed the connection]
linarcx has quit [Quit: WeeChat 2.4]
npmccallum has quit [Quit: npmccallum]
linarcx has joined #nixos
schjetne has joined #nixos
is_null has joined #nixos
endformationage has quit [Ping timeout: 248 seconds]
ris has joined #nixos
shosti has joined #nixos
amf has joined #nixos
avn_ has quit [Ping timeout: 258 seconds]
<amf> 1) is there a small example of overriding an upstream package with customizations? such as bumping a version 2) can 2 versions of a package be installed at the same time?
avn_ has joined #nixos
<srhb> amf: overriding a version is often as simple as oldPackage.overrideAttrs (oa: { name = "newname"; src = newsource; }) -- the name override is not technically needed but it can be a bit confusing
<srhb> amf: As for multiple versions, it depends what you mean by "installed" -- for instance, you'll have a conflict if you try to put the same, say, bin/foo in your system or user profile.
<srhb> amf: But they can happily exist in the nix store at the same time, in different profiles, or be made available in your nix-shells. What's desirable is probably use-case specific.
Lids48 has joined #nixos
Lids48 is now known as Liddy
RRedcroft has joined #nixos
Liddy has quit [Remote host closed the connection]
gagbo has quit [Ping timeout: 245 seconds]
Shoubit has quit [Ping timeout: 248 seconds]
<amf> srhb: awesome thanks!
wfranzini has quit [Remote host closed the connection]
<amf> my use case is kinda lame, want to have multiple versions of gzdoom installed
wfranzini has joined #nixos
<amf> the package file is simple enough i can probably learn from it
drakonis has joined #nixos
<srhb> amf: I'd probably make a small package that contains named symlinks to the versions you care about.
<srhb> amf: That is, $out/bin/gzdoom-1.0, $out/bin/gzdoom-1.1, etc. each pointing into the respective gzdoom version.
<srhb> amf: Then you can just install that metapackage and the symlinks will ensure the dependencies are all in place.
<srhb> amf: (Actually, I'd usually not bother installing to a profile, but... For the sake of argument)
<pie__> elvishjerricco, " And encryption can prevent data from being stolen or tampered with by attackers with physical access (assuming the system is powered off, or you use multi-key encryption like APFS and the right keys are currently discarded)." from https://elvishjerricco.github.io/2018/12/06/encrypted-boot-on-zfs-with-nixos.html
<pie__> elvishjerricco, apfs is... apple file system...?
<gchristensen> yes
<elvishjerricco> pie__: Yea. APFS is really impressive for such a young fs
<stepcut> I am trying to put this in my `shell.nix`, haskell.packages.ghc861.developPackage { root = ./.; modifier = (drv: haskell.lib.enableCabalFlag drv "local-common"); };, but when I add the modifier it fails with,
<stepcut> error: attribute 'override' missing, at nixpkgs-channels/pkgs/development/haskell-modules/lib.nix:37:28
<pie__> elvishjerricco, never heard of it :v hence my confusion
<elvishjerricco> it can even do per-extent encryption keys to allow ref-copying a file while it's encryption key isn't even loaded
<pie__> extent?
schjetne has quit [Ping timeout: 248 seconds]
<pie__> is that kind of like...individual encrypted files? or zfs datasets
<clever> pie__: ext4, files are a list of extents
<clever> i'm guessing different sub-sections of a file can be encrypted with different keys?
<pie__> ok so you can encrypt a subset of a file
<pie__> *subsection
<pie__> huh thats weird
<clever> and you can do copy-on-write clones of a file, that you cant actually decrypt, i'm guessing
<{^_^}> [nixpkgs] @srhb merged pull request #62675 → waybar: 0.6.6 -> 0.6.7 → https://git.io/fju0W
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fjzwc
RRedcroft has quit [Quit: WeeChat 2.4]
alex``` has quit [Ping timeout: 272 seconds]
alex``` has joined #nixos
schjetne has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 5.2-rc2 -> 5.2-rc3 »: https://git.io/fjzw8
<tokudan> where do I set kernel module options in nixos?
<hyper_ch> boot.kernelModules = [ "kvm-intel" ];
<hyper_ch> # boot.kernelParams = [ "zfs.zfs_arc_max=6442450944" "boot.debug1devices" ];
schjetne has quit [Ping timeout: 246 seconds]
<hyper_ch> boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
<hyper_ch> boot.kernel.sysctl = { "vm.swappiness" = 20; "vm.dirty_ratio" = 10; "vm.dirty_background_ratio" = 1; };
gagbo has joined #nixos
<hyper_ch> whichever you need :)
<tokudan> ah, so they're basically just added to the boot command line?
<exarkun> Using buildPythonPackage and having some trouble with package data. `setup.py sdist` builds a .tar.gz that includes the package data but `nix build` does not include the package data.
<tokudan> i thought I'd have to add them somewhere to /etc and was looking for the correct way, but if that works...
ThatDocsLady_ has quit [Quit: Leaving]
<hyper_ch> and with recently oyu mean years ago=
<tokudan> hyper_ch, haven't played with module parameters for 15 years... last one was trying to connect a commodore 1541 to my parallel port (?) and configuring a kernel module for that one...
<{^_^}> #56199 (by eadwu, 15 weeks ago, open): mesa: build with meson
<{^_^}> #56261 (by eadwu, 14 weeks ago, open): mesa: extract stubs
<colemickens> Can someone at least dismiss the outdated review on my libdrm PR? I worry people will ignore it because it says "changes requested" despite doing the changes.
gagbo has quit [Ping timeout: 272 seconds]
<hyper_ch> colemickens: did you ping the maintainer(s) of the affected packages?
dansho has joined #nixos
<colemickens> it appears there is a review requested from vcunat on both mesa PRs
<hyper_ch> vcunat used to be an regular here
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/22a765d0da7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
amf has quit [Quit: WeeChat 2.4]
<das_j> is there a way to pass $out in configureFlags?
Matthieu` has quit [Read error: Connection reset by peer]
glasserc has joined #nixos
mexisme_ has joined #nixos
ardumont has joined #nixos
civodul has joined #nixos
<immae> das_j: did you try to just pass '$out' as is? if I remember correctly it will expanded like the rest
<immae> (without the quotes)
<LnL> not sure if that supports some kind of interpolation like make
<das_j> immae: [ "--prefix=$out" ] didn't work
<LnL> but preConfigure = '' configureFlagsArray+=("foo") ''; should work
<tilpner> Could try [ "--prefix=${builtins.placeholder "out"}" ]
<pie__> so i cant actually tell is LUKS uses AEAD by default right ow
<pie__> now
<immae> oh nice tilpner
<o1lo01ol1o> is it possible to replace the local "./reflex-platform" in the following function definition to instead import (nixpkgs.fetchFromGithub blh) {} ?
<o1lo01ol1o> { reflex-platform ? import ./reflex-platform {} }
<LnL> oh right, nixpkgs is >=2.0 now
<o1lo01ol1o> I can't figure out a syntax that works
wfranzini has quit [Remote host closed the connection]
Matthieu` has joined #nixos
<hyper_ch> colemickens: if vcunat is on the list, just jump the PR IMHO
wfranzini has joined #nixos
<das_j> LnL: Thanks, that works
<das_j> LnL++
<{^_^}> LnL's karma got increased to 11
<colemickens> What does "jump" mean there?
<LnL> using placeholders is ok now, slightly nicer
<o1lo01ol1o> I want something like { reflex-platform ? import ((import <nixpkgs> {}).fetchFromGithub {repoinfo};) {} } but this doesn't seem import the default nix in the way I want
<tokudan> how do i convert an integer to a string? something like "limit=${2*1024}"
<sphalerite> > toString 2*1024
<{^_^}> value is a string while an integer was expected, at (string):254:1
<sphalerite> > toString (2*1024)
<{^_^}> "2048"
<sphalerite> tokudan: ^
<tokudan> thanks, couldn't find it in the nix pills or google :)
<tilpner> o1lo01ol1o: That ; is out of place
jonaswouters has joined #nixos
<{^_^}> [nixpkgs] @lheckemann opened pull request #62835 → Ipv6 privacy extensions → https://git.io/fjzwQ
<o1lo01ol1o> tilpner: ok, if I factor out the fetchFromGithub into a let [...] in { reflex-platform ? import (reflex + /default.nix) {} }, I get expression does not evaluate to a derivation (or a set or list of those)
<tilpner> o1lo01ol1o: Can you just paste the entire file?
<tilpner> o1lo01ol1o: You shouldn't need the "+ /default.nix"
aswanson has quit [Quit: WeeChat 2.4]
<o1lo01ol1o> except I'm trying to remove the reflex-platform submodule
<o1lo01ol1o> and depend on nix's fetching to get the source
<tilpner> Yes, and you made a mistake somewhere
<tilpner> So show the file instead of making us guess
<tilpner> :/
<tilpner> Just the header is fine too
botayhard has quit [Remote host closed the connection]
<o1lo01ol1o> here's a dummy. the content past 17 has the same structure but different sources
<o1lo01ol1o> sorry, updated
gagbo has joined #nixos
<tilpner> o1lo01ol1o: The hash is wrong
aswanson has joined #nixos
<tilpner> o1lo01ol1o: Use 196m0r2hjafqp8m57cl5a17v1i5f8ky76b75gbvvrdqx3fh1rcq0
<o1lo01ol1o> ugh, why didn't it say so?
<o1lo01ol1o> every time i've used this before it would prompt with the expected hash
<srhb> o1lo01ol1o: The hash was presumably already in your store.
<tilpner> A path with that output hash was already present in your store
<o1lo01ol1o> lol
<o1lo01ol1o> oh well I guess.
<srhb> o1lo01ol1o: If nix were to go check when that's the case, you would always have to download every source before even being able to get the cached version, if available, which is quiteinfeasible.
<tilpner> And since you promised this new source would hash to the same as that existing path, Nix did not bother refetching something, because it already had the result available
<tobiasBora> Hello,
<aristid> anybody else got issues with pulseaudio recently?
<o1lo01ol1o> well, lesson learned then
<o1lo01ol1o> thanks for the help
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjzwx
<tobiasBora> Is it possible to "package" a package (and the closure) into a single executable? It would be super useful to compile stuff on a machine, and then copy it to other machines. Especially when it comes to cross compilation: ideally I'd like to use nix to compile a program for my android phone, so that I can just copy the file on android.
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-19.03: https://git.io/fjzwp
<tobiasBora> (and my android does not have nix installed)
linarcx has quit [Ping timeout: 248 seconds]
<sphalerite> ,nix-bundle
<{^_^}> Bundle Nix derivations to run anywhere! https://github.com/matthewbauer/nix-bundle
<sphalerite> tobiasBora: ^
<sphalerite> might well not work for android though
<sphalerite> depending on kernel features and stuff
<das_j> Does anyone here have any experience with packaging objective c?
weedloser has quit [Ping timeout: 246 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<das_j> It seems to be a little c*nt
goibhniu1 has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @veprbl opened pull request #62836 → gpgme: disable tests on darwin → https://git.io/fjzrk
tokudan has quit [Quit: ZNC 1.7.2 - https://znc.in]
<o1lo01ol1o> ok, new question. I'm looking a commit hash in a private git that I'm trying to fetch with builtins.fetchGit. However, it says that the hash is not a tree object. What gives?
<sphalerite> o1lo01ol1o: how are you getting the commit hash?
<o1lo01ol1o> from gitlab; or, git log -1 --format="%H" in a submodule
* tilpner sets repos to public just to not have to worry about fetching them with Nix
tokudan has joined #nixos
<sphalerite> eeh, I'm not sure I can help you without access to the repo
<manveru> o1lo01ol1o: i think you have to specify both the ref and rev
<Henson> I'm trying to use an old version of ghc Haskell compiler in a derivation for NixOS 19.03. It's not in the 19.03 channel, nor is it in the nixpkgs-unstable channel. But if I download an older version of nixpkgs-unstable then I can get it. Should I add this as a separate nix-channel and use that in my derivation to access the old compiler?
<{^_^}> nix#2431 (by sgraf812, 37 weeks ago, open): fetchGit fails with a not very helpful error message when fetching a revision not in the remote's HEAD
<o1lo01ol1o> manveru: thanks, I'll try that
<Henson> the reason for wanting to do this is I have Haskell software written with a particular version of stack-lts which requires a certain old Haskell compiler.
<manveru> Henson: you can usually just use fetchTarball
<o1lo01ol1o> ok, how do I get the ref?
<{^_^}> [nixpkgs] @dywedir merged pull request #62251 → gpxsee: 7.1 -> 7.8 → https://git.io/fj0Vh
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjzrq
<Henson> hmm, let me give that a try
<{^_^}> [nixpkgs] @yurrriq opened pull request #62837 → helmfile: fix modSha256 → https://git.io/fjzrY
<manveru> o1lo01ol1o: maybe https://aboullaite.me/deep-dive-into-git-git-refs/ will help there
<o1lo01ol1o> manveru: I guess the correct answer by providing the name of the branch on the remote; but that looks like helpful information, thanks
<manveru> exactly :)
<manveru> it just gets complicated if it's a rev without branch...
<Henson> manveru: I'm trying to use this channel "https://releases.nixos.org/nixpkgs/nixpkgs-18.09pre147700.03e47c388ac". That URL works fine with nix-channel, but I don't know how to find the tar file for that to use it with your example.
<manveru> you can use the full hash, but as long is't unique, github will resolve it
<Henson> manveru: awesome! Thank you!
weedloser has joined #nixos
<Henson> manveru: I get a "store path mismatch" error
<manveru> what hash did you use?
<Henson> for the sha256? That of the tar.gz file
<manveru> so that's 15h1cjpi153a35shiw9n3h24r5rrjf0w9acdnrlszhf3vjs0wcmc ?
<Henson> um...
<Henson> for this URL https://github.com/nixos/nixpkgs-channels/archive/03e47c388aca8202ee72d2d546067cb5250bfe4b.tar.gz I get 47353b8b593242d534c4ad44db5a0b0544c45858e87cc62c6efc56ca323695a6
alp has quit [Ping timeout: 272 seconds]
<manveru> btw, the benefit of not using a channel, is that it'll be reproducible by other people that don't have your channel config, so it's usually worth the effort :)
<{^_^}> [nixpkgs] @fpletz opened pull request #62838 → cryptsetup: enable kernel crypto api support again → https://git.io/fjzrC
<tobiasBora> sphalerite: great thank you very much! I'm not sure at all my android as CAP_SYS_USER_NS (that's one of the reason I don't have installed nixos on it yet)... Can you see other methods?
shosti has quit [Remote host closed the connection]
<sphalerite> tobiasBora: you could run nix in one of the various apps that let you run some linux distro or something
weedloser has quit [Ping timeout: 272 seconds]
<manveru> or rather the nix-on-droid stuff from the same guy
<eyJhb> Does nixos have a dependency tracker? E.g. seeing what relies on what?
<srhb> eyjhb: nix-store -qR or --tree or things .
<srhb> eyjhb: nix why-depends is also nice.
<manveru> "This script installs Nix package manager on Android. It does not require root, user namespaces support or disabling SELinux, but it relies on proot and numerous other hacks instead"
<manveru> sounds delicious :D
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<Henson> manveru: I think your solution is working. Thank you very much. How did you learn how to do that? So much of how to do things Nix is undocumented and not searchable.
<tobiasBora> sphalerite: where they are usually just chroot so the kernel does not change. Or maybe I can disable requirements to have usernamespace on nix?
<manveru> Henson: osmosis
<sphalerite> tobiasBora: you can disable the sanbox, yeah
* Henson is osmosing
<manveru> hehe
<gchristensen> ehh do we need Go's setuphook?
<sphalerite> tobiasBora: if you enable remote builds and disable local builds, disabling sandboxing won't even do any harm :)
<manveru> that's why i'm still on IRC, it never ceases to teach me new stuff
<manveru> gchristensen: for old-style packages, yeah
<eyJhb> srhb Is it possible to just run e.g. nix-store --tree go, to see why go needs to be build for a rebuild?
<gchristensen> ah
<gchristensen> manveru: I wonder if we can make go's compiler's path no longer be in GOPATH
<manveru> don't think it's needed for buildGoModule anymore
<tobiasBora> manveru: indeed I should give it a try, once I free some space on my device ^^
<gchristensen> seeing as: warning: GOPATH set to GOROOT (/nix/store/zmd03lv31gg4n92bwznkhsz9fy13xprs-go-1.12.1/share/go) has no effect
<manveru> yeah, it's not harmful though
<gchristensen> it is actually
pie__ has quit [Remote host closed the connection]
<gchristensen> since it is set, Go no longer defaults to $HOME/go
<manveru> ah, for nix-shell?
<gchristensen> yea
pie__ has joined #nixos
cmacrae` has joined #nixos
<manveru> sorry, my brain isn't fast anymore today
toppler has quit [Ping timeout: 248 seconds]
<manveru> true, it's annoying
<gchristensen> no worries :) I don't know what I'm talking about. just replaying what mmlb1 and I have been talking about elsewhere
<tobiasBora> sphalerite: ok, thanks!
<manveru> i haven't used old style in a long time, so i forgot :D
mmlb1 is now known as mmlb
<manveru> for usage with go modules it's harmless
<mmlb> no also harmful
<manveru> hmm
<manveru> because of `go get`?
<mmlb> with mkShell
<mmlb> yeah effectively
<{^_^}> [nix] @edolstra pushed 2 commits to eval-cache: https://git.io/fjzr4
<manveru> ok, just checked my old repos, i unset GOPATH in my shellHook when using mkShell
<mmlb> yup I do the same in .envrc
<srhb> eyjhb: As in a rebuild of your system?
<tobiasBora> manveru: I used to have strange bugs (the issue is still open) with proot, now I'm super hesitant when I see proot stuff ^^
cmacrae has quit [Ping timeout: 272 seconds]
<mmlb> I built go_1_11 with the hook deleted and it built fine, haven't tried using the new compiler.
<tobiasBora> (but it can be super practical)
<tobiasBora> Also, I saw that the doc is supposed to provide an ebook, but I can't find it (and nix-build '<nixpkgs/doc>'
<{^_^}> [nix] @edolstra opened pull request #2930 → Eval cache → https://git.io/fjzrR
<tobiasBora> requires more space my computer actually have... yes I need to sort it out at some points)
<srhb> eyjhb: The short answer is that you'll want to query the reqs for your system derivation itself, then dig into that possibly with why-depends.
<tobiasBora> can I simply download an epub version of the manual online? I couldn't find it on the manual page
<srhb> eyjhb: But it's usually simpler with runtime deps to get a clear view than build time. That said, it's completely doable, just often more obscure (eg. in the case where everything is pulled in as a systemPackage)
<manveru> mmlb: well, i think the use-case was that when you use nix-shell on a buildGoPackage and not mkShell, it works
toppler has joined #nixos
<manveru> but i'm not sure how to accommodate both
<srhb> eyjhb: You end up with answers to "why does my system depend on foo" like "because your system depends on foo" and then you're better off exploring the expression than the drv.
<mmlb> yeah I haven't checked if its actually needed by that though
<tobiasBora> "Sorry, it would not work on 32-bit ARM devices."
<tilpner> tobiasBora: Try https://tx0.co/nixos-manual.epub
<mmlb> lets see
<manveru> mmlb: just my theory, and even that would be obsolete with buildGoModule, right?
<tilpner> tobiasBora: No idea how to view that file though, so it might not be what you want
<mmlb> manveru: I would think so
<tilpner> tobiasBora: Oh, nevermind, it looks wrong
<manveru> so i'd favor deprecating it with go 1.13...
<tilpner> (Nevermind the nevermind, that was vim being smart)
<o1lo01ol1o> how can I create a hydra project that will only watch a single branch of a remote git?
<gchristensen> after the git URL add a space, then the branch name
<o1lo01ol1o> ill; thanks
<eyJhb> srhb but having a fairly minimal build right now, I just really have no clue, what expressions to look at. Because I have like... basic i3, chromium, urxvt, weechat, networkmanager and that's about it. I just see nowhere, that it should depend on Go, Rust, etc. But yeah, will prop be some other day
rfold has joined #nixos
<clever> o1lo01ol1o: if you give this some json descripbing the submodules, it can fetch the private repo
alp has joined #nixos
<o1lo01ol1o> clever: oh, cool. I just moved all the submodules to builtins.fetchGit though.
<pie__> clever, cool :V
<__monty__> ,locate b2sum
<{^_^}> Found in packages: b2sum, coreutils, coreutils-full
<mmlb> manveru: actually I'm not sure how to nix-shell with a buildGoPackage 🤔
<aristid> i can't be the only one with pulseaudio issues
<aristid> it appears that the current build is objectively borked
drakonis has quit [Ping timeout: 248 seconds]
<eyJhb> Did the NixOS VPS providers disappear?
Matthieu` has quit [Ping timeout: 272 seconds]
<eyJhb> tilpner: thanks! Couldn't find it at all.. Only IRC chat logs
wltprgm has joined #nixos
<hyper_ch> eyjhb: also with clever's kexec you can install nixos basically everywhere
<eyJhb> hyper_ch where? How?
<hyper_ch> I have scripts for kimsufi and online.net to deploy nixos with kexec
arjen-jonathan has quit [Ping timeout: 252 seconds]
<eyJhb> Ahh neat! - If I switch away from BuyVM it might be quite usefull
<pie__> for some value of "need"
<pie__> angerman, alternatively can we just have __impure already? :(
<hyper_ch> eyjhb: test it a few times in a vm
<clever> pie__: that sha1 collision wont give you what you want, it can only give a binary output
<clever> pie__: and once its built once,hydra will cache the result, and never build it again
<hyper_ch> eyjhb: and if you can't get it to work, clever is in here quite a lot ;)
<eyJhb> hyper_ch always good throwing the ball to the next :D Will look at it after... *sigh* DisplayLink...
HangoverGenius has joined #nixos
<hyper_ch> good luck with displaylink
<eyJhb> Rituals that might help the process are greatly appreciated. I _only_ needed 13 steps. day 2, and I _only_ need about 7
fendor has quit [Quit: Leaving]
<rfold> Where can I learn about the labels on Nixpkgs GitHub Issues?
<pie__> gchristensen, systemctl start display-manager.service fails in virtualbox with the livecd?
<Henson> thanks for your help, everybody, have a good weekend!
tsrt^ has quit [Ping timeout: 272 seconds]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #nixos
alex``` has quit [Ping timeout: 246 seconds]
alex``` has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
zeta_0 has joined #nixos
ym555_ has quit [Ping timeout: 248 seconds]
stepcut has quit [Remote host closed the connection]
inquisitiv3 has joined #nixos
stepcut has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
inquisitiv3_ has quit [Ping timeout: 268 seconds]
stepcut has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
Ariakenom has quit [Quit: Leaving]
Matthieu` has joined #nixos
emptyflask has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #62836 → gpgme: disable tests on darwin → https://git.io/fjzrk
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjzof
not_a_robot has joined #nixos
<not_a_robot> is there any way to find out what derivation a binary is from?
ryantrinkle has quit [Ping timeout: 248 seconds]
<tilpner> Yes, see nix-locate and nix-store --query --deriver
wltprgm has left #nixos [#nixos]
knupfer has joined #nixos
knupfer has quit [Read error: Connection timed out]
<azazel> not_a_robot: nix show-derivation storepath
ks0ne has joined #nixos
<azazel> we fancy near similar, near duplicated but different command leading to near similar, near duplicated but different results :-D
Henson has joined #nixos
justanotheruser has quit [Ping timeout: 252 seconds]
justanotheruser has joined #nixos
drakonis has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 258 seconds]
<manveru> mmlb: like all the other packages?
<mmlb> manveru: I guess? The way I use shell.nix is for go, dep, and other system packages and then my deps all vendored
<manveru> yeah
<manveru> that's mostly for debugging buildGoPackage, but i think that could have its own shellHook?
<manveru> i never used it either
xavierm02 has joined #nixos
<not_a_robot> azazel: thanks, that worked. For the name returned I got system-path (for nixos-rebuild) and i'm trying to get it's full path in my configuration.nix via ${pkgs.system-path} but that isn't quite working. Is there another way to grab that full path without hard coding it?
<mmlb> how can I simulate a debugging of buildGoPackage? I'm not convince the current shellHook is ever necessary right? buildGoPackage _shouldn't_ mean a different go compiler right? So the compilers path shouldn't need to be saved anywhere.
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<mmlb> manveru: ^
zeta_0 has joined #nixos
<azazel> not_a_robot: sorry, could you just explain what you are you trying to do?
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @risicle opened pull request #62840 → pythonPackages.bjoern: 2.2.3 -> 3.0.1 → https://git.io/fjzou
<not_a_robot> azazel: sure, I'm trying to add nixos-rebuild to the security.sudo.extraRules so I don't have to use a password with it
<{^_^}> [nixpkgs] @risicle closed pull request #62055 → pythonPackages.bjoern: fix test result checking → https://git.io/fjBxO
<clever> not_a_robot: you might as well just allow everything with sudo, because that allows an attacker to just change sudo.extraRules
<andi-> isn't that bsically like allowing passwordless roo?
<andi-> *root
<not_a_robot> clever: what's the recommended way to handle updates remotely via ssh besides allow root login?
<clever> not_a_robot: sudo -i
<clever> not_a_robot: or put an ssh keypair on root
<not_a_robot> clever: Ideally I wouldn't want to enter a password, or have root access allowed. But I noticed nixops only allows it via root login. Is that the recommended way?
<{^_^}> [nixpkgs] @PyroLagus opened pull request #62841 → Change handle from c0dehero to pyrolagus → https://git.io/fjzoz
<clever> if somebody can nixos-rebuild or nixops deploy, they basically have root
<clever> there isnt much point in trying to stop them from having "root"
<{^_^}> [nixpkgs] @marsam closed pull request #61887 → python37Packages.bjoern: 2.2.3 -> 3.0.0 → https://git.io/fj47e
<zeta_0> hello guys i installed xmonad in home.nix and i am getting the error: `could not find module XMonad`, how do i fix this?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<clever> zeta_0: ive only heard of it working via services.xserver.windowmanager.xmonad.enable, which deals with wrapping it so it can find XMonad
<PyroLagus> lol
<azazel> he is gone
zeta_0 has joined #nixos
<clever> 5 seconds late
<ashkitten> augh, building blender with cuda support takes so much ram
<clever> zeta_0: ive only heard of it working via services.xserver.windowmanager.xmonad.enable, which deals with wrapping it so it can find XMonad
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6c3826d1c93 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<PyroLagus> oh. hai ashkitten o/
<ashkitten> hi
<ashkitten> seems someone missed me while i was without irc for a month
<zeta_0> clever: well it installed in home.nix and i am using it right now, i thought everything was working correctly but when i finally got all-hies working with haskell it is showing this error in xmonad.hs?
<PyroLagus> heh
<PyroLagus> didn't know you were here as well
<clever> zeta_0: ghc based libraries cant be found when installed, you must be using a variant of ghcWithPackages that includes the library in question
<ashkitten> lol
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjzoa
<{^_^}> [nixpkgs] @worldofpeace merged pull request #62837 → helmfile: fix modSha256 → https://git.io/fjzrY
winem_ has joined #nixos
<colemickens> embarrassing question - is gnome usable in nixos without using the actual xorg.displaymanager.gnome.enable (or whatever it is) option?
schjetne has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
tokudan has quit [Quit: ZNC 1.7.2 - https://znc.in]
<zeta_0> clever: well, here is all of my haskell related stuff in home.nix, what am i missing? https://hastebin.com/azenikifat.bash
<pie__> colemickens, i dont know why thats an embarrassing question, sounds like it could easily be nontrivial xD have you tried to look at the implementation maybe?
<clever> zeta_0: looks like that is going to fix things for the `xmonad --reload` thing, but it wont make xmonad available to the editor
ym555_ has joined #nixos
tokudan has joined #nixos
<zeta_0> then why is haskell-ide-engine telling me: `could not find module XMonad` in xmonad.hs?
schjetne has quit [Ping timeout: 248 seconds]
<clever> zeta_0: its not in scope for hie, only xmonad itself
<{^_^}> [nixpkgs] @lopsided98 opened pull request #62842 → lkl: fix cross → https://git.io/fjzo6
MmeQuignon has joined #nixos
<zeta_0> clever: oh, so is there an easy way to fix this so the XMonad module gets loaded?
<PyroLagus> one option would be to use nix-shell
JadoJodo has quit []
winem_ has quit [Ping timeout: 248 seconds]
<zeta_0> clever: i think you were the one helping me setup xmonad-brightess a while back, i think this explains why it would not work?
Matthieu` has quit [Ping timeout: 248 seconds]
JadoJodo has joined #nixos
erasmas has quit [Quit: leaving]
<zeta_0> i asked for help in #xmonad but no one responded
<clever> zeta_0: you may want to add xmonad to the ghcWithPackages near the top of the file
mighty_vee has quit [Ping timeout: 248 seconds]
<zeta_0> clever: ok i'll try `xmonad --reload` first and if that does not work i'll try adding xmonad to the `ghcWithHoogle` section
__monty__ has quit [Quit: leaving]
<clever> zeta_0: only xmonad will be able to see it, during --reload, but it wont make it visible to other things
jtojnar has joined #nixos
<zeta_0> clever: xmonad --reload does not work? https://hastebin.com/uteqiqacuh.coffeescript
<clever> zeta_0: ah, it was --recompile
<clever> zeta_0: yep, it works
sir_guy_carleton has joined #nixos
<{^_^}> [nixpkgs] @samueldr merged pull request #62800 → ubootRock64, ubootRockPro64: update → https://git.io/fjznp
<{^_^}> [nixpkgs] @samueldr pushed 3 commits to master: https://git.io/fjzoy
<zeta_0> clever: the error is still being thrown?
<clever> zeta_0: there wasnt an error in that last pastebin
<clever> and that wont make xmonad visible to other things
stepcut has joined #nixos
<{^_^}> [nix] @NinjaTrappeur opened pull request #2931 → Daemon: warn when an untrusted user cannot override a setting → https://git.io/fjzoS
<zeta_0> clever: so it's normal that hie is not detecting the XMonad module?
<clever> yes
<ashkitten> i don't get why cuda uses so much ram to build
<ashkitten> ;-;
<zeta_0> clever: ok, well thanks for clearing that up
fusion809 has joined #nixos
zeta_0 has quit [Quit: break]
zeta_0 has joined #nixos
stepcut has quit [Remote host closed the connection]
ryantrinkle has joined #nixos
stepcut has joined #nixos
<{^_^}> [nixpkgs] @risicle opened pull request #62843 → clickhouse: enable for darwin → https://git.io/fjzo7
orivej has joined #nixos
JadoJodo has quit [Quit: The Lounge - https://thelounge.chat]
JadoJodo has joined #nixos
stepcut has quit [Ping timeout: 252 seconds]
o1lo01ol1o has joined #nixos
iyzsong has joined #nixos
ryantrinkle has quit [Ping timeout: 248 seconds]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
JadoJodo has quit [Quit: The Lounge - https://thelounge.chat]
JadoJodo has joined #nixos
stepcut has joined #nixos
inquisitiv3 has quit [Quit: Leaving]
qubasa has joined #nixos
m0rphism has quit [Ping timeout: 248 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
emptyflask has quit [Ping timeout: 272 seconds]
jtojnar has quit [Remote host closed the connection]
stepcut has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
qubasa has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
qubasa has joined #nixos
rfold has quit [Quit: WeeChat 2.4]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b0053ae92e5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
schjetne has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
xavierm02 has left #nixos [#nixos]
jluttine has quit [Ping timeout: 252 seconds]
schjetne has quit [Ping timeout: 272 seconds]
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jluttine has joined #nixos
toppler has quit [Ping timeout: 248 seconds]
mbrgm_ has joined #nixos
<angerman> pie__: I’m not sure that throwing a lot of time at it is actually that useful. There should be a proper solution. Not a hack :-(
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm_ is now known as mbrgm
<pie__> which is why i said i want __imputer ;~;
<pie__> impure
gxt has quit [Ping timeout: 256 seconds]
toppler has joined #nixos
gxt has joined #nixos