gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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
<{^_^}> [nixpkgs] @pbogdan opened pull request #51766 → [WIP] mpd: 0.20.23 -> 0.21.3 → https://git.io/fpSjV
Rusty1 has joined #nixos
<ldlework> What's the proper way to install home-manager from source?
slabity has joined #nixos
pkx3 has joined #nixos
pkx3__ has quit [Read error: Connection reset by peer]
ramirez7 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @pbogdan opened pull request #51767 → pruneLibtoolFiles: more permissive regex for detecting libtool files → https://git.io/fp9em
aleph- has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #51755 → wavebox: 4.4.0 -> 4.5.3 → https://git.io/fpSpx
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fp9e0
Ariakenom has quit [Quit: Leaving]
ninjin has quit [Remote host closed the connection]
<Ralith> ldlework: home-manager is a system of nix scripts; I don't think it exists in non-source form, even when installed
cyounkins has joined #nixos
<ldlework> Ralith: no i mean, currently I am using pkgs.home-manager to get it
<ldlework> i want the very most recent version
<ldlework> but home-manager is packaged very non-standard way
<ldlework> I can't just make a derivation with it's repo being the src fetched from github
<ldlework> in other words, i can't figure out how to install home-manager from source
<Ralith> set `programs.home-manager.path = https://github.com/rycee/home-manager/archive/master.tar.gz` in your home.nix and switch
<Ralith> alternatively /path/to/your/git/checkout
<ldlework> that option only exists if you're using home-manager's nixos module right?
<Ralith> no, that is a home-manager option
<ldlework> right, so that wont work for bootstrapping
<ldlework> chicken egg
<ldlework> you need home-manager already installed in order to use that setting
acarrico has joined #nixos
<Ralith> the bootstrapping instructions are in the README...
<ldlework> i just want to fetchFromGitHub and install the binary
<ldlework> it only includes using nix-channel
<ldlework> i read the README..
<Ralith> what binary?
<ldlework> ...
<ldlework> home-manager
<ldlework> "executable", sorry
<Ralith> if you have something against channels, just reference the path directly
<ldlework> Ralith: I did
<ldlework> hmsrc = pkgs.fetchFromGitHub { ... }
<ldlework> hm = import "${hmsrc.out}/home-manager/default.nix" { inherit pkgs; };
<ldlework> but then when I try to run home-manager
<Ralith> I don't know what you're trying to do there; follow the instructions in the README
<ldlework> error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
<ldlework> Ralith: dude, the instructions don't tell you how to install from source, without using the channel
<ldlework> if you don't know the answer, that's fine
<Ralith> channels aren't magic
<Ralith> if you have something against channels, just reference the path directly
<ldlework> ...
<Ralith> follow the instructions in the README, replacing references to the channel with an explicit path to the source if it suits you to do so
<ldlework> what are you even talking about
<ldlework> nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
<ldlework> this is how the README 'references the channel"
<ldlework> it doesn't "reference the channel" in any of the nix code
<ldlework> I paste the lines I'm using to fetch the source from github and import the default.nix from the source directly
<ldlework> it fails in the main executable shell script doing nix build with: -f "<home-manager/home-manager/home-manager.nix>" \
<ldlework> does this mean that home-manager basically requires you to have it as a channel?
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
mr_noobs has quit [Quit: WeeChat 2.2]
troydm has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
cyounkins has joined #nixos
ik3123 has quit [Quit: Konversation terminated!]
iyzsong has joined #nixos
<ldlework> hah I did it
<ldlework> now home-manager will be available on the very first boot and i can control what version i use
<Ralith> that works too I guess
<Ralith> are you trying to make nixops install home-manager or something
<ldlework> i just don't like channels because they represent stuff you have to remember to do
<ldlework> i like everything to be expressed inside the configuration.nix
<gchristensen> ldlework: https://github.com/grahamc/nixos-config/blob/pure-eval/build.sh using nix-build --pure, it forces your entire config to be pure
<ldlework> gchristensen: just recommending a thing to take what i just said to the next level?
<gchristensen> yea
<gchristensen> I find it extremely annoying, so I don't use it ;)
<ldlework> gchristensen: does this avoid even the main channel?
<ldlework> that seems impossible, nm lol
<gchristensen> yes, it can't even use channels:
<ldlework> oh
<ldlework> oh nice
<ldlework> but you said you don't use this
<ldlework> ?
<gchristensen> I'm too loosey-goosey with my config I guess
<gchristensen> can't test my config before committing, for example, is frustrating
<siraben> ldlework: thanks for that link, where's the docs for writing a systemd service in nixos?
<ldlework> gchristensen: lol oh because you need a sha
<ldlework> lmao
<ldlework> gchristensen: couldn't you have another build command that lets you test it
<gchristensen> yeah :)
<ldlework> then you commit and go back and build pure with the sha
<gchristensen> a few troubles made it hard. for example I have a secrets.nix which I Don't want to commit, but I must fetch it from somewhere purely (or commit it)
<gchristensen> all this could be fixed, but also I didn't care quite enough to do it :P
<ldlework> interesting
<ldlework> i have a secrets.nix too
<hyper_ch> I have a mySecrets.nix :(
<ldlework> gchristensen: i feel like we should organize a "Nix Reproducability Challenge" or something
<gchristensen> ooh?
<ldlework> where you show you dd'ing your workstation
<gchristensen> omg
<ldlework> and then reconstituting your environment
<siraben> Is there a better way to find out options other than reading the source: https://github.com/NixOS/nixos/blob/master/modules/system/boot/systemd-unit-options.nix
<ldlework> the marketing effects alone would be worth it
<ldlework> but I also think it'd be a lot of fun
<gchristensen> such a cool idea
<gchristensen> I have a lot of git repos with uncommitted changes :$
<ldlework> i know!
<ldlework> me too, and tons of stuff not represented in my nixcfg in general
<Ralith> siraben: also `man configuration.nix`
<ldlework> gchristensen: that's why its a challenge :)
<ldlework> at some point your machine will die
<gchristensen> haha, I love it
<ldlework> gchristensen: it'd probably just take a single .html and .css in a github pages repo
<ldlework> where the challenge is explained, and then we can add youtube embeds or links to people's challenges
<ldlework> gchristensen: that's awesome
<ldlework> gchristensen: you know how I have those WM-level background indicators for when nix is building, or I'm recording a video and stuff
<ldlework> I should have one for that
<gchristensen> ooh yeah
<ldlework> lmao
<ldlework> nice
hiroshi has quit [Ping timeout: 268 seconds]
<ldlework> gchristensen: I feel like a way that Nix can be sold from a marketting perspective is that in it's reproducability you can get creative with your environments. You can make non-trivial interesting integrations/automations/glue/etc and be assured that if your laptop broke, on your next one, you don't have to do any work to get it back
<ldlework> NixOS allows workstation creativity
<gchristensen> I completely agree
<gchristensen> figuring out how to fix a weird hardware quirk on any other OS is a matter of finding some arbitrary series of forum posts with "Fixes" which somehow combine to fix the issue until you reinstall
<siraben> ldlework: what do you use to manage your .config files?
<ldlework> home-manager
<ldlework> which has a nice xdg module
<ldlework> which I actually depend on a lot for my global pywal integration
<siraben> ldlework: do you have a link to your dotfiles using home-manager?
<ldlework> it is very out of date
<ldlework> i've been talking in ##apop about how I'm trying to get all changes committed, and clean out my nix-env too
<ldlework> so soon, very much will change
<ldlework> hopefully tonight!
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fp9vK
<siraben> ldlework: Cool!
<ldlework> will be such a big milestone
hiroshi has joined #nixos
<ldlework> I love Nix :)
<ldlework> gchristensen: why keep helper scripts in xdg cache?
<ldlework> gchristensen: do you skip home-manager and do literally everything via systemd?
<gchristensen> I haven't checked out home-manager
<siraben> ldlework: I've been using it for not long at long and I'm loving it too
<siraben> not long at all*
<ldlework> siraben: well you're a quick learner :)
<ldlework> gchristensen: so you manage all your home stuff with systemd services that are able to manipulate files there?
<gchristensen> ldlework: I have a custom module for setting up dotfiles from before home-manager was a thing, and that is just about it
<ldlework> does it run outside of nix? using activation or whatever
<gchristensen> yeah
<ldlework> gchristensen: you should get on the hm train that'd be a big endorsement :)
<gchristensen> I hadn't considered that :)
<ldlework> it's not very complicated
<ldlework> and it seems like maybe your thing could've been an inspiration
<ldlework> seems similar
<gchristensen> probably not -- I kept it private forever I believe
<ldlework> convergent design
<ldlework> :)
<gchristensen> yeah :) I'll check it out
<averell> what is the advantage of hm over the system config.nix and a dotfile repo?
<ldlework> i don't have a 'dotfile' repo anymore really
<ldlework> i have dotfiles next to default.nix files inside of package specific folders
<ldlework> like /nixcfg/modules/home/linux,darwin/workstation/emacs/default.nix,init.org
random_yanek has quit [Ping timeout: 244 seconds]
Radivarig has quit [Ping timeout: 240 seconds]
<averell> is it what user-profiles should be? i don't really understand what the tool itself does compared to nix-env installing
<ldlework> averell: it is a shell script that is run during activation after build, that can manipulate files outside of the nix store
<ldlework> such as your home directory
<ldlework> It simulates nixos module system so you can configure per-user packages and also home-directory files, using a familiar way of doing things
<ldlework> a home-manager module looks just like a nixos one
<ldlework> there's an XDG module for home-manager for example, which allows you to render .config files and .cache files and set your XDG paths and so on
sgillespie has joined #nixos
simukis has quit [Quit: simukis]
georges_ has quit [Ping timeout: 244 seconds]
<sgillespie> Is there a nice way to create a handful of VMs with a simple nixos config?
mkoenig has joined #nixos
<sgillespie> I was hoping I could use nixos-container, but that doesn't seem to work for my specific usecase
<ldlework> Another thing I like about home manager is that it is not nixos-rebuild. I change configuration related to my dotfiles wayyyy more often than my system - so it is nice that home-manager goes much faster.
random_yanek has joined #nixos
detran has joined #nixos
georges has joined #nixos
ToxicFrog has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<gchristensen> that'll change when people start adding a bunch of robust and interesting user services :P
Supersonic has quit [Ping timeout: 268 seconds]
Supersonic has joined #nixos
llunesu has joined #nixos
ym555 has quit [Quit: WeeChat 2.3]
<llunesu> Hi all. What's the proper way to make multiple deriviations for the same package but different versions? Like node-8_x, node-10_x etc
<llunesu> Can I just follow what's done in web/nodejs/?
llunesu is now known as lionello
<ToxicFrog> I'm trying to figure out how the borgbackup configuration doesn't explode by trying to run multiple backups at once.
Mr_Keyser_Soze has joined #nixos
<ottidmes> lionello: you would have to override some of the arguments passed to package, you can see many examples of this in pkgs/top-leval/all-packages.nix
<{^_^}> [nixpkgs] @pbogdan opened pull request #51769 → cyrus_sasl: merge PR #51651 into master → https://git.io/fp9fd
<lionello> ottidmes: yeah, cool, will follow those. What about hiPrio?
<lionello> I'd declare a non-versioned identifier with hiPrio, that's it?
worldofpeace has quit [Ping timeout: 240 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 268 seconds]
<ottidmes> lionello: its got to do with collisions when building an environment for a set of packages, and systemPackages is such a environment. If you wrap it with hiPrio it will have priority over the others when colliding, a collide can be 2 packages both defining $out/bin/foo, for example, which foo should then be symlinked? hiPrio disambiguates that
<lionello> got it. thanks!
<ottidmes> lionello: answering that made me wonder if it was correct to also say that it modifies the metadata over the derivation, because you can set the priority also via the metadata, so I just now checked and indeed it does exactly what I expected: hiPrio = drv: addMetaAttrs { priority = -10; } drv;
<lionello> -10 is high? :)
<ottidmes> yeah, the lower the number, the higher the priority
<ottidmes> probably something taken from nice values of Linux processes, which also have lower the number, higher the priority
<lionello> that's right, thought about that too
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
david has joined #nixos
david is now known as Guest12054
vidbina has quit [Ping timeout: 272 seconds]
ftxqxd has quit [Ping timeout: 246 seconds]
<ldlework> If I change my main channel from 18.03 to nixos-unstable, am I gonna have a bad time?
hakujin has quit [Ping timeout: 250 seconds]
Anton-Latukha has quit [Quit: Leaving.]
hakujin has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #51325 → filterCoqPackages: honor `recurseIntoAttrs` → https://git.io/fpoMu
<{^_^}> [nixpkgs] @vbgl pushed to master « filterCoqPackages: honor `recurseIntoAttrs` »: https://git.io/fp9Ja
drakonis has joined #nixos
<{^_^}> [nixpkgs] @bendlas pushed to master « chromium: update conditionals and gcc patches for min version 71 »: https://git.io/fp9Ji
jackdk_ has joined #nixos
<ldlework> aw yeah
<ldlework> hello from nixos 19.03 unstable
<ldlework> smoothest linux upgrade of my LIFE
<jackdk_> I am trying to set up nixos on a rpi 3 and have run into https://github.com/NixOS/nix/issues/2393 . I'm currently trying to build a new version of nix to break out of this bind, but the toolchain in pilfs expects glibc2.28
<{^_^}> nix#2393 (by lopsided98, 14 weeks ago, closed): Hash mismatch with builtins.fetchUrl and .xz file
<jackdk_> (the glibc in the nixos image for arm is glibc2.27)
<jackdk_> oh right, I can LD_LIBRARY_PATH to that toolchain, duh
hlolli_ has joined #nixos
<jackdk_> hm, even with LD_LIBRARY_PATH=/root/tools/lib, and ldd reporting nothing dodgy-looking, I still get "no such file or directory" errors trying to run binaries from teh toolchain tarball at http://intestinate.com/pilfs/images.html
<jackdk_> does anyone have a good source for a binary aarch64 build environment that I could use to build a copy of nix?
Mr_Keyser_Soze has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
hlolli has quit [Ping timeout: 272 seconds]
iyzsong has joined #nixos
<jackdk_> ah, right. I have to load it using the loader in the toolchain tarball, because we don't have a ld.so or whatever under /lib
<jackdk_> oh god, this image doesn't even have patchelf
<ldlework> when i try to install emacs while adding a customized python with pylint and flake8 and shit as python packages, Nix blows up and tells me there's conflicts between python stuff when I add this custom python to emacs' buildInputs
<ldlework> what might I be doing wrong?
<nh2> dtz: can you spot anything wrong in malloc.c here? ;)
<nh2> https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blob;f=malloc/malloc.c;h=e247c77b7d4de26e0f2fbec16e352889bac3781b;hb=3c03baca37fdcb52c3881e653ca392bba7a99c2b#l4964
ensyde has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b551f89e256 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @bendlas pushed to release-18.09 « chromium: 70.0.3538.110 -> 71.0.3578.80 »: https://git.io/fp9U2
[Leary] has quit [Read error: No route to host]
Lears has joined #nixos
kyren has quit [Quit: ZNC 1.7.1 - https://znc.in]
kyren has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<ldlework> how do I resolve this?
<ldlework> collision between `/nix/store/xsm9vg6w30kw0i9dh027migpf0jn4msq-python2.7-backports.functools_lru_cache-1.5/lib/python2.7/site-packages/backports/__init__.py' and `/nix/store/9v1mzrlaghj0bqc0sbwiwjx9wpccjqdz-python2.7-configparser-3.5.0/lib/python2.7/site-packages/backports/__init__.py'
<ldlework> how can I figure out where these packages are coming from?
hakujin has quit [Ping timeout: 244 seconds]
shpx has joined #nixos
b has quit [Ping timeout: 240 seconds]
rsully has quit [Quit: rsully]
fusion809 has joined #nixos
hedning has joined #nixos
<{^_^}> [nixpkgs] @pbogdan opened pull request #51770 → binutils: remove dtneeded.patch → https://git.io/fp9UN
cyounkins has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
ensyde has quit [Ping timeout: 240 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
Mr_Keyser_Soze has joined #nixos
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shpx has joined #nixos
marusich has quit [Quit: Leaving]
shpx has quit [Client Quit]
shpx has joined #nixos
lassulus_ has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
shpx has quit [Ping timeout: 240 seconds]
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
<{^_^}> [nixpkgs] @bendlas opened pull request #51771 → Release 18.09 llvm 7 → https://git.io/fp9T2
hedning has quit [Remote host closed the connection]
locallycompact has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<locallycompact> hi, how do I just compile a loose haskell file with nix like https://gitlab.com/zenhaskell/shakebook/blob/master/diagrams/tournament.hs ?
<locallycompact> trying things like nix-shell -p haskellPackages.rio --command 'ghc tournament.hs'
<jackdk_> try nix-shell -p 'haskellPackages.ghcWithPackages (p: [p.rio])' ...
<locallycompact> perfect, thanks!
<jackdk_> np
hedning has joined #nixos
<locallycompact> what do I do if I have my own pile of packages generated with stack2nix?
<locallycompact> is that possible in one line?
<locallycompact> oh nvm
<{^_^}> [nixpkgs] @vbgl opened pull request #51772 → ocamlPackages.elina: init at 1.1 → https://git.io/fp9kJ
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1a4498d1328 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
iyzsong has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
lionello has quit [Quit: leaving]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/b551f89e256 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<pie__> reason I dislike GTK: I cant figure how to increase the length of my PDFs history in evince
<Ralith> I feel like that probably has more to do with evince than with GTK
<ldlework> I did "nix-store --gc" but I still have a million "qtile" paths in the store
<ldlework> what gives
rawreraw has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 250 seconds]
aleph- has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1a4498d1328 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
palo2 has joined #nixos
palo1 has quit [Ping timeout: 250 seconds]
<jackdk_> ldlework: they're probably still needed, have you removed gc roots?
jtojnar has quit [Quit: jtojnar]
endformationage has quit [Quit: WeeChat 2.3]
marusich has joined #nixos
duoi has joined #nixos
dramforever has joined #nixos
dramforever has quit [Client Quit]
<siraben> If I do "nix-store --gc" will that affect my ability to go back to previous generations?
marusich has quit [Ping timeout: 240 seconds]
marusich has joined #nixos
jackdk_ has quit [Remote host closed the connection]
<siraben> Anyone here have Nix configuration for Macs?
<ldlework> siraben: I have some darwin stuff
<ldlework> what are you looking for
<siraben> Well getting lock on suspend, suspend on lid close to work
<siraben> and general power management settings if you have them
<siraben> Ah I meant MacBook hardware, not the kernel
<siraben> for NixOS
<siraben> ldlework: ^
<ldlework> oh no clue
<siraben> The model is 13-inch, mid 2012 (MacBookPro 9,2)
<siraben> Just trying out on an spare device
<siraben> a*
agander has joined #nixos
<ldlework> how are you liking it
<siraben> It's good, just these little quirks
<siraben> I have a locking script working
<siraben> ldlework: what terminal do you tend to use?
<ldlework> urxvt
agander_ has joined #nixos
<siraben> How does it compare with terminator?
<Izorkin> Help. How to add function override to nur package? php56-unit = php56.override { ... }; error - attribute 'override' missing
<ldlework> siraben: urxvt is certainly old and true
agander is now known as Guest78204
agander_ is now known as agander
Guest78204 has quit [Ping timeout: 250 seconds]
<siraben> huh which package is urxvt?
<siraben> nix search urxvt doesn't find it
<siraben> Where do I put this in my config?
<ldlework> well this is for home-manager
<ldlework> but the package name is shown there
<ldlework> pkgs.rxvt_unicode-with-plugins
<ldlework> if you ever want me to explain organizing your config as a series of modules let me know
<siraben> So how I have it set up in my git repository is that I clone my dotfiles, copy it to /etc/nixos/ and run "stow config" to get my .config files installed
<siraben> ldlework: there must be a better way
jD91mZM2 has joined #nixos
<ldlework> that's what home-manager is for
<siraben> Ok what would I need to set up home-manager?
<siraben> It's not a simple package install?
<ldlework> heh you didn't even question
<ldlework> this nixos module will give you two commands `switch` and `hm-switch` for managing nixos and home-manager
Lears has quit [Remote host closed the connection]
<ldlework> the hm-switch command expects that your home.nix is at /nixcfg/hosts/${hostname}/home.nix
Lears has joined #nixos
<ldlework> where hostname = config.networking.hostName;
<siraben> So what's the philosophy with regards to nix configuration?
<siraben> Should everything be in /etc/configuration.nix ?
<siraben> What's home.nix in that case?
jackdk_ has joined #nixos
grumble has quit [Read error: Connection reset by peer]
grumble has joined #nixos
ROKO__ has joined #nixos
<jD91mZM2> siraben: /etc/configuration.nix is system wide configuration, ~/.config/nixpkgs/home.nix is per-user configuration
<jD91mZM2> home.nix can be used for example to specify gtk settings instead of using lxappearance
hamishmack has quit [Excess Flood]
viric has quit [Read error: Connection reset by peer]
<jackdk_> because of https://github.com/NixOS/nix/issues/2393 , I've just bootstrapped a version of nix on my rpi 3, but whenever it tries to download anything I get curl error 35, which is something ssl-related. how do I debug this?
<{^_^}> nix#2393 (by lopsided98, 14 weeks ago, closed): Hash mismatch with builtins.fetchUrl and .xz file
<jackdk_> (the version of nix on the arm images is still 2.1, which is why I'm affected by a closed bug)
jD91mZM2 has quit [Ping timeout: 250 seconds]
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #51769 → cyrus_sasl: merge PR #51651 into master → https://git.io/fp9fd
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fp9Lr
<siraben> I see, jD91mZM2 where can I see what gtk settings can be configured?
locallycompact has quit [Ping timeout: 240 seconds]
<ROKO__> guys what lines in configuration.nix i have to add for full gnome 3 installation ?
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #51775 → python37: Remove references to openssl.dev → https://git.io/fp9tt
viric has joined #nixos
<jD91mZM2> siraben: `man home-configuration.nix`, I believe
<tilpner> Probably services.xserver.desktopManager.gnome3.enable = true; and maybe a bunch of things in services.gnome3
<Izorkin> How to add function override to nur package? php56-unit = php56.override { ... }; error - attribute 'override' missing
marusich has quit [Quit: Leaving]
init_6 has quit [Ping timeout: 240 seconds]
agander has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @vcunat pushed to master « fbreader: fixup build with curl-7.62 »: https://git.io/fp9t0
<{^_^}> [nixpkgs] @vcunat pushed to release-18.09 « fbreader: fixup build with curl-7.62 »: https://git.io/fp9ti
alex`` has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #51776 → openssl_1_1: Add "doc" output to contain HTML documentation → https://git.io/fp9td
<{^_^}> [nixpkgs] @7c6f434c pushed to master « spice: add kerberos dependency »: https://git.io/fp9th
<eyjhb> Mic92: are you available regarding PR #51760 (displaylink systemd start to not block)?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51760 (by eyJhb, 10 hours ago, open): displaylink: changed systemd start to not block
<eyjhb> Good little bot :D
<Mic92> eyjhb: yes
<Izorkin> How to add function override to nur package? php56-unit = php56.override { ... }; error - attribute 'override' missing
<eyjhb> Regarding the substitute patch you proposed, I can see now (I was on mobile before), that it can be done (somewhat easily), but ... The sed on line 47, it somewhat conditional, if another init daemon is used (e.g. upstart).
<eyjhb> And I do not know, if the patch does NOT apply to the displaylink.sh file (the upstart daemon is upstart, and not systemd -> there fore a different start and stop command), if the patch will fail
<eyjhb> I have considered just removing installer part, and just copy out the content it actually puts into the files using writetextfile, and then just completely nuke lines 41 to 47...
<eyjhb> But that is just me, looking at how AUR does it
ROKO__ has left #nixos ["WeeChat 2.4-dev"]
<Mic92> eyjhb: whatever is easier to maintain. Custom install commands may also miss files, when the package is upgraded.
<Mic92> the problem with sed is, that it does not catch errors, when the file changes.
<Mic92> So it might break silently
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fp9qZ
<Mic92> Izorkin: it should work the same way in NUR: https://github.com/Mic92/nur-packages/blob/master/pkgs/gdbgui/default.nix
<{^_^}> [nixpkgs] @peti pushed to master « stockfish: update to version 10 »: https://git.io/fp9qC
<Mic92> Izorkin: however we might have removed php56 in unstable
<{^_^}> [nixpkgs] @7c6f434c pushed to master « Revert "spice: add kerberos dependency" »: https://git.io/fp9q8
<{^_^}> [nixpkgs] @peti pushed 6 commits to haskell-updates: https://git.io/fp9q4
jmeredith has quit [Quit: Connection closed for inactivity]
<Izorkin> Mic92: php56 deleted, used my custom php56
<eyjhb> Mic92: Makes perfect sense then! The only "problem" is the upstart stuff.. But does NixOS actually support using upstart instead of systemd?
<Mic92> eyjhb: no
<eyjhb> Thanks, I will try to update the PR with what makes the most sense ;)
<Izorkin> Mic92: php56-unit = php56.overrideAttrs (old: { ... }); error - attribute 'overrideAttrs' missing
<Mic92> Izorkin: yes, it might be the way you are importing php56. Do you have the code?
<Mic92> It seems php56 is not a package but something else in your case
hlolli has joined #nixos
<eyjhb> Mic92: would it make sense to replace `/bin/sh` with @sh@? Or.. It replaces it by itself, nvm I guess
Ariakenom has joined #nixos
hlolli_ has quit [Ping timeout: 250 seconds]
<Mic92> Izorkin: where is php56-unit?
<Mic92> Izorkin: I cloned your repository and did `nix repl .`
<Mic92> nix-repl> php56.overrideAttrs (old: { foo = 1; })
<Izorkin> Mic92: https://github.com/NixOS/nixpkgs/pull/51612/files nginx unit - app server. need php embed config
<Mic92> «derivation /nix/store/0w1va3w062bjw87afq97mdlz6lq9j6jy-php-5.6.39.drv»
<Mic92> Izorkin: I found the issue
<Mic92> try to change callPackage to callPackages. Then it works.
<{^_^}> Izorkin/nur-packages#2 (by Mic92, 9 seconds ago, open): php: use callPackages
<eyjhb> also Mic92, is the correct way for patches for such files just `diff -u old new > mypatch.patch` ?
<Mic92> eyjhb: I am not aware of a preferred way of formatting patches. Usually I use just `patch old new`. Unified diffs should work too.
<eyjhb> Mic92: isn't patch only for applying, and not creating them?
<Mic92> eyjhb: right. Then it was plain diff :) without any options.
<{^_^}> [nixpkgs] @markuskowa opened pull request #51777 → [WIP] rtl-sdr: remove linker-fix.patch → https://git.io/fp9qM
<Mic92> but I also just noticed I never use the vanilla diff:
<Mic92> diff -Naur --strip-trailing-cr
<Mic92> this was in my zshrc since forever
<eyjhb> Well, it gives me somewhat the same output, but I enjoy the --strip-trailing-cr ! That is a really nice touch
<eyjhb> Mic92: I am a little inbetween if I should create a patch for these lines - http://termbin.com/y5tc => replaces /opt/displaylink/udev.sh => with a different path. Because I can see all the stuff around them chaning over time, but the RUN path staying somewhat constant...
<eyjhb> So would a sed be `OK` there?
<Mic92> eyjhb: yes. there sed would be ok.
<eyjhb> Great ;) Putting this together and testing! Does nix sandbox make sense to do in this setup?
<siraben> Anyone here use NixOS on a Mac?
<Mic92> eyjhb: if you have 18.09 or newer then you have the sandbox already enabled
Radivarig has joined #nixos
<eyjhb> Mic92: Building using `sudo nixos-rebuild -I nixpkgs=$HOME/nixpkgs switch`, where nixpkgs is the latest master from github ;)
<eyjhb> Does substitute all replace relative to $out ?
Ariakenom has quit [Quit: Leaving]
<Izorkin> Mic92: thanks
<Mic92> eyjhb: it takes a set of attributes and then replaces for each key the '@key@' with the value from the attribute: https://github.com/NixOS/nixpkgs/blob/c19083961d4bb271d9aa63d61f855683137bba4b/pkgs/development/python-modules/pyocr/default.nix#L21
Ariakenom has joined #nixos
<Ashy> does nix-env have a command to download the source repo of a package?
<eyjhb> That is the example I am using (without the inherit), but currently it does not replace anything , and gives me zero errors... :/
<eyjhb> And it should give me errors, as it currently still has the sed commands => not able to patch
<Mic92> Ashy: you can use the output of nix-shell -p mpd.src --command 'echo $buildInputs'
<eyjhb> http://termbin.com/tx29 -> patch, http://termbin.com/b00s -> default.nix (sorry about the termbin Mic92 but it is my little alias to do this quick)
<Mic92> every derivation has a src attribute, sometimes it will return a directory and sometimes it is a tarball
<Mic92> eyjhb: is systemctl anywhere else but in this command required in the script?
<Mic92> or any other systemd command?
<eyjhb> systemctl is only required for those two stop and start commands - http://termbin.com/0qwu
<eyjhb> So might be wiser to just replace those two lines with @systemctl@ ?
<Mic92> and then use substituteAll { src = ...; inherit systemd;}
<Mic92> same for stop_service
<eyjhb> Two secs, I will try it out! :)
<Ashy> Mic92: cheers
<Mic92> siraben: very likely, but it is better to just ask you question right away.
<Mic92> *your
<Izorkin> Mic92: that's right? php71Packages-unit = pkgs.php71Packages.override { php = php71-unit; }; php71Packages - from nixpkgs-unstable
<Mic92> Izorkin: looks right to me.
Phillemann has joined #nixos
<siraben> Well, I'm having issues setting up sleeping and locking
<siraben> It doesn't lock before sleep or lid close
<Phillemann> When using nix-shell as a shebang, is it possible to pass arguments to the interpreter (specified by -i)?
juhe has joined #nixos
<eyjhb> Mic92: still doesn't seem like i patches the files, it should give me a error while trying to substituteall, but I get nothing... :/ Only changed the .patch, and inherit systemd;
<siraben> I'm using xss-lock to try to handle this
<Laalf> can someone export steam for me? i cannot download libacl1.deb anywhere
<symphorien> siraben: use xfce4-power-manager-settings
jackdk_ has quit [Remote host closed the connection]
<siraben> Ok so sleep works, but no locking
<Mic92> eyjhb: https://gist.github.com/Mic92/a83216ee44f04eba3b309370ca744f3f the following works for me.
agander has joined #nixos
<Mic92> eyjhb: wait a sec
<Mic92> the derivation is overwritting buildCommands
<Mic92> This will ignore the patches field
<eyjhb> I am 110% new to NixOS, installed it last week. So what do I need to do, so it does not ignore `patches`?
<Mic92> eyjhb: I would propose to move the unzip command to `unpackPhase` and put the rest of the buildCommands to installPhase.
<Mic92> and ignore fixupPhase at the bottom. if buildCommands is not overwritten then it will be called anyway
<siraben> symphorien: how do you set up your locking?
<siraben> Just verified that my lock script works well, just not being run before sleep
<symphorien> in a very intricate way because of a bug in older versions of linux
<symphorien> I doubt it is applicable in your case
<Mic92> symphorien: siraben is also on macOS as far as I understood.
iyzsong has quit [Ping timeout: 252 seconds]
<siraben> No I'm on a MacBook Pro 9,2 running NixOS
<{^_^}> [nixpkgs] @Mic92 merged pull request #51762 → vc: 1.4.0 -> 1.4.1 → https://git.io/fpShb
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fp9mz
fendor has joined #nixos
dramfore has joined #nixos
thc202 has joined #nixos
dramfore has quit [Client Quit]
<eyjhb> Mic92: the patch needs to run after the installphase, but doing postpatch gives me permission errors regarding the fix-script.patch...
<eyjhb> `/nix/store/r88k69yw8zikrpsj1pkk3xgg1vi3cx0g-stdenv-linux/setup: line 99: /nix/store/f3nnbsmm3f5b1qsri5d9j283wyc3hihn-fix-script.patch: Permission denied`
pointfourone has joined #nixos
<Mic92> eyjhb: does the script not exists in the source repository itself?
betaboon has joined #nixos
<eyjhb> Nope, it is generated but the `udev-installer.sh` in the installphase
<eyjhb> by the**
Guest12054 has quit [Ping timeout: 250 seconds]
<Mic92> eyjhb: can you patch the udev-installer instead?
<eyjhb> Mic92: you are full of much better ideas than I am....
<eyjhb> Yeah, of course, makes much more sense to do that
<eyjhb> Well.. I don't know if it is somewhat a hack solution, but.. I need to run the `.run` script to get all the `sources`..
<Mic92> eyjhb: since unpackPhase comes before patchPhase this should not be a problem.
<Mic92> that's why unpackPhase should run ./displaylink-driver-${version}.run
<{^_^}> #51738 (by Izorkin, 19 hours ago, open): php: init at 7.3.0
<eyjhb> Mic92: I am sooo closing to crying in the corner. Now I just get that it can't find `udev-installer.sh` even though I can see it in the unpackPhase `lr -alR`...
<Mic92> eyjhb: where I can get this displaylink zip?
<Mic92> ah there is a link
<betaboon> gchristensen: regarding nixops#981 is there a place where the discussion about the plugin-api takes place or would it be that PR but not a lot happened lately?
<{^_^}> https://github.com/NixOS/nixops/pull/981 (by grahamc, 20 weeks ago, open): Delete all the providers (and use plugins instead)
<eyjhb> Yeah, should be fairly easy to download. I just don't get why it cannot patch it now.. Because it is clearly in the direcotry
<eyjhb> directory**
<eyjhb> default.nix -> http://termbin.com/ho9a , fix-script.patch -> http://termbin.com/g2t0
<symphorien> eyjhb: try patchFlags="-p0" ;
<{^_^}> [nixpkgs] @rasendubi merged pull request #51764 → Metamath: init at 0.167 → https://git.io/fpSje
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fp9mQ
<symphorien> Or another level
nwspk has quit [Quit: Quit: *.banana *.split]
<eyjhb> symphorien: Works! :)
<eyjhb> Can I change my .patch so that isn't required?
<Mic92> eyjhb: prepend a/ and b/ before the path
<Mic92> of the patched file path in the patch.
<eyjhb> Works! :)
jtojnar has joined #nixos
<Mic92> eyjhb: I also got yet another checksum then you did. I wonder if we could just mirror the source on archive.org
<Mic92> instead of using the pesky requireFile
__monty__ has joined #nixos
<clever> Mic92: did you try fetchpatch?
<eyjhb> Mic92: yeah, that is because the file you downloaded was properly 4.1.9, while I am using 4.4.24 :) - So that is why, but the patch applies for both versions
<clever> ah, differing context probably
<eyjhb> So commit in just 2 secs will work with the downloaded .zip (sorry for not specifying that!)
<eyjhb> Mic92: new commit up in #51760
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51760 (by eyJhb, 12 hours ago, open): displaylink: changed systemd start to not block
* Taneb now has added a package to nixpkgs!
<eyjhb> Mic92: about the `.zip`, it was because of the terms you have to accept, that the current method is used
<{^_^}> #28279 (by ghost, 1 year ago, closed): displaylink driver has broken source URL
<Mic92> eyjhb: yes, but this would go away if $someone drops a archive.org link that mirrors the driver.
hamishmack has joined #nixos
feep has quit [Disconnected by services]
<eyjhb> But does that actually archive .zip files too? And feel free to find, `someone` haha :p
<eyjhb> I guess it does. Didn't know that
<eyjhb> I am way to tired Mic92 great catch
spacekookie has quit [Quit: No Ping reply in 90 seconds.]
fendor has quit [Ping timeout: 272 seconds]
<eyjhb> Mic92: done and tested, works as expected now! :)
<eyjhb> Is there any way, to install a library with pip, and just have it accessable for the local user? E.g. I need pyserial to work inside vim, for some arduino stuff
<{^_^}> [nixpkgs] @Mic92 merged pull request #51777 → rtl-sdr: remove linker-fix.patch, unbreak on darwin → https://git.io/fp9qM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fp9YW
<{^_^}> [nixpkgs] @Mic92 merged pull request #51759 → displaylink: 4.1.9 -> 4.4.24 → https://git.io/fpShK
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fp9Yl
<Mic92> eyjhb: the downlink is broken, right?
<Mic92> In that case we can also backport this
<eyjhb> Downlink?
<{^_^}> [nixpkgs] @Mic92 merged pull request #51760 → displaylink: changed systemd start to not block → https://git.io/fpShi
<{^_^}> [nixpkgs] @Mic92 pushed commit from @eyJhb to master « displaylink: changed systemd start to not block (#51760) »: https://git.io/fp9YR
<Mic92> *downloadlink
<eyjhb> Well... The download link for displaylink 4.4.24 works, you just need to accept the ToS :/ Else it works as expected :)
<Mic92> eyjhb: yes, but release-18.09 still carries the old version
<LnL> eyjhb: the nix way to do that would be by using python.withPackages, but you can also pip install to a custom location and set PYTHONPATH
orivej has joined #nixos
<eyjhb> Ahh, yeah... Well, the download link for the old version also still works, and can be installed just fine (4.1.9). - But it would still be awesome to have it in 18.09 :)
dramforever has joined #nixos
<eyjhb> LnL: Ended up using `pip install --user pyserial`
<ToxicFrog> time to file another bug against the borgbackup configs
<dramforever> I did a talk on Nix a while ago :) https://dram.cf/nix-talk/
<dramforever> (Note: Quite a bit of download going on. It's a reveal.js slide thingy)
worldofpeace has joined #nixos
a_ has quit [Ping timeout: 272 seconds]
dontdieych has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2566 → s3: make scheme configurable → https://git.io/fpS3C
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/fp9Y1
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/1970a4cd13b (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
imdoor has joined #nixos
pointfourone has quit [Remote host closed the connection]
pointfourone has joined #nixos
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
demize has joined #nixos
Phillemann has left #nixos ["WeeChat 2.3"]
<fusion809> Hi, anyone know why I cannot seem to remove certain items from my "Favourites" under KDE. Is this some NixOS-specific setting wherein I have to edit a setting in /etc/nixos/configuration.nix? I can add additional items to the list of favourites, but some items cannot be removed (e.g. Kate).
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to staging: https://git.io/fp9OK
<{^_^}> [nixpkgs] @vcunat merged pull request #51450 → perl: 5.28.0 -> 5.28.1; 5.26.2 -> 5.26.3 → https://git.io/fp6Cv
<{^_^}> [nixops] @amemni opened pull request #1060 → Add a deployment.ec2.physicalProperties option to differenciate Nitro-based (5th gen) EC2 instances with NVMe storage → https://git.io/fp9ON
pie___ has joined #nixos
pie__ has quit [Remote host closed the connection]
alex`` has quit [Read error: Connection reset by peer]
nwspk has joined #nixos
dramforever has quit [Quit: Page closed]
alex`` has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1970a4cd13b (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixops] @amemni opened pull request #1061 → StrictHostKeyChecking option "accept-new" only works for newer OpenSSH versions thus brakes ssh-tunneling for NixOs 17.0… → https://git.io/fp93u
civodul has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<Laalf> can someone export steam for me? i cannot download libacl1.deb and libattr1.deb anywhere
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging-18.09: https://git.io/fp9sp
<{^_^}> [nixpkgs] @vcunat merged pull request #51451 → [staging-18.09] perl: 5.28.0 -> 5.28.1, 5.26.2 -> 5.26.3 → https://git.io/fp6lx
rawreraw has quit [Ping timeout: 252 seconds]
spacekookie has joined #nixos
<manveru> Laalf: did they upgrade steamos?
<Laalf> manveru: i dont know. where would you find that out?
<manveru> our last update to steam was on 25.10.
<manveru> i'm checking...
rawreraw has joined #nixos
<Laalf> weird. i can download the links its failing on via wget, but home-manager or nix run cant
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #51779 → ncurses: fix cross-build by disable stripping → https://git.io/fp9Ga
<eyjhb> Laalf: user-agent blocked?
<Laalf> eyjhb: sorry?
<{^_^}> [nixpkgs] @sorki opened pull request #51780 → ipmicfg: 1.28.0 -> 1.29.0 → https://git.io/fp9G6
Guest12054 has joined #nixos
Guest12054 has quit [Client Quit]
<eyjhb> Laalf: Was just a quick thought, if the user-agent that home-amanger/nix uses to DL the files is blocked, or something.... Happens sometimes, but ... yeah...
<eyjhb> Might not be related
vidbina has joined #nixos
<Laalf> trying with sudo -E results in the same issue
b has joined #nixos
nwspk has quit [Quit: Quit: *.banana *.split]
nwspk has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 13 commits to release-18.09: https://git.io/fp9Zv
<{^_^}> [nixpkgs] @vcunat closed pull request #51771 → llvmPackages_7: init on release-18.09 → https://git.io/fp9T2
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<siraben> How do I get exFAT support on NIxOS?
<symphorien> siraben: https://nixos.org/nixos/options.html#support+filesystems I imagine
Laalf has quit [Read error: Connection reset by peer]
imdoor has quit [Quit: imdoor]
imdoor has joined #nixos
imdoor has quit [Quit: imdoor]
imdoor has joined #nixos
Laalf has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #51201 → libselinux: fix cross compilation → https://git.io/fpabZ
<{^_^}> [nixpkgs] @Mic92 pushed commit from @eburimu to staging « libselinux: fix cross compilation (#51201) »: https://git.io/fp9Zi
Laalf has left #nixos [#nixos]
Laalf has joined #nixos
JosW has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #51779 → ncurses: fix cross-build by disable stripping → https://git.io/fp9Ga
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fp9Z5
<{^_^}> [nixpkgs] @markuskowa merged pull request #51780 → ipmicfg: 1.28.0 -> 1.29.0 → https://git.io/fp9G6
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fp9Zj
Ariakenom has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #51781 → openssl_1_1: Add "doc" output to contain HTML documentation → https://git.io/fp9nm
pointfourone has quit [Remote host closed the connection]
pointfourone has joined #nixos
fendor has quit [Ping timeout: 250 seconds]
pointfourone has quit [Client Quit]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #51782 → monero: build with hidapi → https://git.io/fp9n8
kp__ has joined #nixos
pie__ has joined #nixos
<{^_^}> [nixpkgs] @mboes opened pull request #51783 → bazel: 0.18.0 -> 0.20.0 → https://git.io/fp9ng
pie___ has quit [Remote host closed the connection]
<eyjhb> If I have a single .nix file I would like to overwrite X .nix file in the current stable release, how would I go about this?
<eyjhb> Since I have provided a fix that is now in the master branch, but I don't want to run on the master branch, but rather 18.09
worldofpeace has quit [Remote host closed the connection]
Anton-Latukha has joined #nixos
philippD has joined #nixos
worldofpeace has joined #nixos
kp__ has quit [Quit: WeeChat 2.3]
JosW has quit [Ping timeout: 252 seconds]
<meizikyn> just for local?
<meizikyn> can use overlays, or if overlays are too complex for what your doing, just install package from file
<meizikyn> nix-env -if X .nix
<meizikyn> eyjhb:
kp__ has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/f006e8448bb (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
sb0_ has joined #nixos
<Laalf> my steam still doesnt install. i also found that pcsx2 doesnt have the default plugins/libaries as far as i can see
<{^_^}> [nixpkgs] @LnL7 opened pull request #51784 → glu: don't use valgrind on darwin → https://git.io/fp9cn
<meizikyn> ls
<meizikyn> oops
<eyjhb> meizikyn: just seems like a huge waste, to do a overlay, that implements a fix that already exists in master branch....
<meizikyn> is master not 18.09 ?
<eyjhb> Isn't it 19.03 ?
<meizikyn> haven't looked at master in a while, I thought that current stable would have been master
<eyjhb> Nope, it is 19.03, that is at least what my grub is showing after I have build against master branch on git... :/
<meizikyn> eh, I either just use "~$ nix-env -if <file>.nix", or if I need a large rebuild, use overlayfs to write over nixpkgs
<meizikyn> that seems unintuitive :( I'm sorry for the rather unexpected/undesired upgrade
agander has quit [Ping timeout: 268 seconds]
<meizikyn> does grub give you a roll-back option?
<eyjhb> meizikyn: but this is somewhat required but stuff in modules/hardware, so that it is not just a package :\
<eyjhb> Yeah yeah of course :D I just don't want to rollback, as if I do so, my computer will take 2 minutes to boot, because the fix isn't in the stable 18.09
<eyjhb> meizikyn: for some background info #51760
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51760 (by eyJhb, 16 hours ago, merged): displaylink: changed systemd start to not block
<eyjhb> Wouldn't be that big of a deal, if it werent becuase virtualbox won't compile on 19.03....
agander has joined #nixos
<tilpner> Laalf - I started the export. It's probably going to be huge
<tilpner> Unless you don't need it anymore?
<meizikyn> ooohh, hmm. If the change is to a nixos module, try to overlayfs on /root/.nix-defexpr/channels/nixos/nixos/modules
detran has quit [Ping timeout: 250 seconds]
<Laalf> tilpner: i still "need" it. (its a drm for games, so do i really?) but thank you. when importing do i need to have a key of yours?
<eyjhb> meizikyn: well, I am somewhat new to NixOS, so the change is to a package, but a hardware module in nixos requires that package.. If that makes sense?
<tilpner> Laalf - That's a better idea, let's do that instead
<meizikyn> sorry, not really. the module relies on the nix expression itself, or the derivation that gets built?
<Laalf> tilpner: what? i am kinda new to nix. i didnt think i was suggesting something
<eyjhb> meizikyn: well, it is this file that 'requires' it - https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/hardware/video/displaylink.nix
<meizikyn> eyjhb: do you mean a /kernel/ module, or a hardware /nixos module definition/, the terminology in nixos makes that a little confusing :p
<meizikyn> ah
<meizikyn> nvm, lemme read
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #51785 → vimPlugins: Update → https://git.io/fp9cp
<meizikyn> and displaylink requires a package that you've modified, so installing that package outright won't allow displaylink to build as desired?
<eyjhb> meizikyn: that is what I am guessing yeah :)
<eyjhb> Considering just ghettoing it, and cloning the latest stable, modifying it and building against that.
<meizikyn> what nix-file is required that you've modified?
<eyjhb> This
<meizikyn> I would think an overlayfs on nixpkgs and "overwriting" the displaylink/default.nix with required changes would allow it to build. do you get a specific error report
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/1a4498d1328 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<eyjhb> meizikyn: haven't done the overlay yet, as there must be a smarter way, than overwriting installphase, patches, unpackphase, version, sha256, etc...
<eyjhb> => overlay
<eyjhb> And I really never have done a overlay before, so I am not the best at writing them
JosW has joined #nixos
<meizikyn> not like a real nix overlay, but using overlay2/overlayFS to mount over nixpkgs, and dropping in your modified .nix files
<meizikyn> mount -t overlay overlay /root/.nix-defexpr/nixpkgs lowerdir=/root/.nix-defexpr/nixpkgs,upperdir=/path/to/mod/pkgs,workdir=/path/to/mod
<meizikyn> its temporary, sure, but I've done this for flashplayer before the newest version hits upstream nixpkgs
<eyjhb> Hmmm, could do.. Could do..
<{^_^}> [nixpkgs] @worldofpeace pushed to master « plank: hide launcher in pantheon »: https://git.io/fp9Cn
<meizikyn> it isn't very elegant, but works for immediate/smaller problems
<eyjhb> How does NixOS check for new updates in 18.09? Is there equvilant of `apt update`?
<meizikyn> as root: "~$ nix-channel --update"
<meizikyn> nix uses "channels" (i.e. copies of /root/.nix-defexpr/nixpkgs), which is a file tree of .nix files that define how package sources are acquired and built
<meizikyn> it downloads the new "channels" and builds it like a package, and gets placed in /nix/store, it's then linked into /root/.nix-defexpr
<eyjhb> Hmm... I learn something new each day then :D - I really just ... feel like there must be a cleaner solution........ But I guess not.....
<meizikyn> there is, real nix overlays xD
<meizikyn> which are obnixously complicated and not good for "right now" solutions
<eyjhb> I am close to giving up, and then doing that. I just need a good overlay example, that I can use
<eyjhb> And I haven't seen that manu...
<eyjhb> I have been working on that *insert bad word* solution for 3-4 days, I can handle another day :%
<meizikyn> check out mozilla-nixpkgs
<meizikyn> its a repo by mozilla on github for nixos, that provides an overlay to get the latest firefox nightly
<meizikyn> its complicated, but shows the intended usecase (needing modified packages AND modules, when your current tree doesn't yet have them)
<avn> eyjhb: other option track release-18.09 branch in git.
<meizikyn> avn:
<eyjhb> avn: and then overwrite the file? Or what?
<eyjhb> That would be nice. But I would still need to do some config changes, and I cannot currently see, what that implies
<avn> eyjhb: if you build system from git branch, then update working copy and rebuild would be enough
<eyjhb> avn: is there something I can change in my config, so I don't need to speicfy -I nixpkgs=xxxx ?
<eyjhb> configuration.nix **
<avn> meizikyn: btw, just mofify work copy and commit would be easy. Then when you rebase it on fresh release branch or master, if you do right things, your commit will be just `consumed` by upstream update.
<avn> eyjhb: modify your default NIX_PATH variable, or use wrapper script.
simendsjo has joined #nixos
<meizikyn> In my case the flashplayer mods weren't "right things", as I couldn't be bother to get correct SHA for new source, so I got the source locally and directed "src=" to it on my fs
<{^_^}> [nixpkgs] @Ma27 merged pull request #51391 → dpt-rp1-py: init at 2018-10-16 → https://git.io/fpKZk
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/fp9WL
<{^_^}> [nixpkgs] @symphorien opened pull request #51786 → giac: 1.4.9 -> 1.5.0 → https://git.io/fp9Wt
rawreraw has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
agander has quit [Ping timeout: 250 seconds]
ma27 has quit [Quit: WeeChat 2.2]
ma27 has joined #nixos
agander has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b opened pull request #51787 → iptables: prune libtool files after build → https://git.io/fp9WV
hakujin has quit [Ping timeout: 268 seconds]
imdoor has quit [Quit: imdoor]
imdoor has joined #nixos
<{^_^}> [nixpkgs] @megheaiulian opened pull request #51788 → distrobuilder: 2018_06_29 -> 2018_10_04 → https://git.io/fp9le
<{^_^}> [nixpkgs] @vcunat closed pull request #51776 → openssl_1_1: Add "doc" output to contain HTML documentation → https://git.io/fp9td
JosW has quit [Read error: No route to host]
inf is now known as infowski
rawreraw has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-cryptonite: disable test suite to avoid transient errors »: https://git.io/fp9lc
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fp9lC
<{^_^}> [nixpkgs] @vcunat pushed 16 commits to release-18.09: https://git.io/fp9lu
lassulus has quit [Quit: WeeChat 2.2]
justanotheruser has quit [Quit: WeeChat 2.2]
justanotheruser has joined #nixos
m3lst4d has joined #nixos
worldofpeace has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @flokli pushed commit from @ciil to release-18.09 « nextcloud: 14.0.3 -> 14.0.4 »: https://git.io/fp9l5
lassulus has joined #nixos
vielmetti has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @bendlas opened pull request #51789 → chromium: switch release-18.09 to build with llvm7 → https://git.io/fp98J
vielmetti has quit [Client Quit]
Neo-- has joined #nixos
m0rphism has quit [Quit: WeeChat 2.2]
oldandwise has joined #nixos
emv has joined #nixos
m0rphism has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.2]
alex`` has joined #nixos
<oldandwise> hi.. how can i change the ExecStart for bluetoothd to have the '-P' args passed to it.
<nh2> oldandwise: which NixOS service is that (can you link it?)
agander has quit [Quit: Leaving]
<oldandwise> nh2: `systemctl status bluetooth.service`
<nh2> oldandwise: I am not running NixOS with bluetooth, so I cannot see that output
<nh2> I suspect the important bit is `systemd.packages = [ bluez-bluetooth ];` so it uses the bluez-provided systemd unit files, which are copied over to yours via https://github.com/NixOS/nixpkgs/blob/release-18.09/nixos/modules/system/boot/systemd.nix#L722
<nh2> because it's not a NixOS provided systemd unit, you cannot easily override it with NixOS's module system
<{^_^}> [nixpkgs] @dotlambda opened pull request #51791 → borgbackup: 1.1.7 -> 1.1.8 → https://git.io/fp98u
<nh2> oldandwise: I suspect a working way would be to override `hardware.bluetooth.package = (overrideBuildToPatchUnitFile pkgs.bluez)`, where `overrideBuildToPatchUnitFile` would be a function you write that patches the bluez-provided systemd unit file so that it contains the flag you want. Does that help?
<oldandwise> how?
<nh2> oldandwise: you need to tell me a bit which parts of NixOS and its module system you're already familiar with. Do you mean where you have to put `hardware.bluetooth.package`, or how you can implement `overrideBuildToPatchUnitFile`, or both?
emv has quit [Quit: leaving]
m3lst4d has quit [Ping timeout: 250 seconds]
<oldandwise> nh2: i know the basics of /etc/nixos/configuration.nix... but very basic only
<nh2> oldandwise: OK, I'll try to guide you through it
<nh2> oldandwise: run `nix-build --no-link -E 'with import <nixpkgs> {}; bluez'`
<nh2> that prints out a path, run `find` on it to see the built package's content. Do you see `etc/systemd/system/bluetooth.service` inside it?
emv has joined #nixos
graphene has quit [Remote host closed the connection]
<oldandwise> nh2: yes..see it --> /nix/store/0dvqf6657hb60wf96qq1ah7hxkfdllzj-bluez-5.50/etc/systemd/system/bluetooth.service
steshaw has quit [Quit: Connection closed for inactivity]
graphene has joined #nixos
<nh2> oldandwise: that one has the ExecStart line we want to patch. So what we want to do is to make an overridden `bluez` package, whose path, when built, has the patched file
agander has joined #nixos
<oldandwise> nh2: yes.. i saw a c/c++ util before getting patch with sed,awk to *nixify* it.. as the term
<{^_^}> c/c's karma got increased to 1
<{^_^}> [nixpkgs] @hedning opened pull request #51792 → nixos/tests/i3wm: fix terminal title (test is broken on master) → https://git.io/fp944
<oldandwise> nh2: need more guidance though.. not familiar
<{^_^}> [nixpkgs] @dasJ closed pull request #40598 → nixos/auto-patchelf: Various fixes → https://git.io/vpFR4
Neo-- has quit [Ping timeout: 246 seconds]
infowski is now known as inf
hakujin has joined #nixos
endformationage has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
oldandwise has quit [Quit: leaving]
<{^_^}> [nixpkgs] @srhb merged pull request #51569 → polkadot: init at 0.2.17 → https://git.io/fpXxw
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fp94y
sysadmin_wannabe has joined #nixos
pie___ has joined #nixos
pie__ has quit [Remote host closed the connection]
mkoenig has quit [Ping timeout: 250 seconds]
<eliasp> what's the correct way to write "foo = [ bar ] ++ mkIf blah.option [ something ];"? this just gives me "error: value is a set while a list was expected, …", while omitting "mkIf" makes it work perfectly fine
<eliasp> does this mean "mkIf" doesn't simply return the 2nd arg in case the 1st evaluates to "true" but a set instead?
<{^_^}> [nixpkgs] @srhb merged pull request #51568 → parity: 2.1.6 -> 2.1.9; parity-beta: 2.2.1 -> 2.2.4 → https://git.io/fpXxU
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fp9Bl
<ottidmes> eliasp: use lib.optional instead of mkIf
mkoenig has joined #nixos
<eliasp> ottidmes: will give it a try, thanks!
rawreraw has quit [Ping timeout: 252 seconds]
<eliasp> …it worked! fantastic! ;)
<ottidmes> eliasp: mkIf is a feature of the module system of NixOS implemented with Nix, its not part of Nix. If we look at the definition of mkIf we can see why you got the error: mkIf = condition: content: { _type = "if"; inherit condition content; };
<hjulle> How do I figure out which modules are enabled by default in nixos?
vidbina has quit [Ping timeout: 240 seconds]
<eliasp> ottidmes: hmm, trying to wrap my head around that… because `_type = "if";`?
<ottidmes> hjulle: that would depend on what you mean exactly with enabled modules, if you mean modules with an enable option that are set to true by default, that might be answerable, but there are many different conditions being used across modules to determine whether they are enabled, or what parts of it, so that would be a very difficult to answer question
<hjulle> ottidmes: The first option would be good enough for me.
<ottidmes> eliasp: no, because it returns a set, { ... }, so if you say [ ... ] ++ { ... }, then Nix is right in complaining it cannot do so
<ottidmes> eliasp: and what the set represents, you could check out nixpkgs/lib/modules.nix, but its complicated code, so its probably easier to just remember they are only to be used when assign values to options (i.e. when you define some config attribute)
<eliasp> ah, right - that made it click for me - got it! :)
rawreraw has joined #nixos
<ottidmes> config.some.attributes.name = mkIf/mkForce/mkDefault/etc. ...value...; that makes sense, but to use it anywhere inside of ...value..., it will not behave like you expect
alex`` has quit [Read error: Connection reset by peer]
acarrico has quit [Ping timeout: 245 seconds]
<jw358> how should one write a executable nix shell script that exits upon completion
<jw358> other than using `#! nix-shell --run 'exit'`
justanotheruser has quit [Ping timeout: 250 seconds]
<eliasp> ottidmes: well, in this case I'm doing so… trying to extend the networkmanager module's `networking.networkmanager.packages` attr… current state of what I'm doing: https://paste.pound-python.org/show/YPHo3C24mhmu0BPEAD0m/
<ottidmes> jw358: seems like you are using it for a wrong use case, could you eloborate the example? You probably want nix-build/nix-instantiate instead, but that would depend upon your use case
thc202 has quit [Ping timeout: 272 seconds]
<eliasp> ottidmes: "mkIf" was already used there and then just worked as expected - returning a set to `networking,networkmanager.packages`, which is expected to be a set... so I should rather make my expression there return a set of both lists' results
<jw358> ottidmes: i want to run a derivation for a shell that has preshell hooks
<jw358> *shell hooks
palo2 has quit [Quit: WeeChat 2.2]
<jw358> i use the shell derivation in addition to using the script
<jw358> not just one or the other
palo has joined #nixos
<ottidmes> eliasp: yeah what you are doing now is correct
<nh2> do we have a bot that can tell people things when they come back into the channel?
<eliasp> ottidmes: ok, great... so getting closer to making a PR out of this ;)
<ottidmes> jw358: than I would not know any other way than doing exit, sorry
rsully has joined #nixos
<jw358> ottidmes: 👍
alex`` has joined #nixos
<nh2> in any case, if user "oldandwise" returns, this is how to patch the bluetoothd derivation: https://gist.github.com/nh2/94049ce3d3cc8ab82a814ded9f7b5277
<ottidmes> nh2: I knew I saw it mentioned, is this what you wanted: https://logs.nix.samueldr.com/nixos/2018-11-08#1709851
alex`` has quit [Read error: Connection reset by peer]
<nh2> ,tell
<{^_^}> nh2: Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
<nh2> ottidmes: thanks!
<nh2> ,tell oldandwise Sorry, I had to step out of a moment. This is how to patch the bluetoothd derivation: https://gist.github.com/nh2/94049ce3d3cc8ab82a814ded9f7b5277 You can bind it to a variable and use that in `hardware.bluetooth.package`
<{^_^}> nh2: I'll pass that on to oldandwise
sysadmin_wannabe has left #nixos ["Cya soon"]
graphene has quit [Remote host closed the connection]
justanotheruser has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.2]
graphene has joined #nixos
<ottidmes> hjulle: had to think of a way to get the info, but I think I have some hacky way to get your answer, let me try it
alex`` has joined #nixos
<hjulle> ottidmes: Thanks!
emv has quit [Quit: leaving]
alex`` has quit [Read error: Connection reset by peer]
vielmetti has joined #nixos
<vielmetti> jq
johnw has joined #nixos
johnw_ has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
m0rphism has quit [Quit: WeeChat 2.2]
<ottidmes> hjulle: on this page https://nixos.org/nixos/manual/options.html running this script: https://gist.github.com/ottidmes/132577ba1f43c98369ad91e4ea1a85fa, you get your answer (but going to eat now, so won't respond until later)
<Baughn> Should there be NixOS tests for Steam?
<Baughn> I ask because there _aren't_, and as a result it's broken in stable right now.
<samueldr> as it's "unfree", it wouldn't be tested anyway by hydra
<qyliss^work> Would that require Hydra to build unfree software?
<qyliss^work> yeha
<samueldr> Baughn: though, what's broken?
<samueldr> maybe trivial to check the unstable fixes and backport it
<Baughn> Our build scripts. One second.
<Baughn> I'm about to start bisecting it anyway, so it'll get fixed, but..
<Baughn> qyliss^work: While that is true, I don't think there's actually a license problem. Valve doesn't mind people running Steam.
<samueldr> though, if there was a test written-up, it would help those diagnosing and bisecting
<Baughn> builder for '/nix/store/23nagdrkwjcm1i7s640hh2g89fyb1chg-steam-runtime-wrapped.drv' failed with exit code 1; last 1 log lines:
<Baughn> while setting up the build environment: executing '/nix/store/xgf4vra77qrww0n228hd80jsdccdp54w-bash-4.4-p23/bin/bash': Exec format error
<Baughn> Hmm
<Baughn> Actually, this isn't a Steam error at all. That bash build just.. doesn't work.
<Baughn> Curious.
<Baughn> Might be because the machine is hardened.
worldofpeace has joined #nixos
<Baughn> Hmm. That ld-linux doesn't work.
JosW has joined #nixos
<Baughn> My best guess is because it's the 32-bit ld.so, but-- hmm, but this machine probably didn't have to run it previously.
<Baughn> Are any kernel modules needed to run 32-bit code?
rfold has joined #nixos
Mateon1 has quit [Quit: Mateon1]
<{^_^}> [nix] @jamesbroadhead closed pull request #1143 → Update wording on root install → https://git.io/v1cEa
marusich has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #51792 → nixos/tests/i3wm: fix terminal title (test is broken on master) → https://git.io/fp944
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/fp90S
acarrico has joined #nixos
jomik has joined #nixos
<Baughn> Well, disabling hardening definitely fixed it. Or is that 'fixed' it?
<Baughn> Sigh.
<jomik> Hey guys, minor issue here. I have just set up NixOS because my Arch install just died due to a half-done system update :D I have the bare-bones configuration.nix that is generated by nixos-generate-config. I have added firefox to the systemPackages, I can launch firefox, by running it from a shell, however KDE does not seem to find the .desktop file. Any ideas how I can fix this?
<__monty__> I bet arch mishaps are our greatest source of new users : )
<samueldr> jomik: am I right in assuming you did not logout/reboot since adding firefox to systemPackages?
<samueldr> (if so, it is a known annoyance being worked on)
<samueldr> (and there's possibly a workaround, looking for it)
<eliasp> manually running `kbuildsycoca5 --noincremental` as your KDE user might help
<samueldr> exactly (though not sure about the need for --noincremental)
<samueldr> (don't know what it does, I am not a KDE user)
<jomik> samueldr: I did actually log out and log in again. I am just rebooting now... And, that didn't resolve the issue either.
<samueldr> ah, shouldn't need to
<jomik> kbuildsycoca5 helped.
<samueldr> since you're a new user, just checking: you did nixos-rebuild switch?
<samueldr> oh, you probably did :)
<jomik> I did. I am a returning user :)
agander_ has joined #nixos
<samueldr> ah, then welcome back
hakujin has joined #nixos
<jomik> University used a lot of weird packages that were not present for Nix, and configuring them to work with Nix was a bit of an annoyance. So, I switched to Arch. Now that the bachelor is done and I am just doing my master's. I wanted to try again :P
<jomik> At least I could recover from the arch mishap... Just, would have to reinstall arch to get the packages to working again - some of them still gave off errors. Managed to recover my files :D
Mr_Keyser_Soze has joined #nixos
<jomik> eliasp, samueldr thank you :)
agander has quit [Ping timeout: 246 seconds]
<eyjhb> Why does all the NixOS FDE have to be with UEFI.....
hakujin has quit [Ping timeout: 272 seconds]
cyounkins has joined #nixos
silver has joined #nixos
cyounkin_ has joined #nixos
rawreraw has quit [Ping timeout: 252 seconds]
<jomik> Now that I am in here ... Line #3 in the first snippet here : https://nixos.org/nixos/nix-pills/callpackage-design-pattern.html#idm140737315788800 . `pkgs` doesn't seem to be declared before we use it here?
<{^_^}> [nixpkgs] @hedning opened pull request #51793 → linuxPackages.virtualboxGuestAdditions: fix hash → https://git.io/fp9Ex
cyounkins has quit [Ping timeout: 268 seconds]
Mateon1 has joined #nixos
<jomik> Waow, it is explained at the end. Disregard me. It is just due to lazy evaluation :D
aleph- has joined #nixos
cyounkins has joined #nixos
<samueldr> jomik: you should have lazy evaluated the section ;)
<jomik> Yeah. I did read that, I just completely forgot about it :P Had baby swim session and dinner inbetween. Lol
<jomik> Ohh. Pfft. And I didn't catch the joke!
<samueldr> :D
<jomik> 9 pm is too late for me already! I am growing old at an age of 25!
<{^_^}> [nixpkgs] @vbgl merged pull request #51384 → frama-c: Chlorine -> Argon → https://git.io/fpKs7
<{^_^}> [nixpkgs] @vbgl pushed to master « frama-c: Chlorine -> Argon »: https://git.io/fp9uk
cyounkin_ has quit [Ping timeout: 268 seconds]
cyounkins has quit [Read error: Connection reset by peer]
cyounkins has joined #nixos
<jomik> Curious; this may be mentioned somewhere. When we install something, it happens from a channel, I assume it reflects this branch https://github.com/NixOS/nixpkgs/tree/release-18.09 . What if I want to add and use my own repository? Should that only be done by forking/cloning nixpkgs and then installing from a local folder?
worldofpeace has quit [Ping timeout: 245 seconds]
<jomik> Or can I point to my github repo..?
<elvishjerricco> jomik: You mean with `nix-env`?
<jomik> elvishjerricco: Yes
<elvishjerricco> jomik: You can do `nix-env -f https://github.com/USER/REPO/archive/BRANCH.tar.gz -iA foo.bar.baz`
oida has quit [Remote host closed the connection]
hakujin has joined #nixos
oida has joined #nixos
<jomik> elvishjerricco: Perfect, thank you. Pretty useful for sharing stuff to my study-mates before PR'ing it in :p
vidbina has joined #nixos
<jomik> Welp, just a bit later, it was mentioned: https://nixos.org/nixos/nix-pills/nix-search-paths.html#idm140737315675232
[Leary] has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<{^_^}> [nixpkgs] @andir opened pull request #51794 → smartmontools: drivedb 4548 -> 4852 → https://git.io/fp9uH
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d56ec49ae42 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @rht reopened pull request #51195 → chromium: Add ungoogled flag to enable ungoogled-chromium patches → https://git.io/fpa68
rawreraw has joined #nixos
foldingcookie has quit [Read error: Connection reset by peer]
<{^_^}> #51738 (by Izorkin, 1 day ago, open): php: update php packages
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andir opened pull request #51795 → [18.09] smartmontools: drivedb 4548 -> 4852 → https://git.io/fp9zy
rhalff has joined #nixos
simendsjo has quit [Ping timeout: 246 seconds]
<rhalff> I'm trying to install a node app which needs the libpng dev libraries, is it easy to just make these available?
<rhalff> I've tried installing libpng, but that won't work.
<infinisil> ,libraries rhalff
<infinisil> Where is da bot!
<infinisil> ,libraries
<infinisil> ,library
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<infinisil> rhalff: ^
<rhalff> ah, thanks.
<infinisil> ,libraries = Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> libraries defined
jomik_ has joined #nixos
<jomik_> :( KDE doesn't seem to accept `services.xserver.libinput.naturalScrolling = true;` :(
<{^_^}> [nixpkgs] @andir merged pull request #51794 → smartmontools: drivedb 4548 -> 4852 → https://git.io/fp9uH
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fp9gv
fusion809 has joined #nixos
halfbit has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andir merged pull request #51795 → [18.09] smartmontools: drivedb 4548 -> 4852 → https://git.io/fp9zy
<{^_^}> [nixpkgs] @andir pushed 2 commits to release-18.09: https://git.io/fp9gY
ensyde has joined #nixos
<infinisil> jomik_: Define "accept"
<rhalff> infinisil, thanks, works great.
<jomik_> I don't get natural scrolling in KDE. It is the setting they call "Reverse Scrolling". Tho, enabling it in KDE does work..
<infinisil> So it's a bug in nixos? If so you can open an issue to track it
<samueldr> haven't checked the module's implementation, but it may be as simple as KDE always sets the setting
jomik__ has joined #nixos
jomik_ has quit [Ping timeout: 256 seconds]
<eyjhb> Currently running `nixos-install`, and getting "You have a memory leak (not released memory pool) as a error....
<eyjhb> Any clue why? Doing it on a encrypted volume
<samueldr> AFAIK this is a warning from LVM or something close, which shouldn't be an issue in the end
sir_guy_carleton has joined #nixos
<eyjhb> samueldr: Well... On my third install, and still no boot
<eyjhb> Can't seem to find the right guide for this.. Had it working once before
<samueldr> this is something many other distros face if you search this online, always close to something grub or something lvm (and I think the reason it's close to grub is since it supports lvm)
<samueldr> eyjhb: I'd bet this is not the issue, let's look at your setup
<samueldr> eyjhb: can you share a short overview of what you're trying, what you tried and what seems to be at issue?
<eyjhb> Without the WPA, and only adding the efisupport and boot.initrd.luks.devices .. aaand I just get a PC that won't boot
<eyjhb> No errors what so ever or prompts
<eyjhb> Seems like the same issue I have seen previously, but that was solved by setting the boot flag on the disk.. But apparantly, that is not a option when using gdisk
<samueldr> >> Without the WPA, and only adding the efisupport and boot.initrd.luks.devices
<samueldr> what do you mean by "only adding the efisupport"?
goibhniu has joined #nixos
<eyjhb> `boot.loader.*` added from the configuration file with `boot.initrd.*`
<eyjhb> I might be creating the partitions wrong using gdisk.. That is my initial thought..
<samueldr> recently it's been known that _f_disk has changed some commands breaking our previous installation instructions; no idea if gdisk also changed some commands
<{^_^}> [nixpkgs] @bachp opened pull request #51796 → dsview: init at 0.99 → https://git.io/fp9g1
<samueldr> but the fdisk commands changing caused errors during the commands
<eyjhb> fdisk commands worked fine when I used them last time
<eyjhb> But now that I want to have FDE, all guides only use gdisk...
<eyjhb> And EFI
<samueldr> I mean, the example commands our installation guide recommended wouldn't work anymore :/
<eyjhb> *last time => one week ago*
<samueldr> if mounting the partitions work in the installer, I'm confident the partitioning instructions you followed were right
<samueldr> when you're using the installer image, are you booting it as UEFI or as Legacy?
<eyjhb> IT works mounting, but that doesn't help me, when it doesn't even try to boot it
<eyjhb> Legacy I would guess
<eyjhb> It is set to do both
<eyjhb> *try legacy first*
<samueldr> it would be an issue; AFAIK if it's booting legacy, it won't be able to manipulate the EFI variables to setup boot
<eyjhb> Why does EFI suck sooo bad.... -> enabled booting UEFI now
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<eliasp> EFI takes a bit to getting used to, but I wouldn't want to miss it anymore (handling wise)
<toppler> I've been using nix for haskell packaging exclusively for a while now, and missed out on this "new-build" stuff. It looks really cool, assuming I understand it. Are there any proposals for getting the same flexibility entirely in nix?
sir_guy_carleton has joined #nixos
<eyjhb> eliasp: does it actually add anything usefull for you? :)
jomik__ has quit [Quit: Page closed]
Mr_Keyser_Soze has quit [Quit: Leaving]
<eliasp> eyjhb: yes: not having to fiddle with a bootloader anymore - it simply works ;)
<samueldr> can't do Legacy MBR boot on AArch64
Mr_Keyser_Soze has joined #nixos
<samueldr> :3
<{^_^}> [nixpkgs] @ottidmes opened pull request #51797 → allow extending lib with an overlay → https://git.io/fp9gb
<eliasp> also having a proper interface to the bootloader (e.g. through bootctl) is the cherry on the cake
<samueldr> UEFI isn't comparable entirely to Legacy boot, Legacy boot is *really* sucklessish, with the same kind of drawbacks
detran has joined #nixos
<samueldr> (or advantages)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> on platforms which don't have a locked-down-and-signed UEFI, it's entirely plausible to have the firmware of the machine do more complex things, e.g. read an ext4-formatted ESP, by adding the drivers to the firmware
<eyjhb> I still hate it with my whole heart.. Because it never works for me
<jomik> infinisil, samueldr: Sorry, didn't see that you replied because I decided to reboot my computer :P I was looking at the kde module, but it is rather large and I am not into the swing of things - I suppose I can open an issue and some clever person will say if it is a bug or not... :D
aleph- has quit [Ping timeout: 250 seconds]
epicmetal has joined #nixos
<infinisil> jomik: That's alright too :) I'm not experienced with kde at all myself
<{^_^}> [nixpkgs] @flokli merged pull request #51746 → ghostscript: 9.25 -> 9.26 → https://git.io/fpSQ1
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fp92I
rawreraw has quit [Ping timeout: 252 seconds]
<eyjhb> samueldr: soooo... Pray that this works
<{^_^}> [nixpkgs] @markuskowa merged pull request #51793 → linuxPackages.virtualboxGuestAdditions: fix hash → https://git.io/fp9Ex
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fp923
<eyjhb> Awweeesssooooome! Now Vbox will actually compile
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
<eyjhb> samueldr: it works!
vk3wtf has quit [Ping timeout: 252 seconds]
agander_ has quit [Ping timeout: 240 seconds]
<samueldr> nice
<{^_^}> [nixpkgs] @flokli opened pull request #51799 → ghostscript: 9.25 -> 9.26 → https://git.io/fp92R
<eyjhb> Thanks for your help :)
<{^_^}> [nixpkgs] @markuskowa merged pull request #51791 → borgbackup: 1.1.7 -> 1.1.8 → https://git.io/fp98u
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/fp92g
pie__ has joined #nixos
pie___ has quit [Remote host closed the connection]
rhalff has quit [Remote host closed the connection]
jomik has quit [Quit: Page closed]
<ivan> how do I get Hydra to do `nix sign-paths --all --key-file /secrets/hydra/secret` for me automatically? (do I need to?)
<ivan> (why aren't things signed when they land in /nix?)
<ivan> I have store_uri = file:///var/lib/hydra/cache?secret-key=/secrets/hydra/secret
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #51801 → nixos: kubernetes: use /run instead of /var/run → https://git.io/fp9al
<ivan> ah yes I'm starting to see why
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<ivan> I just need to serve /var/lib/hydra/cache with any HTTP server
aleph- has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #51799 → ghostscript: 9.25 -> 9.26 → https://git.io/fp92R
<{^_^}> [nixpkgs] @flokli pushed 2 commits to release-18.09: https://git.io/fp9aV
hamishmack has joined #nixos
<__monty__> How can I pass options to the interpreter I want to use with #! nix-shell?
tmplt has joined #nixos
Mr_Keyser_Soze has joined #nixos
<ottidmes> __monty__: is that not just described on the man page, or do you mean something else?
<hyper_ch> how can I package a single perl script into a nix package? writescriptbin seems not to be an option because (a) the script is located remotely (b) I need to change a few things
<ottidmes> hyper_ch: like any derivation I suppose, the remote script as a src, and patches/patchPhase to fix it?
<hyper_ch> ottidmes: the problem that they all want to unpack it and since it's just a script, it can't be unpacked
<__monty__> I'm using nix-shell -i runghc currently. I want to pass options to runghc but nix-shell thinks they're meant for it.
<__monty__> I actually want to go a step further now and use `env GHCRTS=... runghc` as the interpreter. Since +RTS ... -RTS won't work with runghc.
<ottidmes> hyper_ch: overwrite the unpackPhase?
<ottidmes> hyper_ch: or just specify the phases you are interested in
<hyper_ch> ottidmes: how? this is what I have so far.... https://paste.simplylinux.ch/view/be14b88d
<ottidmes> __monty__: maybe you find this interesting: https://github.com/bennofs/nix-script
imdoor has quit [Quit: imdoor]
<__monty__> ottidmes: Looks like it might work. I expected nix-shell -i had superceded that though : /
vk3wtf has joined #nixos
<ottidmes> hyper_ch: interesting question, never ran into it before, I tried just setting unpackPhase = ""; and unpackCmd = ""; but neither worked
halfbit has quit [Ping timeout: 252 seconds]
<hyper_ch> ottidmes: yeah, same here.... I need to replace parts of the script to make it agnostic - so writescriptbin is not what I can use....
<hyper_ch> I also tried unpackPhase = false; didn't like that either
juhe has left #nixos ["Leaving."]
<hyper_ch> it's a very special problem.... or does writescriptbin has ways to get the source from remote and alter it before it's actually written to file?
<ottidmes> hyper_ch: phases = [ "installPhase" ]; this works
<hyper_ch> ottidmes: awesome, thanks :)
<joepie91> what's the easiest way to package a Python application in an overlay? the nixpkgs manual seems very specific to libraries
<ottidmes> you get other errors, but those are unrelated to the question at hand
<hyper_ch> ottidmes: I know :) I was just trying to write an expression and got stuck on that first
simukis has quit [Quit: simukis]
<hyper_ch> now, when I get back from my vacation, I can work on it again :)
<symphorien> hyper_ch: the right way is unpackPhase = ":";
<hyper_ch> symphorien: why that and not phases = [ "unpackPhase" ]; ?
<symphorien> also with phases = [ "installPhase" ]; you lose the phase with patchShebang
<symphorien> add perl in buildInputs and the fixupPhase will fix the shebang for you automatically
<hyper_ch> symphorien: can't you just add patchshebang also to the phases?
<symphorien> there are many such niceties, you can't think of all of them
<ottidmes> symphorien: cool, so it checks for being empty, kinda makes sense
<symphorien> so in fact, make unpackPhase a noop and be done with it
<hyper_ch> thx symphorien and ottidmes
jackdk has quit [Remote host closed the connection]
<hyper_ch> symphorien: why use ":" and not ";" ?
<symphorien> you can use "true" if you prefer
<symphorien> : is a bash keyword specifically designed to be a noop
<hyper_ch> thanks
<symphorien> so it kinda makes sense, but you don't have to use it
<hyper_ch> thx
Synthetica has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1a5d5a570bb (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
Rusty1 has joined #nixos
<ottidmes> joepie91: maybe ldlework can help you, he seems to do a lot of Python and is using Nix to package some
m0rphism has joined #nixos
marusich has quit [Quit: Leaving]
gfv has joined #nixos
silver has quit [Quit: rakede]
<gfv> Cheers! Nixpkgs commit 162914742327002d49bd1dde424d399842ff7b5f has introduced a regression, and openjdk-11 would not build on amd64 platforms with the 'minimal' option, because optional configure flags would interpolate into "--with-jvm-features=zgc--enable-headless-only". What's the proper way to fix this on my local system (I know it's a matter of a \n, but what's the proper way to modify my local
<gfv> nixpkgs?), and how do I fix the nixpkgs to make sure nobody else gets bitten by this?
<gfv> I mean that's what I get for trying the unstable channel, right? :)
jackdk has joined #nixos
hedning has quit [Quit: hedning]
<flokli> gfv: basically, you file a PR against the nixpkgs repo, adding a whitespace after zgc\" . To fix it locally, you could would need to use overrideAttrs to override preConfigure with the fixed variant
<makefu> gfv: there are a couple of ways to handle it. first thing would be to open a PR and ask here to get a review to speed up the PR process. in the meantime until it arrived in the binary cache you can either clone nixpkgs on your own system and set the NIX_PATH=nixpkgs=/path/to/your/checkout where you fixed the code or you could use overrideDerivation
<makefu> flokli was faster
<flokli> :-)
<{^_^}> [nixpkgs] @Mic92 opened pull request #51802 → perl: perl-cross archive to fix perl build → https://git.io/fp9w9
<{^_^}> [nixpkgs] @eliasp opened pull request #51803 → networkmanager: allow `iwd` as Wi-Fi backend → https://git.io/fp9wd
<{^_^}> [nixpkgs] @rht opened pull request #51804 → git: 2.19.2 -> 2.20.0 → https://git.io/fp9rv
<bgamari> does anyone have a good example of an aarch64 machine configuration?
elgoosy has quit [Ping timeout: 240 seconds]
<bgamari> it seems to be remarkably difficult to override things like the platform's kernelTarget
<bgamari> it feels like I must be doing something wrong
vk3wtf has quit [Ping timeout: 252 seconds]
<hyper_ch> what's anaarch64 machine?
<samueldr> bgamari: is that for cross-compiling and/or nixops?
<bgamari> samueldr, neither
<samueldr> because when not cross-compiling, (and I'm not using nixops) I don't have anything weird to do?
<bgamari> running on real hardware
<bgamari> hyper_ch, a MacchiatoBin
<hyper_ch> no idea what thatis
<samueldr> oh neat
<samueldr> bgamari: then is it right to assume it's related to compiling their downstream kernel?
<bgamari> samueldr, correct
<bgamari> which I indeed have working
<samueldr> no experience with marvell-based kernels/forks :/
<bgamari> but it seems the default aarch64 configuration is to produce a standard Image kernel
<{^_^}> [nixpkgs] @Mic92 merged pull request #51802 → perl: update perl-cross archive → https://git.io/fp9w9
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fp9rE
<bgamari> whereas I need a uImage
* bgamari is trying to set nixpkgs.localSystem to override kernelTarget
<bgamari> but it seems to make no difference whatsoever
vk3wtf has joined #nixos
epicmetal has quit [Quit: epicmetal]
hakujin has quit [Ping timeout: 244 seconds]
epicmetal has joined #nixos
<samueldr> I don't really know how those platform things work, but I probably need to for something; can you share notes when you solve this bgamari?
<bgamari> sure
<samueldr> (I remember having issues with kernel builds for mobile-nixos which I just avoided by doing dirty things in the derivation)
<bgamari> I'll likely just throw the whole configuration in a repo
<samueldr> (related to kernelTarget)
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
betaboon has quit [Quit: WeeChat 2.2]
rprije has joined #nixos
<gfv> is there a proper way to build packages on-demand on a remote server? I have a pocket calculator-grade cpu in my laptop, and I'd much prefer if packages not yet in binary caches were built on my desktop
epicmetal has quit [Quit: epicmetal]
epicmetal has joined #nixos
<ivan> why would nix-shell oddly decide to build everything even though I have working substituters configured?
<ivan> ah I see it was using a channel instead of the path I gave
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fp9oE
<{^_^}> [nixpkgs] @Mic92 merged pull request #51785 → vimPlugins: Update → https://git.io/fp9cp
<gfv> symphorien: I should've read the whole nix manual :(
__monty__ has quit [Quit: leaving]
cyounkins has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andir opened pull request #51805 → [18.09] rust-cbindgen: 0.6.2 -> 0.6.7 → https://git.io/fp9or
<{^_^}> [nixpkgs] @rasendubi merged pull request #51719 → postgresql: Build with icu support → https://git.io/fpSEi
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fp9oX
hakujin has joined #nixos
mkoenig has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #51534 → bowtie2: fix missing dependencies → https://git.io/fpXqT
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fp9ob