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
cnidario has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @markuskowa closed pull request #53036 → udev rules to support U2F security keys → https://git.io/fhIQF
waif has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 246 seconds]
<makefu> schopp0r: yes, assembly is still crowded
<{^_^}> https://github.com/NixOS/nixpkgs/pull/49275 (by tazjin, 9 weeks ago, open): Add generated documentation for library functions
<tazjin> cc gchristensen ^
<tazjin> instead of checking in the docs, this adds the function doc generation to the manual build process
<tazjin> as `nixdoc` is in nixpkgs this was relatively trivial
<infinisil> tazjin: Ohh neat, so we don't need the generated files in git even?
<tazjin> yep
<tazjin> gonna open an alternative PR for this
<tazjin> are you at 35C3?
alex`` has joined #nixos
<infinisil> I'm personally not sure what's the point of having them in git anyways. You can't render them directly, they need to go through a render process anyways
<infinisil> I'm not
Notkea has quit [Read error: Connection reset by peer]
Notkea has joined #nixos
<tazjin> gonna open an alternative PR
<tazjin> oh I already said that
<tazjin> 😌
<infinisil> tazjin: (The spacing in installPhase needs some >>'s)
<{^_^}> [nixpkgs] @tazjin opened pull request #53055 → Add automatic generation of library function documentation → https://git.io/fhLqP
<infinisil> Oh, you're an emacs user, um, *Needs some <whatever the action is to indent strings to the right in emacs>'s
<tazjin> done :)
alex`` has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos
<infinisil> tazjin++
<{^_^}> tazjin's karma got increased to 1
pie_ has quit [Ping timeout: 244 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
imdoor has quit [Quit: imdoor]
m15k has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53057 → gcc: 7.3 -> 7.4 → https://git.io/fhLmL
<ghostyy> how do i use an unstable package in a declarative nixos container?
<ghostyy> steam is working in the latest git but my container is on the stable branch
<m15k> Hi. I guess I got a noob question: When I configure "services.httpd.enable = true;" is apache httpd installed after a rebuild or is it already present?
<ghostyy> you gotta nixos-rebuild switch
<ghostyy> then itll start it after the switch
<m15k> But it apache httpd already installed?
<m15k> Or does the configuration trigger the installation.
<{^_^}> [nixos-homepage] @Anton-Latukha closed pull request #162 → Add link to Matrix room → https://git.io/fhLmO
<ghostyy> when you do the switch itll fetch apache and then start it, you wont have it in the store until you rebuild
<ghostyy> just changing the configuration.nix doesnt change anything until you do a rebuild
<m15k> Yeah. I got that. Thanks.
hiroshi has quit [Ping timeout: 268 seconds]
<infinisil> ,unstable ghostyy
<infinisil> The very same works with container configurations
<ghostyy> ahhhh thank you!!
<ghostyy> i was googling about the allowunfree error
<ghostyy> this is very helpful
<samueldr> ,allowUnfree
<samueldr> :)
<samueldr> ah
<samueldr> ,unfree
<{^_^}> You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
_0mpts has left #nixos [#nixos]
thc202 has quit [Ping timeout: 244 seconds]
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu> Hi! How can I clean my `nix-shell` after removing `buildInputs`?
dermetfan1 has quit [Ping timeout: 244 seconds]
<selfsymmetric-mu> Let's say I have `pipenv` in my `shell.nix`'s `buildInputs` declaration. Then I remove it. I now would like future invocations of `nix-shell shell.nix` to NOT have `pipenv`.
<ldlework> Has anyone heard of nxvida-xrun?
vidbina has quit [Ping timeout: 268 seconds]
<the-kenny> selfsymmetric-mu: They won't. You're likely nesting shells, try opening a completely new terminal emulator or exiting the current shell by typing `exit` or Ctrl-D :)
<samueldr> it might be possible, too, that it's a propagated dependency
<selfsymmetric-mu> Confirmed. Second hard problem: cache invalidation. Thank you!
<selfsymmetric-mu> I think eshell isn't respecting my `exit`s for some reason.
<ghostyy> you might like multi-term, thats what i use
<selfsymmetric-mu> Opening an external shell behaved as expected, with pipenv no longer being available.
<iqubic> I am wondering if could get some help figuring out how to link nix, emacs, and haskell.
<iqubic> I have this issue where I'm finding it nearly impossible to get emacs to find the haskell libraries I have installed via nix.
iyzsong has joined #nixos
<ghostyy> do any of you have any tips on running multiple xorg instances? (or, running xorg via startx)
<{^_^}> [nix] @bhipple closed pull request #1758 → Add CentOS 7.4 builds for 1.11-maintenance nix → https://git.io/vbHih
<ghostyy> i like to run video games and etc in a different xorg from my regular one
<ghostyy> https://nixos.wiki/wiki/Using_X_without_a_Display_Manager i tried this but it didnt work very well
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
pie_ has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
init_6 has joined #nixos
<iqubic> Anyone able to help me with my issues?
<iqubic> johnw: Are you around?
pie_ has joined #nixos
Church_ has joined #nixos
<Ankhers> I've just transfered my deployments.nixops file to a new computer and I need to make some adjustments to the file paths. What are my options to doing this?
<infinisil> Ankhers: Define "some adjustments"
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #52783 → sweethome3d: 5.4 -> 6.0 → https://git.io/fhUat
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @tex to master « sweethome3d: 5.4 -> 6.0 (#52783) »: https://git.io/fhLY3
<Ankhers> I'm moving from mac to nixos. Mac uses /Users/<username> and linux users /home/<username>. The rest of the structure is the same.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhLYZ
<{^_^}> [nixpkgs] @KAction opened pull request #53058 → ###### Things done → https://git.io/fhLYn
<infinisil> And what has this to do with nixops?
<pie_> clever, avn, do you have any ideas?: I have an overlayfs and I can create files in it but i cant modify any files that already exist, they have write permissions according to ls
<clever> dont know about that
<pie_> ummm
<pie_> actually i think i just got it to work but weird things are still happening
m15k has quit [Ping timeout: 256 seconds]
<pie_> for some reason nano was saying "file is not writeable" but when i actually try to save it, it works
<Ankhers> infinisil: nixops no longer knows how to find the files because of the incorrect paths.
<pie_> ^thisis after chmoding the "work" directory 777 as a horrible hack because i read something somewhere that permissions on that might cause problems
<ghostyy> how do i override a setting? i want to override something defined in a package: error: The unique option `services.xserver.displayManager.job.execCmd' is defined multiple times, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/display-managers/slim.nix' and `/etc/nixos/configuration.nix'.
<pie_> man this is messy. i should try unionfs, cant be any worse than this :p
<elvishjerricco> Ankhers: Can't you just use nixops modify to fix the paths manually?
<infinisil> Ohh I see, you meant that
<infinisil> Ankhers: Always post the error when you have one and are asking for advice on how to fix it..
<Ankhers> I didn't have an error. I hadn't tried to deploy it because I knew it would not work.
<Ankhers> elvishjerricco: Trying now.
<{^_^}> [nix] @0mp opened pull request #2607 → Remove some bashisms from configure.ac → https://git.io/fhLYB
<infinisil> ,smart-questions
ftxqxd has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
hiroshi has joined #nixos
<iqubic> Well, this is weird:
<iqubic> error: value is a function while a set was expected, at /home/avi/hs/math/shell.nix:1:1
eadwu has joined #nixos
<iqubic> So I can't call nix-shell
<samueldr> is it a list? function calls in lists have to be enclosed in parens
<samueldr> > let x = a: a; in [ x 1 ]
<{^_^}> [ <CODE> 1 ]
<samueldr> > let x = a: a; in [ (x 1) ]
<{^_^}> [ <CODE> ]
pie_ has quit [Ping timeout: 272 seconds]
<samueldr> iqubic: recheck your shell.nix dump
<samueldr> and default.nix
<iqubic> right.
<iqubic> Those are the wrong files/
<samueldr> still not right
<iqubic> duhhh
<iqubic> And I can't call nix-shell
<iqubic> samueldr: can you help me out here?
<samueldr> iqubic: let's try something: can you tell me what's the type of the nix expression `(import ./.)` (so without .env) in your shell.nix?
<iqubic> No.
<iqubic> I don't know the type of that.
<iqubic> Do you know what's wrong here? Are you just trying to teach me so I don't make these sorts of mistakes again?
<samueldr> I'm not sure what you're trying to achieve, but I know what's wrong
<samueldr> okay, (import file) will be the expression in the file imported, so if you have a file with `1` in it, it's going to be a number, the value 1.
<samueldr> importing a folder appends `default.nix` to the path; and here `import ./.` imports the folder relative to the file shell.nix
<samueldr> so the type of (import ./.) is whatever is in default.nix
<samueldr> in your default.nix, you have a callPackage-style derivation defined; they are functions
<iqubic> I want to be able to bea able to call nix-build and nix-shell, and have them both work, without having to maintain the same file twice.
<iqubic> samueldr: My default.nix was created by cabal2nix, just now.
eadwu has quit [Quit: WeeChat 2.3]
<samueldr> in the error message you get "value is a function while a set was expected" "function" is the value to the left of the dot; a dot is an operator to select attributes in attrsets
<iqubic> Huh???
<iqubic> I think the issue here is that cabal2nix just failed to work properly.
<iqubic> samueldr: Do you know what I should do here?
<samueldr> I don't; never used cabal2nix
<iqubic> Weird.
<iqubic> Yeah, I know.
<srk> default.nix calls <project-name-generated-by-cabal2nix>.nix
<iqubic> Yeah, I feel stupid.
<{^_^}> [nixpkgs] @schmittlauch opened pull request #53059 → kcharselect: initial packaging → https://git.io/fhLYA
<Church_> Hey how would I flush the dns chache nix?
<iqubic> I was using cabal2nix, but I accidentally overwrote the default.nix
<Church_> on nix.*
<iqubic> I feel stupid.
<Church_> Do we use openresolver?
<Church_> As standard.
<samueldr> Church_: I think it's nscd that's used
worldofpeace has joined #nixos
<Church_> Should a restart do it>
<Church_> it?*
<samueldr> I think so, from a quick googling
eadwu has joined #nixos
<iqubic> srk: What editor do you use for writing haskell code?
<Ankhers> Trying to run a nixops deploy after migrating my deployment file to a new host. I'm now getting an error. https://gist.github.com/ankhers/a53d7f31f6eb6c9901e6ad837263f0a4 is the error I am getting.
<infinisil> Ankhers: Use nixopsUnstable, there's a bug with newer nixpkgs versions
<infinisil> There's an issue about it somewhere in the nixops repo
<Ankhers> infinisil: Thanks. That seemed to have worked.
<srk> iqubic: vim :)
<iqubic> Do you have any autocomplete features enabled?
<worldofpeace> We should just make nixops be the same as nixopsUnstable until it's fixed on master.
<iqubic> Is vim able to find the haskell libraries that are installed via nix?
<srk> not really, I've tried before but wasn't happy with completions
<{^_^}> [nixpkgs] @schmittlauch opened pull request #53060 → kcharselect: backport v18.08.0 to stable → https://git.io/fhLOk
<infinisil> worldofpeace: Yeah agreed..
<iqubic> I'm using emacs, and I cannot for the life of me get emacs to find the libraries installed via nix.
<infinisil> worldofpeace: Well ideally a new stable nixops version would be best
<srk> there was https://github.com/begriffs/haskell-vim-now but as README says it's broken now
<infinisil> Not sure why that hasn't happened yet
<iqubic> Ah.
<iqubic> srk: My issue is that the syntax checker I have installed is telling me that it can't find the modules that I have installed via nix.
<srk> do you know ghcid?
<iqubic> Like it throws a red line under the import and says: module not found or something like that.
<iqubic> srk: what is ghcid?
<worldofpeace> infinisil: I agree, but it would ease the pain. I don't think anyone should have to dig github just to get things going again
<srk> you can run ghcid in project dir to automatically recompile on file saves
<iqubic> srk: do you have a guide for it?
<srk> it tells you if there's an error, run it alongside an editor to have sort of an ide
<iqubic> Is there an emacs interface for it.
<iqubic> ???
<srk> you can just add ghcid to your project deps while developing, then nix-shell into it
<srk> no, you run it in a terminal, you can run terms in emacs right
<iqubic> I can run a terminal in emacs, yeah.
<{^_^}> [nixpkgs] @dtzWill opened pull request #53061 → nghttp2: 1.35.0 -> 1.35.1 → https://git.io/fhLOO
<iqubic> Not sure I really know how ghcid works though.
<srk> it just reads cabal file
<clever> iqubic: one sec
<clever> this shell.nix overrides the project, that can be used to add ghcid to the deps
<iqubic> Huh?
<clever> then `ghcid -c "runhaskell Setup.hs repl"`
<clever> `runhaskell Setup.hs` == cabal
<iqubic> I'm working on my own haskell project.
<clever> `cabal repl` runs ghci, with the flags defined in your cabal file
<iqubic> I'm not sure why I'd want to change my shell.nix
<clever> and `ghcid -c "foo"` will run foo to get a ghci, then :r automatically for you
<iqubic> I know what `cabal repl` does.
<clever> you only need to change shell.nix if you dont want ghcid installed
<iqubic> clever: Do you use emacs, or not?
<clever> vim
<iqubic> I see.
<iqubic> So why do you use ghcid?
jperras has joined #nixos
jperras has quit [Client Quit]
ftxqxd has quit [Ping timeout: 268 seconds]
<clever> iqubic: ghcid will :r the repl automatically every time a file is modified
<clever> and then show the errors/warnings
<iqubic> I see.
pie_ has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<iqubic> I mean, there is a emacs thing called haskell-mode, but I'm not sure that will work with nix.
pie_ has quit [Remote host closed the connection]
simukis has quit [Quit: simukis]
<iqubic> So I found a thing that seems to be an integration of ghcid and emacs.
<iqubic> I took one look at the readme and was disappointed: "This code also assumes that stack is installed, which maybe isn't a great assumption."
ddellacosta has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
<iqubic> Well, I don't think that will work with nix.
simukis has joined #nixos
fusion809 has joined #nixos
simukis has quit [Client Quit]
Ankhers has quit [Quit: ZNC 1.6.6 - http://znc.in]
Ankhers has joined #nixos
ddellaco_ has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53058 → hub: 2.6.1 -> 2.7.0 → https://git.io/fhLYn
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhLOz
ddellacosta has quit [Ping timeout: 250 seconds]
<iqubic> So I was doing some research and found this: https://github.com/travisbhartwell/nix-emacs
<iqubic> If you scroll down to the bottom of that, then you see that it has support for nix + emacs + haskell
<iqubic> It might work.
ddellaco_ has quit [Remote host closed the connection]
Church_ has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 246 seconds]
hamishmack has joined #nixos
ddellacosta has joined #nixos
<DigitalKiwi> iqubic: if you use the setup in the github repo I linked a few days ago it sets up the environment such that everything works
<DigitalKiwi> https://github.com/cmk/example-nix this one for instance and the parent it's forked from and also others i'm sure...
justanotheruser has joined #nixos
<iqubic> DigitalKiwi: Does that give me an emacs setup?
<iqubic> DigitalKiwi: I have a way to get nix to build my projects. That's really not the issue.
<DigitalKiwi> it works well with emacs it has sections explaining how
psy3497 has joined #nixos
<DigitalKiwi> that's why i use it
<iqubic> The issue is getting emacs to be able to find symobls and function and such defined in modules living inside of libraries installed by nix.
<psy3497> Anyone knows if there is a way to force nix-build to build something even though it already exists in the nix-store?
<psy3497> I built it without sandbox before, but now I want to build it with sandbox enabled.
<psy3497> But it's already in the store, and it is rooted as it's part of my NixOS configuration.
<DigitalKiwi> really the whole reason i use that is to make it work with emacs >.>
<iqubic> DigitalKiwi: I'm currently using the shell.nix and default.nix from this: https://github.com/sorki/haskell-project-template
<psy3497> I feel that it's awkward to remove it from my NixOS configurtion then switch to it then garbage collect, just to get rid of it in the store so that I can test building it in a sandbox.
<iqubic> I'm not sure how easy it will be to convert my *.nix files to the format used in example-nix.
<DigitalKiwi> i tear out all of the extra stuff like docker and stack
<iqubic> Yeah, I'll be doing that too.
<DigitalKiwi> iqubic: that's what i was using too
<iqubic> Oh. But now you do something else?
Church_ has joined #nixos
<DigitalKiwi> i use the thing i linked
<iqubic> Can you help me convert my set-up to one that will work with those tools?
<DigitalKiwi> i've tried lots of things
<iqubic> And that seems to work well for you?
<srk> I would test if mine works with stack but it wants to download ghc :P
<srk> but it should
<iqubic> I don't use stack.
<iqubic> I use cabal2nix and these files:
<DigitalKiwi> so far it's been fine
<worldofpeace> psy3497: maybe try `nix-build blahblah --check`?
<iqubic> But I'm not sure how to get emacs integration when using those two files.
worldofpeace_ has joined #nixos
orivej has joined #nixos
<iqubic> DigitalKiwi: Can you help me?
<DigitalKiwi> i'm not very good at anything
worldofpeace has quit [Quit: worldofpeace]
<iqubic> But you managed to get emacs integration with what you use. So you must be able to do that.
<DigitalKiwi> i read the readmes ;p
<iqubic> Blerg... example-nix tells me to use dante.
<iqubic> I spent the past 2 days trying to get dante to work for me, and it just didn't.
<DigitalKiwi> i use dante
<DigitalKiwi> that's why i use this setup, it works with dante
<DigitalKiwi> everything else didn't
<iqubic> And does it correctly find the libraries installed via nix?
<psy3497> worldofpeace: thanks I used that, seems to be fine. (I'm surprised I could not find --check in the nix-build man page...)
<iqubic> My main issue is that I'd load up a haskell file, dante would kick in, and I'd get red lines under my imports telling me that those imports were invalid.
<iqubic> Despite them being picked up if I launch nix-shell and then run ghci in nix-shell.
<iqubic> DigitalKiwi: Do you use projectile?
<iqubic> Is that how the project root is found for you?
<DigitalKiwi> idk
<iqubic> DigitalKiwi: One question at a time then. Do you use Projectile?
<DigitalKiwi> idk
nDuff has joined #nixos
<iqubic> Alright then. I'm really not sure how you got dante to work for you.
<DigitalKiwi> i added the emacs config from the readme, so probably?
<iqubic> Do you have a link to the stuff you added?
<iqubic> I'm not able to find the emacs config.
ddellacosta has quit [Remote host closed the connection]
<iqubic> And that works for you?
<iqubic> You added exactly that, with no modifications at all?
socksy has joined #nixos
<DigitalKiwi> man i'm not the one that doesn't have working stuff why am i answering questions
<nDuff> If I want to be able to use a file within the output from another derivation anywhere I'd use a derivation, is there any nixpkgs standard-library tooling or builtin that's appropriate? I'm thinking of something like fileFrom: source: path: runCommand (baseNameOf path) { inherit source path; } 'ln "${source}/${path}" "$out", but that seems awfully silly, plus it doesn't actually work unless I can strip the context off of (baseNameOf path).
<DigitalKiwi> https://dpaste.de/9Trw this is my packages.el i use doom
<iqubic> DigitalKiwi: Your system works and mine doesn't. We're using mostly the same set-up, so it should *just work* for me. I'm mostly trying to figure out where our set-ups differ.
<iqubic> So, because that doesn't give you any errors I am forced to assume you are using projectile.
shibboleth has quit [Quit: shibboleth]
eadwu has quit [Quit: WeeChat 2.3]
sir_guy_carleton has joined #nixos
eadwu has joined #nixos
<iqubic> DigitalKiwi: One last question, and then I will stop berating you. Do you have to run emacs through a nix-shell in order to get this stuff to work?
* nDuff discovers that builtins.unsafeDiscardStringContext is a thing that exists.
<gchristensen> nDuff: oh dear :)
<DigitalKiwi> on the projects i use that setup for i run it from nix-shell yes
<DigitalKiwi> that's the whole point of it
<iqubic> Right... Well I really don't want to do that.
<DigitalKiwi> ok
<iqubic> I don't like running my editor from inside a nix-shell
<iqubic> especially because I'm using emacs as my window manager: https://github.com/ch11ng/exwm
<iqubic> Since I already have emacs running all the time, it seems really really pointless to run *another* instance of emacs.
<wedens> you can use direnv, I think
<iqubic> I do that.
<iqubic> It doesn't actually work for me.
DigitalKiwi has quit [Quit: ZNC 1.6.1 - http://znc.in]
<iqubic> wedens: Actually, can you tell me how to get direnv working?
<iqubic> Because I just ran a check of the files in my ~ dir, and I'm not actually sure if I'm using direnv or not.
<samueldr> worldofpeace_: what am I missing?
<worldofpeace_> samueldr: both of those happened on master today
<samueldr> oh
<worldofpeace_> I merged the latter a bit ago with no conflicts or idk
<worldofpeace_> Oh wait now I get it
<iqubic> So how does one get direnv to work with nix?
<iqubic> I think I can just put use_nix into the right file, but IDK which file is the right one.
<iqubic> The medium article you just posted says that .envrc is the right file.
<iqubic> I'm not sure what to believe now.
<wedens> ~/.direnvrc is a file with a function. and `.envrc` is a file with `use nix`
<wedens> you need both
<iqubic> I see.
<iqubic> And what function do you recommend I put into .direnvrc?
<wedens> I've linked it above. it's under "Persistent cached shell" heading
<iqubic> wedens: How do I test direnv to make sure that it is working properly?
<{^_^}> [nixpkgs] @talw opened pull request #53062 → dropbox: 55.4.171 -> 63.4.107 → https://git.io/fhL3V
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53014 → urn: 0.7.1 -> 0.7.2 → https://git.io/fhIsQ
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhL3r
<wedens> iqubic: the same way you'd test nix-shell, basically
<wedens> open a directory and check environment/dependencies
<wedens> directory with `.envrc`, obviously
<wedens> btw, you can put a function directly in `.envrc` (see https://gist.github.com/ejpcmac/d9ecbfcb9c579e87de52b89a2b4e39d9)
<iqubic> I need a .envrc in each and every directory I want direnv to work in?
<iqubic> Can't I just put the file into my $HOME dir and then let all my projects inherit from there?
nDuff has quit [Quit: zzz]
<psy3497> Anyone knows what is the difference between, say `nixpkgs` repo's `release-18.09` branch and `nixpkgs-channels` repo's `nixos-18.09` branch?
lassulus_ has joined #nixos
<wedens> iqubic: .envrc in $HOME defeats the purpose of direnv. you create `shell.nix` per-project, and `envrc` is used the same way
<samueldr> psy3497: release-18.09 is akin to a work branch, this is where the maintainers push updates to be built by hydra, then when hydra finishes a build, the channel scripts updates the nixpkgs-channels repo to point to that updated revision
<samueldr> (roughly simplified)
<psy3497> samueldr: I see. So if getting nixpkgs for my NixOS configuration I should use `nixpkgs-channels` repo, but when doing PRs I should work on `nixpkgs` repo
<psy3497> samueldr: Thanks!
<samueldr> yeah, nixpkgs-channels is a read-only representation of the channels
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
<{^_^}> [nixpkgs] @worldofpeace closed pull request #52862 → zafiro-icons: 0.7.7 -> 0.7.8 → https://git.io/fhTvm
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52858 → hyper: 2.0.0 -> 2.1.0 → https://git.io/fhTeM
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhL3Q
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52952 → pythonPackages.dependency-injector: 3.14.2 -> 3.14.3 → https://git.io/fhThL
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhL3x
eadwu has quit [Ping timeout: 250 seconds]
socksy has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52811 → picard: 2.0.4 -> 2.1 → https://git.io/fhUDC
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhL3j
<{^_^}> [nixpkgs] @danielfullmer opened pull request #53063 → k2pdfopt: 2.42 -> 2.50 → https://git.io/fhLsv
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53012 → Couple of media conteiner descriptions → https://git.io/fhIYE
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fhLsU
eadwu has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<siraben> is it possible to do continuous integration with Nix?
<siraben> Perhaps through Travis
Rusty1 has quit [Quit: Konversation terminated!]
worldofpeace_ has quit [Ping timeout: 244 seconds]
<simpson> siraben: Travis integration is straightforward. There's also Hydra, ofborg, Cachix, and others, depending on the features you need from a CI solution.
<simpson> siraben: Have you read https://docs.travis-ci.com/user/languages/nix yet?
rprije has quit [Ping timeout: 268 seconds]
<wedens> is it possible to modify some configuration file without copy/pasting it and modifying? e.g. in ansible or shellscript I'd just run `sed`. what's the nixos way?
<simpson> wedens: Usually, find what generated the configuration, and modify *that* and then nixos-rebuild or similar. Sometimes it may indeed come down to calling sed or similar in a derivation. What are you working on?
<siraben> simpson: ah, no. Thanks for the link
ddellaco_ has joined #nixos
<simpson> siraben: No worries. The biggest problem on Travis that's not well-documented is timeouts due to large builds. Nix can't help get around Travis's build timers.
<wedens> simpson: I'd like to disable some pulseaudio modules in /etc/pulse/default.pa. not just unload, but completely avoid loading them
<wedens> simpson: there is `hardware.pulseaudio.configFile` option that provides the file. it uses the file from the package by default which I'd like to modify
ddellacosta has quit [Ping timeout: 244 seconds]
<simpson> Ah, I see. And the problem's not in the Nix part of the config, but in that upstream-provided config.
<wedens> yeah. basically, I'd like to patch pulseaudio without rebuilding
eadwu has quit [Ping timeout: 252 seconds]
hellrazor has quit [Quit: WeeChat 2.3]
<wedens> should I create a derivation that depends on pulseaudio, does the patching, and use my derivation in `hardware.pulseaudio.package`?
<siraben> simpson: now I gotta figure out how to get my emulator signal that the tests have failed
<wedens> or is there some more ad-hoc way to do that?
<simpson> > runCommand "patch-pa" {} "${gnused}/bin/sed -e ... <${pulseaudio.src}/etc/pulse/default.pa >$out"
<{^_^}> "<derivation /nix/store/i9dnmilmjz2zp37vqpcb33qz9dba2q82-patch-pa.drv>"
<simpson> wedens: ^^ something like this, I think. Haven't tested, very messy, just an idea.
<siraben> simpson: if you do a pull you should see that OS boots up and reports if the tests succeeded or not
* simpson discount clever
<siraben> But it's not a CLI
<simpson> siraben: Mm, you'll have to overcome that problem, or otherwise have a test harness that can signal failure to Nix.
<wedens> simpson: where do I put that in my nixos config?
* siraben uploaded an image: ima_835585d.gif (90KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/JAibeCEMwGhqlNFRfdzYvTmF >
<siraben> I could attempt to read a memory location that stores the test status, hehe
<simpson> wedens: The idea is that you'd use this for your `hardware.pulseaudio.configFile`. The `runCommand` utility will run sed for us, and we'll feed it the original default.pa from the upstream tarball.
<wedens> simpson: got it. thanks
<siraben> Maybe clever will find a clever way to make GUI tests possible
ftxqxd has joined #nixos
ftxqxd has quit [Quit: leaving]
LysergicDreams has quit [Ping timeout: 250 seconds]
ddellaco_ has quit [Remote host closed the connection]
LysergicDreams has joined #nixos
Church_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #53064 → WIP: EDK2, OVMF.fd: fixes for cross-compilation + dependencies + armv7l → https://git.io/fhLsx
LysergicDreams has quit [Ping timeout: 244 seconds]
ddellacosta has joined #nixos
LysergicDreams has joined #nixos
ddellaco_ has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
ddellaco_ has quit [Ping timeout: 250 seconds]
tdbgamer has joined #nixos
<siraben> simpson: works like a charm right now, will figure out how to get the tests running
<siraben> I think I have to use this emulator https://github.com/KnightOS/z80e
palo1 has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.2]
ddellacosta has joined #nixos
boredom101 has joined #nixos
palo has quit [Ping timeout: 244 seconds]
palo1 is now known as palo
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53065 → Raspberry Pi cross compilation branch → https://git.io/fhLGi
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
boredom101 has quit [Quit: Page closed]
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
LysergicDreams has quit [Ping timeout: 245 seconds]
LysergicDreams has joined #nixos
<iqubic> wedens: I see you said that .envrc in $HOME defeated the purpoe of direnv. Can you tell me why you think that?
<wedens> iqubic: direnv is supposed to be used for per-project environment. you don't need direnv if you have the same environment everywhere
<wedens> unless you treat $HOME as a "project" for some reason
<iqubic> But wouldn't I want to have the "use nix" thing in all of my projects?
<iqubic> What other uses of direnv are there?
<wedens> `use nix` in `.direnv` will use shell.nix from the project
<iqubic> right. which is what I'd want in just about all cases.
<wedens> `use_nix` is just a shell function that looks for .nix files in the current directory
<iqubic> So what should I do?
<iqubic> What goes into my .direnvrc
<iqubic> What goes into my .envrc?
<wedens> create `.direnv` file with `use nix` in project directory. the same way you do with `shell.nix`
<wedens> `.envrc` I mean
<iqubic> And I have one .envrc per project?
<wedens> `.direnvrc` contains definition of use_nix from https://github.com/direnv/direnv/wiki/Nix#persistent-cached-shell
<wedens> yes. .envrc per-project
<iqubic> How many .direnvrc files do I need?
<wedens> one
<iqubic> And I need just on .direnvrc in my $HOME?
<iqubic> I see. Thank you for that.
<siraben> Hi I'm trying to build https://github.com/KnightOS/scas and this is what I have https://gist.github.com/siraben/1cb0bfdb82909ba23940d7019d92e834 , but it doesn't seem to be working
<wedens> yes. single ~/.direnvrc
<siraben> here's the log https://paste.debian.net/1058004/
<siraben> Maybe this is the bad line: /nix/store/6abyjgibafsbhlc7v7lab50mb3dj81jg-bash-4.4-p23/bin/bash: ../generate-tables.sh: /bin/bash: bad interpreter: No such file or directory
<siraben> How do I tell Nix to patch these files?
<wedens> patchShebangs
<wedens> I think it's `patchPhase = "patchShebangs generate-tables.sh"`
tzemanovic has joined #nixos
<wedens> btw, mkDerivation already does archive and you can use `cmakeFlags` for cmake flags
<wedens> * archive unpacking
<wedens> you probably don't need to specify `buildPhase` manually
<wedens> just add `cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];`
<siraben> But still failing, what am I doing wrong?
<siraben> Add that under what?
LysergicDreams has quit [Ping timeout: 268 seconds]
<wedens> siraben: try something like this https://bpaste.net/show/61d050906ac8
ddellacosta has quit [Remote host closed the connection]
Mateon3 has joined #nixos
<Ralith> wedens: isn't Release the default for NixOS's cmake scripts?
<wedens> Ralith: no idea, tbh :)
<siraben> wedens: ok that gets rid of the shebang problems, it's still failing
<Ralith> pretty sure it is
LysergicDreams has joined #nixos
<wedens> siraben: what's the error?
<siraben> wedens: try building it, should be reproducible
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
<siraben> I'll paste too
<wedens> you'll need to disable hardening, I think
palo1 has joined #nixos
<wedens> or patch sources
<wedens> try adding `hardeningDisable = [ "format" ];` to the derivation
<siraben> Amazing, it works!
<siraben> What's hardening do?
<siraben> So now I want to compile https://github.com/KnightOS/z80e which uses scas as a dependency, how should I update my nix build file to reflect this?
<siraben> The compile steps for z80e are just cmake . and make
<wedens> just put `scas` in `buildInputs`: `buildInputs = [ scas ];`
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<siraben> And how to make it run "cmake ." then "make" for z80e?
<iqubic> I assume you can write your own code to run during the compile stage
<wedens> siraben: the same way as with scas
<wedens> no manual cmake/make invocation needed
<siraben> Ok now it works, how do I run the result?
<iqubic> do you have a result symlink?
<iqubic> I think the bin is put into result/bin
<siraben> Yep it's ./result-2/bin/z80e-tui
<iqubic> cool.
<iqubic> Not sure why it's result-2, but that should work.
<siraben> maybe because of the scas dependency
<siraben> Final gist, works!
<iqubic> Does the program run?
<siraben> time to test it with my custom ROM
<iqubic> oh, yeah. If you have to compile scas yourself, then you will windup with two results.
<siraben> oops looks like I needed to add sdl support
<iqubic> won't be too hard to do.
<iqubic> Just add a cmake flag.
<siraben> The flag is -Denable-sdl=YES
<siraben> But I can't find the SDL package
<siraben> I'm adding sdl to my buildInputs list
<iqubic> that'll explain it.
<iqubic> Look at the z80e github page.
<iqubic> yes, that's the way to do it, I think.
<siraben> error: undefined variable 'sdl' at /home/siraben/Documents/scas/default.nix:11:47
<siraben> huh
<iqubic> try it with capitals??? Not sure if that will even work.
<iqubic> Maybe try using sdl2 instead.
<iqubic> IDK what will work.
<siraben> Strangely capitals work
<siraben> haha thanks
<iqubic> yeah. I just went to nixos package repo search and looked for the official package name. https://nixos.org/nixos/packages.html#
<iqubic> Now, does the program compile and run properly?
<siraben> It should open a window with my ROM running, but so far nothing
<siraben> My ROM is correct because it works on another emulator
<siraben> never mind, I was running the wrong binary
<siraben> ./result-2/bin/z80e-tui -d TI84p ~/Documents/zkeme80/forth.rom
<siraben> It should be
<siraben> ./result-2/bin/z80e-sdl -d TI84p ~/Documents/zkeme80/forth.rom
<iqubic> yep. is that working now?
<siraben> Yeah, for some reason it's complaining about flash page 0x41 not existing, must be my ROM's fault or something, but it has worked on at least two other emulators
<siraben> Hm.
LysergicDreams has quit [Ping timeout: 250 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LysergicDreams has joined #nixos
psy3497 has left #nixos ["WeeChat 1.9.1"]
jasongrossman has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<wedens> do services defined in home-manager work fine on non-nix os hosts? e.g. on Arch?
Dagger has quit [Excess Flood]
hamishmack has joined #nixos
Dagger has joined #nixos
<jasongrossman> wedens: I believe the answer is not all of them.
endformationage has quit [Ping timeout: 272 seconds]
<pie_> i ran into a problem i didnt think i would have: how do i reference a store path in a derivation
<wedens> pie_: by referencing derivation that provides the output in the store
<{^_^}> [nixpkgs] @megheaiulian opened pull request #53066 → gitkraken: 4.0.1 -> 4.1.1 → https://git.io/fhLci
arjen-jonathan has quit [Ping timeout: 252 seconds]
hedning has quit [Quit: hedning]
iyzsong has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fhLCJ
cyphase has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vcunat merged pull request #51561 → tomcat: update minor versions → https://git.io/fpXKi
b has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @timokau merged pull request #52969 → material-design-icons: init at 3.2.89 → https://git.io/fhkWS
<{^_^}> [nixpkgs] @timokau pushed commit from @vlaci to master « material-design-icons: init at 3.2.89 (#52969) »: https://git.io/fhLCz
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53062 → dropbox: 55.4.171 -> 63.4.107 → https://git.io/fhL3V
<{^_^}> [nixpkgs] @timokau pushed commit from @talw to master « dropbox: 55.4.171 -> 63.4.107 (#53062) »: https://git.io/fhLCr
ddellacosta has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @ElXreno opened pull request #53068 → rescuetime: 2.10.0.1322 -> 2.14.2.1 → https://git.io/fhLCX
<{^_^}> [nixpkgs] @gebner merged pull request #53040 → vdirsyncer: 0.17.0a3 -> 2018-08-05 → https://git.io/fhIF7
<{^_^}> [nixpkgs] @gebner pushed 3 commits to master: https://git.io/fhLCM
<{^_^}> [nixpkgs] @gebner closed pull request #52780 → python37Packages.shippai: 0.2.4 -> 0.3.0 → https://git.io/fhUzc
<pie_> wedens, i was able to get the .drv by using nix-store -q -d but i dont know where to go from there
<pie_> also brb
<clever> pie_: do you want to reference it from nix or something else?
pie_ has quit [Ping timeout: 268 seconds]
cyphase has joined #nixos
hiroshi has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @gebner opened pull request #53069 → fish: do not use internal wcwidth → https://git.io/fhLWZ
iyzsong has joined #nixos
jomik has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
pie_ has joined #nixos
<pie_> back
cyounkins has quit [Ping timeout: 272 seconds]
Streetwalrus has quit [Quit: ZNC 1.7.1 - https://znc.in]
Streetwalrus has joined #nixos
simukis has joined #nixos
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #53070 → haskellPackages.scat: fix build → https://git.io/fhLWj
cyphase has quit [Ping timeout: 272 seconds]
<wedens> is it possible to run opengl apps in systemd-nspawn container? will they correctly detect a driver?
<jomik> Uuuh. Can you not use `import` in a file that is being loaded with the `imports` attribute?
<jomik> I am importing `../utils.nix` and it tries to then access `/nix/store/utils.nix`...
cyphase has joined #nixos
<jomik> I guess, for some reason, my folder is put in its own nix-store folder, why?
<ottidmes> jomik: of course you can import in a file that is being imported via the imports attribute, you are probably doing something that cause the file you passed to imports to be copied over to the store, hence the working directory for it changed to /nix/store
<jomik> I am doing nothing special though.
<jomik> IIUC
<jomik> imports = map (name: "${./modules}/${name}") (builtins.attrNames (builtins.readDir ./modules));
<ottidmes> there you go
<ottidmes> this "${./modules}/${name}"
<jomik> Doesn't that just generate a list of paths relative to my current dir?
<jomik> How can I load all files in a subdir then? :o
<ottidmes> you would want to do: ./modules + "/${name}" instead to get a path, or "${toString ./modules}/${name}" to get a string
<jomik> Ooh, really?
<jomik> You are right.. O.o Why XD
<jomik> I mean, in my head, those are the same.
<Myrl-saki> No, it generates a string, with the directory being loaded into the /nix/store, and interpolated as a path to said /nix/store directory.
<wedens> unquoted path is a path in a nix store
<ottidmes> jomik: the thing is, the default toString behavior for paths is not toString as you might expect, but rather to copy the file to the Nix store and return that path
<jomik> Oh
<jomik> Lol, okay! Thank you. That makes sense then.
<clever> and path + string == path
<clever> so if you do ./. + "/foo", its the same as ./foo, and only foo gets copied to the store
<{^_^}> [nixpkgs] @vcunat closed pull request #50497 → exiv2: backport 0.27-rc1 to 18.09 → https://git.io/fpnbZ
m15k has joined #nixos
<clever> but, let var = ./.; in "${var}/foo" copies ./. to the store, and then gives you /nix/store/hash-something/foo
<clever> which copies a lot more
<wedens> is it in the doc? sounds tricky to get right
<clever> not sure
<clever> in general, i try to keep paths as the path type as long as possible
<clever> so use +, rather the "${var}"
<ottidmes> its something to keep in mind when handling security sensitive files, like files containing passwords, you generally do not want to have them end up in the store, so you would have to make sure to explicitly call toString on those paths
LysergicDreams has quit [Ping timeout: 272 seconds]
LysergicDreams has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
dermetfan1 has joined #nixos
hoijui has joined #nixos
<hoijui> how can I disable the use of nonfree firmware? reading on https://nixos.org/nixos/manual/options.html , I see nonfree mentioned only once, and it is an option to optionally enable it, but I see it being installed by default, without enabling this option
<hoijui> I know htat my system does not need nonfree
dermetfan1 has quit [Client Quit]
dermetfan has joined #nixos
<jomik> Uh, if something unfree is being installed without allowUnfree being true, then you should probably create an issue.
<jomik> Or PR a fix.
<jomik> Or both.
<jomik> hoijui ^
<hoijui> ahhh...
<hoijui> thanks jomik... so by default it should not do that?
<hoijui> the only config option I changed from the generated config file was the boot loader partition for grub
<hoijui> and one of hte first things I saw being installed was firmware-linux-nonfree
<hoijui> ok...
<m15k> Hi. I downloaded the virtualbox image. I tried `nix-channl --list` which returns nothing. I'm a little curios why that happens.
<jomik> From my understanding it shouldn't. That's why we have a config option to allow unfree stuff being installed. hoijui
<jomik> I am sure someone clever person will correct me if I am wrong :P
<{^_^}> [nixpkgs] @emmanuelrosa closed pull request #42537 → nixos/transmission: allow prestart to create directories → https://git.io/f4Sph
<jomik> And I probably just pinged clever... Lol, sorry. xD
zarel has joined #nixos
periklis has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]> Ohai.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]> Following problem: I'm currently packaging new programs. For these, I add myself as a maintainer.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]> For the first PR I had to add myself to the maintainers list. That commit is now part of my first packaging PR. But how to proceed with the next PRs as long as my nick isn't in the maintainers file? Is including the maintainerlist-adding commit into each PR ok?
tzemanovic has quit [Remote host closed the connection]
<ivan> schmittlauch[m]: yes
<ivan> I did that and the PRs merged just fine
<schmittlauch[m]> good to know
ddellacosta has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
hotfuzz_ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to master « exiv2: 0.26.2018.06.09 -> 0.26.2018.12.30 (security) »: https://git.io/fhL8s
pie_ has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
pie_ has quit [Excess Flood]
pie_ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-18.09 « exiv2: 0.26.2018.06.09 -> 0.26.2018.12.30 (security) »: https://git.io/fhL8R
ddellacosta has quit [Ping timeout: 272 seconds]
zarel has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @timokau opened pull request #53071 → vimUtils.buildVimPlugin: fix helptag generation → https://git.io/fhL8u
qyliss^work has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
qyliss^work has joined #nixos
<jomik> Are imports loaded with callPackage? I had an import with `args@{ lib, config, ... }:`, and was passing `args` onto a function that required `pkgs`, but `pkgs` weren't in args, now that I added `pkgs` to the signature of the caller, it is passed in... Weird..
tzemanovic has quit [Ping timeout: 252 seconds]
<Myrl-saki> jomik: I don't know about the details of your code, but `args.pkgs` won't work if pkgs is not provided by the caller, even if there's a default set for it.
<jomik> I am asking what `imports` are called with. The attribute that nixpkgs use to merge modules.
<Myrl-saki> jomik: Do you know what fixed point is?
<{^_^}> [nixpkgs] @ma9e opened pull request #53072 → fuse-overlayfs: init at 0.2 → https://git.io/fhL87
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @justinwoo opened pull request #53073 → fix fetchFromGitLab to use repository archive downloads → https://git.io/fhL8b
<jomik> Yah?
<Myrl-saki> jomik: That's pretty much it. I don't know the details that much, but the output is basically a fixedpoint of the imports.
<jomik> the output?
<Myrl-saki> So, what's passed to the imports is "the whole configuration"
<jomik> Hmm.
<jomik> I am not really sure that makes sense in regards to why it isn't being passed `pkgs` though?
<jomik> It is somehow reading the signature of the function IIUC.
<Myrl-saki> You'll have to ask someone more knowledgeable with the module-loading code, but I'll give it a quick read right now.
rprije has joined #nixos
<Myrl-saki> jomik: Do you have a pastebin of it?
<jomik> Let me commit
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53071 → vimUtils.buildVimPlugin: fix helptag generation → https://git.io/fhL8u
<{^_^}> [nixpkgs] @timokau pushed to master « vimUtils.buildVimPlugin: fix helptag generation (#53071) »: https://git.io/fhL4J
thc202 has joined #nixos
<Myrl-saki> jomik: Can you send me the raw link? I'm on 3G right now.
<jomik> Though, tbh I am probably not even gonna use this anyway... :D I was just wondering why it didn't work.
<jomik> Sure!
<jomik> Actually, this one is probably the more interesting one. It's being used in each of the modules in my `imports` list.
<jomik> I had to add `pkgs` to the second line, even though I don't actually need it in the code right here.
<Myrl-saki> jomik: Even if you used ...?
<hoijui> I installed the nvim package with nix-env -i neovim
<jomik> Yeah, `...` is and was there.
<Myrl-saki> Hm.
<hoijui> I suspected that this is now somehow represented in my configuration.nix
<Myrl-saki> That is indeed weird.
<hoijui> but it is not.
<jomik> hoijui: No, nix-env is impure/imperative.
<jomik> And nix-env is also usually run by the user, not root, so shouldn't modify /etc/configuration.nix
<hoijui> ah.... so there is a way to install packages so they end up in the configuration?
<jomik> /etc/nixos/configuration.nix
<Myrl-saki> A bit more technically, nix-env is impure in the sense of the state monad, IIRC.
<jomik> You can write them in your configuration.nix and then nixos-rebuild :D
<hoijui> ahhhh ok! thanks!
pie_ has quit [Remote host closed the connection]
pie__ has joined #nixos
pie__ has quit [Remote host closed the connection]
<Myrl-saki> jomik: I might not have the answer to this. :P
<Myrl-saki> jomik: What was the error without `pkgs`?
<hoijui> jomik, looking for nonfree on my system with find, I only found two files in /nix/store/
<hoijui> i dont know what that store is
<hoijui> is it just some kind of repo, or is it really installed?
<hoijui> does it just meanI can install it without internet access?
<jomik> anonymous function at /home/jomik/.config/nixpkgs/programs/emacs/modules/theme.nix:1:32 called without required argument 'pkgs', at /home/jomik/.config/nixpkgs/programs/emacs/builder.nix:5:12
<jomik> Myrl-saki: ^
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
freeman42x[nix] has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<jomik> hoijui: It contains a lib folder, right? It's probably "installed" as a dependency of something.
<jomik> I am not sure.
<hoijui> jomik, no lib folder, no (and it are 3 files, not 2.. failed at counting before ;-) )
<hoijui> ok....
<hoijui> I will try to explicitly define allowUnfree = false now
pie_ has quit [Excess Flood]
<Myrl-saki> jomik: I'll probably know why soon.
<Myrl-saki> No, no I don't.
<Myrl-saki> jomik: That's actually an interesting find.
arjen-jonathan has joined #nixos
<Myrl-saki> jomik: OTOH, you should be using submodules or the like.
<jomik> Why? :o
<jomik> Or do you mean that I should make an attribute on programs.emacs that is a list of submodules?
<jomik> But, I'd like to be able to check stuff like programs.emacs.evil.enable in other submodules.
<jomik> That's why I am doing it this way :P
<Myrl-saki> jomik: requiredArgs = builtins.attrNames (lib.functionArgs f);
<Myrl-saki> functionArgs is the function used by callPackage to find out what arguments to pass.
orivej has joined #nixos
<jomik> Yeah, so I guess that the `imports` attribute is using that. Thus it only sees the args in the destructured attribute set.
<jomik> Anyway! I gotta go and walk the dogs.
<jomik> I'll probably end with an init.el anyway...
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fhL4o
yayforj has joined #nixos
<{^_^}> [nixpkgs] @ma9e opened pull request #53074 → fuse: allow user configuration of fuse.conf → https://git.io/fhL4P
lawlesseel has joined #nixos
jomik has quit [Ping timeout: 250 seconds]
bagus has joined #nixos
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
zarel has joined #nixos
m15k has quit [Ping timeout: 256 seconds]
periklis has quit [Remote host closed the connection]
<wedens> is there a function for making derivation for emacs package in a git repo?
<wedens> I'd like to have pinned package versions. currently I use straight.el for that, but I'm considering replacing it with nix
imdoor has joined #nixos
<hoijui> I just saw some packages with wrong desriptions: nixpkgs.xfce.xfce4-netload-plugin and nixpkgs.xfce.xfce4-timer-plugin
<wedens> hoijui: sounds like a good opportunity to make a PR :)
<hoijui> many packages are in there two times, one with -'s and once with _'s
<hoijui> nixpkgs.xfce.xfce4-battery-plugin
<hoijui> nixpkgs.xfce.xfce4_battery_plugin
<hoijui> wedens, yep...
tzemanovic has joined #nixos
jomik has joined #nixos
bagus has quit [Ping timeout: 260 seconds]
Church_ has joined #nixos
<hoijui> for a package description.. are there length guidelines?
<hoijui> should it fit into 80 chars or something like that?
<{^_^}> [nixpkgs] @ivan opened pull request #53075 → doctl: 1.8.0 -> 1.12.2 → https://git.io/fhLBs
<hoijui> is this too long: "A simple XFCE panel plugin that lets the user run an alarm at a specified time or at the end of a specified countdown period"
<jomik> IIRC there is also an attribute called `longDescription`. But that description isn't long, from what I have seen.
imdoor has quit [Quit: imdoor]
<ottidmes> hoijui: it seems good to me, as long as it is one sentence and follow the following rules: Be capitalized. Not start with the package name. Not have a period at the end.
<hoijui> thanks yo utwo! :-)
bagus has joined #nixos
<chris|> I am having some trouble building the firefox derivation. It compiles fine but activation seems to fail: https://privatebin.net/?59315269eaf9f1d8#adlEjlZ/DPk4UwK3GDBs0V5qjHoJr1+oFefdb8wJ3Fk=
<chris|> Does anyone have an idea about what's going on here?
<{^_^}> [nixpkgs] @hoijui opened pull request #53076 → xfce.xfce4-timer-plugin: fix description and add longDescription → https://git.io/fhLBu
periklis has joined #nixos
<steveeJ> is it expected that I need `sudo` when for `nixos-rebuild --target-host a.b.c.d ... boot`?
<{^_^}> [nixpkgs] @domenkozar merged pull request #44116 → Remove composableDerivation, closes #18763 → https://git.io/fNEZ1
<{^_^}> [nixpkgs] @domenkozar pushed commit from @FRidh to master « Remove composableDerivation, closes #18763 »: https://git.io/fhLBV
<steveeJ> it tries to create a profile symlink locally: `error: creating symlink from '/nix/var/nix/profiles/system-36-link.tmp-8313-35053946' to '/nix/store/s1ibs0qfxwbbmi39vk0jaxng5h9hplnv-nixos-system-contabo1-18.09pre-git': Permission denied`
<wedens> I'm having a difficulty in finding definition of `melpaBuild` function
<steveeJ> passing `root@a.b.c.d` makes it work. I'm a bit confused about how sudo helps with omitting that
<wedens> jomik: is it aliased to melpaBuild somewhere?
<jomik> in all-packages.nix
<jomik> at least it is when I grep in my repo
<jomik> I can't find it on github. lol
<jomik> actually, why the hell is mine different? XD
<jomik> Line 16843, it doesn't even exist on github :D
yayforj has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Remote host closed the connection]
<wedens> different revisions? :)
periklis has quit [Ping timeout: 250 seconds]
tzemanovic has joined #nixos
<jomik> no, both master.
<jomik> It is also there if I go to the raw.
<jomik> I just don't think github can display all of it.
<jomik> Anyway, it's on line 164843 in all-packages.nix :D
tzemanovic has quit [Ping timeout: 252 seconds]
<wedens> what's the current workaround for secrets in .nix files?
ddellacosta has joined #nixos
<jomik> Can't you import them from another file?
<jomik> have a secrets.nix file that you import where you need.
<jomik> Or do you mean that they are visible in the store?
FRidh has joined #nixos
ddellacosta has quit [Ping timeout: 272 seconds]
zarel has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @romildo opened pull request #53077 → zafiro-icons: 0.7.9 -> 0.8 → https://git.io/fhLRR
jomik has quit [Quit: WeeChat 2.2]
<wedens> jomik: yeah. I'd prefer not to have them visible in the store
jD91mZM2 has joined #nixos
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #53069 → fish: do not use internal wcwidth → https://git.io/fhLWZ
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fhLRQ
agander has joined #nixos
Seb[m] has joined #nixos
bagus has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to staging « librsvg: 2.44.10 → 2.44.11 »: https://git.io/fhL0J
<arianvp> wedens: provide them at runtime
<arianvp> I put secrets in a ramfs on /run/secrets
<arianvp> And configure my NixOS services to read them from there
<Seb[m]> Hey there! Are the slides from yesterdays cross-compilation workshop at 35c3 available somewhere? I think there was also an attempt to record the session?
<arianvp> Not all NixOS modules yet support this yet though
<arianvp> Mic92: ^
eadwu has joined #nixos
bagus has joined #nixos
rprije has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 240 seconds]
tyang has joined #nixos
sigmundv_ has joined #nixos
miaoski_tw has quit [Quit: Connection closed for inactivity]
<siraben> Not sure where else to ask this but does anyone know of a good GUI testing application?
<siraben> I'm trying to run some tests and there isn't a CLI to report test status
<siraben> It's a GUI emulator
worldofpeace has joined #nixos
<MichaelRaskin> Last time I was trying to change the state of GUI testing in Nixpkgs, I picked fMBT
<siraben> MichaelRaskin: how well does that work?
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/0a8f35c998f (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<MichaelRaskin> I am not sure there are better easy-to-package options
<MichaelRaskin> Well, you write a Python script; it can use fuzzy imag matching or Tesseract recognition to find thing to click (or to check presence)
<{^_^}> [nixpkgs] @jtojnar pushed to master « pipewire: 0.2.3 → 0.2.5 »: https://git.io/fhL0b
Church_ has quit [Ping timeout: 272 seconds]
<siraben> I'll send an image. If you look at that highlighted row you'll see a byte that says "69" (as hex) and that tells me the number of tests succeeded. Not sure how to automate this
* siraben uploaded an image: ima_386d4e4.png (85KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/oXzwuqVKIvSGPUXYkshoYSKC >
<MichaelRaskin> Can you just send a series of absolute-position clicks to have this byte in a known absolute position on-screen?
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/201d739b0ff (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
erictapen has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53077 → zafiro-icons: 0.7.9 -> 0.8 → https://git.io/fhLRR
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhLEk
<MichaelRaskin> Then xmacrorec (or xdotool or whatever) would allow you to click your way through, then ImageMagick to get the necessary part of the screen, then either tesseract or (the font is stable, right?) a short list of known shapes
<siraben> The font is stable, yes.
bagus has quit [Ping timeout: 250 seconds]
<siraben> Cool. I'll take a look at xdotool
<MichaelRaskin> Note: xdotool and xdo are different commands, xmacrorec is yet different
<MichaelRaskin> xdotool is OK, I think
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52865 → luakit: add HTTPS support → https://git.io/fhTf2
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @emmanuelrosa to master « luakit: add HTTPS support (#52865) »: https://git.io/fhLEc
<siraben> xdotool has such a good man page
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @hoijui to master « xfce.xfce4-timer-plugin: correct description »: https://git.io/fhLEi
<MichaelRaskin> Even its help output is already nice
<{^_^}> [nixpkgs] @worldofpeace closed pull request #53076 → xfce.xfce4-timer-plugin: fix description and add longDescription → https://git.io/fhLBu
erictapen has quit [Ping timeout: 250 seconds]
tyang has quit [Ping timeout: 252 seconds]
tyang has joined #nixos
sigmundv_ has quit [Ping timeout: 268 seconds]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @tex opened pull request #53078 → Wings3d → https://git.io/fhLuZ
tzemanovic has joined #nixos
b has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53075 → doctl: 1.8.0 -> 1.12.2 → https://git.io/fhLBs
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhLuW
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/fhLud
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.9.147 -> 4.9.148 »: https://git.io/fhLuN
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.14.90 -> 4.14.91 »: https://git.io/fhLup
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.19.12 -> 4.19.13 »: https://git.io/fhLzv
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
Lingjian has joined #nixos
Lingjian has quit [Client Quit]
<Mic92> arianvp: ^
eadwu has quit [Ping timeout: 250 seconds]
eadwu has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a4e098519b3 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Seb[m]> Mic92: Thanks!
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
eadwu has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52782 → python37Packages.zc_lockfile: 1.3.0 -> 1.4 → https://git.io/fhUgA
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhLzj
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52697 → mopidy-iris: 3.31.3 -> 3.31.7 → https://git.io/fhJBV
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Tomahna to master « mopidy-iris: 3.31.3 -> 3.31.7 »: https://git.io/fhLgk
<{^_^}> [nixpkgs] @worldofpeace closed pull request #52838 → mopidy-iris: 3.31.3 -> 3.31.7 → https://git.io/fhUNk
eadwu has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52953 → pythonPackges.flask-jwt-extended: 3.13.1 -> 3.14.0 → https://git.io/fhThs
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Gerschtli to master « pythonPackges.flask-jwt-extended: 3.13.1 -> 3.14.0 »: https://git.io/fhLgn
selfsymmetric-mu has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @FRidh merged pull request #51846 → pyqt5: make qtwebkit optional, disable by default → https://git.io/fpQkm
<{^_^}> [nixpkgs] @FRidh pushed 11 commits to master: https://git.io/fhLgE
endformationage has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.2]
<chris|> I am having some trouble building the firefox derivation. It compiles fine but activation seems to fail: https://privatebin.net/?59315269eaf9f1d8#adlEjlZ/DPk4UwK3GDBs0V5qjHoJr1+oFefdb8wJ3Fk=
<chris|> Any ideas?
hedning has joined #nixos
worldofpeace has quit [Remote host closed the connection]
<ottidmes> chris|: seems to be this issue: https://github.com/NixOS/nixpkgs/issues/45500
<{^_^}> #45500 (by mdorman, 18 weeks ago, closed): firefox+browserpass "is not allowed to refer to the following paths:
orivej has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52723 → aspellDicts.en: 2016.06.26-0 -> 2018.04.16-0 → https://git.io/fhJ16
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @liff to master « aspellDicts.en: 2016.06.26-0 -> 2018.04.16-0 »: https://git.io/fhL2U
imdoor has joined #nixos
bagus has joined #nixos
bagus has quit [Remote host closed the connection]
imdoor has quit [Client Quit]
pie_ has quit [Ping timeout: 250 seconds]
<chris|> ottidmes: considering this was supposed to be merged into 18.09 in August (best I can tell) that would be odd, but I'll give it another try
bagus has joined #nixos
jasongrossman has quit [Ping timeout: 250 seconds]
mmlb has quit [Ping timeout: 250 seconds]
<chris|> ottidmes: updated all channels, but the issue persists
orivej has quit [Ping timeout: 250 seconds]
Church_ has joined #nixos
orivej has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52812 → peru: 1.1.4 -> 1.2.0 → https://git.io/fhUD4
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhL20
<bkchr> Hey, does anyone know how to restart alsa on nixos? I already tried to reload all snd* kernel modules, but no luck..
ashkitten has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @laMudri opened pull request #53080 → ibus-engines.table: 1.9.20 -> 1.9.21 → https://git.io/fhL22
ashkitten has joined #nixos
mmlb has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
<wedens> hetzner or ovh for nixos server? which one requires less trickery to set up nixos?
bagus has quit [Quit: Leaving]
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
lawlesseel has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 245 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos
kisonecat has joined #nixos
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #53081 → vimPlugins: Fix update script → https://git.io/fhLao
<{^_^}> [nixpkgs] @rvolosatovs closed pull request #52843 → vimPlugins: Update → https://git.io/fhUxW
<ivan> my nixos-rebuild hangs on 'building the system configuration... ' all the time, strace -f shows https://gist.github.com/ivan/7f5c120ff6152d208539e58bd3b6aa7b , nothing useful in journal, any suggestions?
<ivan> wedens: I prefer OVH for having a less insane abuse policy
mmlb has quit [Ping timeout: 245 seconds]
<wedens> ivan: what do you use to install nixos on ovh?
<ivan> I think you can nixos-infect either or write a disk image in rescue mode
<ivan> I haven't nixos'ed my OVH yet but nixos-infect worked for me on digitalocean, it may need editing depending on DHCP
<ivan> hmm my rebuild is probably hanging because I configured an unreachable binary cache that is configured somewhere other than /etc/nix
<infinisil> ivan: Add a bunch of -v's to the command
<ivan> ah thank you infinisil
<ivan> downloading 'http://icvm.wg:8080/nix-cache-info'...
<ivan> starting download of http://icvm.wg:8080/nix-cache-info
<ivan> I don't have that configured anywhere and I removed /etc/nix
<{^_^}> [nixpkgs] @teh closed pull request #18273 → Allow passing extra paths to non-python packages into python.buildEnv. → https://git.io/viOYz
<ivan> oh maybe nix is directly referencing configuration in the nix store?
<ivan> I'll pass some more options to rebuild I guess
DeaDSouL has joined #nixos
<ivan> nixos-rebuild --option substituters https://cache.nixos.org/
<{^_^}> #8160 (by fread2281, 3 years ago, open): nixos-rebuild should use nix.* options when building nixpkgs
ddellacosta has quit [Remote host closed the connection]
init_6 has quit [Ping timeout: 244 seconds]
mmlb has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53081 → vimPlugins: Fix update script → https://git.io/fhLao
<{^_^}> [nixpkgs] @timokau pushed commit from @rvolosatovs to master « vimPlugins: Fix update.py, update (#53081) »: https://git.io/fhLVo
orivej has quit [Ping timeout: 240 seconds]
dermetfan has quit [Quit: WeeChat 2.3]
dermetfan has joined #nixos
<develCuy> Is there a way to find which package (not installed yet) has an specific binary/file?
<samueldr> nix-locate from nix-index can help
<samueldr> it's what powere ,locate here
<samueldr> ,locate bin hello
<{^_^}> Found in packages: hello, mbedtls, perkeep.bin, gitlab-runner.bin, haskellPackages.hello
<samueldr> though one caveat: it will only do this for packages built by hydra
<develCuy> ,locate xelatex
<{^_^}> Found in packages: dblatex, dblatexFull, texlive.combined.scheme-small, texlive.combined.scheme-small, texlive.combined.scheme-medium, texlive.combined.scheme-medium
<develCuy> samueldr: much thanks!
<develCuy> ,locate latex
<{^_^}> Found in packages: R, pgf, zim, opae, pgf1, pgf3, tipa, lush2, noweb, rivet, tetex, tetex, tetex, tetex, tetex, tetex, coq_8_7, coq_8_9, dblatex, liboggz, lmodern, texmacs, texmacs, texmacs, texmacs, texmacs, asciidoc, isabelle, pgfplots, pgfplots, pgfplots, verbiste, darktable, eukleides, notepadqq, auctex.tex, auctex.tex, latex2html, scilab-bin, dblatexFull, asciidocFull, mlton20130715, vimPlugins.riv, apacheHttpd.doc, coqPackages.coq, and 26 more
tzemanovic has quit [Remote host closed the connection]
<develCuy> ,locate dvipng
<{^_^}> Found in packages: tetex, texlive.combined.scheme-medium
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<develCuy> ,locate dvisvgm
<{^_^}> Found in packages: texlive.combined.scheme-medium
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
cyounkins has joined #nixos
tzemanovic has joined #nixos
nDuff has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<nDuff> Mic92, ...random aside: using set -e inside a shell function intended to be used interactively (https://github.com/direnv/direnv/wiki/Nix#persistent-cached-shell) is maybe not a great idea -- the user probably doesn't want to have their shell exit the next time they run (( i++ )), or any other command that happens to return a value of false.
tzemanovic has joined #nixos
<nDuff> (well, whether that *specific* example will trigger an errexit event depends on the shell version; see http://mywiki.wooledge.org/BashFAQ/105#Exercises)
drakonis has joined #nixos
tzemanovic has quit [Ping timeout: 244 seconds]
xantoz has quit [Remote host closed the connection]
eadwu has quit [Remote host closed the connection]
eadwu has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to master « opkg: 0.3.6 -> 0.4.0 »: https://git.io/fhLwu
xantoz has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
<tilpner> wedens: I have NixOS on Hetzner servers, if you need any assistance with that
<tilpner> develCuy: The bot also replies in PMs or #bottest
<makefu> tilpner: what issue do you have? and is it hetzner cloud or hetzner bare metal?
countingsort has joined #nixos
<tilpner> makefu: No NixOS issues, currently :)
wucke13 has quit [Quit: WeeChat 2.2]
<makefu> ah i misread :)
<countingsort> good evening, im trying to get a rust -sys crate (wlroots-sys) to work, but bindgen cant find stdbool.h, so the build fails. does anybody know how to tell bindgen where the headers are?
eadwu has joined #nixos
<wedens> tilpner: thanks. I'll keep it in mind. seems like it's pretty easy to set up with nixops, right?
<tilpner> countingsort: On phone right now, so I can't check, but I think I made my build.rs read a NIX_ env var and add that to the bindgen include path
<nDuff> Hmm. I was under the impression that metadata for Nix store items included a checksum even for non-fixed-output derivations, but I don't see it in path-info --json; where would I look for that?
<chris|> wedens: just so you are aware, nixops on hetzner has some open security issues: https://github.com/NixOS/nixops/issues/696
<{^_^}> nixops#696 (by elitak, 1 year ago, open): StrictHostKeyChecking=no is insecure
<wedens> chris|: is it changeable?
<nDuff> ...ahh, nix-store -q --hash is what I was looking for.
<chris|> wedens: only if you are not affraid of digging around in the source code
<countingsort> tilpner: that doesnt sound like i can easily do it without modifying the project, which would be favorable, since its a dependency in something else im doing
<tilpner> If nothing else works, your derivation can patch its way around (though I agree it's ugly and that you should prefet potential alternatives)
<countingsort> how would i even go about pathing a dependency of a crate i depend on without including both as a submodule (new to rust and nix)?
fendor has joined #nixos
<tilpner> Not sure myself, but I would start with trying to patch a Cargo.lock to get the crate source from a patched store location instead of from git
<tilpner> Oh wait, do you control the project you're trying to package?
<countingsort> yes
<countingsort> im not even trying to package i just wanna compile it for now
Lingjian has joined #nixos
<countingsort> so somewhat ugly is ok
<countingsort> id prefer it if i dont need to make any changes to it that are nix specific, or as little as possible
<tilpner> Then you could vendor a patched version of that dependency until upstream accepts your patch, and use cargos official source replacement methods to replace the nested dep with your checkout
<countingsort> cargo has source replacement methods <.<
<tilpner> You don't need to make it nix specific. Just call the env var something like BINDGEN_EXTRA_INCLUDE_PATH instead of NIX_
eadwu has quit [Ping timeout: 252 seconds]
<tilpner> On phone right now, you'll have to search for those yourself
<countingsort> yeah, i found it. neat
eadwu has joined #nixos
Lingjian has quit [Ping timeout: 250 seconds]
_deepfire has joined #nixos
<_deepfire> Is there a way to make a gcc-wrapper derivation with some C packages already in search paths?
<_deepfire> akin to ghcWithPackages
orivej has joined #nixos
<pbb> I wonder: How does `services.<service>.enable = true` lead to a derivation being built and installed?
Lingjian has joined #nixos
<infinisil> pbb: See the documentation, it should link you to the file where the option is defined
<infinisil> (`man configuration.nix` or ttps://nixos.org/nixos/options.html#)
<infinisil> (`man configuration.nix` or https://nixos.org/nixos/options.html#)
eadwu has quit [Ping timeout: 260 seconds]
<infinisil> pbb: Once you find the file (something starting with nixpkgs/nixos/modules/...), you can find your path to that file by running `nix-instantiate --find-file nixpkgs/nixos/modules/...`
<pbb> thanks, I will try to find it out that way
orivej has quit [Ping timeout: 272 seconds]
zukaboo has joined #nixos
jtojnar has quit [Quit: jtojnar]
<infinisil> Ahh, the online options page even links to the github definition directly
<zukaboo> Any ideas about how do I fix Carla?
<pbb> is mkEnableOption something nix-internal?
<pbb> thanks
ddellacosta has joined #nixos
<pbb> so basically this leads to the nginx derivation being built?
<infinisil> Yeah in a way
ottidmes has quit [Quit: WeeChat 2.2]
<pbb> because cfg.enable is not used anywhere else
<infinisil> Yup
Makaveli7 has joined #nixos
<infinisil> Well there's lots of different parts that work together for something being built in the end, the enable option is only one part of this
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to staging-next: https://git.io/fhLoQ
boredom101 has joined #nixos
<pbb> it's still a bit confusing to me, but in general I should be able to add a module nix file and the pkg nix file to my configuration (import them) and set services.x.enable = true and the pkg will be built?
kisonecat has quit [Ping timeout: 268 seconds]
Makaveli7 has quit [Remote host closed the connection]
<pbb> (I want to define a derivation in my configuration)
<pbb> or is it registered somewhere, so that my custom pkg will not be built?
<infinisil> pbb: The first thing you need for that is to have a working nix build for the package, do you have that?
<pbb> yes
tzemanovic has joined #nixos
<infinisil> Hold on, brb
kisonecat has joined #nixos
<infinisil> pbb: Pretty much all you need then is a simple systemd service: `systemd.services.foo = { serviceConfig.ExecStart = "${import ./path/to/your/package/default.nix}/bin/foo --bar"; }`
the-kenny has quit [Ping timeout: 246 seconds]
boredom101 has quit [Ping timeout: 256 seconds]
<pbb> ah, and by importing it in the service, it will be built?
<pbb> I'll try that
<infinisil> You can define such a service right in your configuration.nix
<infinisil> But you can also put it into a separate file and use `imports = [ path/to/file ];` if you wish
the-kenny has joined #nixos
jomik has joined #nixos
<infinisil> pbb: Oh actually check this out too: https://nixos.wiki/wiki/NixOS:extend_NixOS
<{^_^}> [nixpkgs] @veprbl opened pull request #53083 → digikam: switch from QtWebKit to QtWebEngine → https://git.io/fhLKU
<pbb> thanks a lot!
<infinisil> :)
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
hotfuzz has joined #nixos
<{^_^}> [nixpkgs] @bennofs merged pull request #52803 → python37Packages.intervaltree: 2.1.0 -> 3.0.2 → https://git.io/fhUij
<{^_^}> [nixpkgs] @bennofs pushed commit from @r-ryantm to master « python37Packages.intervaltree: 2.1.0 -> 3.0.2 (#52803) »: https://git.io/fhLK8
tzemanovic has quit [Ping timeout: 250 seconds]
hotfuzz_ has quit [Ping timeout: 268 seconds]
agander_ has joined #nixos
agander has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
tzemanovic has joined #nixos
agander_ has quit [Ping timeout: 246 seconds]
<Baughn> Is it possible to get the path of the nixpkgs repository being built, from inside configuration.nix?
<samueldr> Baughn: yes, what do you want to use it for? (there may be other solutions to your problem)
<samueldr> > pkgs.path
<{^_^}> /var/lib/nixbot/nixpkgs/master/repo
<Baughn> Evaluate some of the NixOS tests as part of the system build.
Lingjian has quit [Ping timeout: 252 seconds]
sir_guy_carleton has joined #nixos
<samueldr> if you're on unstable, pkgs.nixosTests might be usable too
Lingjian has joined #nixos
philippD has joined #nixos
Lingjian has quit [Read error: Connection reset by peer]
<Baughn> I'm not.
<Baughn> Nixops doesn't work on unstable, last I checked.
gagbo has joined #nixos
blumenkranz has joined #nixos
Lingjian has joined #nixos
<gagbo> Hello, is there a quick tips section somewhere about configuration ? I don't know if I'm supposed to create users in the /etc/conf.nix or within root session with useradd, nor do I know if I should put all packages in /etc/conf.nix vs having user packages in ~/.conf/nixpkgs... I have a lot of smaller questions about NixOS after my first try to install it in a VM
<gagbo> most notably, I failed at setting zsh as my login shell for the normal user
<blumenkranz> Hello. I am having some trouble attempting to install addons in both Firefox and Firefox ESR. It says it can not download the addon, and that I should check my connection. Is anyone else experiencing a similar issue?
agander has joined #nixos
<etu> gagbo: /etc/nixos/configuration.nix if you're on nixos
<etu> gagbo: In that file you should have examples
<blumenkranz> When visiting the download link manually, it says "(null) could not be downloaded because Firefox can not modify the needed file"
arjen-jonathan has quit [Ping timeout: 252 seconds]
vidbina has joined #nixos
<blumenkranz> I can confirm Firefox is running as my user, and the .mozilla folder is fully owned by me
<jomik> gagbo I am pretty certain that you should use /etc/nixos/configuration.nix :O
<jomik> users.users.gagbo.shell = pkgs.zsh;
<gagbo> Oh, so I guess my stuff did not work because I somehow thought it should be users.extraUsers.<nick>
<gagbo> I'll try this next time then, thanks
<nDuff> gagbo, ...extraUsers *is* permitted, albeit as legacy syntax.
kisonecat has quit [Ping timeout: 250 seconds]
kisonecat has joined #nixos
<Baughn> gagbo: We can't tell you how you *should* do this, but I'd encourage you to use declarative configuration as much as possible.
<Baughn> And while it's possible to make your user configuration at least semi-declarative with relative ease, it's also perfectly fine to put everything in configuration.nix.
hedning has quit [Quit: hedning]
<Baughn> I suspect this approach is perfectly fine. But if you have ideas, I'll certainly be thankful.
<gagbo> So you end up with huge package lists I guess. What I wanted to do was to put as few system packages as possible, and try to put my "personal" packages in ~/.config/nixpkgs.
Church_ has quit [Quit: WeeChat 2.2]
<gagbo> But I'm not sure if this failed because it's probably a bad idea, or if it just fialed for a lot of other reasons :) thanks for the advice anyway
<nDuff> It's certainly something you *can* do.
Church_ has joined #nixos
<Baughn> You can do that, but I find that even if I do have multiple users, I end up regretting not having all my usual packages available.
Lingjian has quit [Read error: Connection reset by peer]
<Baughn> If you want to try it anyway, I'll recommend using home-manager.
* nDuff was about to suggest the same.
Lingjian has joined #nixos
<Baughn> gagbo: NixOS configurations admittedly do tend to grow. And grow. And grow.
<Baughn> Here's a splendid example: https://github.com/Baughn/machine-config
<infinisil> Lol, can confirm.. https://github.com/Infinisil/system
<colemickens> nice. mine seems not as nice now, but I think they all become a bit personal: https://github.com/colemickens/nixcfg
<infinisil> I'm probably going a bit overboard on modularity and reusability though
sigmundv_ has joined #nixos
<Baughn> Mine is in no way *nice*. :P
<Baughn> At least I think it's been improving, lately.
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<Baughn> I've got four machines I manage, all of them through NixOps. Hence 'personal.nix'
<samueldr> (mine's linked in there among others)
<Baughn> (At one point I thought I might manage some other machines from the same repo. That never happened.)
<Baughn> I'll add mine~
<Baughn> "Giant list of packages" indeed.
<gagbo> it's not that big
<gagbo> But when you start editing latex files, the count grows pretty quickly
<gagbo> At least that's when it started to really grow on my current machine
<blumenkranz> Has anybody been able to install Firefox addons in NixOS?
<samueldr> from within firefox, yeah, haven't had issues
<infinisil> blumenkranz: Works just fine from the web store for me
<blumenkranz> I can't for the life of me figure why it is not letting me
<Baughn> gagbo: Oh. I do that using per-project `shell.nix` files.
<blumenkranz> It just says the download failed.
<Baughn> nix-repl is worth its weight in gold.
Church_ has quit [Ping timeout: 250 seconds]
<Baughn> Er. Nix-shell.
<Baughn> ...both, really.
<infinisil> blumenkranz: Not sure, maybe update everything first, check existing issues, make sure your internet is working and your DNS doesn't botch some requests or so
<blumenkranz> I think it may be DNS, but the AMO and the download link have the same domain, so I don't know
<blumenkranz> I am updating right now again, but I don't think that's the issue
<samueldr> blumenkranz: there could be logs in the "Browser Console" (ctrl+shift+J)
<samueldr> I'm still unsure what logs and what doesn't log in that console
<blumenkranz> I have found something interesting, but I can not read it
<jomik> infinisil: My brain is still going on about that emacs config xD
<jomik> I am pondering if I can make an attribute set that represents "use-package", and then expose that to my modules. So that a keybind module could set stuff in, say, evil's use-package ... xD
<blumenkranz> 1546200323246 addons.xpi WARN Failed to start download for addon https://addons.mozilla.org/firefox/downloads/file/1193322/umatrix-1.3.16-an+fx.xpi?src=dp-btn-primary: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.createUnique]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: resource://gre/modules/addons/XPIInstall.jsm ::
<blumenkranz> getTemporaryFile :: line 976" data: no]
<blumenkranz> It says that. Apparently, an exception in addons.xpi
sigmundv_ has quit [Ping timeout: 245 seconds]
<blumenkranz> It also just spewed some more errors about addon update.
<blumenkranz> 1546200404436 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception... "Update manifest is missing a required addons property." nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 461" data: no]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<jomik> Odd, my firefox has addons (vimium), didn't do anything specific tho.
<{^_^}> [nixpkgs] @timokau opened pull request #53084 → Neovim remote plugins → https://git.io/fhLiR
<blumenkranz> NS_ERROR_FILE_ACCESS_DENIED, but why?
ambro718 has joined #nixos
<blumenkranz> Maybe it is attempting to write to a system directory?
<blumenkranz> Wait, I think my dumb ass just figured it out
<blumenkranz> I have seen my /tmp has no write permissions for non-root
<jomik> O.o
<gagbo> that's.... weird
<blumenkranz> Well, /tmp is mounted in another partition, so that may be it.
<blumenkranz> I am sure I must have done something weird during the configuration
<hotfuzz> Rstde!gr
<nDuff> Maybe you did a non-recursive bind mount, and on the other box /tmp was tmpfs?
<etu> hotfuzz: Time to change password?
<hotfuzz> qut
<nDuff> that would give you the underlying filesystem that tmp was mounted on, and not the real temp directory.
hotfuzz has quit [Quit: WeeChat 2.2]
<blumenkranz> I mounted /tmp with fileSystems."/tmp" in my NixOS config.
shibboleth has joined #nixos
<blumenkranz> I mean, there is no underlying /tmp in theory, /tmp has always been a different partition on this machine.
<nDuff> there has to *be* an underlying directory just to serve as the mount point.
<nDuff> even if it's just an empty directory that exists only to be mounted over.
<blumenkranz> Yes, that may be the case
<blumenkranz> That said, it does work as /tmp correctly. I have the X.org files for my current session in there.
<blumenkranz> It's just lacking world write permissions, for some reason.
<blumenkranz> Is there any way to set them via configuration.nix, or should I just use good ol' chmod?
sanscoeur has joined #nixos
arjen-jonathan has joined #nixos
<blumenkranz> Oh yes, apparently this used to be a bug some time ago.
<infinisil> If you created it yourself then chmod. If NixOS created it somehow, only then it makes sense to fix it in NixOS
<{^_^}> #22413 (by rardiol, 1 year ago, closed): /tmp has wrong permissions on install
<blumenkranz> It's quite old, but IIRC, I installed it on this computer by that date
<blumenkranz> So yeah, just an old bug laying around. Will chmod it manually.
vidbina has quit [Ping timeout: 244 seconds]
hpoussin has joined #nixos
hpoussin has quit [Client Quit]
hpoussin has joined #nixos
<blumenkranz> Yeah, that was the issue.
<blumenkranz> Thanks for the help hahaha
arjen-jonathan has quit [Ping timeout: 250 seconds]
periklis has joined #nixos
periklis has quit [Ping timeout: 250 seconds]
nixy- has quit [Quit: ZNC 1.6.5 - http://znc.in]
nixy has joined #nixos
cnidario has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
Makaveli7 has joined #nixos
tzemanov_ has joined #nixos
tzemano__ has joined #nixos
sanscoeur has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 268 seconds]
tzemanov_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Lucus16 to master « quassel: 0.12.5 -> 0.13.0, cleanup »: https://git.io/fhLPV
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53049 → quassel: 0.12.5 -> 0.13.0 → https://git.io/fhIA0
Makaveli7 has quit [Quit: Leaving]
blumenkranz has quit [Quit: WeeChat 2.3]
hamishmack has joined #nixos
<countingsort> how do i get the include path for standard c headers in nix? the gcc thing seems to take me to a gcc wrapper
freeman42x[nix] has quit [Ping timeout: 250 seconds]
jchw has joined #nixos
dermetfan has joined #nixos
ddellacosta has quit [Remote host closed the connection]
Church_ has joined #nixos
lawlesseel has joined #nixos
<samueldr> ,libraries countingsort
<{^_^}> countingsort: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<samueldr> or, for a one-liner explanation: when using nix-shell, the gcc wrappers know how to resolve those
tzemano__ has quit [Remote host closed the connection]
orivej has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
aanderse has quit [Ping timeout: 250 seconds]
vidbina has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
cnidario has quit [Quit: cnidario]
reinhardt has joined #nixos
<{^_^}> [nix-pills] @kalbasit merged pull request #103 → Fix darwin hello.nix. → https://git.io/fhI22
<{^_^}> [nix-pills] @kalbasit pushed commit from @elben to master « Fix darwin hello.nix. (#103) »: https://git.io/fhLXF
<countingsort> the original issue is that bindgen cant find stdboo.h and similar, so i patched the tool to take an extra include path via an env var, but i now need to give it the path somehow
cnidario has joined #nixos
<countingsort> and surely hardcoding `/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include` is bad (and doesnt even resolve all of it)
cnidario has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}> [nix-pills] @kalbasit merged pull request #102 → Fix typo in Pill 13 → https://git.io/fhkAz
<{^_^}> [nix-pills] @kalbasit pushed commit from @workflow to master « Fix typo in Pill 13 (#102) »: https://git.io/fhLXh
<symphorien> all the flags you need should be in $NIX_CXXSTDLIB_COMPILE and $NIX_CFLAGS_COMPILE
<{^_^}> [nix-pills] @kalbasit merged pull request #99 → Fix reference to outdated coreutils version → https://git.io/fhUgc
<{^_^}> [nix-pills] @kalbasit pushed commit from @workflow to master « Fix reference to outdated coreutils version (#99) »: https://git.io/fhL13
tzemanovic has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
__monty__ has quit [Quit: Mic drop]
Travankor_ has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
<jchw> is there a canonical way to test a nix expression on a different architecture? i wanted to test if my new package will build properly on other architectures before submitting a PR to nixpkgs. i'd be okay with setting up a qemu VM, but there's no obvious place to get a root image or installation medium for other architectures? (only seeing AMD64)
jomik has quit [Quit: WeeChat 2.2]
Church_ has quit [Ping timeout: 240 seconds]
<samueldr> jchw: while it's not a canonical way, we now build efi-bootable aarch64 images, which can be used more easily on qemu-system-aarch64 than the sd images https://hydra.nixos.org/search?query=nixos.iso_minimal.aarch64
<jchw> great, thanks. ill give it a try.
<nDuff> Does build-support/vm not support foreign targets? Gotta admit I'd assumed that it did, though I'm only using it for a use case that doesn't require that.
Lingjian has quit [Ping timeout: 252 seconds]
<samueldr> you will need an appropriate "bios" for qemu, which is also built by hydra, using nix-store --realise you could get the output ending with `-fd` (though that's not optimal_ https://hydra.nixos.org/search?query=OVMF.aarch64
<samueldr> there's also the possibility of cross-compiling, but it could fail due to dependencies not being ready to cross-compile
hedning has joined #nixos
<samueldr> jchw: do note that qemu-system is... pretty slow :/
cyphase has quit [Ping timeout: 272 seconds]
shabius has quit [Remote host closed the connection]
<samueldr> (and all that doesn't cover darwin)
shabius has joined #nixos
Lingjian has joined #nixos
<jchw> yeah, i realize that :(
<samueldr> jchw: I would open the PR, and let ofborg build it for aarch64; it'll probably be quicker to at least know whether it builds or fail; though it's not to be (ab)used to twiddle knobs until it works
kisonecat has quit [Ping timeout: 268 seconds]
<jchw> got it. I would suppose this will most likely just build, but I wanted to know for future reference.
<jchw> I suppose it would probably be wise to just setup nix on some ARM hardware sometime. I might have something that can run it.
reinhardt has quit [Quit: Leaving]
cyphase has joined #nixos
<samueldr> though there's one "outdated" bit, in that we now build sd_image for aarch64 on hydra
<jchw> well, i have an rpi3, but i imagine build times on the rpi3 might give qemu-system a run for its money in terms of slow build times
<samueldr> I think you'd be surprised
<samueldr> unless you have really top-of-the-line hardware to run qemu on
<jchw> qemu user didn't seem too bad... is the difference big between user and system
<samueldr> yes
<jchw> ah, got it.
<samueldr> all the time spent in the kernel is not emulated with qemu-user
<jchw> thanks in any case. will consider the raspberry pi 3 setup. also got a pine64 somewhere around here. For now, I think I'll just go send the PR, since I am pretty sure this one will be fine.
Travankor_ has quit [Quit: Q]
sigmundv_ has joined #nixos
agander has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53047 → nextpnr: 2018.10.17 -> 2018.12.29 → https://git.io/fhINj
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @bgamari to master « nextpnr: 2018.10.17 -> 2018.12.29 »: https://git.io/fhLMs
nDuff has quit [Quit: zzz]
<shazow> when installing nixos from another linux distro, can anyone imagine a problem with using the nix aur on arch instead of using the curl-bash installer?
das_j has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 268 seconds]
Lingjian has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jchv opened pull request #53087 → lxqt-archiver: init at 0.0.96 → https://git.io/fhLMu
shabius has quit [Quit: Leaving]
<demize> shazow: Only thing is really that you need to remember to update nix by rebuilding the package
<shazow> demize: (sorry just getting started with nixos) how do i do that?
<demize> Oh wait, I misread what you said.
<demize> Once the new installation is done it doesn't really matter how it was done.
shabius has joined #nixos
<shazow> Mmm, getting this error even with a trivial configuration.nix: https://github.com/shazow/nixfiles/issues/3
<{^_^}> shazow/nixfiles#3 (by shazow, 1 day ago, open): Install failure
<shazow> going to assume it's something to do with how arch packages nix or something, and try the curl-bash installer instead -_-
vidbina has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53088 → trilium: init at 0.26.1 → https://git.io/fhLM9
FRidh has quit [Remote host closed the connection]
eadwu has joined #nixos
Xyliton has joined #nixos
Xyliton has left #nixos [#nixos]
Xyliton has joined #nixos
<Xyliton> I tried to build virtmanager today but was greeted by a haskell "missing dependencies" error while it was building pandoc during the process
<Xyliton> Do I have to update haskell packages manually somehow?
jasongrossman has quit [Ping timeout: 250 seconds]
<infinisil> Xyliton: All of hackages packages are available in nixpkgs, but that's all automated, which means there can be lots of breakages
<infinisil> But they all can easily fixed with some overrides
m15k has joined #nixos
<infinisil> See the configuration-*.nix files in https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/haskell-modules which fix up some packages
eadwu has quit [Ping timeout: 250 seconds]
<infinisil> But you can also do these ad-hoc
<m15k> Hi. I downloaded nixos virtualbox image. I ran `nix-channel --list` I'd expected some output. But there's nothing.
<infinisil> m15k: sudo
<m15k> infinisil: Same result.
<infinisil> Well maybe it just doesn't set up one, you can add it manually too
<m15k> So which channel is used by default?
<infinisil> ,which-channel m15k
eadwu has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53089 → release: add more unstable release-critical jobs → https://git.io/fhLDu
<m15k> Mh so isn't it setup in that image?=
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53090 → arrow-cpp: don’t expose gtest_static → https://git.io/fhLDo
<infinisil> No idea, but from your experience it doesn't seem to be. You could file an issue
<m15k> Mhh I see.
eadwu has quit [Ping timeout: 250 seconds]
chris| has quit [Quit: ZNC 1.7.1 - https://znc.in]
chris| has joined #nixos
boredom101 has joined #nixos
rprije has joined #nixos
<m15k> +
<m15k> clear
<gchristensen> ldlework: I might take the nixos challenge tonight.
<ldlework> wow
<ldlework> make sure you document it sufficiently!
<ldlework> whatever that means - but you're setting an example!
<ldlework> god speed
<gchristensen> seems like I should time between booting the installer to doing a deploy or something
ddellacosta has joined #nixos
<m15k> gchristensen: What's that challenge?
eadwu has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53091 → gzip: 1.9 -> 1.10 → https://git.io/fhLDh
<gchristensen> erase your computer and time how long it takes to have your system back to how you like it
Church_ has joined #nixos
blumenkranz has joined #nixos
<gchristensen> nobody has done it before, but ldlework has been talking about it
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53092 → Remove huge packages → https://git.io/fhLyf
Xyliton has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @worldofpeace pushed to master « lollypop: 0.9.906 -> 0.9.908 »: https://git.io/fhLyI
Lears has quit [Read error: No route to host]
<gchristensen> ldlework: I am very nervous :)
<blumenkranz> Hello. Do you happen to know how does the firejail module work? I managed to get it to wrap the binaries, but they are not being put in the global path.
<ldlework> lol well you should be!!!
Lears has joined #nixos
<ldlework> gchristensen: are you gonna do video at all, or just write about it
<gchristensen> I'm not sure how I'd do a video
<blumenkranz> I wrapped firefox, but whenever I execute firefox, I am executing the regular binary
alex`` has quit [Quit: WeeChat 2.3]
hoijui has quit [Ping timeout: 250 seconds]
<gchristensen> ldlework: how would you do it?
<ldlework> in my head, i'd probably use a phone to be like "here's what my workstation looks like, see here's emacs and weechat and my browser." then I'd cut to "okay, here's the dd command *hits enter* no turning back!"
<ldlework> And then when starting the reinstall, then like "hey look emacs works again! yay!"
<ldlework> something like that
<iqubic> emas is greate.
<ldlework> some semablance of "proof" basically heh
<iqubic> emacs is great.
<adisbladis> The browser would slow that down a lot for me
<ldlework> you're great.
<adisbladis> I don't know how to reproduce my browser setup nicely
<gchristensen> FF Sync does it mostly I think
<iqubic> adisbladis: What browser are you doing?
<iqubic> gchristensen: Yeah. I love FF sync
<ldlework> adisbladis: qutebrowser is easier since it is configured with python
hpoussin has quit [Quit: Konversation terminated!]
<adisbladis> gchristensen: I've done some pretty heavy customizations to my firefox which the sync would not take care of
<iqubic> qutebrowser is awesome.
<ldlework> you're awesome.
<MichaelRaskin> There is also no turning back when you go exchange your HDD under warranty…
<iqubic> adisbladis: What sort of custimzation are you talking about?
<adisbladis> Like custom stylesheets
<MichaelRaskin> (I have done it, with reinstallation from backups)
<adisbladis> Removing the address bar for example
<smrtak> hello. I installed box, but it's not booting up most probably due to incorrect value I provided in boot.initrd.luks.devices [uuid of the other partition]. I hope it's now fixed [in config] but would like to avoid re-running nixos-install as I have pretty slow link here. Do you have any cmd/trick how to perform only "rebuild"? Please :)
<adisbladis> Disabling tabs completely
<iqubic> adisbladis: Why did you do this?
<adisbladis> Lots of little things in about:config
<{^_^}> [nixpkgs] @Tomahna opened pull request #53093 → bloop: 1.1.2 -> 1.2.0 → https://git.io/fhLys
<adisbladis> iqubic: So I can use my window manager to manage browser "tabs" too
<iqubic> Why have you done this? How the heck do you use firefox if you can't type urls into the address bar?
<gchristensen> nice
<ldlework> neat
<adisbladis> iqubic: I can get it back by pressing C-l
<iqubic> Oh, you must have done a lot of customizations.
<MichaelRaskin> Wait, can you hide address bar without an extension?
<iqubic> smrtak: run "nixos-rebuild switch"
<adisbladis> MichaelRaskin: userChrome.css
<blumenkranz> Do you happen to know how would I prevent an installed package in the nix store from appearing in /run, so the firejail binary actually comes up on top?
<MichaelRaskin> I never managed to get it back with Ctrl-l
<gchristensen> ldlework: there are NixOS users whose ~s are nix store paths, or tmpfs's and... they get a nixos challenge just about every boot
<smrtak> iqubic: I thought this cmd is to be run from installed system. I'm in rescue shell now.
eadwu has quit [Ping timeout: 252 seconds]
<adisbladis> Leaves me with a pretty bare looking firefox
dermetfan has quit [Ping timeout: 250 seconds]
<gchristensen> adisbladis: screen shot?
<MichaelRaskin> ARGH
<MichaelRaskin> :focus-within
<MichaelRaskin> Point taken
<MichaelRaskin> Thanks
<ldlework> gchristensen: i think we should try to promote more writing down and describing these "esoteric" use-cases as they can help distinguish nixos from normal linux distros
<samueldr> smrtak: if you re-run nixos-install, it will not re-download if it's already in the system
<gchristensen> ldlework: I think that is a great idea
cnidario has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52682 → sshguard: 2.2.0 -> 2.3.0 → https://git.io/fhJZH
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « sshguard: 2.2.0 -> 2.3.0 »: https://git.io/fhLyB
<adisbladis> gchristensen: https://i.imgur.com/qulEHbi.png
<gchristensen> ldlework: while it isn't NixOS really (but based on Nixpkgs) MichaelRaskin has nearly given talks at on his very interesting, and esoteric, OS.
<gchristensen> adisbladis: I'm not sure what I expected :P
<MichaelRaskin> Well, lightning talks did happen
<iqubic> MichaelRaskin: what OS are you running?
<adisbladis> gchristensen: Not really much to take a screenshot of :)
Makaveli7 has joined #nixos
<MichaelRaskin> Well, Nixpkgs-based with custom boot scripts and a Common Lisp daemon managing stuff
eadwu has joined #nixos
<ldlework> Do you use it to make continuous offerings to god in the form of randomly generated hymns?
<iqubic> So is it like nixos + guixsd?
<iqubic> MichaelRaskin: ^^^
<MichaelRaskin> Not really, I use some small pieces of NixOS, and nothing of Guix
<{^_^}> [nixpkgs] @jnsaff opened pull request #53094 → chevron: init at 0.13.1 → https://git.io/fhLy0
<iqubic> Have you released this OS online?
ddellacosta has quit [Remote host closed the connection]
<MichaelRaskin> Well, the code is available
<adisbladis> Hmm... I guess firefox policies could be abused to manage at least the bootstrapping of the browser
<schopp0r> rnhmjoj: I see you are a maintainer of PaleMoon. Hm. The version in the package tree is very outdated. Do you still maintain it? (otherwise I might just submit a patch in the next days, not sure when I have enough bandwidth, though)
<blumenkranz> Any suggestions on how to give a wrapped bin higher priority than the original binary?
Makaveli7 has quit [Quit: Leaving]
<rnhmjoj> schopp0r: sorry, i stopped using pale moon and I haven't maintained it for a while. if you update it you could remove me as a maintainer
<blumenkranz> I can't wrap (pun intended) my mind around how to make the Firejail-wrapped Firefox override the original one in /run/current-system/sw/bin
<schopp0r> rnhmjoj: ok. maybe I should contact the other maintainer as well.
buckley310 has quit [Quit: Bye]
<samueldr> blumenkranz: don't install the non-wrapped firefox?
<samueldr> (I mean, as a systemPackage)
<schopp0r> ah, how is the security update policy of nixos, btw? I think palemoon only has security updates in new releases. but a new release cannot always get into "stable" I think
<rnhmjoj> you may be interested in pr #52728, i just saw it today
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52728 (by develCuy, 1 week ago, open): Palemoon 28.2.2 (from binary tarball)
<samueldr> schopp0r: sensitive software like browsers get a free pass
<adisbladis> blumenkranz: The wrapped one ends up in /run/wrappers/bin which precedes /run/current-system/sw/bin in $PATH
<Profpatsch> > nix eval 'import "${<nixpkgs>}/lib"'
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):214:10
<Profpatsch> error: getting status of '/home/philip/import "${<nixpkgs>}/lib"': No such file or directory
<Profpatsch> The heck
<blumenkranz> samueldr: will Nix be able to tell firefox is a dependency of the wrapper, when it's just used as a variable?
<Profpatsch> I really don’t understand the nix 2 tools.
<blumenkranz> adisbladis: sadly, whenever I execute firefox, I get the original one, no the wrapped one.
<blumenkranz> The $PATH is right, tho
<samueldr> schopp0r: in other words: browser updates *should* get backported, if the contributor doesn't do it, ask for it in the PR, either the nixpkgs committer doing the PR will do it, or ask for the right contirbutor which will do it
bpye has quit [Ping timeout: 268 seconds]
<Profpatsch> Compare nix-instantiate --eval -E 'import "${toString <nixpkgs>}/lib"'
<Profpatsch> which works like a charm
<MichaelRaskin> adisbladis: thanks again
<blumenkranz> adisbladis: I have firejail in /run/wrappers, but not firefox itself.
<gchristensen> Profpatsch: unrelated to your question, you can do import <nixpkgs/lib>
eadwu has quit [Ping timeout: 252 seconds]
<Profpatsch> gchristensen: Not in my case. ;)
<gchristensen> what...uh...is your case? :o
<schopp0r> samueldr: PR?
<samueldr> schopp0r: pull request
<Profpatsch> gchristensen: { nixpkgs ? <nixpkgs> }: let pkgs = import nixpkgs {}; lib = import "${toString nixpkgs}/lib"; in …
<schopp0r> samueldr: ah ok.
<schopp0r> samueldr: thx
<Profpatsch> To save on having to go through all the nixpkgs init code just for the lib.
<adisbladis> Profpatsch: Umm.. I can't say I understand what's going on here but '(import "${<nixpkgs>}/lib")' does the trick
<Profpatsch> adisbladis: Yes, but it’s going to import <nixpkgs> into your store first.
<Profpatsch> Because it’s effectively doing "${/some/path}"
<Profpatsch> If you add toString, it won’t import the path into your store.
<{^_^}> [nixpkgs] @jnsaff opened pull request #53095 → serverlessrepo: init at 0.1.6 → https://git.io/fhLy5
<Profpatsch> It’s a bit arcane. :)
<adisbladis> I was pointing out that adding parens to the expression does not trigger this: "Profpatsch: error: getting status of '/home/philip/import "${<nixpkgs>}/lib"': No such file or directory"
boredom101 has quit [Quit: Page closed]
<Profpatsch> adisbladis: Oooooooooh.
<Profpatsch> You are right. And I know I hit this in the past.
<Profpatsch> One reason I still use the old tools. :)
<Profpatsch> I think it’s not acceptable.
<blumenkranz> samueldr: Oh, it did work. Didn't imagine Nix would be smart enough to determine it needed Firefox just from a path variable reference in another place.
<gchristensen> that is the special sauce which makes Nix so good
<adisbladis> Profpatsch: Yeah that's not the behaviour I'd expect from eval..
<gchristensen> Profpatsch: they're still beta for sure... :)
<Profpatsch> Yeah, they are.
<adisbladis> nix eval '1'
<adisbladis> error: don't know what to do with argument '1'
<adisbladis> Strangeness
<samueldr> > "Store path to firefox: ${pkgs.firefox}" # blumenkranz
<Profpatsch> We hit another bug with nixos-install that I’m pretty sure is because of the switch from `nix-build` to `nix build` in the script.
<{^_^}> "Store path to firefox: /nix/store/r55knryshbnxp4ggcldrqzlc82q681f3-firefox-64.0"
<samueldr> that's whatever firefox version the bot's current checkout would be
<Profpatsch> Though it was not on my system, so I didn’t open a bug.
<samueldr> the wrapper, when it uses ${firefox} adds a dependency to the thing also existing
waif has joined #nixos
<blumenkranz> Damn, now I feel bad the package manager is more intelligent than me.
<smrtak> samueldr: oh, I didn't know. thx!
<iqubic> how is the package manger smart?