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
maximiliantagher has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
mounty has quit [Ping timeout: 246 seconds]
NightTrain has joined #nixos
mounty has joined #nixos
Guest63655 has quit []
random_yanek has quit [Ping timeout: 245 seconds]
<NemesisD> how do yall browse for expressions in nixpkgs? this repo is like 1gb and github search is worthless
hph^ has joined #nixos
<dckc> tried github filename search? (clue: hit t)
<dckc> what's this options stuff in nixos service expressions? I don't see a nixos manual
<dckc> oh. it's under support (unlike nix, nixpkgs)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/54dcb0b1376 (from 79 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
dermetfan has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
camsbury has quit [Remote host closed the connection]
bhipple has joined #nixos
camsbury has joined #nixos
random_yanek has joined #nixos
<NemesisD> is there any concept of a strict mode or something that will error if i've provided an unused attr? like i'm trying to use haskellPackage.shellFor and i'm trying to override the ghc version, but i keep trying setting attributes that i think will override it but they get silently ignored
<symphorien> a way to see if a= 1; is used is to replace it with a=assert false; 1
camsbury has quit [Ping timeout: 245 seconds]
<symphorien> > { a = assert false; 1; b = 2; }.b
<{^_^}> 2
<symphorien> > { a = assert false; 1; b = 2; }.a
<{^_^}> assertion failed at (string):218:7
<NemesisD> clever!
mkoenig has quit [Ping timeout: 245 seconds]
<dckc> diagnostics from nix-build look really crummy in emacs compile mode. suggestions?
<{^_^}> [nixpkgs] @worldofpeace opened pull request #55465 → desktop-files-utils: add setupHook to remove mimeinfo.cache → https://git.io/fhHa9
<{^_^}> [nixpkgs] @jglukasik opened pull request #55466 → ipfs-cluster: 0.7.0 -> 0.8.0 → https://git.io/fhHaH
<NemesisD> is there a way to dump the dependencies? i'm setting ghc = pkgs.haskell.compiler.ghc822 and yet its saying Build with /nix/store/b39iibf198q06a0k4vq0lfzzmirq2hc3-ghc-8.6.3
ikitat has joined #nixos
<dckc> ,callPackage
<{^_^}> If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<srhb> NemesisD: Normally you'd want to use haskell.packages.ghc822.shellFor
mkoenig has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
<srhb> NemesisD: haskellPackages always refers to the latest stable package set (meaning, at the moment, ghc863 for unstable)
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/13050bedc49 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
ikitat has quit [Ping timeout: 244 seconds]
leotaku has quit [Remote host closed the connection]
eadwu has joined #nixos
halfbit has quit [Ping timeout: 252 seconds]
<dckc> how does foo.nix get stdenv, cmake, {^_^}?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55456 → plano-theme: 3.30-2 -> 3.30-3 → https://git.io/fhHue
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @romildo to master « plano-theme: 3.30-2 -> 3.30-3 »: https://git.io/fhHad
<srhb> dckc: callPackage provides it
<NemesisD> srhb: so in my default.nix i use pkgs.haskell.packages.ghc822.extend to add my package. and in shell.nix i use pkgs.haskell.packages.ghc822.shellFor to instantiate it with dev tools? so then i guess my next step is to add a parameter to both of those files to take a ghc and default it to "ghc822"?
goibhniu has quit [Ping timeout: 246 seconds]
* dckc scratches head
<dckc> suppose I wanted to pass my own cmake
<srhb> NemesisD: Maybe I should read up, I've no idea why you're using extend.
o1lo01ol1o has joined #nixos
<NemesisD> srhb: i'm using this as a template: https://github.com/Infinisil/soph/blob/master/default.nix#L13 i can't paste what i'm working on because its partially proprietary
<qyliss> dckc: then you put cmake = whatever in that final attribute set
<dckc> I'm getting no output from nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix { config.services.wildfly.enable = true; }' where default.nix is https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/jboss/default.nix
<srhb> NemesisD: If you're doing that, your shell should be using the same hpkgs with shellFor
ng0 has quit [Quit: Alexa, when is the end of world?]
<qyliss> dckc: I think you want to put the config stuff in the first attribute set
<NemesisD> so i'm extending it to add my package as well as a couple of unreleased proprietary packages that are sitting in subdirs. also using dontCheck on some packages whose test suites don't pass although honestly i'd like to turn that off universally
<srhb> NemesisD: I recommend that you take care to deal with only one package set across your project.
<NemesisD> srhb: yeah i reference hpkgs from shell.nix
<dckc> no joy
<srhb> NemesisD: So, factor out a pkgs instantiation that you can share across them.
<dckc> no joy: nix-build -E '(import <nixpkgs> {config.services.jboss.enable = true;}).callPackage ./default.nix { }'
<srhb> dckc: NixOS options are not nixpkgs options
slack1256 has joined #nixos
<srhb> dckc: What are you trying to do?
<qyliss> oh, whoops, I missed that
Rusty1 has joined #nixos
<dckc> I'm trying to use jboss (well, wildfly) with nix installed on Ubuntu (or CentOS)
o1lo01ol1o has quit [Remote host closed the connection]
<dckc> I'm trying to upgrade our i2b2 middle tier, and I'd rather not use ad-hoc methods as we've done in the past. the middle tier is (mostly) a jboss/wildfly web app
<srhb> dckc: I recommend that you forgo all the NixOS components for now. Making the play with OtherOS is involved.
<dckc> my desktop runs Ubuntu but the deployment platform is CentOS
<srhb> dckc: And if you do want to do it anyway, you're probably better off building a custom systemd service builder for your purpose.
<srhb> Rather than relying on the existing NixOS module.
<NemesisD> srhb: is there a global way to disable 3rd party dependency tests and haddocks? ghc build times are long enough, lol
<dckc> but I'm really confused about how scoping works... is callPackage magic? or is it just a function?
<srhb> NemesisD: You can override the haskell package set's mkDerivation.
drakonis has quit [Quit: WeeChat 2.3]
<ottidmes> dckc: just a function
<simpson> dckc: In Nix, there's a few builtins for introspection. callPackage looks at the signature of its callee to figure out what to pass for defaults.
<dckc> if I'm trying to put a square peg (nixos) in a round hole (nixpkgs) can anybody explain what the actual failure mode is? why is nix-build silently reporting success without doing anything?
<srhb> NemesisD: Adapt with whatever override method you're using :)
nD5Xjz has joined #nixos
<NemesisD> srhb: thanks!
<dckc> "looks at signature of its callee" doesn't look like a function I could write myself.
<dckc> oh... I guess nix-build is not doing anything cuz jboss/default.nix specifies a set, and nix-build goes "oh. yes. that's a set. tada!"
<bhipple> It seems like there are multiple ways of specifying a valid sha256 that encode to the same value. For instance, both of these packages on the LHS and RHS result in the same output hash: https://github.com/bhipple/nixpkgs/commit/4e33c8fcd4b90091945ac30ca6f978bacbafc233
<ottidmes> dckc: there is a builtin called functionArgs, that allows you to check the attributes expected of an function expecting an attrset as an argument, i.e. it can determine that { stdenv, git }: ... will have "stdenv" and "git" as arguments
<bhipple> Does ahnyone know what's going on here?
<dckc> ah. so the magic is functionArgs
<simpson> dckc: But to add on to what I've said, it would seem that the current incarnation of callPackage is a bit simpler than this. You could still write most of it yourself, if you had the Nix object model in your mind and were in enough of a self/super mood.
<dckc> just a guess, bhipple : base16 vs base32
<srhb> dckc: Re. silent "failure" -- what you're doing is essentially nix-build -E '(import <nixpkgs> {}).callPackage ({...}: {}) {}'
Guest52244 has quit [Ping timeout: 250 seconds]
<srhb> Which in turn is pretty much nix-build -E '{}'
<srhb> Which is both pretty silent and pretty boring.
<ottidmes> bhipple: yep, like dckc mentions, most fetchers allow base16 and base32, the default tends to be base32, and I believe base64 is not also supported, at least in some of the latest Nix tools
<ottidmes> s/not/now
<bhipple> ottidmes: ah yes, you ad dckc are right; the longer one is in hex while the shorter one is indeed base32
<bhipple> thanks. I notice a lot of the python packages happen to be in base16, though it looks like it gets converted to base32 for output error msgs when the prefetcher fails
<simpson> bhipple: Likely pregenerated by pypi2nix or some other tool.
Melkor333 has quit [Ping timeout: 250 seconds]
<ottidmes> bhipple: check out nix-hash to convert hashes
<ottidmes> bhipple: yeah, hash mismatched right now are always reported in base32
<bhipple> ottidmes: oh nice, I didn't know about nix-hash. Neat!
<bhipple> ottidmes: that's a lot more convenient than googling for online converters in chrome
<srhb> There's also nix to-base16, to-base32, to-base64
<ottidmes> bhipple: another problem with that is that there are multiple base32 variants
<bhipple> nix-hash --type sha256 --to-base32 <longer hash> produces the shorter hash, as expected
<bhipple> Interestingly, it assumes md5 if no type is specified, which seems like a legacy default since md5 is generally no longer used
mounty has quit [Quit: Konversation terminated!]
<ottidmes> bhipple: md5 was the default in the beginning, so yeah, legacy default
<ottidmes> bhipple: its now deprecated though, best to use sha256
mkoenig has quit [Ping timeout: 250 seconds]
cydf has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
o1lo01ol1o has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @markuskowa pushed to revert-53126-submit/megasync-3.7.1.0 « Revert "megasync: init at 3.7.1.0 (#53126)" »: https://git.io/fhHVG
<{^_^}> [nixpkgs] @markuskowa opened pull request #55467 → Revert "megasync: init at 3.7.1.0" → https://git.io/fhHVZ
mkoenig has joined #nixos
<neonfuz> so nix-env wants to update my openjdk-8 to openjdk-11
<neonfuz> if I explicitly install jdk8 will it not do this?
<dckc> what serves as /bin/sh in nixpkgs?
<{^_^}> [nixpkgs] @markuskowa merged pull request #55467 → Revert "megasync: init at 3.7.1.0" → https://git.io/fhHVZ
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhHVn
<srhb> dckc: We try to never use it, but bash's sh version
<dckc> what do you try to use?
<srhb> dckc: An actual path to a specific shell version in the store
<srhb> dckc: eg. /nix/store/....bash-version/bin/sh
Guest40146 has quit []
<srhb> dckc: To avoid the potential impurity.
hph^ has quit []
<{^_^}> [nixpkgs] @bhipple opened pull request #55468 → pythonPackages.requests: update base16 hash to more conventional base32 hash → https://git.io/fhHVc
<dckc> right... I'm looking for a shell package, not /bin/sh
<simpson> > "${bash}/bin/sh"
<{^_^}> "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh"
phaebz has quit [Remote host closed the connection]
<dckc> so it's bash even when you don't want/need all the bells and whistles... ok
<srhb> > "${stdenv.shell}" # is common in builders
<{^_^}> "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
<srhb> dckc: Yeah, usually.
<simpson> Does bash go into POSIX sh mode when invoked as `sh`? Or does it require POSIXLY_CORRECT?
Maxdamantus has quit [Quit: brb]
<srhb> simpson: It does go into one of the POSIX sh modes iirc.
<srhb> Strangely it's not fully compatible
htoc^ has joined #nixos
<dckc> those incompatibilities seem to be in dark corners I never hit, fortunately
rcshm has quit [Read error: Connection reset by peer]
<srhb> Admittedly I seldom verify that the behaviour is POSIXly correct :P
eadwu has quit [Quit: WeeChat 2.3]
rcshm has joined #nixos
<dckc> ok... so I've got wildfly starting and griping: Could not create server data directory: /nix/store/3avvma7bjb32bqz9qnywdlwmwkpkf6aw-wildfly/standalone/data
<dckc> that preExec clue seems relevant
eadwu has joined #nixos
<simpson> Progress!
<{^_^}> [nixpkgs] @markuskowa pushed 0 commits to revert-53126-submit/megasync-3.7.1.0: https://git.io/fhHVW
<dckc> gonna declare victory for the day. thanks, everybody
maximiliantagher has joined #nixos
Maxdamantus has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<simpson> Have a good weekend.
eliasp has quit [Ping timeout: 246 seconds]
eliasp has joined #nixos
klntsky has quit [Ping timeout: 256 seconds]
eliasp is now known as Guest57456
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55465 → desktop-files-utils: add setupHook to remove mimeinfo.cache → https://git.io/fhHa9
<{^_^}> [nixpkgs] @worldofpeace pushed to master « desktop-files-utils: add setupHook to remove mimeinfo.cache »: https://git.io/fhHV8
klntsky has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhHV4
mkoenig has quit [Ping timeout: 250 seconds]
slack1256 has quit [Remote host closed the connection]
kleisli has joined #nixos
kleisli has quit [Client Quit]
kleisli has joined #nixos
mkoenig has joined #nixos
ddellacosta has joined #nixos
thc202 has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #55469 → waf: 2.0.13 -> 2.0.14 → https://git.io/fhHVg
mkoenig has quit [Ping timeout: 272 seconds]
mounty has quit [Ping timeout: 244 seconds]
mounty has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
DrLambda has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55464 → mattermost: 5.4.0 -> 5.7.1 → https://git.io/fhHaz
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhHVK
marusich has joined #nixos
o1lo01ol1o has joined #nixos
ashkitten has quit [Remote host closed the connection]
ashkitten has joined #nixos
mobile_c has quit [Ping timeout: 250 seconds]
mkoenig has joined #nixos
Supersonic has quit [Ping timeout: 252 seconds]
maximiliantagher has joined #nixos
vk3wtf has quit [Quit: WeeChat 2.3]
aanderse has joined #nixos
Supersonic has joined #nixos
<{^_^}> [nixpkgs] @aanderse reopened pull request #55460 → nixos/php: init new php module for command line usage → https://git.io/fhHzX
mkoenig has quit [Ping timeout: 272 seconds]
maximiliantagher has quit [Ping timeout: 268 seconds]
mkoenig has joined #nixos
ikitat has joined #nixos
i1nfusion has joined #nixos
init_6 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54751 → vscode-extensions.ms-vscode.cpptools: 0.20.1 -> 0.21.0 → https://git.io/fhiTW
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @eadwu to master « vscode-extensions.ms-vscode.cpptools: 0.20.1 -> 0.21.0 »: https://git.io/fhHVF
marusich has quit [Ping timeout: 250 seconds]
ikitat has quit [Ping timeout: 272 seconds]
<kyren> is nix-shell supposed to change the NIX_PATH variable, and if so can I prevent it from doing that?
eadwu has quit [Quit: WeeChat 2.3]
<kyren> before using `nix-shell -p nix-prefetch-github` my NIX_PATH is 'nixpkgs=/etc/nixpkgs', after it looks to be reset to a default which looks at /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/54dcb0b1376 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
vonfry has joined #nixos
mizu_no_oto has joined #nixos
<vonfry> I have a pr for a unimportant tool several days ago and it is merged in master branch. I want to know what should I do let it merge into stable branch? Or just wait?
rcshm has quit [Ping timeout: 246 seconds]
marusich has joined #nixos
kleisli has quit [Ping timeout: 246 seconds]
<{^_^}> [nix] @volth closed pull request #2669 → fix "nix build -f /dev/stdin" → https://git.io/fhHTf
<{^_^}> [nixpkgs] @worldofpeace opened pull request #55470 → nixos/bamf: generate bamf-2.index → https://git.io/fhHwv
maximiliantagher has joined #nixos
maximiliantagher has quit [Ping timeout: 245 seconds]
<Ankhers> Is there any chance I could get someone to merge https://github.com/NixOS/nixpkgs/pull/54115?
<{^_^}> #54115 (by k32, 3 weeks ago, open): rebar3: 3.6.1 -> 3.9.0
Ariakenom has quit [Quit: Leaving]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
nD5Xjz has quit [Ping timeout: 268 seconds]
<ottidmes> vonfry: in less than 2 months 19.03 stable will be released, which most likely will include your tool as well, so its probably best to just wait rather than to try and get it backported to 18.09. In the meantime you can use nixos-unstable together with stable.
<ottidmes> ,unstable vonfry
<ottidmes> kyren: I don't think nix-shell does anything special for it, my NIX_PATH remains unchanged at least, so I guess it has to do with how/where you have set NIX_PATH
<kyren> it must be, I set it in my "darwin-config" because I'm using nix-darwin... maybe it's a bug in nix-darwin?
eadwu has joined #nixos
silver has quit [Read error: Connection reset by peer]
<ottidmes> kyren: could be, I have never used Darwin, let alone nix-darwin
<kyren> yeah, it doesn't happen on at least one of my linux machines
vonfry has quit [Quit: WeeChat 2.3]
<ottidmes> maybe ask on #nix-darwin? I would have expected many more people complaining about it, if this never worked properly before, so it might be that you are doing something differently than most, but that is my guess
<kyren> oh, I didn't know there was a #nix-darwin, thanks
rcshm has joined #nixos
<spacekitteh[m]> can someone merge this please? https://github.com/NixOS/nixpkgs/pull/54991
<{^_^}> #54991 (by FlorianFranzen, 1 week ago, open): sc2-headless: 3.17 -> 4.7.1
o1lo01ol1o has quit [Remote host closed the connection]
Edes has quit [Quit: Lost terminal]
eadwu has quit [Quit: WeeChat 2.3]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
petrkr has quit [Remote host closed the connection]
slack1256 has joined #nixos
marusich has quit [Remote host closed the connection]
<kyren> I am not having a great day, it's like everywhere I step I step on bugs, I appear to be hitting https://github.com/NixOS/nix/issues/1697 OR I don't know what I'm doing and I can't tell the difference
<{^_^}> nix#1697 (by knedlsepp, 1 year ago, closed): builtins.fetchGit fails when fetching new versions of a repository
slack1256 has quit [Remote host closed the connection]
<kyren> I'm getting fatal: not a tree object\nerror: program 'git' failed with exit code 128 after using bultins.fetchGit a second time :/
<mdash> ottidmes: i'm fooling with bitwarden_rs again, trying to add smtp config
<mdash> ottidmes: was there a reason you put the env file in /etc instead of in the nix store?
noonien has joined #nixos
<noonien> hello folks!
<noonien> are there any examples of using make-disk-image?
<kyren> okay, I think I'm starting to understand what my problem is, let me back up a bit, I'm trying to load nixpkgs from builtins.fetchGit, and I appear to be running into problems because nixpkgs does things like "loadModule <nixpkgs/nixos/modules/misc/assertions.nix> { }", and nixpkgs isn't a *directory*
<kyren> is there a way to get nixpkgs from builtins.fetchGit that will work, what I'm trying to do is snapshot nixpkgs via the json output of something like nix-prefetch-git
<ottidmes> mdash: preference I guess, I expect it to be there in other distros and dislike having to read the service files to pinpoint the env file in use, but the counter argument is probably that it pollutes /etc unnecessarily
<ottidmes> mdash: when you say trying to add smtp config, do you mean use my config options for that, because my PR now includes them: https://github.com/NixOS/nixpkgs/pull/55413
<{^_^}> #55413 (by msteen, 1 day ago, open): bitwarden_rs: init at 1.4.0
<kyren> okay, I also understand what that fetchGit error message is, it's because I'm not specifying a ref parameter to builtins.fetchGit because I'm using the output of nix-prefetch-git which doesn't have it
pie___ has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
<ottidmes> noonien: you mean to make your own live CD or something else?
maximiliantagher has joined #nixos
<noonien> i want to create an image to run with qemu, either a qcow, an .img or an .iso, doesn't really matter
countingsort has joined #nixos
pie__ has quit [Ping timeout: 245 seconds]
rcshm has quit []
<mdash> ottidmes: oh ho, i'm behind ;)
<{^_^}> [nixpkgs] @lilyball opened pull request #55471 → cocoapods: 1.5.3 -> 1.6.0 → https://git.io/fhHwX
rcshm has joined #nixos
counting1ort has quit [Ping timeout: 250 seconds]
<mdash> ottidmes: also of possible interest: https://gist.github.com/washort/743c0a4aadee23ec1983666ab337d9c9
<ottidmes> mdash: any reason not to put the env in /etc?
<mdash> ottidmes: I'm just used to seeing it as a store path
<ottidmes> mdash: curses! so I went to all the trouble trying to package it for nothing
<mdash> in general I only think about generated stuff living outside the store if things are hardcoded to look for it in a specific place
<mdash> ottidmes: yeah i spent a couple hours on it too before i found this, heh
<ottidmes> mdash: makes sense, I will put it in /nix/store
DrLambda has quit [Ping timeout: 250 seconds]
sinner has joined #nixos
<ottidmes> mdash: can always create some shell functions to make it easy to get access to those paths, because there will be plenty of other services that don't have it in /etc, so my argument does not really hold
sinner is now known as Guest69325
jtojnar has quit [Ping timeout: 272 seconds]
ikitat has joined #nixos
<ottidmes> mdash: I know its me finding an execuse to keep it (common practice of programmers after spending a lot of effort on a piece of code), but since the older version in the PR (due to Rocket 0.4 added to bitwarden_rs version 1.5 breaks with rustc 1.31) is build using the Web Vault 2.4.0 and that fork only starts at 2.5.0, I am keeping it for versions older than 2.5.0
rcshm has quit []
ikitat has quit [Ping timeout: 244 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mdash> ottidmes: Sure.
daniele- has joined #nixos
<mdash> ottidmes: I gave up and used the overlay for nightly, since I'm not doing an upstream PR :)
<ottidmes> mdash: once staging merges, it will have rustc 1.32 that might be able to compile it, version 1.33 at least does, but I figured, I can always make a new PR when that happens, better to already have it in, and I know this version works, since I have been using it for months
kvda has joined #nixos
kvda has quit [Client Quit]
renais has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/baf6ba553f7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jtojnar has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
renais has quit [Ping timeout: 250 seconds]
praetorg_ has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
kvda has joined #nixos
_praetorg_ has quit [Ping timeout: 250 seconds]
qualiaqq has joined #nixos
renais has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhipple has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.3]
<mdash> ottidmes: definitely
<mdash> ottidmes: I look forward to having it in nixpkgs, let me know if I can help with anything
renais has quit [Ping timeout: 246 seconds]
<ottidmes> mdash: just using and testing the PR as it is right now would help. I have only tested the basics, my server is still running my old package/module, but I cannot update it right now. Like you mentioned SMTP, does that work with the module as it is right now? I never tried it
ddellacosta has quit [Ping timeout: 246 seconds]
renais has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
renais has quit [Ping timeout: 246 seconds]
renais has joined #nixos
nD5Xjz has quit [Ping timeout: 250 seconds]
palo1 has joined #nixos
renais_ has joined #nixos
renais has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
nD5Xjz has joined #nixos
pointfourone has joined #nixos
pointfourone has quit [Client Quit]
o1lo01ol1o has joined #nixos
maximiliantagher has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
leotaku has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
yayforj has joined #nixos
<leotaku> Good morning. I've just experienced an issue where, because of a "bad" overlay I had nix-build fill up all available memory and essentially lock my system. Is that something I should report as a bug, or is that "expected" with certain types of wrongly configured overlays.
<leotaku> *?
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
Maxdamantus has quit [Quit: brb]
Maxdamantus has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
<ottidmes> leotaku: if you think this could have been detected decidably somehow or is clearly a bug, only then I would make an issue for it
<ottidmes> leotaku: if its just a case of bad code, then its not worth an issue, there are many ways to reproduce your issue that I would not consider bugs of Nixpkgs/Nix
DrLambda has joined #nixos
renais_ has quit [Ping timeout: 245 seconds]
<leotaku> ottidmes: Interesting. But aren't there usually restrictions (eg. max recursion depth) so that the process maybe fails but doesn't crash the users machine?
nD5Xjz has joined #nixos
<ottidmes> leotaku: there are some in place (you see this with infinite recursion being reported), but not all cases can be guarded against, I am not familiar enough with the implementation to know if there exists a max recursion depth, but in all liklihood your memory will already be full before this triggers, its a hard problem
yayforj has quit [Remote host closed the connection]
yayforj has joined #nixos
daniele- has quit [Quit: daniele-]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<{^_^}> [nixpkgs] @dotlambda opened pull request #55472 → nheko: 0.6.2 -> 0.6.3 → https://git.io/fhHoL
balsoft has joined #nixos
ikitat has joined #nixos
ikitat has quit [Ping timeout: 272 seconds]
<bpye> Are there any tools like NixOps for managing a NixOS server when not on a NixOS machine?
mobile_c has joined #nixos
<bpye> The only thing I can think of right now is to set up some sort of container in which I'd run the NixOps deployment, but given that NixOps does most of the deployment process locally that sounds like it's gonna suck
<bpye> By not NixOS machine, I mean a machine without Nix, be it a Windows machine, or something running *BSD... MacOS and Linux support are great but sadly I can't be in those environments always
<{^_^}> [nixpkgs] @vcunat pushed 0 commits to gcc-8: https://git.io/fhHos
<mobile_c> by the way, can Nix Os run multiple versions of the same package simultaniously yet
<clever> bpye: nixops works on any linux distro, and darwin, just install nix
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.pyfakefs: 3.5.6 -> 3.5.7 »: https://git.io/fhHoZ
<clever> mobile_c: yeah
<bpye> Haha, as I said, sometimes I am on a Windows machine though, and try as I might, Nix runs like crap on WSL -> I'm well aware that's a WSL issue, it's filesystem perf leaves a lot to be desired
<bpye> I can always run in a VM but then life sucks for other reasons
DrLambda has quit [Ping timeout: 250 seconds]
<clever> bpye: i have a central dedicated machine i always run nixops on, and ssh to that
<mobile_c> 0.0 awesome
<bpye> clever: How do you make editing files remotely suck less?
<clever> bpye: i always use vim, so i just run vim under ssh
<bpye> I have never found a way to make that work nicely, it's always been painful
<bpye> Ah I see
<wedens> bpye: if you use emacs, you can use TRAMP
<mobile_c> does NixOS have support for m68k cross compilers
<clever> bpye: ive also made a vim.nix that includes all of my standard config and plugins, so i just `nix-build vim.nix -o vim` and `./vim/bin/vi` and it works 100% like the local one
<bpye> I can get by with vim, I've come to quite like vs code though which afaik lacks any decent remote editing solution
<clever> bpye: samba is also an (ugly) solution, just map the remote disk to the windows box
<bpye> The best I've ever found is an extension to support rmate - I've used samba in the past but it tends to screw up permissions
<wedens> is there something like sshfs on windows?
<bpye> Ah... There totally is an sshfs FUSEish driver for windows
<bpye> I forgot that existed - it's been a couple years since I last had this problem
<wedens> apparently it exists https://github.com/billziss-gh/sshfs-win
kleisli has joined #nixos
klntsky has quit [Ping timeout: 256 seconds]
<bpye> Yeah, I've used that project before, you'll probably even find my in the issues list somewhere, heh.
<bpye> I wonder, has anyone tried https://tech.ingolf-wagner.de/nixos/krops/ ? Seems it might do little enough on the host to make WSL more viable...
klntsky has joined #nixos
yayforj has quit [Ping timeout: 244 seconds]
<wedens> I don't think it's much better than just ssh-ing to the machine, tbh
lfish has joined #nixos
simukis has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
balsoft has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
jtojnar has quit [Quit: jtojnar]
noonien has quit [Quit: Connection closed for inactivity]
jtojnar has joined #nixos
balsoft has joined #nixos
Guest69325 has quit [Ping timeout: 244 seconds]
rprije has joined #nixos
pointfourone has joined #nixos
pointfourone has quit [Client Quit]
NightTrain has quit [Ping timeout: 268 seconds]
maximiliantagher has quit [Ping timeout: 244 seconds]
cswl has joined #nixos
<cswl> Where does nixpkg store configuration?
goibhniu has joined #nixos
Glider_IRC__ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to release-18.09: https://git.io/fhHoi
Glider_IRC_ has quit [Ping timeout: 240 seconds]
<leotaku> cswl: I think you will have to clarify what you mean by that before anyone here will be able to help.
kumikumi has joined #nixos
<cswl> I mean config files of packages .. I installed `lxd`
zupo has joined #nixos
<leotaku> cswl: what is lxd?
<wedens> doesn't seem like this module writes any config files
<leotaku> cswl: Also with services specified in configuration.nix you are supposed to only configure them through their options. You wont be able to edit the configuration files on the filesystem.
<balsoft> Yeah
<balsoft> nixpkgs doesn't store any configuration
<balsoft> It's exactly the job of NixOS
<balsoft> nixpkgs does the opposite - make the same packages behave the same way everywhere
<balsoft> Config file would break that
maximiliantagher has joined #nixos
<cswl> Where does it save systemd unit files
<balsoft> Nowhere
<balsoft> NixOS generates them
<balsoft> nixpkgs is free of any systemd reference
<balsoft> s
<balsoft> It does have systemd as a package, that's about it.
<balsoft> It has other inits as packages, but NixOS only uses systemd (so far)
<leotaku> balsoft, cswl: Well it stores them in the nixpkgs store.
<balsoft> It's not nixpkgs store!
<balsoft> It's nix store.
<balsoft> If you want nix to generate configuration files and startup scripts, use nixos
<leotaku> balsoft: Sorry, I messed up the terminology.
maximiliantagher has quit [Ping timeout: 268 seconds]
<balsoft> Are there any standalone WM users here?
<balsoft> I mean no DE
<leotaku> cswl: Are you on NixOS or just using the Nix package manager?
<balsoft> I need some help with Qt icon theme
<balsoft> I can't seem to get any help anywhere. Tried stackoverflow, reddit/r/linuxquestions, #qt
<balsoft> The problem is that Qt doesn't recognize KDE icon theme
<balsoft> Set in kdeglobals
<balsoft> It did recognize it earlier
zupo_ has joined #nixos
<leotaku> balsoft: I am using FVWM currently, but I don't know how to help you...
zupo has quit [Ping timeout: 250 seconds]
<cswl> Just using NIx package manager
<leotaku> cswl: Well then all you can do is install packages using eg. nix-env nix-shell. You won't be able to manage your configurations using only Nix.
<goibhniu> hi balsoft, can you provide more details, an example of what used to work and no longer works? Do you see any error message when launching a Qt application?
<cswl> Well.. there must be some way to change configuration options :/
<leotaku> cswl: as balsoft said, thats what NixOS is for.
<{^_^}> [nixpkgs] @vcunat pushed 282 commits to staging-next: https://git.io/fhHoy
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #55445 → haskellPackages.insert-ordered-containers: fix test phase → https://git.io/fhHcg
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhHoS
_kwstas has quit [Remote host closed the connection]
<goibhniu> balsoft: also, does running `kbuildsycoca5` help?
<cswl> It doesnt seem to read this..
<cswl> The system configuration is located at /etc/lxc/lxc.conf or ~/.config/lxc/lxc.conf for unprivileged containers.
<goibhniu> oh, you probably don't have that without KDE/plasma
<leotaku> cswl: The applications installed using Nix should just read their config files from the usual locations. I would be surprised if this was a Nix/Nixpkgs issue.
<kyren> I'm not sure this is a nixos question exactly, but I have a cheapo dedicated server with a bunch of containers on it, and the one that has gitlab in it is *very slow* to restart, and this constantly causes headaches for me because when I do a nixos-rebuild it always causes "error(s) occurred while switching to the new configuration", and I believe this is just timing out
<kyren> Is there a way to increase this timeout
<kyren> seriously, starting the container that has gitlab in it takes a good 45 seconds
monotux has joined #nixos
i1nfusion has quit [Remote host closed the connection]
simukis has quit [Quit: simukis]
i1nfusion has joined #nixos
simukis has joined #nixos
qualiaqq has quit [Quit: ERC (IRC client for Emacs 26.1)]
shibboleth has joined #nixos
<leotaku> kyren: I think such errors should be logged by systemd. Can you maybe try "journalctl -xe" to confirm that the problem actually is what you think it is?
erictapen has joined #nixos
wigust- has quit [Ping timeout: 246 seconds]
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « sagelib: fix missing pkgs.pkgconfig »: https://git.io/fhHox
<{^_^}> [nixpkgs] @nyanloutre opened pull request #55473 → radarr: 0.2.0.1217 -> 0.2.0.1293 → https://git.io/fhHop
wigust has joined #nixos
i1nfusion has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Izorkin opened pull request #55474 → haskellPackages.uri-bytestring: fix build → https://git.io/fhHKv
i1nfusion has joined #nixos
dermetfan has joined #nixos
wigust has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3acebb03952 (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.prawcore: 1.0.0 -> 1.0.1 »: https://git.io/fhHKT
<{^_^}> [nixpkgs] @peti merged pull request #55474 → haskellPackages.uri-bytestring: fix build → https://git.io/fhHKv
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fhHKY
Soo_Slow has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
cydf has joined #nixos
cydf has quit [Remote host closed the connection]
knupfer has joined #nixos
mounty has quit [Ping timeout: 268 seconds]
mounty has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
cyraxjoe has joined #nixos
MightyJoe has quit [Ping timeout: 272 seconds]
<balsoft> goibhniu: sorry for absense. I can indeed provide more details :)
<balsoft> After some update (I think it was Qt 5.11 -> 5.12), icons in "pure" qt apps disappeared
<balsoft> I am setting my qt theme via kdeglobals
<balsoft> Here's my current nix-info: http://ix.io/1Azl
<goibhniu> can you give an example of a app where the icons are missing?
<balsoft> Albert, trojita
<kyren> leotaku: container@athena.service: Reload operation timed out. Killing reload process.
<balsoft> Those are the ones I'm actively using
<balsoft> pcmanfm-qt also does seem to not recognize the default theme
<balsoft> My kdeglobals: http://ix.io/1Alc
<balsoft> After doing some research, I decided to try out qt5ct
<kyren> I guess it's systemd that is controlling the timeout? I'm not super clear on the details here, I'm sorry
<balsoft> This is qt5ct.conf
<balsoft> And yes, I don't have plasma installed, just some parts of KDE that allow me to use the glorious KDE file dialogs etc
<balsoft> My config lives here: https://github.com/balsoft/nixos-config
<slyfox> 'nix-channel --update' fails with an obscure failure for me: "error: while setting up the build environment: getting attributes of path '': No such file or directory" http://dpaste.com/2QRRPCH.txt
<slyfox> Where does that '' path come from?
<balsoft> I can provide some before/after scrots of trojita
<balsoft> And I can provide exact versions of nixpkgs that work and don't work
<balsoft> Trojita before: https://pic4a.ru/iYIa/
<balsoft> Trojita after: https://pic4a.ru/i7SP/
<balsoft> Trojita with qt5ct: https://pic4a.ru/iu49/
<balsoft> KDE apps are just fine, only pure QT apps are suffering
<balsoft> If you do answer, please mention me.
teehemka_ has joined #nixos
ikitat has joined #nixos
<goibhniu> Sorry balsoft, I don't know what could cause that. Perhaps it's worth adding an issue with all those details.
<{^_^}> [nixpkgs] @Mic92 merged pull request #55449 → trilium: fix missing GSettings schemas → https://git.io/fhHlL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhHKM
<balsoft> I have a feeling it's not nixpkgs issue per se, but an issue with Qt
<balsoft> But I couldn't find any commits in Qt source that would change Icon behaviour in 5.12
dermetfan has quit [Ping timeout: 245 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
ikitat has quit [Ping timeout: 268 seconds]
maximiliantagher has joined #nixos
<goibhniu> balsoft: it might be worth testing with a fresh user account
<goibhniu> just in case Qt is caching something store path that no longer exists
<goibhniu> ^something^some
elgoosy has joined #nixos
Ariakenom has joined #nixos
<kyren> so, okay given what I have now figured out, I suppose my question is: is there a way to control the TimeoutStartUSec service option for a nixos container, because apparently one of mine likes to take longer than *looks at current value of option* 1 minute and 30 seconds
nD5Xjz has quit [Ping timeout: 272 seconds]
<ottidmes> slyfox: let me guess, Nix install, i.e. not NixOS? and on Arch?
<slyfox> it's not a nixos and gentoo
<ottidmes> slyfox: would you mind creating an issue for this over at https://github.com/NixOS/nix/issues, I have been seeing people running into this problem multiple times now, yet I don't see an issue created for it
<ottidmes> I mean at least 7 people encountering the problem and asking about it warrants an issue
pie___ has quit [Ping timeout: 250 seconds]
<ottidmes> slyfox: if you follow this conversation, hopefully you managed to fix it as well: https://logs.nix.samueldr.com/nixos/2019-02-06#1938291
maximiliantagher has quit [Ping timeout: 245 seconds]
nD5Xjz has joined #nixos
<slyfox> yeah, looks similar. I have 'sandbox-paths = /bin/sh='
elgoosy has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #55124 → coqPackages.mathcomp-analysis: init at 0.1.0 → https://git.io/fhSgX
<{^_^}> [nixpkgs] @vbgl pushed 3 commits to master: https://git.io/fhH6Y
<{^_^}> nix#2673 (by trofi, 12 seconds ago, open): 'nix-channel --update' stopped working on nix-2.2.1: error: while setting up the build environment: getting attributes of path '': No such file or directory
rprije has quit [Ping timeout: 245 seconds]
<slyfox> Looks like this was enough to repair it: nix-build '<nixpkgs>' -A bash && sudo systemctl restart nix-daemon
maximiliantagher has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #55195 → python37Packages.httmock: 1.2.6 -> 1.3.0 → https://git.io/fhS7z
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.httmock: 1.2.6 -> 1.3.0 (#55195) »: https://git.io/fhH6n
<leotaku> kyren: Sorry but I've not been able to find any configureable option to enable that functionality. You of course would be able to change the option by editing the nixpkgs source, but thats undesireable.
<ottidmes> slyfox: thank you! hopefully this helps getting it fixed, or at least we have something to point to if someone else runs into the issue :)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3acebb03952 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<kyren> leotaku: thank you for looking, I couldn't find anything either
<leotaku> s/ea/a/g
<{^_^}> [nixpkgs] @dotlambda merged pull request #55219 → python37Packages.libcloud: 2.3.0 -> 2.4.0 → https://git.io/fhSAH
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.libcloud: 2.3.0 -> 2.4.0 (#55219) »: https://git.io/fhH6W
<ottidmes> leotaku: do you know the file, I tried searching to see if I could think of a way to configure it, but without any source code I am at a loss to help
knupfer has quit [Remote host closed the connection]
<leotaku> kyren: Maybe you could just set "autoStart" to false and then manually restart the services?
<kyren> I feel like it's a bit silly, since the container systemd service is kind of "composed" of potentially many, many sub-services, so I feel like there ought to be a solution here where a timeout only occurs if the services *inside* the container time out
<{^_^}> [nixpkgs] @dotlambda merged pull request #55180 → python37Packages.tenacity: 5.0.2 -> 5.0.3 → https://git.io/fhS92
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.tenacity: 5.0.2 -> 5.0.3 (#55180) »: https://git.io/fhH64
elgoosy has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
<kyren> leotaku: yeah I suppose I could do that, I've been actually just manually restarting the containers anyway since if they get timeout killed they're in a weird transition state
<{^_^}> [nixpkgs] @dotlambda merged pull request #55194 → python37Packages.libusb1: 1.6.6 -> 1.7 → https://git.io/fhS7G
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.libusb1: 1.6.6 -> 1.7 (#55194) »: https://git.io/fhH6u
<balsoft> goibhiu: This reproduces on 5 of my machines, so I would guess it's not a caching problem...
<{^_^}> [nixpkgs] @dotlambda merged pull request #55169 → python37Packages.pywal: 3.2.1 -> 3.3.0 → https://git.io/fhSyR
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.pywal: 3.2.1 -> 3.3.0 (#55169) »: https://git.io/fhH62
<ottidmes> kyren: wouldn't something like this work? https://gist.github.com/msteen/368ccb89467f670a5f5439e38050d265
<kyren> ottidmes: actually yeah
pie_ has quit [Ping timeout: 256 seconds]
xkapastel has joined #nixos
<jluttine> How should I add gfortran to nix-shell so that ld finds it? I'm getting error: "ld: cannot find -lgfortran"
<ottidmes> jluttine: are you working on some package or just doing stuff ad hoc?
hedning has joined #nixos
rauno has joined #nixos
<jluttine> ottidmes: hmm.. i'm trying to get one python package to work. i'm running it's intro demo and that fails because of this error
<jluttine> working on a package derivation of a new package
<jluttine> and trying to see if it actually works
<leotaku> ottidmes: Nice, does that work because nixpkgs merges records in modules as long as they have the same name?
shibboleth has quit [Quit: shibboleth]
<ottidmes> jluttine: I ask because this here https://logs.nix.samueldr.com/nixos/2019-02-07#1939954 is a common mistake made with nix-shell
<ottidmes> leotaku: it works because the NixOS module system generally merges things together (doesn't have to, would depend on the type), but yes
<{^_^}> [nixpkgs] @Moredread opened pull request #55475 → (WIP) slic3r-prusa3d: 1.41.0 -> 1.42.0-alpha5 → https://git.io/fhH6K
<kyren> ottidmes: that works perfectly, thank you very much! (also now I know how to map both the key and value of an attribute set to make a new attribute set)
b has joined #nixos
<kyren> leotaku: the nixos module system is great, it will merge things together intelligently even if they can't be combined, if two modules have the same config with the same non-mergable value (like a boolean) it will successfully merge, but if they conflict it won't
Thra11 has joined #nixos
pie_ has joined #nixos
<immae> Hey there! Since my last nix upgrade (2.1.3 -> 2.2.1) the nix repl began to be really hard to use (no completion, strange behavior of keys, etc.) It seems to be readline-related, but did anything change in that regards in nix?
maximiliantagher has joined #nixos
jomik has joined #nixos
<immae> (nb: I tried downgrading back to 2.1.3, all other things unchanged, and it works as expected, so it seems to come from nix itself)
maximiliantagher has quit [Ping timeout: 250 seconds]
<tilpner> nix@de599733 looks relevant ("repl: give user the choice between libeditline and libreadline"), but it's from Nov. 15
andi- has quit [Ping timeout: 250 seconds]
<immae> tilpner: I saw that there are new compilation flags in https://aur.archlinux.org/cgit/aur.git/log/PKGBUILD?h=nix (the nix package in my distribution), I’m investigating with that
<immae> And I was quite late, since I upgraded only last week, so it could very well be old
<tilpner> FWIW, my nix is linked against libeditline.so.1, not readline
<immae> ok, I’ll try with libedit then
<immae> thanks for the hint
<tilpner> (And no more problems than usual, it still exits involuntarily sometimes)
<tilpner> (E.g. If you try to tab-complete against an attrset that doesn't eval)
<tilpner> immae: Hey, how about you try fetching Nix with the Nix you have, and see if the fetched Nix works better?
<immae> (yes, still better than no completion at all)
<immae> Ah
<immae> Didn’t thing about this
<{^_^}> [nixpkgs] @dywedir opened pull request #55476 → rclone: 1.45 -> 1.46 → https://git.io/fhH6F
<tilpner> To get my exact version, nix-store -r /nix/store/bqipf41ygbhkppc469fz9x18yxyr0hnx-nix-2.2
<tilpner> (Or nix-build as usual)
andi- has joined #nixos
silver has joined #nixos
<immae> Yes it works
<immae> So it’s export EDITLINE_CFLAGS="-DREADLINE"; export EDITLINE_LIBS="/usr/lib/libreadline.so" that blew the thing, but I cannot find libeditline in my distribution :/
<tilpner> ,locate libeditline.so.1
<{^_^}> Found in packages: editline
<tilpner> Oh, hmm
<immae> Yes, it’s not a nix problem here, I’ll find my way don’t worry :)
<immae> Thanks for the hints!
monotux has quit [Quit: The Lounge - https://thelounge.chat]
noonien has joined #nixos
monotux has joined #nixos
dermetfan has joined #nixos
andi- has quit [Excess Flood]
andi- has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @pSub merged pull request #55463 → tmsu: install manpage properly into man1 subdirectory → https://git.io/fhHgX
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fhHiI
<{^_^}> [nixpkgs] @pSub pushed to update-st « st: 0.8.1 -> 0.8.2 »: https://git.io/fhHit
<{^_^}> [nixpkgs] @pSub opened pull request #55477 → st: 0.8.1 -> 0.8.2 → https://git.io/fhHiq
agander has joined #nixos
o1lo01ol1o has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
eadwu has joined #nixos
balsoft has quit [Remote host closed the connection]
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
DrLambda has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<immae> tilpner: just in case it was not obvious, it works fine with editline. Should I report the issue with readline somewhere maybe?
<jomik> Anyone here have a working taffybar with sniTray?
<jomik> I can't seem to get it to work for me :/
zupo_ has quit [Quit: Textual IRC Client: www.textualapp.com]
acarrico has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<infinisil> jomik: I once had it working (not using it because of performance problems with it though)
ng0 has joined #nixos
zupo has joined #nixos
<tilpner> immae: At the very least to wherever people report issues with Arch packages
<immae> I did already for that part ;)
lfish has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
thc202 has joined #nixos
peacememories has joined #nixos
maximiliantagher has joined #nixos
civodul has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/baf6ba553f7 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<srhb> jomik: YEs.
<srhb> I think...
<srhb> Yeah, I have tray = sniTrayNew
<infinee> oh my first encounter with a package that isn't latest. I need a newer version of nixos.delve. Can someone point me to what I can do to get the newer version of delve included in nixpkgs?
<srhb> infinee: Find the expression in the nixpkgs git repo, bump the version and the hash, try building it, if it works PR it :)
<infinee> srhb: bump it locally?
<infinee> the nixpkgs git repo?
<srhb> infinee: Yeah.
<infinee> I've not installed nixpkgs yet. All my stuff has been installed via nixos
<srhb> infinee: You can just clone the repo :) There's no "install" needed until you want to pull in the package locally.
<srhb> Which can be done through a variety of means, one being overlays.
<srhb> (They are documented in the nixpkgs manual)
<infinee> ^ok let me start with the manual. thx
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9a1f8e0879b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
zupo has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
renais has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
sicklork1n has joined #nixos
bpa has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
bpa has joined #nixos
orivej has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<infinee> Strange, nix-env -qa delve shows 1.0.0 but the nixpkgs repo I cloned has 1.1.0
<infinee> and nix-channel --update didn't change anything
renais_ has joined #nixos
renais has quit [Ping timeout: 250 seconds]
<ottidmes> infinee: not strange at all, how is nix-env to know about your cloned repo, try this instead: nix-env -f /path/to/nixpkgs/checkout -qa delve
orivej has quit [Ping timeout: 268 seconds]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @brainrape opened pull request #55480 → textadept: 9.3 -> 10.2 → https://git.io/fhHPv
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @hedning opened pull request #55481 → webkitgtk: 2.22.5 -> 2.22.6 → https://git.io/fhHPf
renais_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #55127 → ocamlPackages.ocsigen_server: 2.9 -> 2.11 (and related updates) → https://git.io/fhS2n
<{^_^}> [nixpkgs] @vbgl pushed 8 commits to master: https://git.io/fhHPk
<jomik> infinisil: hoow ? And what are you using now?
<jomik> srhb: I tried that, it does not seem to work :/
<infinee> ottidmes: I've done that. I've also done the 'nix-build -A delve' and I see multiple versions in /nix/store. However my nix-shell still picks up old one
o1lo01ol1o has joined #nixos
<ivegotasthma> is there a way to orchestrate services with bare nix?
<symphorien> the easy way is to pass -I nixpkgs=/path/to/repo to all nix commands you want to use the clonse
<{^_^}> [nixpkgs] @dotlambda pushed to master « nixos/home-assistant: make config.http.server_port an integer »: https://git.io/fhHPs
<simpson> ivegotasthma: There's a couple tools that are incidentally basically bare Nix for orchestration, like https://github.com/xtruder/kubenix
<simpson> But Nix can't do the impure work of changing a distributed system's state all on its own.
<ivegotasthma> I'm aiming for a single system
<ivegotasthma> right now
<ivegotasthma> I want to start a postgres process, nginx and a python process
o1lo01ol1o has quit [Ping timeout: 250 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> NixOS can do that on its own.
<ivegotasthma> it's not a nixos system
<ivegotasthma> there's a debian9 server I want to install nix on
o1lo01ol1o has joined #nixos
<simpson> And it has to remian Debian? Then there's not much you can do besides the obvious.
o1lo01ol1o has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
maximiliantagher has joined #nixos
balsoft has joined #nixos
Jetien_ has joined #nixos
balsoft has quit [Remote host closed the connection]
lsyoyom has quit [Ping timeout: 250 seconds]
maximiliantagher has quit [Ping timeout: 268 seconds]
fusion809 has joined #nixos
rauno has quit [Remote host closed the connection]
Jetien_ has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
mojjo has quit [Ping timeout: 256 seconds]
yayforj has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #55482 → ocamlPackages.ocaml-migrate-parsetree: 1.1.0 -> 1.2.0 → https://git.io/fhHP6
<steveeJ> is there any way to get the fusermount wrapper in a nixos-container?
teehemka_ has joined #nixos
<steveeJ> oh it's already there, just not found by the systemd service
lsyoyom has joined #nixos
<infinisil> ,dnw jomik
<{^_^}> jomik: "Does not work" isn't very helpful: What doesn't work? What's the error?
drakonis has joined #nixos
sicklork1n has quit [Ping timeout: 268 seconds]
<steveeJ> dang, of course there's no /dev/fuse in the container
<steveeJ> declaring a bind-mount for it on the conatiner doesn't help much. "mount helper error: fusermount: failed to open /dev/fuse: Operation not permitted". am I the first one to try this?
MinceR has quit [Ping timeout: 268 seconds]
<infinisil> ,dnw = "Does not work" isn't very helpful: What specifically doesn't work? What command did you run? What's the error?
<{^_^}> dnw redefined, was defined as "Does not work" isn't very helpful: What doesn't work? What's the error?
<steveeJ> oh! there is "containers.<name>.allowedDevices"
MinceR has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #55483 → Created a folder for radio-related applications → https://git.io/fhHPA
alex_giusi_tiri has joined #nixos
ashkitten has quit [Ping timeout: 250 seconds]
<kumikumi> What is currently the easiest/recommended way to create and run LXC containers under NixOS? I'm looking to run some kind of Ubuntu
DrLambda has quit [Ping timeout: 240 seconds]
<lassulus> virtualisation.lxd.enable = true;
<lassulus> and add yourself to the lxd group
<jomik> infinisil: I wish I could say - it simply does not show anything there. And I have no clue how to debug it.
<jomik> There is like, no output in any of the services that indicate an error.
<kumikumi> lassulus: thanks
<lassulus> kumikumi: then you can just run lxc launch ubuntu:16.04 blabla
<infinisil> jomik: Yeah, okay but what doesn't work actually?
<kumikumi> lassulus: and it works as a non-root user as long as the user is in the ldx group?
<lassulus> yes
<kumikumi> okay great
mmlb3 has quit [Ping timeout: 246 seconds]
<jomik> So, when I add tray to my endWidgets, I'd expect a tray to show up with nm-applet and flameshot. But nothing appears there.
<jomik> I have the other taffybar widgets though.
<lassulus> ah, maybe you will also have to run lxc init
<infinisil> jomik: So taffybar starts no problem?
<jomik> Yeah, no errors in taffybar's logs and it runs "fine"
<jomik> Just sni-tray doesn't seem to pick up any icons/widgets or what you want to call them.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53070 → haskellPackages.scat: fix build → https://git.io/fhLWj
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhHXk
acarrico has joined #nixos
<ottidmes> infinisil: how many PRs do you think fall under (!bot && changed_only_version_and_hash && triggered_rebuilds == 1), because those should be relatively safe to fast track being committed to master
ashkitten has joined #nixos
<infinisil> jomik: Yeah I don't know anything about trays, am never using them
<infinisil> ottidmes: No idea, but that would be interesting
Thra11 has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 245 seconds]
erictapen has joined #nixos
<jonge> i made a fresh install of nix yesterday on my mac (2.2.1) and nix-channel --update and nix-env -i... always fails with "error: unexpected end-of-file". what can that be? i find no real help online since that happened to people in the past, but in different situations and their fixes don't apply for me.
alex`` has joined #nixos
<thefloweringash> Maybe nix#2523 ? Did you try the `OBJC_DISABLE_INITIALIZE_FORK_SAFETY` workaround?
<{^_^}> https://github.com/NixOS/nix/issues/2523 (by periklis, 13 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
<jonge> thefloweringash: was that for me?
<thefloweringash> yep
<jonge> unfortunately does not match my problem
<noonien> hello folks
asymmetric has joined #nixos
<noonien> how would one go about findind out what created each group on my system?
init_6 has quit []
<jomik> Well, I wouldn't really need a tray either, if I knew how to set up VPN in network manager with openconnect and CSD-wrapper scripts :D
<pbb> Hi, what do I have to do to get AMD Vega graphics working on NixOS?
maximiliantagher has joined #nixos
<pbb> I can still see it entering stage 2 but after the kernel module gets loaded the screen goes black
alex`` has quit [Ping timeout: 250 seconds]
mmlb3 has joined #nixos
alex`` has joined #nixos
<pbb> I am using unstable with latest linuxPackages
<{^_^}> [nixpkgs] @etu merged pull request #55477 → st: 0.8.1 -> 0.8.2 → https://git.io/fhHiq
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhHX6
<{^_^}> [nixpkgs] @etu pushed 0 commits to update-st: https://git.io/fhHXi
<noonien> hmm
jabranham has joined #nixos
<noonien> how can i the path to where a channel files are?
init_6 has joined #nixos
renais_ has joined #nixos
teehemka_ is now known as teehemkay[away]
teehemkay[away] has quit [Quit: ZZZzzz…]
<pbb> Actually loading amdgpu crashes the entire system..
<fpletz> pbb: I know this sounds weird but are you boot via uefi or legacy mode?
<teehemkay> Hi everyone!
<fpletz> pbb: I've a lenovo A485 and have the same problem with legacy boot, uefi works
<pbb> I am using uefi with systemd-boot
<pbb> And it's a Ryzen Desktop system with a Vega 56 GPU
<teehemkay> I'm doing a fresh install of Nix on MacOS Mojave 10.14.3 in multi-use mode.
<teehemkay> The installation completes successfully but when I try to verify the install with `$ nix-shell -p nix-info --run "nix-info -m"` I get get an error: "error: unexpected end-of-file". I get the same error whenever I try to install anything now.
<teehemkay> Any idea what's happening? I search the interweb but the only reference to the error on macOS points to an issue that has been resolved.
<pbb> fpletz I just discovered that I had not ran nix-channel --update so it was using latest linuxPackages from 18.09. With 4.20 it works \o/
<{^_^}> [nixpkgs] @etu merged pull request #55473 → radarr: 0.2.0.1217 -> 0.2.0.1293 → https://git.io/fhHop
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhHXh
maximiliantagher has quit [Ping timeout: 245 seconds]
<fpletz> pbb: ah, yeah, same here
<pbb> It is a big limitation for me though because I wanted to run ZFS
<fpletz> the unstable version of zfs works quite well
<pbb> Oh I'll try that
init_6 has quit []
<ottidmes> teehemkay: I have zero experience with Darwin, but jonge seems to have run in the same exact problem, maybe ask around in #nix-darwin?
<jonge> teehemkay: lol this sounds 1:1 like the problem that i have.
<teehemkay> ottidmes: thanks. I've also asked in #nix-darwin
<Ankhers> Is there any chance I could get someone to merge https://github.com/NixOS/nixpkgs/pull/54115?
<{^_^}> #54115 (by k32, 3 weeks ago, open): rebar3: 3.6.1 -> 3.9.0
<cswl> Hi
<cswl> Im having trouble seeing all the columns here.. https://nixos.wiki/wiki/Cheatsheet
<tilpner> cswl: Is there no scrollbar at the very bottom of the table?
<tilpner> You can also try horizontal two-finger scrolling if you have a touchpad
<cswl> Yeah.. but it be nice to see everything at once..
<tilpner> (As noted at the top of the page)
<cswl> Okay that works
<NemesisD> hi all, i've noticed a pattern of { pkgs ? import <nixpkgs> {}}: at the beginning of nix expressions to optionally pass in a fixed package set. is it sensible to pin a specific version in shell.nix and then have default.nix and others take the argument?
yayforj has quit [Ping timeout: 272 seconds]
<cswl> How do I add a system package if im using Nixpkgs only
<tilpner> AFAIK there is no notion of system packages for Nix-on-not-NixOS, but you can check your PATH for more certainty
<tilpner> You can probably do that yourself, add a system profile and add its PATH to some global config file (/etc/profile?)
<aanderse> anyone have the slightest clue of whats going on wrong with this issue? https://github.com/NixOS/nixpkgs/issues/36984
<{^_^}> #36984 (by probitlabs, 47 weeks ago, open): Adding KDE's KTouch typing tutor
<cswl> Theres already /nix/var/nix/profiles/default/bin
<cswl> But it only has `nix-*` stuff
<{^_^}> [nixpkgs] @Infinisil merged pull request #54115 → rebar3: 3.6.1 -> 3.9.0 → https://git.io/fhl7N
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fhH1n
acarrico has quit [Ping timeout: 245 seconds]
<tilpner> What do you want it to have? Try something like nix-env -p /nix/var/nix/profiles/default -iA nixpkgs.hello
<cswl> tilpner.. just prefixing.. it with sudo.. `sudo nix-env -i hello` worked
<cswl> Its now on the default profile :
<sb0> I have a single-user installation of nix on a debian system, how do I set nix.binaryCachePublicKeys and nix.binaryCaches?
rcshm has joined #nixos
asymmetric_ has joined #nixos
<tilpner> sb0: In nix.conf (man nix.conf)
<sb0> where is nix.conf in that single-user installation?
<tilpner> man nix.conf
asymmetric has quit [Ping timeout: 245 seconds]
<tilpner> So you want "substituters" and "trusted-public-keys"
<cyris212> I'm trying to create my first nix package. The build seems to work but the perl libraries are not accessible during runtime.
<cyris212> Is something obvious wrong here?
hke has joined #nixos
<sb0> okay, got it to work
hke has quit [Client Quit]
hke has joined #nixos
<cswl> How do I manage to start/stop services from NIxPkgs only
<{^_^}> [nixpkgs] @refnil opened pull request #55484 → Remove django 2.0 → https://git.io/fhH11
yayforj has joined #nixos
simukis has joined #nixos
<Izorkin> Please check PR #54903
<{^_^}> https://github.com/NixOS/nixpkgs/pull/54903 (by Izorkin, 1 week ago, open): pythonPackage.psutil: 5.4.8 -> 5.5.0
Ariakenom has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #55485 → binutils: 2.30 -> 2.32 → https://git.io/fhH1x
agander has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 250 seconds]
dsiypl4 has joined #nixos
hellrazor has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 660 commits to staging: https://git.io/fhHMf
Ariakenom has quit [Read error: Connection reset by peer]
dsiypl4 has quit [Ping timeout: 246 seconds]
asymmetric_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @demyanrogozhin opened pull request #55486 → particl-core: 0.17.0.2 -> 0.17.1.2 → https://git.io/fhHMI
<jluttine> how do i find the store path of some package using terminal?
<{^_^}> [nixpkgs] @ryantm merged pull request #55143 → wxSVG: 1.5.15 -> 1.5.16 → https://git.io/fhSXX
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhHM3
rcshm has quit [Remote host closed the connection]
<tilpner> jluttine: nix-build --no-out-link '<nixpkgs>' -A hello
* tilpner recommends alias nip='nix-build --no-out-link "<nixpkgs>" -A'
<gchristensen> nip?
<jluttine> tilpner: nice, thanks!!
rcshm has joined #nixos
<ottidmes> infinisil: I did some querying and found that 559 PRs are rebuilding < 10 packages on Linux, 457 of those are mergable, and only 186 of those are updates (they adhere to the "package: ... -> ..." title format)
Glider_IRC__ has quit [Remote host closed the connection]
<ottidmes> gchristensen: "NIx Path" I guess
dermetfan has quit [Ping timeout: 240 seconds]
<tilpner> gchristensen: All my Nix related aliases start with ni, all NixOS related ones with no, and then a letter for whatever action it does
<tilpner> "NIx Package" works too, but it's arbitrary of course
ddellacosta has joined #nixos
* tilpner also has snors for sudo nixos-rebuild switch
<ottidmes> lol, I had some of those aliases, but if I did not use them frequently I would totally forget about the name, I just have nixos-rebuild alias to sudo nixos-rebuild
<tilpner> I use them often enough, and delete old aliases that I tend to not use
<jluttine> for now, i like to use the correct full commands so that i'll learn things. but good idea to use aliases once one is familiar with how to do things, just bored of typing them all the time
<ottidmes> tilpner: I actually have a command called "nux" (Nix User eXperience) is my collection of helpful Nix related shell functions, all documented with a help and I added auto complete that gives me a nice list of the available commands
<tilpner> That sounds a lot more fancy than my half-a-screen of aliases
* tilpner is still looking for good pin management tooling
<ottidmes> tilpner: pin management? passwords?
sinner has joined #nixos
sinner is now known as Guest64117
<tilpner> No, to pin sources, so that you can put them into git. Right now I just have a script that writes JSON into a file, which is then passed to fetchTarball
<tilpner> Like a more declarative nix-channel
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
<ottidmes> I dont really have any pinning myself, but if I had, two tools I wrote would probably be sufficient for that: https://github.com/msteen/nix-prefetch https://github.com/msteen/nix-update-fetch
maximiliantagher has joined #nixos
Glider_IRC has joined #nixos
Glider_IRC has quit [Remote host closed the connection]
<tilpner> Oh, hadn't seen those before
<sicklorkin> ottidmes: Oh..thanks for sharing those.. :)
<ottidmes> I am cleaning up nix-prefetch at the moment, which will break nix-update-fetch's way of using it, but I plan to release 0.1.0 of both tonight or tomorrow
rcshm_ has quit [Read error: Connection reset by peer]
<sicklorkin> anyone else have anything for show-and-tell?
rcshm has joined #nixos
<das_j> Ok, weird problem. I'm building Android with nix and the build failed because my disk is full. So I'd like to perform a GC, but I'd like to keep the source for this time. What do I do? Will the source not be gc'ed when I have a nix-shell open?
<ottidmes> the breakage will be limited to removing --diff and --with-position that were basically only there to make nix-update-fetch work, now I will be going about it differently requiring no hardcoded support in nix-prefetch for nix-update-fetch
<tilpner> das_j: You want to explicitly create root for the source
<das_j> tilpner: with --add-root?
<tilpner> das_j: Where do you see add-root? I would have tried nix-builds --out-link
<tilpner> (And are you actually building AOSP with Nix? That's scary)
<sicklorkin> das_j: `--indirect", "--add-root`
<tilpner> all-packages.nix is hopelessly out of order :(
<{^_^}> [nixpkgs] @markuskowa merged pull request #55145 → slurm: 18.08.4.1 -> 18.08.5.2 → https://git.io/fhS1C
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhHMw
<das_j> sicklorkin: Thank you, that should do it
<das_j> tilpner: Yes, a friend of mine wrote some tools to build Android
<das_j> it works right now but I'd like to rebuild it
<ottidmes> tilpner: yeah, I am itching to clean all-packages.nix up, sorting it automatically and such, but I doubt I am allowed to do so
asymmetric has joined #nixos
<tilpner> ottidmes: You just need to convince someone with push rights c.c
<tilpner> Or per-categories indices, that might work too
<tilpner> But then you're doing a major refactoring, and might as well do all sorts of other things, and nobody can decide what those are exactly (e.g. tagging)
<ottidmes> would be cool if it was some script that needs to be run when you make a PR, that way it keeps being nice and start getting unsorted/inconsistent the moment the next PR gets in
<ottidmes> biggest problem is getting the first big cleanup in, because wouldnt that break all other PRs changing the file?
pie_ has joined #nixos
<samueldr> that's part of it
<samueldr> one big issue with "machine re-ordering" is that it's not line-based
<samueldr> so you need an AST and to build the code in a way that keeps the comments relevant
<samueldr> which will be... hard
<samueldr> some things are bunched up by topic
<ajs124> tilpner, depending on what state we get it in and if you'll be there, you might get to see a lightning talk on building AOSP with nix :P
<samueldr> ajs124: amazing <3
<das_j> Spoiler: It's ugly
<samueldr> there'll be a write-up too I hope?
<tilpner> ajs124: If "there" is a physical location, odds are I'll miss it. But you'll make a video, right?
<samueldr> (a video is fine too)
daniele- has joined #nixos
<sicklorkin> I have a question about the installer. What\s the motivation behind having the user set the file mode bits rather than the installer itself? I mean the installer already sets the ownership (for multiuser anyway).
<sicklorkin> I think this was a conscience decision, but I can't find the rational
<{^_^}> [nixpkgs] @markuskowa merged pull request #55459 → [18.09] nixos/mysql: fix option `ensureDatabases` → https://git.io/fhHzK
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to release-18.09: https://git.io/fhHMh
jomik has quit [Quit: WeeChat 2.2]
<ottidmes> samueldr: rnix is pretty good for getting an AST while keeping comments, but yeah, even then it wont be easy
<samueldr> yeah, there's that improvement that's good
maximiliantagher has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<tilpner> I just tested my git bisection skills on #36984
<{^_^}> https://github.com/NixOS/nixpkgs/issues/36984 (by probitlabs, 47 weeks ago, open): Adding KDE's KTouch typing tutor
<gchristensen> simpson: mind a PM? I'd love to get your thoughts on something.
<simpson> gchristensen: Go for it.
<tilpner> I could be totally wrong, but I think ktouch was fixed in the 18.09 branch, without being fixed in master?
dermetfan has joined #nixos
<samueldr> tilpner: what's the issue? (sorry if I missed it)
<tilpner> #36984
<{^_^}> https://github.com/NixOS/nixpkgs/issues/36984 (by probitlabs, 47 weeks ago, open): Adding KDE's KTouch typing tutor
<samueldr> (duh)
<samueldr> (duh aimed at me)
<samueldr> tilpner: commit that was cherry picked
<samueldr> which is in staging apparently
<tilpner> Ooh, staging
<{^_^}> #53859 (by schmittlauch, 3 weeks ago, merged): ktouch: init at 18.12.0
<tilpner> I found commits like that, but thought they'd surely be in unstable now, if they were merged in January
tdbgamer has joined #nixos
elgoosy_ has joined #nixos
elgoosy has quit [Read error: Connection reset by peer]
<samueldr> I think staging was a bit sleepy early january, and it's about to get merged to master IIUC
maximiliantagher has joined #nixos
<tilpner> samueldr++
<{^_^}> samueldr's karma got increased to 54
<{^_^}> [nixpkgs] @spacefrogg opened pull request #55487 → mkdocs-exclude: Init at 1.0.1 → https://git.io/fhHDm
knupfer has joined #nixos
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm_ has quit [Remote host closed the connection]
rcshm has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
dsiypl4 has joined #nixos
<cswl> `Failed to start nix-daemon.service: Unit -.mount is masked.` Hmm
dermetfan has quit [Ping timeout: 245 seconds]
rcshm has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
maximiliantagher has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @winpat opened pull request #55488 → (WIP) dirvish: init at 1.2.1 → https://git.io/fhHDC
<{^_^}> [nixpkgs] @matthewbauer opened pull request #55489 → llvmPackages_7.clang-unwrapped: don’t link to libatomic on darwin → https://git.io/fhHDl
<sicklorkin> cswl: what did you do that might have cause that?
<sicklorkin> systemctl unmask?
<cswl> I just enabled the socket.. and rebooted I think
<cswl> `-` is a root mount.. idk why would that be masked
<sicklorkin> me too
<sicklorkin> ln -lf /etc/systemd/system/<mount>
<sicklorkin> is there a symlink pointing to /dev/null?
mobile_c has quit [Read error: Connection reset by peer]
eadwu has quit [Quit: WeeChat 2.3]
<cswl> Nope
<cswl> Is it because.. it's `Before=multi-user.target` ?
alex`` has quit [Ping timeout: 246 seconds]
mobile_c has joined #nixos
yayforj has quit [Ping timeout: 245 seconds]
renais_ has quit [Remote host closed the connection]
renais_ has joined #nixos
asymmetric has quit [Remote host closed the connection]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #55490 → tuxtyping: init at 1.8.0 → https://git.io/fhHDM
<infinisil> I just closed #55382 which also had that error
<{^_^}> https://github.com/NixOS/nixpkgs/issues/55382 (by memberbetty, 2 days ago, closed): systemd: Empty name in error message
asymmetric has joined #nixos
shibboleth has joined #nixos
<sicklorkin> cswl: that would mean you're in single user mode?
freeman42y has joined #nixos
rauno has joined #nixos
<cswl> I installed using `--daemon`.. I guess it didnt use correct config
<cswl> I manually added.. `multi-user target` and it seems to work so far
rcshm has joined #nixos
<asymmetric> has anyone successfully tied i3lock to closing the lid of their laptop?
balsoft has joined #nixos
<symphorien> I use xss-lock
<sicklorkin> cswl: under nixos?
<asymmetric> symphorien: how do you launch it when closing the lid?
freeman42x has quit [Ping timeout: 252 seconds]
<cswl> No.. just nix pkgs
<symphorien> xss-lock launches i3lock automatically when the lid closes
<etu> oh
<sicklorkin> cswl: these may be completely unrelated issues then
<cswl> Eh its working now..
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
rcshm has quit [Ping timeout: 240 seconds]
Izorkin has quit [Ping timeout: 268 seconds]
<kumikumi> I'm having trouble with port forwarding from NixOS host to Ubuntu LXC guest. Tried following instructions at https://discuss.linuxcontainers.org/t/forward-port-80-and-443-from-wan-to-container/2042 . "curl localhost" inside container works (outputs a bunch of html), but outside the container I get: curl: (56) Recv failure: Connection reset by peer
<kumikumi> I was wondering if there is something NixOS-specific I should be thinking about
eadwu has joined #nixos
Izorkin has joined #nixos
<kumikumi> (also my use case is actually a game server, not a web server, web server is just easier to test/debug with)
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<tilpner> kumikumi: There are various lxc network config parts visible here: https://search.tx0.co/?q=lxc&i=nope&files=&repos=
work_ has joined #nixos
rcshm has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
dunk has joined #nixos
<freusque> Hello! Has anyone run into the situation where a script that uses a nix-shell shebang fails to run when called from a nix-shell environment?
<freusque> The script runs fine when not called from a nix-shell and has the flowing shebang:
<dunk> Hi. I can't find netcat in the nix package manager. Am I doing this wrong? I'm using `nix-env -qa` to search
<freusque> dunk: if you have nix 2, nix search netcat
cdyson37 has joined #nixos
<dunk> freusque: what is nix 2?
<freusque> works fine for me, nixpkgs.netcat is the attribute
<freusque> you can also use the web search: https://nixos.org/nixos/packages.html
<mdash> dunk: try 'nix search netcat', it should probably work :)
<mdash> nix-index is also pretty useful, for searching by filenames
<cdyson37> Hi. On editing /etc/nixos/configuration.nix and setting mutableUsers=false and adding a new user, then running 'nixos-rebuild switch', I can see that /etc/passwd has been modified, but the user I added is not present. Any idea what I've done wrong?
<freusque> dunk: nix 2 is a recent rewrite of the nix CLI tools. if you have `nix` in your path, your system has nix 2.
<dunk> Right
asymmetric has quit [Remote host closed the connection]
<dunk> I'm using the nix docker image at the moment
<dunk> Seems to work
zupo_ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
<dunk> So, 'nix search netcat' seems to have worked
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
<dunk> But what do I use to install?
<dunk> nix-env -i netcat does not seem to cut it
yayforj has joined #nixos
Izorkin has joined #nixos
<freusque> nix-env -iA nixpkgs.netcat
rauno has quit [Remote host closed the connection]
asymmetric has joined #nixos
<cdyson37> Config is https://pastebin.com/0UKdeFTj
<Izorkin> Please check PR #54903 #51902 #4434
<{^_^}> https://github.com/NixOS/nixpkgs/pull/54903 (by Izorkin, 1 week ago, open): pythonPackage.psutil: 5.4.8 -> 5.5.0
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 8 weeks ago, open): mariadb.galera: 25.3.24 -> 25.3.25
<{^_^}> https://github.com/NixOS/nixpkgs/pull/4434 (by matejc, 4 years ago, merged): mailpile: update to 0.4.1
<freusque> the attribute name is different from the package name dunk : https://nixos.org/nixos/packages.html#netcat
<Izorkin> * PR #44343
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44343 (by Izorkin, 27 weeks ago, open): mariadb: 10.2.17 -> 10.3.12
<ajs124> Yes, someone please look at those. MariaDB is way out of date.
<dunk> freusque: I am afraid I am pretty new to this. I was reading through the main docs, but then hit upon the netcat not installing thing. Is there a different set of docs I should look at?
<dunk> I know that the -i flag is "install", but the -iA is opaque to me. And I also don't understand why I should prefix netcat with "nixpkgs", so I think there is some reading for me to do?
<freusque> dunk afaik the proper approach is man, --help, roll with it
o1lo01ol1o has joined #nixos
<dunk> kk
<freusque> :)
justanotheruser has quit [Quit: WeeChat 2.2]
rfold has joined #nixos
<dunk> Only problem is that the nixos Docker image has the man pages stripped out and I can't work out how to install them because... I can read the man pages
justanotheruser has joined #nixos
<dunk> I assume that it's a trick like the netcat one above?
shabius has quit [Quit: Leaving]
<tilpner> cdyson37: If you look at /run/current-system/activate, you'll find *-users-groups.json. With 'jq . < hash-users-groups.json' you can pretty-print it and verify that it looks right
<jabranham> dunk: nix-env -A uses an attribute path, which I like to think of as a channel. So nix-env -A nixpkgs.netcat says "install netcat from the nixpkgs channel".
<dunk> jabranham: How do I install the man pages?
<dunk> :-D
<freusque> the main docs are invaluable too don't get me wrong, but many things aren't in there, yet. you can have a look at the nixpkgs contributor guide too
<jabranham> you could add another channel and call it "foo" and do nix-env -A foo.netcat to get foo's netcat
<dunk> jabranham: I see
<jabranham> dunk: no idea about the man pages, I don't use docker
<tilpner> cdyson37: I don't what happens on UID collision. Also check if other users have the same uid
<tilpner> *don't know
o1lo01ol1o has quit [Remote host closed the connection]
shabius has joined #nixos
shibboleth has quit [Quit: shibboleth]
<cdyson37> Thank you! I'm an idiot - typo'd username :(
<{^_^}> [nix] @LnL7 opened pull request #2674 → nix-daemon: add variable to disable fork safety → https://git.io/fhHyq
JosW has joined #nixos
<{^_^}> [nixpkgs] @asymmetric opened pull request #55491 → nixos/xautolock: improve doc of time parameer → https://git.io/fhHym
o1lo01ol1o has joined #nixos
daniele- has quit [Quit: daniele-]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple opened pull request #55492 → pythonPackages.testpath: build from src instead of pre-built binary → https://git.io/fhHyn
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @Izorkin opened pull request #55493 → lego: 2.0.1 -> 2.2.0 → https://git.io/fhHyW
yayforj has quit [Ping timeout: 245 seconds]
renais_ has quit [Remote host closed the connection]
mbrgm has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #55494 → Add myself as maintainer to several packages → https://git.io/fhHyR
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/81bc8abdd31 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
shibboleth has quit [Quit: shibboleth]
dermetfan has joined #nixos
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #55494 → Add myself as maintainer to several packages → https://git.io/fhHyR
<{^_^}> [nixpkgs] @markuskowa pushed 5 commits to master: https://git.io/fhHy9
o1lo01ol1o has joined #nixos
ryantrinkle has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<laas> how does one install mingw-w64?
<laas> I can't find a package for it
kumikumi has quit [Ping timeout: 256 seconds]
<symphorien> it's a compiler so if it is in nixpkgs, then you cannot install it but only use it in a nix-shell
Glider_IRC has joined #nixos
o1lo01ol1o has joined #nixos
Glider_IRC_ has joined #nixos
maximiliantagher has joined #nixos
<laas> ah
<laas> how do I search for such packages then?
o1lo01ol1o has quit [Ping timeout: 244 seconds]
Glider_IRC has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
<laas> well I tried using windows.mingw_w64 with nix-shell but it says I use an unsupported system
o1lo01ol1o has quit [Ping timeout: 244 seconds]
UltraPhil has joined #nixos
o1lo01ol1o has joined #nixos
civodul has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #55483 → Created a folder for radio-related applications → https://git.io/fhHPA
<{^_^}> [nixpkgs] @markuskowa pushed 36 commits to master: https://git.io/fhHSY
peacememories has joined #nixos
<symphorien> replace aarch64-unwknown-linux-gnu with your target triple
<symphorien> and see what happens
UltraPhil has left #nixos ["Leaving"]
Melkor333 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5225d4bf019 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<laas> thanks symphorien , that does seem to be what I need
<laas> although I don't know what my target triple should be
<laas> it's just windows
<tilpner> > lib.systems.examples.mingwW64.config
<{^_^}> "x86_64-pc-mingw32"
<laas> ah
daniele- has joined #nixos
<laas> I tried x86_64-pc-windows-{gnu,msvc}
<laas> nice, works
<symphorien> I think you can directly use crossSystem = lib.systems.examples.mingwW64
cswl has quit [Quit: Connection closed for inactivity]
petrkr has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
camsbury has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2b2820df94f (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
peacememories has joined #nixos
acarrico has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
Glider_IRC__ has joined #nixos
dermetfan has joined #nixos
<rain1> How do I get libX11 dev in my environment?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
<symphorien> what is your goal ?
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Glider_IRC_ has quit [Ping timeout: 245 seconds]
asymmetric has quit [Ping timeout: 245 seconds]
<rain1> get libX11 dev in my environment
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b4c7f7e3c1d (from 71 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Cale has quit [Ping timeout: 250 seconds]
rcshm has quit [Remote host closed the connection]
<symphorien> yes but what for
<symphorien> ,libraries rain1
<{^_^}> rain1: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
_kwstas has joined #nixos
lsyoyom has quit [Ping timeout: 268 seconds]
rcshm has joined #nixos
<rain1> $ nix-shell -p autoreconfHook -p libX11
<rain1> error: undefined variable 'libX11' at (string):1:111
maximiliantagher has joined #nixos
<symphorien> ,locate libX11.so
<{^_^}> Found in packages: xlibs.libX11
Ariakenom has joined #nixos
<symphorien> you were close
Ariakenom has quit [Read error: Connection reset by peer]
simukis has left #nixos [#nixos]
Ariakenom has joined #nixos
maximiliantagher has quit [Ping timeout: 250 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has joined #nixos
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
mbrgm has joined #nixos
Cale has joined #nixos
lsyoyom has joined #nixos
zupo has joined #nixos
<JosW> Hi, I am a bit lost
<JosW> Say i want to enable nginx, what are the steps to follow
<JosW> do i add nginx in the pkgs list in configuration.nix?
<tilpner> JosW: Do "man configuration.nix", then search for "services.nginx"
<{^_^}> [nixpkgs] @etu merged pull request #55491 → nixos/xautolock: improve doc of time parameer → https://git.io/fhHym
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhHSj
<JosW> somehow I can' t get my head around import and enable services, is there some sort of workflow that I could follow?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<tilpner> It may help to look at how other peoples configurations look like: https://search.tx0.co/?q=nginx&i=nope&files=&repos=
<ottidmes> symphorien: question about the bitwarden_rs PR, how will DynamicUser work with the backup service, if I supply the same User/Group as the other service I get access to the data is what you said, right? if so, then I can read the data, but how do I get the data written with the right backup user/group? All I can think of at the moment is using root, did you had something else in mind?
<symphorien> ah msteen == ottidmes
<symphorien> honestly I don't really know what bitwarden is
<ottidmes> a password manager
<ottidmes> but that should be irrelevant to the systemd setup
<symphorien> what use case did you have in mind with this backup thing ?
<ottidmes> if I accidentally wipe my hard drive, I dont want to lose all my passwords
camsbury has quit [Remote host closed the connection]
<symphorien> a regular backup of /var/lib will do the trick
<ottidmes> which is what this service does
<symphorien> without anything specific to bitwarden
<JosW> tilpner thanks for pointing me to the info
camsbury has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5225d4bf019 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<symphorien> the folder the service will see as /var/lib/bitwarden is in fact /var/lib/.somehash
<symphorien> so if you backup all of /var/lib then fine
alex`` has quit [Quit: WeeChat 2.3]
spear2 has joined #nixos
<ottidmes> symphorien: personally I dont backup /var/lib but only backup per application, and I don't think its always safe to just blindly copy over state
<ottidmes> symphorien: if you consider it out of scope, I can get behind that, then I will just keep that bit for myself
camsbury has quit [Ping timeout: 246 seconds]
<symphorien> ah no sorry, the directory seems to be /var/lib/private/bitwarden and owned by root
balsoft has quit [Ping timeout: 240 seconds]
<ottidmes> symphorien: yeah, read about that, where /var/lib/private acts like a boundary
<symphorien> I don't know what the better solution is
<symphorien> I do feel that a specific backup service per app is too much, and that an option to choose where favicons are store might be superfluous, but well this is an opinion, and if you feel otherwise, please do so
<ottidmes> well I assume sqlite has a backup commando for a reason, rather than just copying over the file, probably to prevent corruptions, so I consider being explicit about the backup the better solution, but whether it fits with the module or whether its up to you yourself to deal with that, thats the question (of course its all behind options anyway, but still)
lsyoyom has quit [Ping timeout: 250 seconds]
<symphorien> makes sense
<ottidmes> and this is basically what the author of the application suggest you do
<symphorien> in that case, it seems dynamic users only get in the way.
<ottidmes> at the moment, rather than simplifying things, it does make things more complicated yeah
<ottidmes> because to access the files I would need to unify the user/group of both services (if DynamicUser even works across services, never used it before this)
endformationage has joined #nixos
<ottidmes> and then workaround actually wanting to probably use a different user/group when storing the backup
<symphorien> sorry for leading you to this trap
JosW has quit [Ping timeout: 252 seconds]
<ottidmes> not at all, learned something new and I fully agreed with the reason behind using it, but I will revert it back to reserving an uid/gid
thedavidmeister has joined #nixos
<thedavidmeister> hi
<thedavidmeister> how do i fix a corrupt manifest?
<thedavidmeister> /nix/store/f4g5yfc1yjm7lhi03x93zm8crl3ckr7b-env-manifest.nix is empty
lsyoyom has joined #nixos
<symphorien> nix-store --verify --repair --check-contents maybe
<thedavidmeister> i tried that but it fails
<ottidmes> symphorien: forced pushed the revert
<ottidmes> thedavidmeister: fails on what? any useful errors?
<thedavidmeister> reading the Nix store...
<thedavidmeister> checking path existence...
<thedavidmeister> checking hashes...
<thedavidmeister> path '/nix/store/25xwf42prc2ynhgyv1p6qh5dcf6fjzcz-nixos-19.03pre168613.ffc604e5579.drv' was modified! expected hash 'sha256:0mn9j086c5kifv4v54i7ywbj72nm9pfxf89fyhpcg84gfp4xqvl0', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p'
<thedavidmeister> error: cannot repair path '/nix/store/25xwf42prc2ynhgyv1p6qh5dcf6fjzcz-nixos-19.03pre168613.ffc604e5579.drv'y
<thedavidmeister> a few things like that
JosW has joined #nixos
<ottidmes> thedavidmeister: you could also try and see if you can remove all roots to it (deinstalling it from nix-env/nixos, removing relevant result symlinks), and then nix-store --delete it, and rebuild it
<thedavidmeister> how do i remove it?
<ottidmes> I just told you, first remove its roots, and then you can remove it with nix-store --delete
<tilpner> thedavidmeister: But whatever you do, do not ignore liveness
<thedavidmeister> "remove its roots"
<thedavidmeister> i don't know what that means
<tilpner> Good
<ottidmes> "deinstalling it from nix-env/nixos, removing relevant result symlinks"
<thedavidmeister> what is "it"?
<thedavidmeister> this started happening after i ran 'nixos-rebuild switch --upgrade' and my laptop ran out of power
yayforj has joined #nixos
<ottidmes> whatever your env-manifest.nix is
<ottidmes> thedavidmeister: nix-store --query --roots /nix/store/f4g5yfc1yjm7lhi03x93zm8crl3ckr7b-env-manifest.nix, what does that give you
<thedavidmeister> how do i know what my env-manifest.nix is?
<thedavidmeister> ill try
<ottidmes> thedavidmeister: its apparantly something linked to a profile, I checked my nix store, and I have one for my system profile and user profile
<ottidmes> I assume yours is from your system profile, considering your last command
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thedavidmeister> nix-store --query --roots /nix/store/f4g5yfc1yjm7lhi03x93zm8crl3ckr7b-env-manifest.nix
<thedavidmeister> removing stale link from '/nix/var/nix/gcroots/auto/sglsamh0p83mx17wf43730ip6fj2jmhq' to '/tmp/nixos-rebuild.XbS5vh/nix'
<thedavidmeister> removing stale link from '/nix/var/nix/gcroots/auto/s7rgq3fpmy1dsz2rvcmn9cqqx88rnvy0' to '/tmp/nixos-rebuild.XbS5vh/nix.drv'
<thedavidmeister> removing stale link from '/nix/var/nix/gcroots/auto/yb749739ks3lf9fryzrkl950d26lbvx6' to '/tmp/nix-build-4727-0/result'
<thedavidmeister> /nix/var/nix/profiles/per-user/thedavidmeister/channels-3-link
<ottidmes> maybe use that path for nix-store --verify --repair --check-contents ?
o1lo01ol1o has quit [Remote host closed the connection]
<thedavidmeister> i don't think i can pass a path to nix-store?
<ottidmes> sure you can, its a symlink to a /nix/store path after all
o1lo01ol1o has joined #nixos
<thedavidmeister> [thedavidmeister@nixos:~]$ nix-store --verify --repair --check-contents /nix/var/nix/profiles/per-user/thedavidmeister/channels-3-link
<thedavidmeister> error: no arguments expected
lsyoyom has quit [Ping timeout: 250 seconds]
<ottidmes> you are right, just checked the manpage, and nix-store --verify does not expect parameters
knupfer has quit [Remote host closed the connection]
<ottidmes> without parameters it did not work, right? then the only thing I can think of is to call nixos-rebuild switch --upgrade again and hope you get a new channels-4-link
<ottidmes> nix-channel --upgrade is the same I think (as --upgrade for nixos-rebuild)
rcshm has quit [Remote host closed the connection]
<thedavidmeister> [thedavidmeister@nixos:~]$ nix-channel --update
<thedavidmeister> unpacking channels...
<thedavidmeister> error: syntax error, unexpected $end, at /nix/store/f4g5yfc1yjm7lhi03x93zm8crl3ckr7b-env-manifest.nix:1:1
<thedavidmeister> error: program '/nix/store/fz9lwpq4ikv8m6spwzcw030kdgjh0sm4-nix-2.1.3/bin/nix-env' failed with exit code 1
rcshm has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<ottidmes> thedavidmeister: nix-channel --rollback 2 should hopefully make channel-3-link stale
<ottidmes> probably nix-channel --rollback, without the generation works too
<thedavidmeister> progress?
<thedavidmeister> [thedavidmeister@nixos:~]$ nix-channel --rollback 2
<thedavidmeister> switching from generation 3 to 2
<thedavidmeister> [thedavidmeister@nixos:~]$ nix-channel --update
<thedavidmeister> unpacking channels...
<thedavidmeister> error: error parsing derivation '/nix/store/25xwf42prc2ynhgyv1p6qh5dcf6fjzcz-nixos-19.03pre168613.ffc604e5579.drv': expected string 'Derive(['
<thedavidmeister> error: program '/nix/store/fz9lwpq4ikv8m6spwzcw030kdgjh0sm4-nix-2.1.3/bin/nix-env' failed with exit code 1
o1lo01ol1o has quit [Ping timeout: 245 seconds]
acarrico has quit [Ping timeout: 245 seconds]
<ottidmes> thedavidmeister: how about staying at generation 2 first, cleaning up the bad state, and only then updating, eh :P
maximiliantagher has joined #nixos
<ottidmes> you probably also have to rollback your nixos generation
<thedavidmeister> ok, do i run the repair?
<ottidmes> nixos-rebuild --rollback
<ottidmes> I would rollback, and try to get it to GC those newer files
<ottidmes> but trying nix-store --verify --repair --check-contents in the meantime could probably not hurt
<ottidmes> you might need a reboot if you booted in the corrupt generation, since it keeps the booted generation around
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cdyson37 has quit [Quit: Page closed]
lsyoyom has joined #nixos
yayforj has quit [Remote host closed the connection]
shibboleth has joined #nixos
yayforj has joined #nixos
<thedavidmeister> kk i'll reboot
thedavidmeister has quit [Quit: WeeChat 2.3]
dsiypl4 has quit [Ping timeout: 250 seconds]
thedavidmeister has joined #nixos
o1lo01ol1o has joined #nixos
_kwstas has quit [Quit: _kwstas]
<thedavidmeister> ok i'm not sure what to run now
<thedavidmeister> repair is still failing
<ottidmes> did you rollback both nix-channel and nixos-rebuild?
<thedavidmeister> yes and rebooted
<thedavidmeister> different error from channel tho
<thedavidmeister> [thedavidmeister@nixos:~]$ nix-channel --update
<ottidmes> so wait with the updating of both of them
<thedavidmeister> unpacking channels...
<thedavidmeister> error: error parsing derivation '/nix/store/25xwf42prc2ynhgyv1p6qh5dcf6fjzcz-nixos-19.03pre168613.ffc604e5579.drv':
<ottidmes> ... :P
<thedavidmeister> error: program '/nix/store/fz9lwpq4ikv8m6spwzcw030kdgjh0sm4-nix-2.1.3/bin/nix-env' failed with exit code 1
<thedavidmeister> what do you mean wait with the updating?
<ottidmes> well since repair doesnt work, my idea was to rollback to a place where things were not corrupt, and everything new after that could than hopefully be GC'ed, thinking that if you were to update again, it would not try and rebuild things already in the store (including the corrupt paths), our goals is to erradicate those corrupt paths, and since repair doesnt work, rollback and then GC was my next idea
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<thedavidmeister> oh
<thedavidmeister> is there a way to delete the paths?
<ottidmes> yes, but only if there are no live roots to it
<thedavidmeister> ah, what is the command to find live roots?
<ottidmes> like I said before, you can delete paths safely with nix-store --delete, but that will fail with live roots to the path (rightfully so)
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ottidmes> check the nix-store manpage under nix-store --gc
<ottidmes> nix-store --gc --print-live should show you all live roots
petrkr has quit [Remote host closed the connection]
<ottidmes> nix-store --query --roots /nix/store/path... shows the roots (live or not) of any /nix/store path
<thedavidmeister> ok
<thedavidmeister> still says channels-3-link
Glider_IRC__ has quit [Ping timeout: 246 seconds]
daniele- has quit [Quit: daniele-]
<ottidmes> because you did nix-channel --update
maximiliantagher has quit [Ping timeout: 240 seconds]
<ottidmes> probably
<ottidmes> https://github.com/NixOS/nix/issues/1281 this seems relevant, maybe try and disable auto optimisation if it is enabled
<{^_^}> nix#1281 (by ocharles, 1 year ago, open): nix-store --repair-path isn't repairing, manually repairing works
o1lo01ol1o has joined #nixos
<ottidmes> and maybe try nix-store --delete /nix/store/25xwf42prc2ynhgyv1p6qh5dcf6fjzcz-nixos-19.03pre168613.ffc604e5579.drv, maybe that way it will be regenerated
<thedavidmeister> can't because it is still alive
<thedavidmeister> i saw some ppl saying delete the profile manually
daniele- has joined #nixos
shibboleth has quit [Quit: shibboleth]
Rusty1 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<ottidmes> you have to be very careful with that, you can make things a lot worse that way
<ottidmes> now you have corrupt files, but by doing that you might get a corrupt database
freeman42y has quit [Ping timeout: 252 seconds]
sicklork1n has joined #nixos
<thedavidmeister> ok i just moved it
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #55495 → nix-script: init at 2015-09-22 → https://git.io/fhHHO
freeman42x has joined #nixos
maximiliantagher has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
sicklork1n has quit [Read error: Connection reset by peer]
rfold has quit [Quit: leaving]
drakonis has quit [Quit: WeeChat 2.3]
maximiliantagher has quit [Ping timeout: 268 seconds]
thc202 has quit [Ping timeout: 246 seconds]
<thedavidmeister> kk seems to be working better...
<thedavidmeister> thanks heaps
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
htoc^ has quit []
<dunk> How can I force an install to my homedir, and not elsewhere on the system?
<lewo> dunk: if you nix-env -i with your user, the package is only avalaible for your user (but files are created in /nix/store)
ottidmes has quit [Ping timeout: 244 seconds]
<dunk> lewo: on my system there seems to be the following symlink: ~/.nix-profile -> /nix/var/nix/profiles/default
drakonis has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos