worldofpeace changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || 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 || For best support,
cosimone has quit [Ping timeout: 245 seconds]
<ryantm> ajs124: try adding glibcLocales to checkInputs
<ajs124> ryantm: I've had some success just substituting their setlocale en_GB with a setlocale C
<ajs124> now the tests are failing, because their test suite makes some "creative" use of regex to clean logs to compare
ddellacosta has joined #nixos
gyroninja has joined #nixos
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm has joined #nixos
pingveno[m] has joined #nixos
nckx has quit [Quit: Updating my GNU Guix System — https://guix.gnu.org]
nckx has joined #nixos
vidbina has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
LeshaInc has quit [Ping timeout: 260 seconds]
LeshaInc has joined #nixos
LeshaInc has quit [Ping timeout: 268 seconds]
gustavderdrache has quit [Quit: Leaving.]
xkapastel has joined #nixos
pie_ has joined #nixos
LeshaInc has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #76134 → Systemd v243.4 → https://git.io/JedVX
<{^_^}> [nixpkgs] @flokli pushed 3 commits to staging: https://git.io/Jexcp
zupo has joined #nixos
<{^_^}> [nixpkgs] @andersk opened pull request #76804 → treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH → https://git.io/JexCI
kleisli has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #76798 → dhcpcd: fix RA time unit confusion → https://git.io/Jex3u
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/JexCs
jgeerds has quit [Ping timeout: 258 seconds]
nixtacular has joined #nixos
fusion809 has quit [Remote host closed the connection]
<nixtacular> how do i override the attributes in the sets that correspond to `linuxPackages_4_19`, `linuxPackages_4_14`, etc.? i'm trying to use overlays for this purpose and it's causing Nix to not see whichever `linuxPackages_X_Y` set i'm overriding
<nixtacular> i have a hunch that it has something to do with the fact that overlays are meant for derivations and `linuxPackages_X_Y` isn't a derivation, it's a set
<nixtacular> but then i don't know what to do, short of checking out my own version of nixpkgs :-/
<gchristensen> oh man I fought this same battle and figured it out once
<gchristensen> let me see if I can find it
<gchristensen> no :/
<ajs124> https://gist.github.com/ajs124/3432d730eb78c006edb562e171ea9f37 we have this, which apparently works
<ajs124> Is that what you're trying to do?
<ajs124> @nixtacular
<ajs124> On a completly unrelated note: can subversion do something like git clone --depth=1 ?
<nixtacular> @ajs124, that's what i'm trying to do right now, but I get the error `error: selector 'linuxPackages_4_19.prl-tools' matches no derivations`
<gchristensen> subversion doesn't fetch all the history anyway
<gchristensen> ajs124: so, no need to --depth=1 it
redd has joined #nixos
<nixtacular> gchristensen: bummer :-/
redd is now known as Guest90927
<gchristensen> nixtacular: bummer?
<nixtacular> gchristensen: American English saying for "that's unfortunate" :-)
Guest90927 is now known as redd_using_nixos
<gchristensen> totally, but what is a bummer?
<spinus> ryantm: thank you, filterSource - I had somewhere else other package which swamped all repo by accident
<nixtacular> oh sorry. just that you weren't able to find the solution. i've been banging my head against the wall for 3 hours trying to figure this out lol
alex has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
<gchristensen> ahh
<gchristensen> it looks like prl-tools was dropped in kernels after 4.14
<nixtacular> gchristensen: correct. i'm attempting to fix the package.
<gchristensen> ah
<ajs124> gchristensen: if svn is shallow anyways, why does it create a bunch of subdirectories in tags/ and generally seem to downloads hundreds of MBs if one tag is ~10MB?
<nixtacular> `linuxPackages.prl-tools` basically gets set to `null` for current versions of NixOS
andersk_ has quit [Remote host closed the connection]
redd_using_nixos has quit [Remote host closed the connection]
<ajs124> I think I got it. subversion is confusing -.-
vidbina has quit [Ping timeout: 268 seconds]
pie_ has quit [Quit: pie_]
<gchristensen> cvs, now that is confusing
mexisme has joined #nixos
<gchristensen> hope you never decide to rename or delete a directory!
zeta_0 has joined #nixos
ng0 has quit [Quit: leaving]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JexCM
<nixtacular> ajs124: you linked to a gist that you said works for overriding `linuxPackages`. could you give more context as to where it's used?
<nixtacular> i'm trying to use that same basic approach in an overlay but it doesn't work
mexisme has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « quickjs: 2019-10-27 -> 2019-12-21 »: https://git.io/JexCS
<nixtacular> i'm also trying to figure out exactly how/where overlays get applied but i can't find the file
Rusty1 has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 248 seconds]
<zeta_0> in haskell, normally for a yesod language dsl i would need to place `{-# LanguageExtension #-}` on the top of the haskell file or add the language extension through the `ghc command line` by passing an extra argument, or in a cabal file add a `default-extensions block`, how do i add this to a default.nix file instead?
<{^_^}> [nixpkgs] @pasqui23 opened pull request #76805 → nodePackages.dat:added dependencies to fix compilation → https://git.io/JexCF
<{^_^}> [nixpkgs] @romildo opened pull request #76806 → theme-obsidian2: 2.9 -> 2.10 → https://git.io/JexCb
<zeta_0> clever: can i add haskell language pragmas to default.nix, it would save me the hassle of having to manually type them out over and over again?
<clever> zeta_0: dont know, but haskell.nix should obey the cabal file
Rusty1 has joined #nixos
ng0 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
ng0 has quit [Client Quit]
bvdw has joined #nixos
orivej has joined #nixos
<zeta_0> clever: well, i don't know if i can do it with a default.nix file, so instead, in the cabal file i will add a default-extensions block like the yesod book says, then do cabal2nix, this should save me from having to manually rewrite the language pragramas over and over again, which would be very painful
ng0 has joined #nixos
ng0 has joined #nixos
nixtacular has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
andersk has joined #nixos
<zeta_0> clever: in the elisp terminal when i enter nix-shell, it loses the auto-completion for all the commands, and it also loses all of my .emacs configuration, is there a way to add this stuff to nix-shell? should i ask in the #emacs channel instead?
pie_ has joined #nixos
<clever> zeta_0: probably an emacs issue
pie_ has quit [Client Quit]
<zeta_0> clever: ok, i asked this in #emacs instead
<lovesegfault> eoli3n_: Had to go out with the wife, yeah mocin i3->sway is a big change (not because of the WM but the ancillary tools)
wildtrees has quit [Quit: Leaving]
<selfsymmetric-mu> zeta_0: Try the nix-mode package
<wucke13> What is the most straigforward way of fetching two github repos, so that both one ends up with the two folders in the build environment?
<{^_^}> [nix] @grahamc opened pull request #3296 → exportReferencesGraph: support working → https://git.io/JexWB
selfsymmetric-mu has quit [Remote host closed the connection]
<colemickens> Is there a way to tell nix-build to only build things for which no substitutions exist?
<gchristensen> it does that automatically, no?
<colemickens> Hm, I didn't express myself very well... I'm trying to optimize a CI scenario.
<colemickens> for example this build was a no-op: https://builds.sr.ht/~colemickens/job/130775
<colemickens> but it had to donwload hundreds of megs of deps in the process.
ng0 has quit [Quit: leaving]
<colemickens> preferably I could say nix-build --only-build-if-no-subs-exist-on-any-cache and then it would just no-op because it knows all closures have been built because it finds them on my cachix cache.
<gchristensen> so you don't want the build result?
<colemickens> I can implement this by saying "am I only a CI build, are there no git changes from my update script, skip building" but that feels more brittle than letting Nix figure it out.
<colemickens> In this case, nah, I don't need the build result actually available at the end.
h0m1 has quit [Ping timeout: 260 seconds]
<gchristensen> if `nix-build` with `-j0` exits 0, it means no builds are necessariy
<gchristensen> I believe that would work, maybe test that
<colemickens> !
<gchristensen> it may still substitute though ...
zeta_0 has quit [Quit: taking break]
<gchristensen> colemickens: you could manually query your configured caches, though that is a bit weird: /nix/store/00zf0sh2yxsmi083my3daaxc8iy5ynga-curl-7.67.0-dev => cache.nixos.org/00zf0sh2yxsmi083my3daaxc8iy5ynga.narinfo => 200 OK => already cached
h0m1 has joined #nixos
selfsymmetric-mu has joined #nixos
<colemickens> I can get nix-instantiate to just spit out hte drvs. I can open the derivation and see the output path, but I don't know how to get that programmatically easily. `nix path-info --json ` on the deriv doesn't contain the output path.
<shajra> Is there already an API in Nixpkgs that makes patching source as simple as filtering it?
zeta_0 has joined #nixos
<colemickens> If I could do that, nix-instantiate -> loop over drvs -> check if path exists on my cache, could be good enough, but might not be any cleaner/happier than just checking if git is dirty
<zeta_0> i can't seem to find the documentation for nix-mode? https://github.com/NixOS/nix-mode/tree/5b5961780f3b1c1b62453d2087f775298980f10d
<zeta_0> it says there is a manual available: nix-mode.org but that link isn't working?
<gchristensen> colemickens: you only need to check the top level drvs
<shajra> I know someone will mention the "preConfigure" and such hooks of the derivation itself, but this is for Haskell.nix, and I want to much source before it gets to the derivation. Because Haskell.nix parses it first to make a compilation plan.
<gchristensen> clever: I think you're pretty familiar with haskell.nix? shajra needs a hand
<colemickens> Is that because the drv is only pushed if the build completes? Is that assumption invalidated if I run cachix in store watch mode?
<gchristensen> colemickens: sorry, I mean you only need to check the output path of the top level drv
<clever> shajra: if you want to patch the source, you probably want either patchPhase, or use a custom runCommand based thing, to compose several things together, and use the result as a src
<gchristensen> colemickens: and it is true because it is an invariant that if a path exists in a cache, all of its (run-time) dependencies are in the cache as well
<shajra> gchristensen: thanks for the help getting help... I think you saw the previous problem on Twitter... man... that was frustrating, but I'm past that.
<gchristensen> shajra: :)
<colemickens> gchristensen: understood, I just misunderstood the "top-level" as meaning drv, which was silly to have assumed. I think I'm on the same page.
<selfsymmetric-mu> zeta_0: https://github.com/NixOS/nix-mode It has nix-shell and nix-repl wrappers, but I haven't investigated them deeply.
<shajra> clever: yeah, if you know Haskell.nix, you probably know what I'm dealing with. It's making a plan before it's even getting to the derivation.
<gchristensen> colemickens: $ nix show-derivation /nix/store/z5z0l34fcn9whmg4886jaj1dhdjbp2s9-unit-update-nixpkgs-19.09-darwin.service.drv | jq -r '."/nix/store/z5z0l34fcn9whmg4886jaj1dhdjbp2s9-unit-update-nixpkgs-19.09-darwin.service.drv".outputs.out.path'
<shajra> clever: in fact, that's exactly what I'm trying to do... patch cabal.project so I get a different plan. cabal.project isn't even put into the workspace for the derivation.
<gchristensen> /nix/store/h4jwqn2v5zyh2dsa8dd8pw48f06j3mky-unit-update-nixpkgs-19.09-darwin.service
<zeta_0> selfsymmetric-mu: thanks
<zeta_0> selfsymmetric-mu++
<shajra> clever: but if runCommand is the way to go, I can do that. Sometimes these simple things end up more verbose than I feel they should be.
<{^_^}> selfsymmetric-mu's karma got increased to 3
<clever> shajra: i dont think cabal.project should exist at build time, haskell.nix is supposed to parse cabal.project, then build everything with old-cabal
<clever> i think
<shajra> clever: yeah... I want to add in "source-repository-package" entry, just for my Haskell.nix build... because... well... (doctest).
<clever> shajra: havent tried doing anything like that yet
<shajra> clever: yeah, I'm pretty sure I'm just one patched src away from having this working.
<wucke13> How to debug `cp: cannot create directory 'source-/<hash>-source'` on a multi src expression?
<clever> wucke13: when cp copies things from the store, the copy it creates will be read-only, you may need a chmod +w -R
<wucke13> In what phase?
<shajra> clever: I think in general, I don't want any fancy non-standard building for this project, because it would be nice for it to end up on Hackage, and as such it should build with what's on Hackage... like the latest `cabal-doctest` package there. But unfortunately, because Haskell.nix builds a component at a time by calling `Setup.hs` directly, it doesn't jive well with `cabal-doctest` as it exists now.
<clever> wucke13: between creating the destination, and trying to copy a 2nd thing to it
<clever> wucke13: note, that you can never write to $src, only $out and subdirs of the temp dir you start in
<shajra> clever: I have a PR up, but in the meantime, I'm making my Haskell.nix build use a fork of `cabal-doctest` which seems to work.
silver has quit [Read error: Connection reset by peer]
<{^_^}> [cabal2nix] @andersk opened pull request #438 → Fix unsafe concatenation of $LD_LIBRARY_PATH → https://git.io/JexW7
<wucke13> clever: Can you give me a pointer about this? I have nothing in my expression on how to unpack, just `srcs = [ src1 src2 ];`. To me it's unclear what can fail on that basic situation.
<clever> wucke13: can you pastebin more of the nix expression?
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<clever> pkgs/development/compilers/rust/default.nix: buildRustPackage = callPackage ../../../build-support/rust {
ddellacosta has quit [Ping timeout: 265 seconds]
<clever> wucke13: buildRustPackage doesnt accept a srcs argument
<clever> wucke13: and sourceRoot = pname; likely doesnt do what you expect it does
<wucke13> clever: What does it do?
<clever> wucke13: sourceRoot tells the stdenv where to cd, after the unpackPhase has unpacked things
<clever> wucke13: and the unpackPhase is likely creating a directory called source
<clever> so changing sourceRoot, means it will try to `cd screenruster`, which doesnt exist
<clever> wucke13: which repo do you want to be cd'd into when the build starts? where should the other repo exist?
<wucke13> CWD=$buildroot/screenruster. Following layout: $buildroot/{screenruster,saver}/ (yes, screenruster-saver needs to be renamed to saver too.
<clever> wucke13: rename line 8 to just src=, delete line 23&24, and then try `postUnpack = "cp -r $screenruster-saver-src saver ; pwd ; ls -lh";`
<wucke13> clever: Thanks for the clear instructions. Unfortunately that yields some erros from a cargo nix expression. And it looks like the unpack phase is not ran at all: https://paste.krebsco.de/wxUgmqcN
knupfer has joined #nixos
<clever> 5 , src ? null
<clever> 6 , srcs ? null
<clever> oh, it does accept a srcs
<clever> 26 then fetchcargo {
<clever> 27 inherit name src srcs sourceRoot cargoUpdateHook;
<clever> which it feeds directly to fetchcargo
<{^_^}> [nixos-org-configurations] @grahamc pushed to master « status page: move the noscript bit out of the table, since that didn't work anyway »: https://git.io/Jexlc
<clever> so fetchcargo is being ran in its own derivation, before the custom postUnpack
<clever> pkgs/development/compilers/rust/default.nix: fetchcargo = buildPackages.callPackage ../../../build-support/rust/fetchcargo.nix {
knupfer has quit [Client Quit]
<wucke13> And even before preUnpack
mudrii[m] has joined #nixos
<clever> wucke13: because its in another derivation, its a build-time dep of the thing with preUnpack
<wucke13> clever: Hmmh. What do we do about?
<clever> wucke13: try going back to what you had before, but run `nix show-derivation` on the .drv file that fails
<clever> wucke13: then look at what its doing
knupfer has joined #nixos
<wucke13> I do not understand what it does :D
<clever> wucke13: can you pasteib the output?
<wucke13> Yes sure, let me compose it a moment :D
knupfer has quit [Client Quit]
buckley3105 has quit [Quit: The Lounge - https://thelounge.chat]
buckley310 has joined #nixos
<clever> wucke13: unpackPhase isnt set, srcs is set, to a list with 2 strings
<clever> "sourceRoot": "screenruster",
<clever> "srcs": "/nix/store/j6q42xy7c9f0p9qw16i9hdy8768rys0m-source /nix/store/fv7byzwlavjz1ad9g4zrwv0ddby78b08-source",
<clever> wucke13: so it will run the default unpackPhase
<clever> wucke13: line 869 will run unpackFile on each thing in $srcs
<clever> wucke13: ahhh, i see the problem
<clever> wucke13: when it copies j6q42xy7c9f0p9qw16i9hdy8768rys0m-source, it strips the hash, creating source/
<clever> wucke13: then when it tries to copy fv7byzwlavjz1ad9g4zrwv0ddby78b08-source to source, it already exists, so it winds up copying to source/fv7byzwlavjz1ad9g4zrwv0ddby78b08-source
<clever> wucke13: you need to name both of the fetchFromGitHub's
<clever> wucke13: just add a name= on each
<wucke13> Sweet, that seems to do at least something! Thanks for the detailed investigation so far :D
<tpham1> How can I force patchelf set RPATH instead of RUNPATH
<tpham1> RUNPATH is ignored on CentOS
* colemickens is reading the tweag article about nix-build hooks and untrusted CI... how does hook ordering work?
<gchristensen> colemickens: what do you mean hook ordering?
<colemickens> eh, it looks like there's only one hook and it's configured by root anyway
<colemickens> I was wondering if a user could get a malicious hook to trigger before the "trusted" sign/upload hook.
<tpham1> @colemickens: take a look at the function genericBuild: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
<colemickens> But it doesn't seem like thats a thing for multiple reasons
<gchristensen> :)
knupfer has joined #nixos
mexisme has joined #nixos
knupfer has quit [Quit: knupfer]
<{^_^}> [nixpkgs] @dtzWill opened pull request #76809 → perlPackages.TimeDate: fix tests that fail as of 2020 → https://git.io/Jexlo
takeda has joined #nixos
<gchristensen> nice, dtz
mexisme has quit [Ping timeout: 260 seconds]
<tomberek> gchristensen: howdy, i've been looking at docker issues, got a few minutes?
<gchristensen> tomberek: I'd like to talk, but I am on my way to bed -- sorry!
<tomberek> k, some other time then, g'nite
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
lovesegfault has quit [Quit: WeeChat 2.7]
rogue_koder_ has quit [Ping timeout: 240 seconds]
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #76810 → perlPackages.TimeDate: fix tests that fail as of 2020 → https://git.io/JexlN
<{^_^}> [nixpkgs] @dtzWill closed pull request #76809 → perlPackages.TimeDate: fix tests that fail as of 2020 → https://git.io/Jexlo
jlv has joined #nixos
<jlv> Does anyone know how to get `apropos` working for user packages, like home-manager packages?
<jlv> I had thought `mandb --user-db` would do it, but that doesn't seem to work.
drakonis has quit [Read error: Connection reset by peer]
zeta_0 has joined #nixos
takeda has quit [Ping timeout: 240 seconds]
ebzzry has quit [Ping timeout: 268 seconds]
<zeta_0> i want to shorten the current directory path in my bash terminal with: `\u@\h:\W\$` , in what option would i place this in home.nix? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.enable https://unix.stackexchange.com/questions/381113/how-do-i-shorten-the-current-directory-path-shown-on-terminal#381117
Soo_Slow has joined #nixos
justanotheruser has quit [Ping timeout: 248 seconds]
<tomberek> zeta_0: in initExtra or sessionVariables you should be able to modify PS1
rogue_koder_ has joined #nixos
Soo_Slow has quit [Client Quit]
<zeta_0> tomberek: ok, so how would i set: `\u@\h:\W\$` in `sessionVariables`?
<tomberek> zeta_0: not 100% sure the order things are applied, so seesionVariables may not work, but it would be something like `sessionVariables.PS1 = "\u@\h:\W\$"`
<tomberek> i'll test now
<tomberek> okay, initExtra works. that's just a raw string where you can have "export PS1=whatever"
<tomberek> and sessionVariables works too
<tomberek> cleaner is probably programs.bash.sessionVariables.PS1 = "whatever";
zupo has quit [Ping timeout: 268 seconds]
<zeta_0> tomberek: programs.bash.sessionVariables.PS1 = "\u@\h:\W\$"; ,for sessionVariables and "export PS1=\u@\h:\W\$" for initExtra ?
<tomberek> one or the other, don't need both
<zeta_0> what is the difference between the 2?
<zeta_0> initExtra and sessionVariable bash options?
<zeta_0> tomberek: ^
<tomberek> i'd have to look at the program.bash implementation, but i suspect that as you write it there will be no difference. the "initExtra" exposes raw bash you can write, while the sessionVariables provides a bit more structure.
<zeta_0> tomberek: ok, i'll try out the sessionVariables option, i'll let you know if it works or not
<zeta_0> tomberek: like this?
<zeta_0> sessionVariables = {
<zeta_0> programs.bash.sessionVariables.PS1 = "\u@\h:\W\$";
<tomberek> if you are already defining the sessionVariables attrset, then it's just sessionVariables = { PS1 = "stuff"; };
<zeta_0> sessionVariables = {
<zeta_0> };
<zeta_0> PS1 = "\u@\h:\W\$";
<zeta_0> tomberek: ^
<tomberek> that looks better
<zeta_0> tomberek: also, for historyControl am i only allowed to enable 1 of these options? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.historyControl
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<tomberek> zeta_0: that's just exposing the bash HISTCONTROL variable, so yes. Read the bash man page to get a full description of what that does.
<tomberek> bash only allows one of those at a time
<zeta_0> ok, i think i will go with "erasedups" for now
<zeta_0> time for a rebuild
<tomberek> i think it can also be ignoreboth
<tomberek> hm... nope.. some logic prevents that
rogue_koder_ has quit [Quit: Konversation terminated!]
zeta_0 has quit [Remote host closed the connection]
takeda has joined #nixos
zeta_0 has joined #nixos
<zeta_0> tomberek: i was able to do a rebuild switch without any errors, but the path does not stay shortened when i go into more subdirectories?
<zeta_0> tomberek: maybe \u@\h:\W\$ is wrong and i need to do something else?
jlv has quit [Remote host closed the connection]
<zeta_0> sessionVariables = {
<zeta_0> };
<zeta_0> PS1 = "\u@\h:\W\$";
<zeta_0> this isn't keep my bash path short guys, whats wrong?
<tomberek> zeta_0: i don't recall exactly what those do. and by the way, you don't need to do a rebuild and reboot, "home-manager switch" and creating a new terminal is enough
<tomberek> \u = username \W is basename of CWD with $HOME abbreviated.... what exactly do you you want?
captn3m0- has joined #nixos
<zeta_0> tomberek: when i cd into new directories i want it to show only the current directory that i am in, like how i have my elisp shell setup in emacs:
<zeta_0> [zeta@nixos:/nix-haskell-recipes]$ pwd
takeda has quit [Ping timeout: 260 seconds]
captn3m0 has quit [Ping timeout: 268 seconds]
<tomberek> looks like that's what "W" does, you sure it's capitalized? plus check to make sure the effect took by `echo "$PS"`
<zeta_0> '
<zeta_0> [zeta@nixos:~]$ echo "$PS1"
<zeta_0> \n\[\033[1;32m\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\]
<tomberek> you have lowercase "w"'s in there, those do full path... make them upppercase
<zeta_0> i have W set to uppercase, how strange
<tomberek> have you done a "home-manager switch"?
chagra has joined #nixos
<tomberek> nixos-rebuild does NOT build or modify your home-manager stuff
<tomberek> they are two seperate systems.... (though perhaps at some point home-manager may be adopted, it seems to be very popular)
<zeta_0> tomberek: rycee already helped me integrate that stuff, i ran that anyways and it still didn't take effect
<zeta_0> tomberek: i think, i'll try to fix this tomorrow, thank you for the help
<tomberek> k
<zeta_0> tomberek++
<{^_^}> tomberek's karma got increased to 1
chagra_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/Jex8A
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
takeda has joined #nixos
<{^_^}> [nixpkgs] @oxalica opened pull request #76811 → rust: 1.39.0 -> 1.40.0 → https://git.io/Jex4T
takeda has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
sb0 has joined #nixos
<{^_^}> [nixpkgs] @oxalica closed pull request #76811 → rust: 1.39.0 -> 1.40.0 → https://git.io/Jex4T
orivej has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
Rusty1 has quit [Quit: Konversation terminated!]
felixfoertsch has joined #nixos
takeda has joined #nixos
takeda has quit [Ping timeout: 240 seconds]
chagra has quit [Ping timeout: 260 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
Soo_Slow has joined #nixos
chagra has joined #nixos
ddellacosta has joined #nixos
hatefulmoron has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
hatefulmoron has quit [Quit: WeeChat 2.6]
ddellacosta has quit [Ping timeout: 258 seconds]
takeda has joined #nixos
hatefulmoron has joined #nixos
<hatefulmoron> Hi, I'm having some trouble installing the `weechat-matrix` plugin for weechat from the unstable channel. I've included how I've installed the package, what error I get, and how I've tried to fix it here: https://pastebin.com/LU6FuHsL
takeda has quit [Ping timeout: 258 seconds]
tomberek has quit [Ping timeout: 240 seconds]
chagra has quit [Ping timeout: 258 seconds]
Phillemann has quit [Quit: WeeChat 2.7]
PLPD-Bot has quit [Remote host closed the connection]
tpham1 has left #nixos [#nixos]
ebzzry has joined #nixos
tpham1 has joined #nixos
takeda has joined #nixos
tomberek has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
xkapastel has quit [Quit: Connection closed for inactivity]
takeda has quit [Ping timeout: 268 seconds]
fusion809 has joined #nixos
cfricke has joined #nixos
cfricke has quit [Client Quit]
cfricke has joined #nixos
mac10688 has quit [Ping timeout: 258 seconds]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #76791 → kcli: init at 1.8.2 → https://git.io/Jexq3
<{^_^}> [nixpkgs] @kalbasit pushed 3 commits to master: https://git.io/JexBO
evils has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 260 seconds]
evils has joined #nixos
evils has quit [Client Quit]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
rauno has joined #nixos
lord| has quit [Quit: https://i.imgur.com/xacQ09F.mp4]
lord| has joined #nixos
Makaveli7 has joined #nixos
smatting has joined #nixos
<CMCDragonkai> If I want to use a custom nixpkgs package set during nixos-rebuild or `nixos-install`, is the only to do so, is to use `-I` flag?
tomberek has quit [Ping timeout: 260 seconds]
chloekek has joined #nixos
<wedens[m]> for those commands specifically - yes
Guest91870 has joined #nixos
<wedens[m]> but you can always move on a lower level and use nix-build and switch-to-configuration
smollcato has joined #nixos
<Guest91870> w
smollcato has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @etu merged pull request #76746 → Zwave fixes → https://git.io/JeASm
<{^_^}> [nixpkgs] @etu pushed 3 commits to master: https://git.io/JexBP
<infinisil> CMCDragonkai: Or also with the env var `NIX_PATH=nixpkgs=...`
orivej has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @fpletz pushed to master « Revert "Revert "openocd: Fix FTDI channel configuration for SheevaPlug"" »: https://git.io/JexB9
gagbo has joined #nixos
smollcato has joined #nixos
dozn has joined #nixos
smollcato has quit [Remote host closed the connection]
dansho has joined #nixos
smollcato has joined #nixos
smatting has quit [Ping timeout: 265 seconds]
<wedens[m]> I think there were some cases where NIX_PATH is not being respected. I don't remember the details, unfortunately
<wedens[m]> probably it was nixos-rebuild itself
brightone has joined #nixos
<lassulus> ~ snixos-rebuild respects NIX_PATH, nixos-install doesn't
m0rphism has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
spinus has quit [Ping timeout: 260 seconds]
smatting has joined #nixos
<hatefulmoron> As an update to my situation, I have weechat running by removing all references of the `typing` module of python 3.7 from PYTHONPATH, because apparently having that module installed on python 3.7 causes issues.
<jtojnar> Izorkin hmm, it appears that by claiming fail2ban supports python 3, they meant that you can run 2to3 of it 🤦‍♀️️
<hatefulmoron> But I don't know why `weechat-matrix` script doesn't work out of the box for me, the pull request says that it works out of the box.
<thefloweringash> is there a `nix-serve` alike that uses the signatures from the store?
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<Izorkin> jtojnar: can't fix it
felixfoertsch has quit [Client Quit]
<jtojnar> izorkin do you mean that postPatch = ''${stdenv.shell} .úfail2ban-2to3'' does not work?
felixfoertsch has joined #nixos
<Izorkin> jtojnar: https://docs.python.org/2/library/2to3.html need this package?
<jtojnar> Izorkin it should be part of python3 iirc
hatefulmoron has quit [Quit: WeeChat 2.6]
zupo has joined #nixos
orivej has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @thefloweringash opened pull request #76812 → openssl: fix platform detection on armv5tel-linux → https://git.io/JexRp
<{^_^}> [nixpkgs] @elohmeier opened pull request #76813 → python3Packages.fints: 2.2.0 -> 3.0.0 → https://git.io/Jex0T
<Izorkin> jtojnar: worked this wariant
<jtojnar> cool
zupo has joined #nixos
FRidh has joined #nixos
zaeph has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed commit from @jonringer to release-19.09 « pythonPackages.pyjwt: fix tests »: https://git.io/Jex0Y
takeda has joined #nixos
alexherbo2 has joined #nixos
__monty__ has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
joshuagl has joined #nixos
thc202 has joined #nixos
takeda has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @Izorkin opened pull request #76814 → fail2ban: fix work with python3 → https://git.io/Jex03
<Izorkin> jtojnar: created PR
zupo_ has joined #nixos
<eoli3n_> Hi
<eoli3n_> i can't get ssh-agent to work
zupo has quit [Ping timeout: 240 seconds]
<eoli3n_> but pgrep ssh-agent gives nothing neither ssh-add
<eoli3n_> Could not open a connection to your authentication agent.
<eoli3n_> systemctl --all | grep ssh-agent gives nothing too
<flokli> eoli3n_: this should be a user service
<eoli3n_> oh right
<eoli3n_> but why is that not attached to a user in definition ?
<eoli3n_> see my link
<eoli3n_> anyway you're right
<flokli> it's part of a nixos module, so it's not specific to an individual user. it'll create that unit in a "default" location
<eoli3n_> its running as user
<eoli3n_> but i can't ssh-add
<{^_^}> #50455 (by coretemp, 1 year ago, open): ssh-add doesn't work anymore
<eoli3n_> oh now its working
<eoli3n_> strange
<flokli> hm, I assume the shellscript in SSH_AUTH_SOCK isn't working properly
noonien has quit [Quit: Connection closed for inactivity]
<flokli> s/in/setting/
<flokli> can you see what SSH_AUTH_SOCK points to?
<flokli> while it's working and while it's not
<eoli3n_> i don't know if i will get it not work, but now it's set to /run/user/1000/ssh-agent
<flokli> I think it'ss pam_systemd setting the XDG_ locations
<flokli> but the script really should just default to the XDG default locations if those variables are not set
<eoli3n_> i will tell you if i get it not working again
<eoli3n_> i setted unstable as nixos channel, so is that still usefull ? https://github.com/eoli3n/nix-config/blob/master/hosts/nixtest/configuration.nix#L21
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
spinus has joined #nixos
<flokli> eoli3n_: you never ever want to set stateVersion to something else than the one you set on boot
<flokli> ,stateVersion
<{^_^}> Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
takeda has joined #nixos
<eoli3n_> ok thx
felixfoertsch has joined #nixos
takeda has quit [Ping timeout: 240 seconds]
<{^_^}> [nix] @edolstra merged pull request #3296 → exportReferencesGraph: support working → https://git.io/JexWB
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/Jex0R
o1lo01ol1o has joined #nixos
ng0 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
dozn_ has joined #nixos
justanotheruser has joined #nixos
<eoli3n_> is there any way to check for upgrades ?
dozn has quit [Ping timeout: 265 seconds]
<eoli3n_> how to know if kernel did upgrade so reboot is required ?
admino has joined #nixos
sigmundv_ has joined #nixos
takeda has joined #nixos
thetet has joined #nixos
takeda has quit [Ping timeout: 240 seconds]
psyanticy has joined #nixos
thetet has left #nixos [#nixos]
admino has quit [Quit: ZNC 1.7.5 - https://znc.in]
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
iyzsong has joined #nixos
Twey has quit [Ping timeout: 252 seconds]
<thefloweringash> eoli3n_: you can compare `readlink /run/booted-system/kernel` and `readlink /run/current-system/kernel`
lukash_|away is now known as lukash_
<eoli3n_> thx thefloweringash
<eoli3n_> and less specificly, is there any way to list upgradable "packages" ?
sb0 has quit [Ping timeout: 268 seconds]
sb0 has joined #nixos
jgeerds has joined #nixos
migy has quit [Ping timeout: 265 seconds]
hanemile5 has quit [Quit: Ping timeout (120 seconds)]
jonge has quit [Quit: quit]
xelxebar has quit [Ping timeout: 240 seconds]
SOO7 has quit [Remote host closed the connection]
ayerhart has quit [Quit: ayerhart]
makefu has quit [Ping timeout: 245 seconds]
WilliButz has quit [Ping timeout: 246 seconds]
globin_ has quit [Ping timeout: 246 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 240 seconds]
Philonous has quit [Ping timeout: 250 seconds]
unacceptable has quit [Ping timeout: 250 seconds]
Palpares has quit [Ping timeout: 240 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
fpletz has quit [Ping timeout: 248 seconds]
ayerhart has joined #nixos
m1cr0man has quit [Ping timeout: 268 seconds]
pbb has quit [Ping timeout: 246 seconds]
lurkless has quit [Ping timeout: 252 seconds]
cjay- has quit [Ping timeout: 268 seconds]
smove has quit [Ping timeout: 264 seconds]
adminr has joined #nixos
smove has joined #nixos
globin_ has joined #nixos
pbb has joined #nixos
jb55 has quit [Remote host closed the connection]
unacceptable has joined #nixos
m1cr0man has joined #nixos
klntsky has joined #nixos
fpletz has joined #nixos
migy has joined #nixos
WilliButz has joined #nixos
jonge has joined #nixos
xelxebar has joined #nixos
makefu has joined #nixos
tabasko has quit [Remote host closed the connection]
sb0 has quit [Ping timeout: 258 seconds]
jb55 has joined #nixos
Philonous has joined #nixos
cantstanya has joined #nixos
hanemile5 has joined #nixos
SOO7 has joined #nixos
Palpares has joined #nixos
adminr is now known as dirkx
dirkx has quit [Killed (verne.freenode.net (Nickname regained by services))]
lurkless has joined #nixos
andreas303 has joined #nixos
Guest91870 has quit [Remote host closed the connection]
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
felixfoertsch has joined #nixos
sara_ has joined #nixos
cosimone has joined #nixos
spinus has left #nixos [#nixos]
takeda has joined #nixos
sara_ has quit [Excess Flood]
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
<shyim> The option `virtualisation.virtualbox.guest.enable' has conflicting definitions
<shyim> Can i force my settings?
<{^_^}> [nixpkgs] @filalex77 opened pull request #76815 → Clash 0.17.1 → https://git.io/JexEc
takeda has quit [Ping timeout: 240 seconds]
<ikwildrpepper> shyim: lib.mkForce
<shyim> Thanks :)
<ikwildrpepper> e.g. virtualisation.virtualbox.guest.enable = lib.mkForce true;
<ikwildrpepper> might not be a good idea, depending on the setting
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
<shyim> nixops fails deploying a vm
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
sara_ has joined #nixos
sara_ has quit [Max SendQ exceeded]
sb0 has joined #nixos
adminr has joined #nixos
adminr is now known as dirkx
sb0 has quit [Ping timeout: 260 seconds]
<asymmetric> could someone have a look and merge https://github.com/NixOS/nixpkgs/pull/76276 ?
<{^_^}> #76276 (by asymmetric, 1 week ago, open): solc: 0.5.12 -> 0.5.15
dirkx has quit [Quit: Bye and thanks for all the fish]
dirkx has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
felixfoertsch has joined #nixos
mexisme has joined #nixos
sb0 has joined #nixos
Neo-- has joined #nixos
fendor has joined #nixos
jgeerds has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to master « nushell: 0.7.0 -> 0.7.1 »: https://git.io/JexEb
mexisme has quit [Ping timeout: 248 seconds]
<eoli3n_> in aur packages on arch, we could comments package and mark outofdate
<eoli3n_> how do i do this with a nix package ?
dozn_ is now known as dozn
<PyroLagus> eoli3n_: open an issue on the githubs
<eoli3n_> PyroLagus: but how will the specific maintener be notified
<PyroLagus> there's a bot that notifies everyone who's in the maintainers attribute
<eoli3n_> oh ok cool :)
<PyroLagus> if the issue is formatted correctly, i think
takeda has joined #nixos
<eoli3n_> Should i open a bug report or a packaging requests
<eoli3n_> about the bot, you "know" or you "think" ?
<eoli3n_> :)
<PyroLagus> hm. maybe the bot doesn't notify for issues. i'm not sure now…
<eoli3n_> maybe you're right
<eoli3n_> in md file there's a specific mainter information field
<eoli3n_> maintainer
<eoli3n_> lets try
<PyroLagus> that said, it DOES notify for PRs, sooooo you could just make a pr where you just change the version number and hash. there's a good chance it would work even
<eoli3n_> hm, i started nixos 2 days ago, i still don't know where i should modify that
<eoli3n_> and i see 1707 pull requests on nixpkgs, wow, that's huge
takeda has quit [Ping timeout: 258 seconds]
LLED2_2 has joined #nixos
o1lo01ol1o has joined #nixos
ouzu[m] is now known as ouzu
dvim has joined #nixos
ouzu has quit [Quit: authenticating]
LLED2_ has quit [Ping timeout: 268 seconds]
<DigitalKiwi> eoli3n_: what is out of date ?
<DigitalKiwi> if you want i'll try and update it and do a PR
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<eoli3n_> DigitalKiwi: waybar 0.9.0 has been released 6 days ago
<eoli3n_> Thx DigitalKiwi <3
<DigitalKiwi> soooo uh it's already been updated in master :P
sb0 has quit [Quit: Leaving]
domogled has joined #nixos
<eoli3n_> ah ! i only need to nix-channel --update ?
<eoli3n_> lets try
<etu> eoli3n_: Depends on if it has landed in a channel yet
<DigitalKiwi> Date: Sun Dec 29 14:04:14 2019 +0100
<etu> Unstable haven't been updated for a while
<eoli3n_> i use unstable ...
<eoli3n_> shouldn't it be more updated than other channels?
<Izorkin> etu: please check php PR)
<DigitalKiwi> it still takes a few days
<eoli3n_> oh ok
<etu> ,which-channel eoli3n_
<DigitalKiwi> stuff's gota build
<etu> eoli3n_: Sometimes unstable breaks and takes longer time to update than the stable channels
<etu> Izorkin: Could you link it again?
<eoli3n_> but some packages i use are only on unstable
<eoli3n_> and as i come from archlinux which is a rolling update, i like the fact to be most upstream
<eoli3n_> +distro
<eoli3n_> anyway thx DigitalKiwi :) lets wait a bit
<eoli3n_> and etu for the link
<Izorkin> etu: #75033 and #75451
<{^_^}> https://github.com/NixOS/nixpkgs/pull/75033 (by Izorkin, 4 weeks ago, open): Update build phpPackages
<{^_^}> https://github.com/NixOS/nixpkgs/pull/75451 (by Izorkin, 3 weeks ago, open): Update php build configuration
<DigitalKiwi> you could use a nixpkgs git clone to update but then you're more likely to have to build things and have things not build...
<Shoubit> If you really want to build it now you can use, nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -i waybar
<etu> Izorkin: Thanks. I put it on my list of nixos things to look at for tomorrow evening or the weekend. That list is new and short except of the PineBook Pro that I will pick up today. But I should get to your PRs :)
<Izorkin> etu: ok, thanks
<eoli3n_> how to list files holds by a package ?
<eoli3n_> i see in https://nixos.wiki/wiki/Cheatsheet that equivalent of dpkg -L is readlink + which
<eoli3n_> but what is packages has no binary ?
<eoli3n_> (a font package)
<eoli3n_> i want to verify if font-awesome is the otf version
zupo has joined #nixos
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
tomberek has joined #nixos
<Shoubit> eoli3n_, might not apply to what you're doing but if you're looking for something specific you can use nix-locate (from the nix-index package) e.g. nix-locate '.otf' | grep -i fontawesome
chagra has joined #nixos
felixfoertsch has joined #nixos
<eoli3n_> ok thx
<FRidh> Building pkgsStatic.openblas results in /nix/store/m8ih8gw7qnd2c7p0qgv3cn4b6abkbanb-binutils-2.31.1/bin/ld: cannot find -lc
<clever> FRidh: it could be forcing a dynamic build, or ignoring the static config flags
miguelnegrao has joined #nixos
<{^_^}> [nixpkgs] @misuzu opened pull request #76817 → nixosTests.3proxy: port test to python → https://git.io/Jexur
<FRidh> clever: any suggestion on how to debug this, aside from going through the makefile?
<clever> FRidh: makefile or strace
prusnak has joined #nixos
<{^_^}> [nixpkgs] @lheckemann opened pull request #76818 → EmptyEpsilon: 2019.05.21 -> 2019.11.01 → https://git.io/JexuK
prusnak has quit [Client Quit]
brandonhamilton has joined #nixos
brandonhamilton has quit [Client Quit]
coco has joined #nixos
leotaku has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @BrianHicks opened pull request #76819 → Fix postgresql typed → https://git.io/JexuP
<FRidh> clever: indeed. Had to pass NO_SHARED=1
<FRidh> ah, no
<FRidh> :(
tomberek has quit [Ping timeout: 265 seconds]
janneke has quit [Ping timeout: 252 seconds]
janneke has joined #nixos
mmahut has joined #nixos
<mmahut> hi all, can anyone thing why this would happen? https://gist.github.com/mmahut/52f26af6b7d3c74efe62960e2abc399f
<mmahut> when I create a simple override, my python tests are failing, but when I include checkPhase which is exactly as a nixpkgs it works
leotaku has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #75563 → Cleanup buildRustCrate expression → https://git.io/JeHnP
<{^_^}> [nixpkgs] @andir pushed 10 commits to master: https://git.io/JexuQ
<FRidh> mmahut: maybe that package at master is different than that package at the nixpkgs version
<{^_^}> [nixpkgs] @andir opened pull request #76820 → buildRustCrate: add `buildTests` flag to tell rustc to build tests instead of binaries → https://git.io/Jexup
<dirkx> Where can one see the output of a `build' request to @GrahamcOfBorg -- or see the result of these builds ? Or is that something private ?
<mmahut> FRidh: it is not, that's the odd thing, I'm trying to debug this for hours now :)
<coco> for the option "services.xserver.displayManager.lightdm.background", how can i provide a custom background? assigning a path doesn't seem to work
<alex``> leotaku: hey o/
<alex``> how to make xdg-open available?
cosimone has quit [Quit: Terminated!]
<alex``> I just switched to Wayland, removed my X11 settings, not sure which setting was responsible of `xdg-open` being available in PATH
<{^_^}> [nixpkgs] @misuzu opened pull request #76821 → nixos/freeswitch: init → https://git.io/JexzL
<gchristensen> the package is called xdg_open
smollcato has quit [Remote host closed the connection]
noonien has joined #nixos
<smollcato> [telegram/nixos] <SchmollCatto> test
smollcato has joined #nixos
<gchristensen> that message did come through, but it came through quite verbosely
<gchristensen> <smollcato> [telegram/nixos] <SchmollCatto> test
<noonien> is it possible to add more packages to an existing derivation? for example, i have polybar that runs some scripts, i want to have `jq` for those scripts, without installing it system-wide, nor user-wide
<chloekek> noonien: you can wrap a group of derivations in a new one with buildenv.
<noonien> are there any examples i could look at?
<chloekek> noonien: if you ignore the packagesOverrides part, this is an example of how you can call buildEnv: https://nixos.org/nixpkgs/manual/#sec-building-environment
<chloekek> E.g. pkgs.buildEnv { name = "foo-with-jq"; paths = [foo pkgs.jq] }
smollcato has quit [Remote host closed the connection]
<noonien> ah, great, that makes sense. thanks!
<noonien> and, whenever foo executes something, it has jq in $PATH, right?
<chloekek> It’ll take care of propagating bin, and also lib and some other folders I think.
smollcato has joined #nixos
<chloekek> Oh, I don’t know if that’s the case. That would be more tricky.
<noonien> great, thank you!
<noonien> hmm
<noonien> i would like jq to only be available to `foo`, or its children (that inherit $PATH)
<chloekek> Maybe you can override propagatedBuildInputs but I’ve never done that.
cfricke has quit [Quit: WeeChat 2.7]
<chloekek> foo.overrideAttrs (attrs: {propagatedBuildInputs = attrs.propagatedBuildInputs ++ [pkgs.jq];})
<noonien> i'll give that a try, thanks
<noonien> i'm guessing it'll rebuild foo, which i would prefer not to happen, but i'll give it a try
<chloekek> Yeah it’ll definitely do that.
jgeerds has joined #nixos
<mmahut> FRidh: well, even with the same versions it fails https://gist.github.com/mmahut/c754cfd67ed96f8ae0de0dae29c0abce
<mmahut> I hate overrides :)
<chloekek> noonien: do you care about more than just one executable in foo/bin?
<chloekek> noonien: if not, then you can make a wrapper like this, I do it very often: https://gist.github.com/rightfold/9214c1e9a9158a7baad660e26bcc331c
<noonien> yeah, i think that's what i'm looking for!
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
globin_ is now known as globin
globin has joined #nixos
globin has quit [Changing host]
ebzzry has quit [Ping timeout: 268 seconds]
cfricke has joined #nixos
<chloekek> Of course the PATH entry should be ${jq}/bin, not ${jq}/bin/jq.
felixfoertsch has joined #nixos
ebzzry has joined #nixos
<chloekek> Usually I even go as far as using --set PATH instead of --prefix PATH, to ensure it’s truly self-contained. But that may not be applicable for your use case (or it may be).
<noonien> i think it will be, this is just a simple example
<noonien> for polybar atleast, i'll have to install some language servers for nvim later, that'll probably get a bit tricker, but probably not by much
<chloekek> makeWrapper adds a layer of indirection, and is therefore able to solve all problems in computer science.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien> hopefully post-makeWrapper cryptography takes off until more people realise this
Chiliparrot has joined #nixos
Rusty1 has joined #nixos
jgeerds has quit [Ping timeout: 268 seconds]
zupo has joined #nixos
zupo has quit [Client Quit]
<{^_^}> [nixpkgs] @fpletz merged pull request #76818 → EmptyEpsilon: 2019.05.21 -> 2019.11.01 → https://git.io/JexuK
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/Jexzu
<{^_^}> [nixpkgs] @epiteff opened pull request #76823 → station: fix missing icon → https://git.io/Jexzz
Makaveli7 has quit [Quit: WeeChat 2.7]
miguelnegrao has quit [Quit: miguelnegrao]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @mmahut closed pull request #68555 → electrum.ltc: 3.1.3.1 -> 3.3.8.1 → https://git.io/Jexzr
mexisme has quit [Ping timeout: 252 seconds]
domogled has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
lsix has quit [Quit: WeeChat 2.6]
bvdw has quit [Read error: Connection reset by peer]
lsix has joined #nixos
bvdw has joined #nixos
tomberek has joined #nixos
jimmyeatworld has joined #nixos
tomberek has quit [Remote host closed the connection]
cosimone has joined #nixos
domogled has joined #nixos
dozn_ has joined #nixos
xkapastel has joined #nixos
cfricke has quit [Quit: WeeChat 2.7]
rogue_koder has joined #nixos
jimmyeatworld has quit [Quit: leaving]
dozn has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @puzzlewolf opened pull request #76824 → grandorgue: init at 0.3.1-r2333 → https://git.io/Jexgi
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #nixos
gustavderdrache has joined #nixos
<{^_^}> [nixpkgs] @mdlayher opened pull request #76825 → corerad: init at v0.1.1 → https://git.io/JexgA
<ryantm> The Final Comment Period for RFC 0046 has started with disposition to merge and, barring any blocking issues, will be merged after 2020-01-12. Your opinions, comments, and approvals are welcome! https://github.com/NixOS/rfcs/pull/46
<{^_^}> rfcs#46 (by 7c6f434c, 35 weeks ago, open): [RFC 0046] Platform Support Tiers
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<ptrcmd> how can I get my PR to nixpkgs to get merged?
<{^_^}> #76374 (by petercommand, 1 week ago, open): xmousepasteblock: init at 1.0
jmeredith has joined #nixos
<ptrcmd> s/to get//
__Sander__ has joined #nixos
chiefgoat has quit [Quit: ZNC 1.7.5 - https://znc.in]
chiefgoat has joined #nixos
<acowley> I have an issue with an update to nixos-rocm that I'm trying to package: OpenCL-using programs link to libOpenCL.so that we provide, but in the latest version, OpenCL-using programs fail when starting up. Using strace, I found that something is trying to open an additional .so that we build as part of a separate package. If I set LD_LIBRARY_PATH to include /nix/store/other-package/lib, then OpenCL programs work. But I haven't been able
<acowley> to track down *what* is trying to open that .so so I can give it an absolute path. Can anyone suggest a way of doing that?
cosimone has quit [Quit: Terminated!]
<{^_^}> [nixpkgs] @mmahut merged pull request #76814 → fail2ban: fix work with python3 → https://git.io/Jex03
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jex2b
cosimone has joined #nixos
<lewo`> ptrcmd: reviewed!
<acowley> An alternative would be a way of doing the same thing as the LD_LIBRARY_PATH "fix" in such a way that it happens automatically. I think AMD's testing doesn't catch this because they just dump everything in /usr/local/lib or some other path that their testing OS always searches when trying to open a dynamic lib.
<chloekek> What usually happens is that the dynamic loader opens the .so file, and the absolute path is in the ELF file.
<chloekek> AFAIK LD_LIBRARY_PATH causes the dynamic loader to take the basename of that hardcoded path and search it in LD_LIBRARY_PATH instead.
<chloekek> You can change the dynamic loader with patchelf (I believe it’s the interpreter setting) but I don’t know the details.
<chloekek> I think you can also change the absolute path with patchelf.
<chloekek> If they use dlopen then it’s another story, of course.
<acowley> chloekek: Which file are you suggesting that I patchelf to set the absolute path?
ng0_ has joined #nixos
ng0_ has joined #nixos
ng0_ has quit [Changing host]
<chloekek> The executable.
<ptrcmd> lewo`: Thanks!
domogled has quit [Quit: domogled]
tsrt^ has quit []
<chloekek> The programs that use OpenCL, that is.
<chloekek> It may be easier to just set LD_LIBRARY_PATH with makeWrapper or wrapProgram though, if patchelf doesn’t work out and you don’t mind writing a derivation.
<acowley> chloekek: It doesn't mention this additional lib (comgr) in ldd. I think they are using dlopen, because they do this thing where they check for the availability of optional proprietary components.
<acowley> But I simply haven't been able to find it!
<chloekek> acowley: what does grep say if you grep the executable for the absolute path?
<chloekek> acowley: and what if you grep it for the basename?
<acowley> It's a bit non-trivial because when they do use dlopen, they tend to construct the path name for cross-platform compat, but there aren't that many uses of dlopen, so I've reviewed all the ones I could find.
<the_pumpkin_man[> Hello, I'm actually writing a systemd service. It is running under a certain system user. The problem is I want to execute the preStart script as root, not as the user. How can I do this wih NixOS ?
dansho has quit [Ping timeout: 265 seconds]
ng0 has quit [Ping timeout: 268 seconds]
<acowley> chloekek: The missing lib isn't mentioned in the executable. The wrapper approach is a viable fallback, but not at all ideal as it would mean that OpenCL-using programs need wrapping.
ng0_ is now known as ng0
<chloekek> Well you need to either wrap them or patch them.
<eon`> the_pumpkin_man[: https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart= see Table 1. Special executable prefixes
dansho has joined #nixos
<the_pumpkin_man[> I have seen that but the problem is Im using the NixOS's implementation
<the_pumpkin_man[> Im defining it in the configuration.nix file
<the_pumpkin_man[> with systemd.services.<name>.preStart
<chloekek> acowley: I’m not sure how Nixpkgs generally deals with propietary software. I think it’s rather ad-hoc. (For instance, Steam is run in a chroot because only proprietary Debian-compatible packages are available.)
<notgne2> the_pumpkin_man[: if you don't find another solution, you could make it be a root service and drop to a user using su
<the_pumpkin_man[> notgne2: Or just make another service running as root, which will be loaded before my main service
<notgne2> chloekek: the Steam chroot afaik is because binaries for NixOS must be patched to run, and patching every steam game is an unachievable goal
<eon`> you can set systemd.services.<name>.serviceConfig.ExecStartPre directly so that you can add '+' before the command
<the_pumpkin_man[> But I want to find a convenient way to do it
<misuzu> the_pumpkin_man[: try systemd.services.<name>.serviceConfig.ExecStartPre
<acowley> chloekek: We've done okay navigating this in the past. I make the relevant proprietary lib an optional download where I unpack a .deb they provide. This new lib isn't actually proprietary, so if they've wrapped it in their very-dynamic plugin finder, then that seems to havbe been a mistake.
<the_pumpkin_man[> Oh eon` good idea will try
<{^_^}> [nixpkgs] @fpletz merged pull request #76065 → qemu: 4.1.0 -> 4.2.0, including patch for minor CVE-2019-15890 → https://git.io/Je5H6
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/JexaB
jgeerds has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #76751 → pythonPackages.leveldb: 0.194 -> 0.201 → https://git.io/JeA7H
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JexaK
jgeerds has quit [Ping timeout: 265 seconds]
fpletz has joined #nixos
fpletz has quit [Changing host]
szicari has quit [Ping timeout: 260 seconds]
<Palpares> hi. i am stuck with the nixos proxy config. my config file had a configured proxy that worked. now i changed my netword and wish to remove the proxy. I edited the configuration.nix and commented the proxy. howver when I run rebuild- the system still consider the proxy and I get "could not resolve the proxy" timeout. How to remove a proxy once configured ?
mexisme has joined #nixos
cantstanya has quit [Ping timeout: 240 seconds]
iwvt[m] has left #nixos ["User left"]
rootatarch has joined #nixos
elux has joined #nixos
szicari has joined #nixos
<elux> hi all
gm38 has joined #nixos
cantstanya has joined #nixos
<rootatarch> bye
<elux> im installing a new nixos system with full disk encryption. do i need to use grub? ive been reading that grub doesn't support luks2 which i'd like to use to stay current
<rootatarch> grub supports it
mexisme has quit [Ping timeout: 260 seconds]
<rootatarch> check out arch wiki
<elux> ok thanks, perhaps that is outdated. yea good idea, i'll check arch wiki - its usually pretty detailed
<gm38> Has anyone managed to get their RX 5700XT working on NixOS? I'm struggling, the system boots but it just displays a blank screen
<rootatarch> intel and nvidia guy here
<elux> gm38: have you tried the latest linux kernals? 5.x ? i hear that is when 5700 support came about
<rootatarch> i am running 5.4.7
<rootatarch> and i have no idea
jgeerds has joined #nixos
<gm38> elux I'm using linuxPackages_latest
<rootatarch> elux you you are right
<gm38> Followed the instructions here: https://github.com/NixOS/nixpkgs/issues/68809
<rootatarch> grub does not supports luk2 dude to somebug
<{^_^}> #68809 (by jb55, 15 weeks ago, closed): Get navi10 (RX 5700 XT) amdgpu working
<nilsirl[m]> I'm testing some stuff and I would like to have write access to /nix/store
<nilsirl[m]> Would that be possible?
b1000101 has joined #nixos
<exarkun> I am suddenly and mysteriously unable to open luks devices as non-root
<exarkun> to make it more interesting, I will also throw in the traditional "nothing on the system has changed since it worked".
<exarkun> who wants to wow me with a procedure to magically fix it
<rootatarch> try rebooting
<rootatarch> :D
<exarkun> rebooting is so old hat is has moved from the realm of the magical to that of the mundane
<exarkun> but I guess I could nevertheless give it a try
<chloekek> You probably need to be in some group that you need to be in.
<chloekek> That’s what “suddenly” stopped audio from working for me.
<exarkun> I'm in all the groups today I was in last week
<gustavderdrache> don't forget that rebooting replenishes your CPU's supply of magic bits
takeda has joined #nixos
<exarkun> I should apply the kernel patch for hot magic-bit-replenishment someday
<gustavderdrache> one of my company's sysadmins lives near an enchanted forest and they just bring some moss back and sprinkle it on our critical systems to achieve the same effect
<veleiro> anyone working with nixos on the pinebook pro?
<gchristensen> I think yeah, #nixos-aarch64
<veleiro> cool
jgeerds has quit [Ping timeout: 240 seconds]
xelxebar has quit [Remote host closed the connection]
mmahut has quit [Ping timeout: 260 seconds]
xelxebar has joined #nixos
dm9 has joined #nixos
takeda has quit [Ping timeout: 268 seconds]
Neo-- has quit [Ping timeout: 268 seconds]
elux has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 268 seconds]
gm38 has quit [Remote host closed the connection]
mmahut has joined #nixos
MmeQuignon has joined #nixos
ditadi has quit [Quit: Lost terminal]
cosimone has quit [Quit: Terminated!]
<{^_^}> [nixpkgs] @FRidh opened pull request #76827 → apr: fix cross → https://git.io/JexV9
Soo_Slow has quit [Quit: Soo_Slow]
chloekek has quit [Quit: WeeChat 2.6]
<MmeQuignon> Hi ! Is there someone familiar with "next" browser ? I'm trying to install it but it complains about not finding "/nix/store/qm5yk280d558im7x8l59gr82ipnq6llw-next-gtk-webkit-1.3.4/bin/next-gtk-webkit"
<MmeQuignon> should I install something else to make it work ?
tsrt^ has joined #nixos
<lewo`> MmeQuignon: no, it is supposed to work out of the box.
<lewo`> MmeQuignon: maybe you can try with another nixpkgs channel
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MmeQuignon> I'm on unstable and not that familiar with pinning
<dminuoso_> MmeQuignon: How did you install it? Can you please pastie the full output (including your command)?
<the_pumpkin_man[> eon`: misuzu Thank you both it worked !
cjay- has joined #nixos
<the_pumpkin_man[> I just have another question
<{^_^}> [nixpkgs] @FRidh merged pull request #76640 → pythonPackages.prox-tv: init at 3.3.0 → https://git.io/JeNyI
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/JexVA
<dminuoso_> MmeQuignon: Huh, what is that next?
<the_pumpkin_man[> Can I also do this for example : ExecStartPre = "test ! -d /dir && +mkdir /dir"
<the_pumpkin_man[> ?
<MmeQuignon> next is a browser which seems nice, I just want to try it
<MmeQuignon> I installed it in users.users.matthieu.packages
<Shoubit> MmeQuignon, you don't necessarily need to pin (although it's probably the least stateful), you can do it on a per-channel basis if that's enough with: nix-env -f channel:nixos-19.09 -i next
<lewo`> MmeQuignon: I reproduce your issue.
erictapen has joined #nixos
<MmeQuignon> Shoubit: It's not in the stable channel (I think)
<lewo`> MmeQuignon: no, it is actually not :/
<MmeQuignon> lewo`: ok so it's probably not something I did wrong
<MmeQuignon> Should I open an issue ?
<lewo`> MmeQuignon: no, it's an issue in the package itself
<lewo`> MmeQuignon: yep, that would be nice. I could take a look at it (later).
<MmeQuignon> Yes thank you !
<{^_^}> [nixpkgs] @mmahut merged pull request #76764 → v2ray: 4.21.3 -> 4.22.0 → https://git.io/JeAp9
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jexwk
mmahut has quit [Quit: Lost terminal]
erictapen has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @filalex77 opened pull request #76828 → comby: init at 0.12.1 → https://git.io/JexwY
<{^_^}> [nixpkgs] @aanderse merged pull request #76709 → nixos/httpd: update default ssl protocols → https://git.io/JeAZZ
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JexwZ
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @timokau opened pull request #76829 → ntl: 11.4.1 -> 11.4.2, gf2x: 1.2 -> 1.3.0 → https://git.io/Jexwc
erictapen has joined #nixos
sk8forether has joined #nixos
ng0 has quit [Quit: leaving]
b1000101 has quit [Quit: Leaving]
<{^_^}> [nixos-hardware] @rummik opened pull request #138 → Add Lenovo ThinkPad L13 profile → https://git.io/Jexww
takeda has joined #nixos
nexgen has joined #nixos
civodul has joined #nixos
travelion7 has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #76740 → matrix-synapse: 1.7.2 -> 1.7.3 → https://git.io/JeAye
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jexwy
<brightone> OCaml things are not easy to package :(
<{^_^}> brightone: 6 days, 5 hours ago <__monty__> Fwiw, I don't see an easy way to have niv use a channel.
elux has joined #nixos
zeta_0 has joined #nixos
jgeerds has joined #nixos
<zeta_0> rycee: i am try to shorten the path of bash using the sessionVariables option, but it does not seem to be working? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.sessionVariables https://unix.stackexchange.com/questions/381113/how-do-i-shorten-the-current-directory-path-shown-on-terminal#381117
<zeta_0> sessionVariables = {
<zeta_0> };
<zeta_0> PS1 = "\u@\h:\W\$";
brightone has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to release-19.09 « matrix-synapse: 1.7.2 -> 1.7.3 »: https://git.io/Jexrv
rogue_koder has quit [Ping timeout: 260 seconds]
<zeta_0> i want to have the path automatically shortened, like i have in elisp in emacs:
<zeta_0> [zeta@nixos:/nix-haskell-recipes]$ pwd
jmeredith has quit [Quit: Connection closed for inactivity]
<immae> Hello there! I lost ipv6 connectivity (I have an ip6 adress defined correctly via `interfaces."ens3".ipv6.addresses`, but I’m unable to ping remote hosts) when upgrading from nixos-19.03.173017.85f820d6e41 to nixos-19.03.173677.daf861a810d (with linuxPackages_latest), do you know of any issues/changes recently? It did it consistently on two servers.
chloekek has joined #nixos
<rnhmjoj> immae: is your server a linode vps by any chance?
<immae> rnhmjoj: no a hetzner server (VM)
<immae> Both servers are in the same datacenter, so it could be a general issue, but since it happened *right after* restarting I think I’m in fault :p
<rnhmjoj> immae: i asked because linode blocks ipv6 privacy extensions wich are enabled and used by default in 19.09
<immae> ah
<immae> I’m still in 19.03
<rnhmjoj> however that changed in 19.09, not in 19.03
<immae> If it helps (I lack knowledge in ip6), a `ping -6 fe80::%ens3` "works"
xkapastel has quit [Quit: Connection closed for inactivity]
erasmas has joined #nixos
<zeta_0> rycee: i am not sure if this is a home-manager problem, that is why i am asking you for help?
averell has quit [Quit: .]
<immae> rnhmjoj: Just fount it, it turns out I simplly missed a `ip -6 route add default via fe80::1 dev ens3`... I don’t understand how it used to work before...
averell has joined #nixos
rogue_koder has joined #nixos
domogled has joined #nixos
<rnhmjoj> uhm, that's strange... i gave a quick look at the diff between the versions you mentioned but i didn't find anything related to ipv6 or even networking
<{^_^}> [nixpkgs] @ericnorris opened pull request #76830 → Disable NS in emacs-nox → https://git.io/JexrW
<immae> rnhmjoj: well, I’ll add it explicitly to my config :) I found networking.defaultGateway6, is that the right way to add my route?
sigmundv_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #76817 → nixosTests.3proxy: port test to python → https://git.io/Jexur
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JexrR
<rnhmjoj> immae: if that's your default gateway, yes. note that you can also add a route with ipv6.ifname.routes
<immae> rnhmjoj: It works as expected with defaultGateway6, thanks for your help
fenedor has joined #nixos
<zeta_0> i am trying to shorten the path for bash shell, but i am not sure how to do it using the sessionVariables option in home.nix? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.sessionVariables https://unix.stackexchange.com/questions/381113/how-do-i-shorten-the-current-directory-path-shown-on-terminal#381117
Yakulu[m] has left #nixos ["User left"]
<rnhmjoj> immae: if you configured the network manually with that command the changes will probably be lost when switching to a new nixos configuration. you should use the nixos config to make that persistent
<immae> rnhmjoj: I did it on one host to "check", and on the other host I did it via nixos config
fendor has quit [Ping timeout: 258 seconds]
<immae> so I’m fine I guess :)
<rnhmjoj> immae: i'm happy i could help :)
<immae> rnhmjoj++
<{^_^}> rnhmjoj's karma got increased to 3
<rnhmjoj> immae: thank you
gagbo has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @boxofrox closed pull request #75913 → platformio: 4.0.3 -> 4.1.0 → https://git.io/Je54x
mexisme has joined #nixos
<dirkx> dirkx
jgeerds has quit [Ping timeout: 240 seconds]
<dirkx> @aanderse did that build by GrahamcOfBorg go ok ? Anything you need from me ?
elux has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #76830 → Disable NS in emacs-nox → https://git.io/JexrW
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jexrx
[Leary] has joined #nixos
mexisme has quit [Ping timeout: 252 seconds]
<arianvp> is there a way to check gpg signatures in stdenv.mkDerivaiton easily?
rogue_koder has quit [Ping timeout: 268 seconds]
Lears has quit [Ping timeout: 265 seconds]
<immae> arianvp: what kind of signature are you trying to check? url source signature?
<rnhmjoj> arianvp: i don't think so... but there is a proposal here PR #43233
<{^_^}> https://github.com/NixOS/nixpkgs/pull/43233 (by xeji, 1 year ago, open): buildSupport: add helpers for verifying code signatures
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
jgeerds has joined #nixos
rootatarch has quit [Quit: WeeChat 2.7]
zx2c4 has left #nixos [#nixos]
<asymmetric> ,locate hciconfig
<{^_^}> Found in packages: bash-completion
<asymmetric> hmmm
ixxie has joined #nixos
<{^_^}> [nixpkgs] @mbrgm opened pull request #76831 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/Jexom
zupo has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #76832 → openblas: fix pkgsStatic.openblas build → https://git.io/JexoO
<jeaye> Man, what a short link name.
<jeaye> [nixpkgs] @Ma27 merged pull request #76740 → matrix-synapse: 1.7.2 -> 1.7.3 → https://git.io/JeAye
<{^_^}> https://github.com/NixOS/nixpkgs/pull/76740 (by Ma27, 2 days ago, merged): matrix-synapse: 1.7.2 -> 1.7.3
cosimone has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #76833 → gflags: fix static musl build → https://git.io/JexoE
jmeredith has joined #nixos
nix-newbie has joined #nixos
logzet has joined #nixos
<nix-newbie> Hi all. Trying out nix for a server deployment. Veeeery green, but would like to learn. Specifically, adding multiple users in configuration
<nix-newbie> I know I can do
<nix-newbie> users.users.X = { ... };
<nix-newbie> But say I have 20 users to create with the same configuration
dansho has quit [Quit: Leaving]
<nix-newbie> How can I 'loop' through
<nix-newbie> users.uxers.X = { ... }; [ user1 user2 user3 ]
rogue_koder has joined #nixos
nexgen2 has joined #nixos
nexgen has quit [Read error: Connection reset by peer]
<exarkun> nix-newbie: there are lots of approaches to code-reuse in nix
<exarkun> nix-newbie: you could define a function
<exarkun> nix-newbie: you could define a simple value (an attrset)
<exarkun> nix-newbie: you might use one of the builtin or lib map-like functions
rogue_koder has quit [Ping timeout: 265 seconds]
<infinisil> nix-newbie: I'd recommend `users.users = lib.genAttrs [ "user1" "user2" ] (name: { <the user config> })`
<infinisil> Though there are better ways depending on what you exactly need
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux_latest-libre: 17159 -> 17161 »: https://git.io/Jexoj
<nix-newbie> That would seem to do be more than nice enough.
<nix-newbie> It worked, and it is beautiful
<nix-newbie> Thank you
fresheyeball has joined #nixos
<infinisil> :D
<infinisil> I personally have a thing where i can more or less do `users.mainUserConfig = { <the user config> };` and `users.mainUsers = [ "user1" "user2" ]`, and it applies the config to all main users
<infinisil> And I can add main users or add to the config from anywhere and it still applies to the them all
zeta_0 has joined #nixos
<nix-newbie> I'm trying to get a system off the ground to demonstrate the superiority of this over our Ubuntu + Ansible setup which is giving nigtmares.
<infinisil> Hehe nice
<nix-newbie> I'm sure I will have an itch to get fancy down the line
selfsymmetric-pa has joined #nixos
jgeerds has quit [Ping timeout: 240 seconds]
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
rogue_koder has joined #nixos
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
<zeta_0> for some reason i am not able to shorten the bash path using sessionVariables in home.nix? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.sessionVariables https://unix.stackexchange.com/questions/381113/how-do-i-shorten-the-current-directory-path-shown-on-terminal#381117
wildtrees has joined #nixos
<zeta_0> sessionVariables = {
<zeta_0> PS1 = "\u@\h:\W\$";
<zeta_0> };
<gustavderdrache> > "\u"
<{^_^}> "u"
<gustavderdrache> are you seeing this issue?
johnw has joined #nixos
johnw has quit [Remote host closed the connection]
Neo-- has joined #nixos
johnw has joined #nixos
<zeta_0> gustavderdrache: no, i just copied and pasted the instructions from the link, i don't know much about bash?
MinceR_ has joined #nixos
<{^_^}> [nixpkgs] @jerith666 opened pull request #76835 → flyway: fix jarDirs option → https://git.io/JexKm
<gustavderdrache> unfortunately, i don't use nix to manage my session, so that's the best guess i have :/
<{^_^}> [nixpkgs] @Ma27 merged pull request #76397 → qsampler: 0.6.0 -> 0.6.1 → https://git.io/JeFQ8
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JexKs
MinceR has quit [Ping timeout: 240 seconds]
MinceR_ is now known as MinceR
thblt has joined #nixos
<zeta_0> i am able to rebuild switch this without any errors, but it still does not shorten the path of the bash shell?
<thblt> Hello! Is there a process to refresh the list of derivations automatically generated from MELPA/ELPA Emacs packages? Like an auto rebuild every n months or something?
growpotkin has joined #nixos
<rnhmjoj> zeta_0: the slashes are being gobbled up by the nix interpreter
<rnhmjoj> zeta_0: you should use the '' quoted string to avoid it
fenedor is now known as fendor
devalot has quit [Quit: ZNC - http://znc.in]
cosimone has quit [Quit: Quit.]
<zeta_0> rnhmjoj: so place the slashes in between the quotes like this? '\'
<rnhmjoj> zeta_0: no, like this: '''\u@blabla'
<rnhmjoj> zeta_0: oops, sorry: ''\u@blabla''
<gustavderdrache> > [ "\u" ''\u'' ]
<{^_^}> [ "u" "\\u" ]
<gustavderdrache> the '' syntax preserves the backslash
philr has quit [Ping timeout: 260 seconds]
devalot has joined #nixos
<zeta_0> oh, ok, thanks for the help, i'll try that syntax out now
smatting has quit [Ping timeout: 260 seconds]
m0rphism has quit [Quit: WeeChat 2.4]
ouzu has joined #nixos
<ouzu> hey guys, will it complicate things to install nixos on btrfs?
<gchristensen> no
<ouzu> ok great
<{^_^}> [nixpkgs] @risicle opened pull request #76836 → [r19.09] cyrus_sasl: add patch for CVE-2019-19906 → https://git.io/JexKP
Rusty1 has quit [Remote host closed the connection]
m0rphism has joined #nixos
zeta_0 has quit [Quit: rebuilding]
MightyJoe has joined #nixos
cyraxjoe has quit [Ping timeout: 265 seconds]
mexisme has joined #nixos
zeta_0 has joined #nixos
noudle has joined #nixos
<zeta_0> i did a rebuild switch with the syntax change and it still did not change anything?
<zeta_0> PS1 = ''\u@\h:\W\$'';
<zeta_0> sessionVariables = {
<zeta_0> };
alex`` has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<zeta_0> rnhmjoj: gustavderdrache[: ^
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<zeta_0> isn't that supposed to shorten the bash path? , it did not change anything?
<buckley310> zeta_0 if the session variables are set before bashrc, then bashrc will override PS1
<rnhmjoj> zeta_0: that seems ok to me, syntax-wise. can you check what the PS1 is set to (echo $PS1), in your shell?
<zeta_0> [zeta@nixos:~]$ echo $PS1
<zeta_0> \n\[\033[1;32m\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\]
<turq> trying to build a haskell project using cabal new-build within a nix shell and I see that zlib-0.6.2.1 requires a build, but when it goes to build, it can't find the header. there's a section in the nixos manual about stack complaining about missing system libraries, but I didn't have any luck
<clever> zeta_0: try opening another terminal window
dm9 has quit [Quit: WeeChat 2.7]
kuznero has joined #nixos
<turq> /nix/store only has zlib-0.6.2.1.drv and zlib-0.6.2.1tar.gz.drv
<kuznero> Hi All!
<buckley310> zeta_0 sessionVariables are set by PAM, so that would be before your shell is started. when your shell is started, it will source /etc/bashrc, which overrides PS1. try setting PS1 in programs.bash.interactiveShellInit instead
<Ericson2314> p01ar: oh neat! what sort of Windows problems?
<buckley310> zeta_0, actually, just found a dedicated setting for this: programs.bash.promptInit
<kuznero> I am trying to `nix-shell` having [this](https://pastebin.com/au8FqzCQ) in my shell.nix file. It fails to `cargo install diesel_cli` when ran from `shellHook`, but when I run it myself once inside the shell, it runs fine. Why is that?
<turq> in short: i can nix-build just fine, but i can't cabal new-build due to the lack of a library
<zeta_0> buckley310: so which bash option would i set for home.nix? https://rycee.gitlab.io/home-manager/options.html#opt-programs.bash.enable
<buckley310> zeta_0 i dont use home-manager, but i would try this first: programs.bash.profileExtra
<{^_^}> [nixpkgs] @jonringer merged pull request #76658 → pythonPackages.junitparser: init at 1.4.1 → https://git.io/JeNd8
<{^_^}> [nixpkgs] @jonringer pushed commit from @multun to master « pythonPackages.junitparser: init at 1.4.1 »: https://git.io/Jex6t
<zeta_0> buckley310: i guess since configuration.nix(global) has a custom option for bash prompt, i'll try that out instead
<kuznero> This is the error I get: `note: impure path `$HOME/.rustup/toolchains/stable-x86_64-...41eb313.rlib' used in link
nix-newbie has quit [Remote host closed the connection]
elux has joined #nixos
cosimone has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Ma27 merged pull request #76815 → clash: 0.16.0 -> 0.17.1 → https://git.io/JexEc
<{^_^}> [nixpkgs] @Ma27 pushed 4 commits to master: https://git.io/Jex6O
zupo has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
zupo has quit [Client Quit]
zeta_0 has quit [Remote host closed the connection]
psyanticy has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Infinisil merged pull request #75031 → Module system improvements for NixOS as a submodule → https://git.io/JeD1r
<{^_^}> [nixpkgs] @Infinisil pushed 9 commits to master: https://git.io/Jex6n
mkaito has quit [Quit: ZNC 1.7.3 - https://znc.in]
elux has quit [Quit: leaving]
mkaito_ has joined #nixos
<kuznero> It seems that it is somehow related to the fact that I have rustup installed the ordinary way...
<kuznero> :(
selfsymmetric-pa has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<ouzu> Does it even make sense to use btrfs with nixos? I currently use it for snapshots and on nixos I could just put the configs into a git repo right?
<lassulus> for /nix/store it doesn't really make sense, for other stuff it depends on your usecase
<gchristensen> lassulus++
<{^_^}> lassulus's karma got increased to 5
<buckley310> btrfs keeps data checksums, which is nice. it also allows you to use subvolumes instead of partitions, so you dont have to explicitly allocate space for, for example, a home partition.
<buckley310> that being said, nixos has excellent zfs support as well.
<benley> I use ZFS for /nix/store and that has been working great
<benley> I imagine btrfs would be useful for similar reasons
jgeerds has joined #nixos
<benley> (checksums for data integrity, primarily)
<benley> and compression, if btrfs supports that
<ouzu> ok that makes sense
<ouzu> yeah, it supports at least deduplication
<benley> oh yeah it does. My /nix/store volume is compressed at 2.1 to 1 with lz4
<benley> I don't use dedup because it requires a ridiculous amount of ram and nix can do that by itself anyway
<benley> zfs dedup, that is
<ouzu> ok thanks!
<nahamu> +1 for using ZFS. NixOS support for it is great and ZFS is great.
<ouzu> zsf even has an entry on the wiki :)
<benley> nixos zfs support continues to delight me :-)
<gchristensen> ouzu, benley: dedup is a bit dangerous, #zfsonlinux exclusievly recommends *against* it for anyone who asks about it
<gchristensen> ("if you have to ask, you don't want it" is sort of their approach)
<benley> yeah - I wouldn't recommend it for most cases even if it were guaranteed safe. It's extremely resource intensive.
<gchristensen> and if your dedup table stops fitting in RAM your optios are basically buy more ram, or restore from a backup from before it got too big
<clever> gchristensen: ive never run into issues where it doesnt fit, but ive not done full dedup on multi-tb datasets yet
<benley> clever: is that zfs or btrfs?
<benley> (I know btrfs has some dedup stuff but I know almost nothing about it)
<clever> benley: zfs
<buckley310> dedup on btrfs is interesting. its safe to try and reversible if its no good.
<buckley310> they basically punt to userspace, and whatever process in userspace scans the drive and tells the kernel which references to share
<gchristensen> oh cool
<gchristensen> ! you could implement nix's hardlink stuff there!
<clever> buckley310: ah, sounds like xfs_fsr's defrag tools
<clever> basically, its a userland tool that will copy an entire file using standard api's, then an ioctl that will atomicly swap the backing blocks of 2 files, and check for race conditions (source got modified)
<clever> then it just relies on the fs to make better choices for the copy of the file
<benley> that's awesome
<buckley310> ah, thats cool. i didnt know xfs could do that type of dedup
<clever> buckley310: thats less of a dedup, and more of a defrag
cosimone has quit [Quit: Quit.]
<clever> it uses the filefrag api (and binary by the same name) to just get extend lists, so it can count the fragments
<buckley310> it sounds like you can take two files that share extents and tell xfs to share them retroactively, just a cursory look though...
<clever> and if over a set limit, it just duplicates the entire file, and swaps the backing blocks if fragmentation improved
chagra has quit [Ping timeout: 268 seconds]
<clever> c2d ~ # xfs_fsr -v
<clever> extents before:3 after:1 DONE ino=54161755
<clever> it just slowly prints things like that
<clever> extents before:185 after:1 DONE ino=71919700
zeta_0 has joined #nixos
<clever> ah yeah, forgot about reflinks
<clever> but i can see how xfs_fsr might break the reflinks
<clever> zfs also doesnt support filefrag, because the api returns a list of offset + length pairs, for each fragment of the file
fusion809 has quit [Remote host closed the connection]
<clever> and with zfs being spread over many disks, which disk is that offset on??
<gchristensen> probably need zdb to find out :)
<clever> yeah
<clever> more that zfs cant fit the answer into the filefrag api, so they choose to just not implement it
<{^_^}> [nixpkgs] @matthewbauer merged pull request #76546 → nvidia: fix $ substitution in udev rules → https://git.io/JebP3
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/Jex6p
lovesegfault has joined #nixos
ng0 has joined #nixos
ng0 has joined #nixos
<lovesegfault> infinisil: Around?
<infinisil> yup
<lovesegfault> infinisil: Can you explain me what this change does/is for? https://github.com/NixOS/nixpkgs/pull/75031
<{^_^}> #75031 (by Infinisil, 4 weeks ago, merged): Module system improvements for NixOS as a submodule
<zeta_0> i copied and pasted the code from `programs.bash.promptInit`, then i replaced all the lowercase w's with uppercase W's: https://hastebin.com/yutefiqada.bash https://nixos.org/nixos/options.html#programs.bash.promptinit
<lovesegfault> I hadn't heard of a submodule in the context of Nix
<clever> lovesegfault: modules can also be submodules, the systemd config uses that for example
<clever> lovesegfault: so every systemd service has the same set of options
<lovesegfault> clever: What exactly is a module?
<clever> lovesegfault: configuration.nix and all of the other modules in nixos, are all modules
<clever> its a set of options, imports, and config
<lovesegfault> Ah, I see, that's what I thought
<zeta_0> was i supposed to replace `all` the lowercase w's with uppercase W's, i just want to make i did this right?
<lovesegfault> So a submodule is... ?
<lovesegfault> Part of a module?
<lovesegfault> 🤔
<clever> lovesegfault: something.* could be of type submodule, and then you can have many something.*.foo's being set
<infinisil> A submodule is a type you can use for options
<lovesegfault> Ah!
<infinisil> Which does another module evaluation from all option values
<lovesegfault> Like users.users
<clever> yeah
rogue_koder has quit [Ping timeout: 240 seconds]
<lovesegfault> > to allow NixOS to be used as submodule
<{^_^}> undefined variable 'to' at (string):272:1
<lovesegfault> but what do...
<lovesegfault> does this make `configuration.nix` a submodule?
<clever> lovesegfault: to make all of nixos a submodule
<infinisil> Yeah it can
<clever> lovesegfault: like nixos containers or nixops
<lovesegfault> I see!
<infinisil> With this change I can essentially write multi-machine abstractions easily
<zeta_0> buckley310: ?
<lovesegfault> infinisil: That rocks
<infinisil> lovesegfault: I'm using this for this: https://github.com/Infinisil/nixoses
<infinisil> And my system config at https://github.com/Infinisil/system, which I'm now in the process of rewriting to use these features
<lovesegfault> infinisil: Niteo link is borked on the README
<infinisil> Whoops
<buckley310> zeta_0, you want a very basic PS1 variable all the time, right?
<infinisil> E.g. I could write a multi-host module that allows me to select a server and a client, and it does all the configuration for the server and client machine
<lovesegfault> infinisil: Yeah, I used your config as inspiration to build mine https://github.com/lovesegfault/nix-config
domogled has quit [Ping timeout: 260 seconds]
<infinisil> Currently in my config I have a bunch of nasty workarounds for multi-host abstractions
<infinisil> And with this I can get rid of those hacks :)
<lovesegfault> infinisil: Can you link to a line with a hack?
<buckley310> zeta_0, programs.bash.promptInit = '' PS1 = ''\u@\h:\W\$''; '';
<buckley310> (look out, those are double-single quotes :o)
<gchristensen> > '' PS1 = ''\u@\h:\W\$''; ''
<{^_^}> error: syntax error, unexpected ';', expecting ')', at (string):272:25
<infinisil> I'm declaring some options to be defined on all involved machines
<buckley310> programs.bash.promptInit = '' PS1 = "\u@\h:\W\$"; '';
<infinisil> Like which client a server should server and which server a client should use
<buckley310> (corrected)
<infinisil> lovesegfault: And I couldn't do that in one abstraction previously
<lovesegfault> infinisil: Ah, I see
<buckley310> > '' PS1 = "\u@\h:\W\$"; ''
<{^_^}> "PS1 = \"\\u@\\h:\\W\\$\"; "
<lovesegfault> infinisil: Really awesome, nice work :)
<{^_^}> [nixpkgs] @dywedir merged pull request #76579 → polybar: 3.4.1 -> 3.4.2 → https://git.io/JeNJX
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JexiC
<infinisil> :)
zupo has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<infinisil> I intend to write a bunch of multi-host modules in the nixoses repo
<infinisil> Like a nixos module collection, but one level higher up
<buckley310> does anyone know why `gcc -fPIE` doesn't work on nixos? the -fPIE seems to have no effect
chagra has joined #nixos
wildtrees has quit [Quit: Leaving]
rogue_koder has joined #nixos
domogled has joined #nixos
<zeta_0> buckley310: i just replaced all the lowercase w's with uppercase W's, and it seems to be working correctly, bash's path stays shortened when i cd in new directories: https://hastebin.com/yutefiqada.bash https://nixos.org/nixos/options.html#programs.bash.promptinit
<zeta_0> buckley310: i just copied/pasted/changed the default code in the programs.bash.promptInit option
kuznero has quit [Quit: Leaving]
<zeta_0> it works now:
<zeta_0> [zeta@nixos:nix-haskell-recipes]$ pwd
<buckley310> neat
<{^_^}> [nixpkgs] @Ma27 pushed to master « gotify-server: 2.0.12 -> 2.0.13 »: https://git.io/Jexio
<lovesegfault> Can I force nix-build to not use a cache?
<gchristensen> --substituters ''
<lovesegfault> gchristensen: bless up
<gchristensen> :)
<lovesegfault> gchristensen: Wait
NoctisLabs has joined #nixos
<lovesegfault> it still won't build
<gchristensen> why not?
<lovesegfault> maybe because it's in my store now?
<gchristensen> build again with --check?
<lovesegfault> ❯ nix-build . -A gegl_0_4 --substituters ''
<lovesegfault> /nix/store/8znlxysinvlm60m5yh1vadyjxcdk6a5j-gegl-0.4.18
<gchristensen> yeah you want --check
<lovesegfault> :D
<lovesegfault> this worked
<zeta_0> buckley310: but i think it is missing the `/` that is supposed to be placed before the currently working directory path:
<zeta_0> [zeta@nixos:`/`nix-haskell-recipes]$ pwd
<zeta_0> buckley310: ^
<gchristensen> lovesegfault: (it hasn't run in Some Time Now but ...) r13y.com is basically a loop over a nixos system and running nix-build with --check :P
<lovesegfault> gchristensen: Oh wow
<lovesegfault> that's pretty cool
<gchristensen> I have hopes to get it going again tomorrow
<zeta_0> buckley310: now i just need to figure out how and where to place the `/` in the code and i'll be good to go
<lovesegfault> gchristensen: Why did it stop?
<lovesegfault> gchristensen: Eh, is GCC (or clang) deterministic?
<gchristensen> it is
<{^_^}> [nixpkgs] @flokli merged pull request #76606 → nixosTests.mysql: add more tests → https://git.io/JeNlB
<gchristensen> lovesegfault: the machine I used to run it on ran out of elbow grease
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JexiQ
<lovesegfault> Oh, wow, that's pretty surprising
<lovesegfault> clever: it... died?
<{^_^}> [nixpkgs] @nlewo opened pull request #76838 → next: set next-gtk-webkit as a propagated build input → https://git.io/Jexib
<gchristensen> no it isn't dead, it just ... can't do this anymore, haha.
elux has joined #nixos
<lovesegfault> :D
<NoctisLabs> Steam recently started crashing, I think it has something to do with the hardware survey window that's popping up. Here's the log: https://paste.debian.net/hidden/a2c6b966/
<gchristensen> it is very close to death, but it still streams plex well enough that I haven't pitched it :)
<lovesegfault> gchristensen: I'd be curious to see whether there are any changes between x86 and aarch64 in how reproducible it is
<gchristensen> a good question
mexisme has joined #nixos
<lovesegfault> is the -ck kernel packaged for NixOS?
<lovesegfault> (i.e. MUQSS)
<NoctisLabs> No, I'm doing it myself.
<{^_^}> [nixpkgs] @ckauhaus merged pull request #76153 → nixos/connman: optional iwd backend → https://git.io/JedXz
<{^_^}> [nixpkgs] @ckauhaus pushed 2 commits to master: https://git.io/Jexij
<lovesegfault> NoctisLabs: Looks like there hasn't been a release for 5.x kernels
<lovesegfault> Oh, wait, nvm
<NoctisLabs> There's a ck patchset for all the 5.x kernels
<lovesegfault> Yeah, I was looking in 2016 accidentally
<NoctisLabs> lovesegfault: https://paste.debian.net/1124231/
<Dandellion> indexDB was supposedly fixed for firefox, but I'm having issues related to it on riot-web in encrypted chats. Anyone else reproduce?
<NoctisLabs> Pop that in your configuration.nix
<lovesegfault> NoctisLabs: Why is BTRFS disabled?
<NoctisLabs> I don't use it, you can enable it if you want. Trims down kernel compilation time a bit.
domogled has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to staging-next: https://git.io/JexPU
kenjis has joined #nixos
justanotheruser has quit [Ping timeout: 252 seconds]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 160 commits to staging-next: https://git.io/JexPq
<{^_^}> [nixpkgs] @FRidh pushed 301 commits to staging: https://git.io/JexPm
<elux> can i use luks2 without grub? i really dont like grub
<lovesegfault> elux: Depends, I use LUKS2 with systemd-boot
<lovesegfault> but my initramfs is unencrypted
o1lo01ol1o has quit [Remote host closed the connection]
<lovesegfault> If you want encrypted initramfs then you need GRUB and LUKS1
<lovesegfault> and BIOS boot
<elux> BIOS boot?
<lovesegfault> elux: as opposed to EFI
<lovesegfault> MBR
<elux> this encrypted drive stuff is quite a pain to get a nice experience
<lovesegfault> elux: Is it?
<lovesegfault> I boot, I get a password prompt, I put in my password, it finishes booting
isHavvy has quit [Ping timeout: 260 seconds]
cab404 has joined #nixos
<elux> in my case, when using grub. if i make a typo for my password it goes to grub rescue mode.. haha
<lovesegfault> That's... odd
<elux> it works otherwise tho
<elux> i think ill leave my boot drive unencrypted then and just use systemd-boot
<elux> like your setup
<lovesegfault> elux: You don't have to choose between those
<lovesegfault> Oh, you said "boot"
<lovesegfault> yeah, I find it much easier
<elux> is it a major security benefit to encrypt /boot?
<lovesegfault> Depends on your threat model
<gchristensen> <3 lovesegfault
<{^_^}> lovesegfault's karma got increased to 6
Havvy has joined #nixos
<lovesegfault> my threat model doesn't include gov. ninja spies invading my home undetected and compromising my initramfs
<{^_^}> [nixpkgs] @aszlig pushed 2 commits to master: https://git.io/JexPc
<{^_^}> [nixpkgs] @aszlig merged pull request #76697 → nginx: Clear Last-Modified if ETag is from store → https://git.io/JeAmx
<lovesegfault> it does include someone stealing my laptop and getting hold of my documents
<gchristensen> lovesegfault: all of my encryption is maleable with enough wrenches
<elux> my threat model would be to extent someone gets physical access to computer while its turned off
<lovesegfault> elux: So you want to be protected against evil-maid type attacks?
<lovesegfault> That's going to be... tough
<lovesegfault> gchristensen: You use BIOS/GRUB/LUKS1, right?
<elux> do you guys know how the nvme hardware encryption works? i hear Samgsung drives are encrypted by default and if you set a bios password it will use that as the key? is that true...?
<lovesegfault> elux: It's called OPAL
<NoctisLabs> I don't use encryption on devices in my home, I only use encryption on devices that leave my home.
<gchristensen> lovesegfault: EFI, LUKS, system-dboot
<lovesegfault> gchristensen: Oh, sweet
<{^_^}> [nixpkgs] @urbas opened pull request #76840 → perl::TimeDate: fixed TimeDate's getdate tests → https://git.io/JexPl
<lovesegfault> Breakfast time! brb
<gchristensen> elux: that is true, but it afaik it is for chips inside and if you plug it in to anything it happily decrypts
<clever> elux: some drives actually use the pw you set to encrypt, others are lazy and just use the password as a boolean to allow/deny
<clever> elux: ive heard that some drives actually do things a bit like luks, its ALWAYS encrypted, and setting a pw just encrypts the master key
<elux> gchristensen: happily decrypts so long as someone knows the passphrase?
<gchristensen> my understanding is it didn't take a user-defined pw
<elux> yea i was told the same thing clever. but im wondering if its true
<gchristensen> but that is something else, sorry
<clever> elux: there are also some drives, that dont directly involve the bios, on first boot, it shows a dummy plaintext partition, you must then install software to that, which will run the unlock tool, and chainload the real os
<gchristensen> o.o
<clever> so it will claim to be a 256mb drive, but if you run a util, it magically grows, and the contents are swapped out
<elux> yea this is why im installing luks to be safe, but, turning on that feature at bios level can presumably give some extra protection without any overhead to the performance since its just changing the master key
<gchristensen> I wouldn't trust hard disk's internal encryption support :)
<elux> roger that :)
<gchristensen> there was a whole nightmare article about this
<elux> gchristensen: do you encrypt your /boot as well? or just everyting else?
<gchristensen> I don't encrypt /boot
<gchristensen> one of my laptops uses secureboot though
<clever> elux: https://github.com/cleverca22/nixos-configs/blob/master/pre-boot-image.nix i wrote this to help somebody generate the plaintext /boot that unlocks the hdd
<elux> whats that
<{^_^}> [nixpkgs] @matthewbauer opened pull request #76841 → nixos/apropos: init → https://git.io/JexPg
<clever> i think...
<clever> ah yeah, this just makes a dumb kernel+initrd, and runs whatever you specified should be ran in the initrd
<clever> but that actual config is missing
mexisme has quit [Ping timeout: 268 seconds]
<clever> if you check the irc logs for this channel, for that filename, you should find more context in pastebins
<gchristensen> elux: hyou'll have to look it up yourself, but here is a WIP implementation https://github.com/NixOS/nixpkgs/pull/53901
<{^_^}> #53901 (by grahamc, 50 weeks ago, open): WIP: Sign systemd boot EFI images for secure booting.
<elux> neat
<{^_^}> [nixpkgs] @urbas closed pull request #76840 → perl::TimeDate: fixed TimeDate's getdate tests → https://git.io/JexPl
zeta_0 has quit [Remote host closed the connection]
zeta_0 has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed to release-19.09 « nginx: Clear Last-Modified if ETag is from store »: https://git.io/JexPi
justanotheruser has joined #nixos
<zeta_0> i am finally am to shorten bash's path but when go into a nix-shell, the path gets long again, why doesn't the shell in nix-shell enherit the bash configuration that i set in configuration.nix(programs.bash.promptInit)?
<zeta_0> [zeta@nixos:/nix-haskell-recipes]$ pwd
<zeta_0> [zeta@nixos:/nix-haskell-recipes]$ nix-shell
<zeta_0> [nix-shell:~/example_projects/simple_examples/nix-haskell-recipes]$
<{^_^}> [nixpkgs] @matthewbauer opened pull request #76842 → haskell/with-packages-wrapper.nix: install "doc" outputs → https://git.io/JexPQ
<zeta_0> as you can see, having a long path can get very annoying
<elux> nice. efi, luks2 and systemd-boot -- just did an install and its working like a charm :) so much better than awful grub
cab404 has quit [Ping timeout: 260 seconds]
<multun> FRidh: hello :) in this pull request, you said you do not intend to submit any newer sphinx until after the 19.09 release, do you think it's relevant to do it now? https://github.com/NixOS/nixpkgs/pull/67730
<{^_^}> #67730 (by multun, 17 weeks ago, open): pythonPackages.junit-xml: init at 1.8
<{^_^}> [nixpkgs] @Ma27 pushed to master « cargo-release: 0.12.4 -> 0.13.0 »: https://git.io/JexP5
<zeta_0> clever: why does the shell in nix-shell not inherit the bash options that i setup in configuration.nix?
drakonis has joined #nixos
<{^_^}> [nixpkgs] @jakobrs opened pull request #76843 → os-prober: add missing lvm2 dependency → https://git.io/JexPp
<zeta_0> so i would need to use direnv for inherit my bash configuration when running nix-shell?
elux has quit [Ping timeout: 258 seconds]
zupo_ has joined #nixos
shiver has quit [Ping timeout: 258 seconds]
zeta_0 has quit [Quit: ']
zupo has quit [Ping timeout: 268 seconds]
<lovesegfault> worldofpeace: https://github.com/NixOS/nixpkgs/pull/75773
<{^_^}> #75773 (by worldofpeace, 2 weeks ago, merged): gegl_0_4: add patch for test timeouts
<lovesegfault> I'm sick of gegl failing and ruining the release
<lovesegfault> can I just patch out that damn test
<lovesegfault> Today we won't get a release because of gegl failing again :(
justanotheruser has quit [Ping timeout: 260 seconds]
nexgen2 has quit [Quit: Leaving]
klimi has joined #nixos
<klimi> Hello, how can i change default app with xdg-mime? No .desktop files are found, in pcmanfm i can chose to open the pdf in evince but if i chose the "Open with" option there are none apps listed so i can not change it. Any help appriciated
Neo-- has quit [Ping timeout: 248 seconds]
<klimi> oh so i figured it out... the correct name is org.gnome.Evince.desktop...
<klimi> infinisil: Thanks
<klimi> And can i somehow set this in my configuration.nix?
eraserhd2 has joined #nixos
<immae> Hello there, until today I was convinced that "${./foo}" was absolutely equivalent to ./foo, but just now I used that and in the derivation ./foo became the path to my local directory instead of a path to a nix store containing the content of the directory, is that expected? (FWIW I used it as `WorkingDirectory = ./foo` in a systemd service definition. `WorkingDirectory = "${./foo}"` worked fine but I’m
<immae> puzzled)
<infinisil> klimi: Not really, this is user-level stuff. You could still do it with some script that runs on startup, but that's kind of ugly
eraserhd has quit [Ping timeout: 260 seconds]
thomashoneyman has joined #nixos
<infinisil> immae: "${./foo}" imports the path into the store and returns the store path
justanotheruser has joined #nixos
<thomashoneyman> i'm attempting to back up some files to a USB drive, but i've only now realized i have no idea how to do this in NixOS
o1lo01ol1o has joined #nixos
<infinisil> immae: Wheras ./foo is the absolute path directly
<immae> hmm
<thomashoneyman> anyone have a link to docs on this or know how?
<thomashoneyman> just trying to mount the usb, copy the files, eject
<infinisil> immae: If the module that reads these values does "${value}" then even when `value = ./foo` it still gets imported into the store
<infinisil> immae: However if that's not the case, then it won't get imported
<immae> ahh
<infinisil> So depending on what the module does, ./foo can be imported or not
<thomashoneyman> unfortunately my google-fu isn't great because of how many results are about using a usb to install nixos
<infinisil> And systemd's module does the latter
<immae> infinisil: ok, so it’s my first occurence of a module not doing that :D
<immae> Thanks
<infinisil> :)
<klimi> infinisil: so home manager with xdg.mimeApps... Thanks anyway
<{^_^}> [nixpkgs] @flokli merged pull request #76621 → Added micronucleus → https://git.io/JeN0G
<{^_^}> [nixpkgs] @flokli pushed 4 commits to master: https://git.io/JexXi
<infinisil> thomashoneyman: If you don't use an automatic mounter, you can do `sudo mkdir /mnt && sudo mount /dev/sdX1 /mnt` then just `cp -r some-directory /mnt` then `sudo umount /mnt`
<infinisil> klimi: Ah nice, didn't know about that
<thomashoneyman> infinisil: i think i'd rather use an automatic mounter, just never heard of them
zeta_0 has joined #nixos
<thomashoneyman> thanks for the note
klimi has quit [Quit: WeeChat 2.6]
<infinisil> Well I'm not using one, so no idea, maybe some DE's do that
<thomashoneyman> have one you prefer?
<thomashoneyman> oh, i see
<thomashoneyman> i just have i3 going, so there's no "desktop" per se
fendor has quit [Quit: Leaving]
chloekek has quit [Ping timeout: 260 seconds]
<kenjis> here is a small dmenu script you can use or modify to your liking https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/dmenumount
<jackdk> if you're using home-manager then turning on the udiskie service is easy, and I think you need services.udisks2.enable = true; in configuration.nix
<thomashoneyman> infinisil: hm -- that's giving me "wrong fs type, bad option, bad superblock on /dev/sdc, or other error"
<infinisil> thomashoneyman: Well you need to give the correct partition
<infinisil> /dev/sdc<whatever number>
<zeta_0> how would i get nix-shell to inherit from my bash setting in configuration.nix? is there a simple way or do i have to setup something like `direnv` ?'
<thomashoneyman> sorry, i haven't done this before (quite new to linux in general)
<thomashoneyman> i'm assuming i'd see that from fdisk
<thomashoneyman> checking...
<thomashoneyman> mm i see a "Disk /dev/sdc" and also a "Device /dev/sdc1"
<thomashoneyman> that's better: "unknown filesystem type 'exfat'"
<thomashoneyman> (using /dev/sdc1)
<thomashoneyman> ok i'm looking at mount docs now
<thomashoneyman> should be ok, thanks for the tip!
<infinisil> Or `lsblk` instead of `fdisk`
<infinisil> Much better output for lsblk
<thomashoneyman> infinisil: yes, that's quite a bit better
<thomashoneyman> just have to check how to mount exfat
<infinisil> thomashoneyman: boot.supportedFilesystems = [ "exfat" ]
<Ashy> hmm, `python` is still version 2.7.17 for me but pkgs.python or pkgs.python27 aren't referenced in my configuration.nix or in `nix-env -q`, how do i figure out where this version of python is coming from?
<{^_^}> [nixpkgs] @danbst merged pull request #76770 → devilutionx: 0.5.0 -> 1.0.0, install font file → https://git.io/Jexe5
<{^_^}> [nixpkgs] @danbst pushed 3 commits to master: https://git.io/JexX5
<{^_^}> [nixpkgs] @Ma27 pushed to master « ansible-lint: 4.1.1a0 -> 4.2.0 »: https://git.io/JexXb
dvim has quit [Quit: Connection closed for inactivity]
<infinisil> Ashy: What's `which python`?
ardumont has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @kalbasit opened pull request #76845 → vim-plugins: hashivim/vim-terraform: fix the filetypedetect autocmd → https://git.io/JexXh
<Ashy> /nix/store/ry7pmp6qc5r3gl7dk3ha3swyankv2hx2-python-2.7.17/bin/python
<infinisil> Ashy: Are you in a nix-shell perhaps?
<infinisil> This shouldn't be an absolute path
<infinisil> Check `echo $PATH` and `echo $IN_NIX_SHELL`
<infinisil> s/absolute path/direct nix store path
<Ashy> not in a nix shell but there is a bunch of nix store paths in my $PATH
<infinisil> Ashy: What about `echo $IN_NIX_SHELL`
<Ashy> it's empty
<infinisil> Hm why do you have these paths in your PATH though?
<{^_^}> [nixpkgs] @adisbladis merged pull request #76646 → poetry2nix: init at 1.1.0 → https://git.io/JeN9M
<Ashy> good question not sure
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/Jex1m
<Ashy> there's a fair few referrers on python too: http://dpaste.com/36ER4Z2
<infinisil> That's no problem
<infinisil> Even without python in PATH you'll have this since all those packages still need python 2
<infinisil> The main question is why you have python in PATH at all
<Ashy> here's my $PATH: http://dpaste.com/1B8VH54
ardumont has joined #nixos
<thomashoneyman> infinisil: thanks! everything's good to go now.
__monty__ has quit [Quit: leaving]
<Ashy> infinisil: this is my .bashrc, i don't see what could be adding these extra paths: https://github.com/AshyIsMe/dotrc/blob/master/bash/.bashrc
<infinisil> Ashy: What's your `configuration.nix`, and are you using home-manager perhaps?
<infinisil> thomashoneyman: Cool :D
<{^_^}> [nixpkgs] @Ma27 merged pull request #76278 → home-assistant-cli: 0.7.0 -> 0.8.0 → https://git.io/Jex18
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jex14
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ashy> not using home-manager and i don't currently have my configuration repo public, what configuration.nix options would update the PATH?
<infinisil> Hm no idea
<infinisil> Ashy: Okay how about this: Run `sudo htop`, go to the process of your terminal, press "e" to see the environment variables of the process, check whether PATH contains those /nix/store paths
<misuzu> i want something strange, maybe someone can help: i need to do this https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/backup/restic.nix#L7 but with <nixos> in path
<gustavderdrache> is there something funky in a .profile or /etc/profile or /etc/bashrc?
<infinisil> Ashy: And run "t" in the overview to see the process structure, repeat the environment lookup for all the terminal process's parents
<infinisil> Then you can somewhat get an idea for where it's set
<misuzu> >unitOption = (import <nixos>/modules/system/boot/systemd-unit-options.nix { inherit config lib; }).unitOption;
<misuzu> this does not work
<infinisil> Ashy: Or what gustavderdrache suggested sounds better as a first option
mexisme has joined #nixos
<gustavderdrache> misuzu: are you looking for <nixpkgs/nixos/modules/system/boot/systemd-unit-options.nix> instead?
ixxie has quit [Ping timeout: 258 seconds]
<misuzu> gustavderdrache: yes! thank you!
<logzet> Where do packages like firefox or atom added to the package list? They are not listed in all-packages.nix, how are they added to <nixpkgs>?
philr has joined #nixos
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
<logzet> Or my original question: Is it possible to have multiple packages, that depend on each other, in one .nix file? And if it is: is there an example to look at in nixpkgs?
selfsymmetric-pa has joined #nixos
<ajs124> logzet: they are in all-packages.nix. I'd send you a link to github, but it seems to cut off the file
<logzet> Ahh
<{^_^}> [nixpkgs] @Ma27 merged pull request #76580 → gleam: 0.5.0 -> 0.6.0 → https://git.io/JeNUk
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/Jex1r
<logzet> I didn't find them in all-packages.nix because github cuts the file ^^
<logzet> thanks :)
selfsymmetric-pa has quit [Remote host closed the connection]
selfsymmetric-pa has joined #nixos
<Ashy> /etc/profile and /etc/bashrc both look ok, or at least aren't explicitly setting $PATH from what i can see
<Ashy> infinisil: i didnt know about 'e' in htop that's nice
<selfsymmetric-pa> Oh that IS nice. infinisil++
<{^_^}> infinisil's karma got increased to 174
<Ashy> so the /run/current-system/sw/bin/bash PATH envvar already has the nix store paths in it and so does the terminal above that in the process tree
<clever> Ashy: you can also peek at /proc/PID/environ to see env vars, its null seperated
<Ashy> the terminal is a wrapper though: /nix/store/ry7pmp6qc5r3gl7dk3ha3swyankv2hx2-python-2.7.17/bin/python2.7 /nix/store/3r5mwr1rk8aqip0km4nw6cczkm335526-terminator-1.91/bin/..terminator-wrapped-wrapped
selfsymmetric-pa has quit [Remote host closed the connection]
<clever> [clever@amd-nixos:~]$ cat /proc/self/environ | xargs -0 -n1 echo
<clever> this is one way to parse it
erictapen has quit [Ping timeout: 268 seconds]
<Ashy> nice
Havvy has quit [Ping timeout: 260 seconds]
<Ashy> htop with t and e is pretty interactive to scan around with though
<Ashy> i think i'm on to something possibly, fired up an xterm and ran htop and PATH envvars in that tree have far less direct nix store references compared to the terminator processes
<infinisil> Hm yeah so maybe it's terminator doing something
<infinisil> Also very suspicious because it's using python2
erictapen has joined #nixos
Havvy has joined #nixos
<gustavderdrache> nix-repl> pkgs.terminator.postFixup
<gustavderdrache> "wrapPythonPrograms\n"
<gustavderdrache> what does wrapPythonPrograms do?
<clever> gustavderdrache: generate bash scripts that will set PYTHONPATH
<gustavderdrache> ah
<gustavderdrache> so... probably not the cause of this particular issue, then
<Ashy> python2.pkgs.buildPythonApplication
thomashoneyman has quit [Quit: Lost terminal]
<Ashy> interestingly there's only 8 direct uses of that in nixpkgs: http://dpaste.com/0RE9XHX
<infinisil> Can confirm that running terminator gives me these /nix/store paths in PATH too
<noonien> is there a fast way to check if a package exists?
<{^_^}> [nixpkgs] @Ma27 merged pull request #76298 → libfilezilla: 0.19.1 -> 0.19.3 → https://git.io/Jex1Q
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jex17
<Ashy> noonien: i usually do `nix-shell -p packa<Tab>` to quickly check
<noonien> heh, sorry, i should have specified, from a script
zarel has quit [Read error: Connection reset by peer]
<Ashy> infinisil: i can't remember why i'm even using terminator, i don't use any of the extra features...
eacameron has joined #nixos
<infinisil> > import <nixpkgs> {} ? hello
<{^_^}> true
<infinisil> noonien: nix-instantiate --eval -E 'import <nixpkgs> {} ? hello'
<eacameron> How can I try out recursive nix?
kenjis has quit [Ping timeout: 248 seconds]
<infinisil> noonien: Or if you want to make sure escaping isn't messed up: nix-instantiate --eval -E '{ package }: import <nixpkgs> {} ? ${package}' --argstr package "hello"
shiver has joined #nixos
<noonien> infinisil: great, thanks!
<{^_^}> [nixpkgs] @Ma27 merged pull request #76313 → cargo-flamegraph: fix runtime dep: linux-perf → https://git.io/JexMO
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/JexM3
zarel has joined #nixos
<gustavderdrache> so it looks like it is indeed wrapPythonPrograms that modifies $PATH
<infinisil> Ohh that makes a lot of sense if you think about it
<infinisil> If a python package depends on some stuff, this should be added to PATH because it expects it to be there
<gustavderdrache> it really only manifests here because terminator is the only thing that exposes a full terminal to the user
<infinisil> Only in terminators case, running it spawns a shell that inherits that
<gustavderdrache> yup
shiver has quit [Ping timeout: 260 seconds]
<infinisil> Oh
<infinisil> And if you check out $(nix-build '<nixpkgs>' -A terminator)/bin/.terminator-wrapped
<infinisil> There's the `export PATH#
<infinisil> We didn't see it in /bin/terminator because it's a doubly-wrapped executable..
<infinisil> With the actual executable being in /bin/..terminator-wrapped-wrapped
<gustavderdrache> yeah, just found it on my laptop
<eacameron> How can I use recursive nix?
gustavderdrache has quit [Quit: Leaving.]
Tracer41[m] is now known as tracer41matrix[m
<{^_^}> [nixpkgs] @lovesegfault opened pull request #76846 → gegl: remove flaky tests → https://git.io/JexM1
<gchristensen> lovesegfault++
<{^_^}> lovesegfault's karma got increased to 7
<eacameron> Is recursive nix support even released yet? It seems not
<lovesegfault> gchristensen: With god as my witness nixos-unstable shall see a release :P
<{^_^}> nix#3205 (by edolstra, 8 weeks ago, merged): Recursive Nix support
<zeta_0> clever: quick question, how do i configure nix-shell? would i need to inherit from the bash settings in configuration.nix using direnv, or is there any easier/simpler way
vidbina has joined #nixos
<zeta_0> clever: everything in nix-shell works fine, the only problem that i have is the long path, which is annoying
<{^_^}> [nix] @edef1c opened pull request #3297 → passAsFile: hash the attribute name instead of numbering sequentially → https://git.io/JexM5
<tracer41matrix[m> zeta_0: PM?
<clever> zeta_0: by default, nix-shell will add to most env vars
<gchristensen> nice, edef
<{^_^}> [nix] @edolstra merged pull request #3297 → passAsFile: hash the attribute name instead of numbering sequentially → https://git.io/JexM5
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JexMN
<gchristensen> double nice, edcragg
<gchristensen> edef:
<edef> o_O
o1lo01ol1o has quit [Remote host closed the connection]
<lovesegfault> that was quick
<tracer41matrix[m> clever: sounds good!
<niksnut> :-)
<edef> niksnut: <3
<tracer41matrix[m> but simple ... :[
<puck> that was FAST
cosimone has quit [Quit: Quit.]
shiver has joined #nixos
o1lo01ol1o has joined #nixos
<lovesegfault> gchristensen: fixed
<lovesegfault> gchristensen: With that fix merged can you manually spin a new release or do we have to wait another day?
fresheyeball has quit [Read error: No route to host]
<gchristensen> lovesegfault: if there is an upstream bug report, it'd be good to put a link to it in the comment in the expression (if not, it might be good to make a bug report upstream). it triggers every 4h, but sure we could trigger an eval once it merges
<lovesegfault> Alright, let me look upstream
<gchristensen> thank you!
<zeta_0> clever: i would like nix-shell to have this configuration, it basically shortens the path to the current working directory as well as a few other things? is there some setting where i could do this or would it have to be inherited from configuration.nix using something like direnv?
<zeta_0> clever: ^
<tracer41matrix[m> you can announce nixos like nexus lol
<lovesegfault> gchristensen: Found issue, adding link (c.f. https://gitlab.gnome.org/GNOME/gegl/issues/215)
<clever> zeta_0: i would just put that into the shellHook for your shell.nix
<gchristensen> awesome!
<gchristensen> lovesegfault: then yeah, once it passes ofborg we'll merge and trigger an eval :)
<gchristensen> lovesegfault: thank you for hunting this down and patching
<lovesegfault> gchristensen: No worries :D
<kraem> i can't use wifi after suspend, only if i restart iwd.service (on both LTS and mainline kernel). where should i start searching?
<lovesegfault> I'm building on my server too
<zeta_0> clever: does the name of the nix file matter, i am currently using a default.nix file?`
<clever> zeta_0: nix-shell will load shell.nix by default, and fall back to default.nix when shell isnt found
<gchristensen> lovesegfault: is there a different gegl I should try building? ofborg seemed to be able to substitute it
<lovesegfault> gchristensen: it's gegl_0_4
<zeta_0> clever: oh i see, i was not sure if you meant that there was a global shell.nix file somewhere, so in whatever project root i am in, i need either a default.nix or shell.nix file in the root directory to place that piece of bash code, is this what you mean?
<clever> zeta_0: yeah
<tracer41matrix[m> hi, im tracer
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen> hey, tracer41matrix[m :)
<judson_> Is there an updated version of signal-desktop?
<Valodim[m]> I'm wondering about Python packaging, perhaps someone can enlighten me: am I reading it right that all python library dependencies must be packaged and included as nix packages, but applications are then built "statically" by including all the python library dependencies?
o1lo01ol1o has joined #nixos
<zeta_0> clever: wouldn't `direnv` be better solution, because it would inherit from the bash configuration that i use in configuration.nix? https://nixos.wiki/wiki/Development_environment_with_nix-shell
<clever> zeta_0: ive not looked heavily into direnv yet
lukash_ is now known as lukash_|away
<zeta_0> clever: ok, i will try trial and error with `direnv` to see if i can get it to work
<zeta_0> clever: what is a shellHook, i don't think i have ever used that before?
<lunik1> I am trying to switch from NetworkManger to connman, and I have added networking.connman.enable = true to my configration. But now wpa_supplicant fails to start because there is no /etc/wpa_supplicant.conf. What am I missing?
<clever> zeta_0: if you run nix-shell on a derivation that has a shellHook, then nix-shell will run whatever bash code is in the shellHook, before giving you a shell
alexherbo2 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
Rusty1 has joined #nixos
<lovesegfault> Papa bless
leothrix has quit [Ping timeout: 268 seconds]
<zeta_0> clever: oh i see, i'll look into both methods to see which one works better, thanks for the help
<zeta_0> clever++
<{^_^}> clever's karma got increased to 289
<alexherbo2> Hi
<alexherbo2> I made a mistake
<alexherbo2> I deleted my /nix/var/nix/profiles/per-user/root
eoli3n_ has quit [Quit: WeeChat 2.7]
<lovesegfault> alexherbo2: Oof
<alexherbo2> how to regenerate it?
<lovesegfault> alexherbo2: maybe `nixos-rebuild --repair`?
<lovesegfault> alexherbo2: maybe `nixos-rebuild switch --repair`?
<zeta_0> clever: one more question, do the programs.bash options used in configuration.nix work in a shellHook as well? or will the code have to be different?
<clever> alexherbo2: nixos will re-create it on boot, but your nix-env profile and nix-channel profile will be gone
zaeph has quit [Ping timeout: 252 seconds]
<clever> zeta_0: the env vars nixos had set, will mostly still be set in shellHook, but nix-shell may have overwritten some and prepended ot others
<alexherbo2> clever: I broke my system :'(
<clever> alexherbo2: nix-channel --update as root, will fix the main problem in those logs
erictapen has quit [Ping timeout: 268 seconds]
<zeta_0> clever: cool, thanks for the help
justanotheruser has quit [Ping timeout: 258 seconds]
erictapen has joined #nixos
<tracer41matrix[m> alexherbo2: you really dont know how to ask people for advise : <
thc202 has quit [Ping timeout: 248 seconds]
<gchristensen> tracer41matrix[m: instead of criticizing alexherbo2, try helping by asking questions
<{^_^}> [nixpkgs] @timokau merged pull request #76829 → ntl: 11.4.1 -> 11.4.2, gf2x: 1.2 -> 1.3.0 → https://git.io/Jexwc
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/Jexyt
<tracer41matrix[m> gchristensen: thats also the wrong approach
<gchristensen> tracer41matrix[m: what is the right approach? take note that being kind and respectful is a highly valued part of the #nixos culture.
<lovesegfault> gchristensen++
<{^_^}> gchristensen's karma got increased to 189
shiver has quit [Quit: leaving]
eoli3n_ has joined #nixos
shiver has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #76846 → gegl: remove flaky test → https://git.io/JexM1
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JexyB
<lovesegfault> gchristensen: Woohoo! trigger ze hydra und ship eeet
<gchristensen> lovesegfault: an evaluation is pending :)
<tracer41matrix[m> i may be friendly but i wont make your or alexherbo2s homework; gchristensen
<lovesegfault> tracer41matrix[m: What homework? What are you talking about?
* lovesegfault high fives gchristensen
vidbina has quit [Ping timeout: 258 seconds]
<lovesegfault> first release of 2020 :D
<gchristensen> tracer41matrix[m: sometimes, the best way to help teach is to help somebody with their homework. regardless, just keep in mind the cutlure we have here :)
<lovesegfault> gchristensen: Wait, what's the pending eval?
<tracer41matrix[m> gchristensen: do your homework kidd :)))
tracer41matrix[m has left #nixos [requested by gchristensen (okay)]
* lovesegfault laughs
tracer41matrix[m has joined #nixos
<gchristensen> tracer41matrix[m: this channel has a different culture than many other IRC channels. you're welcome to be part of the community if you would like to be
<samueldr> elitism has to be left at the door
<alexherbo2> clever: it worked, thanks
<tracer41matrix[m> gchristensen: thank you for explaining me the rules
<tracer41matrix[m> Ignorantia legis non excusat id say 101
AstroBadger has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<{^_^}> [nix] @edef1c opened pull request #3298 → passAsFile: leave out the hash prefix → https://git.io/JexyD
<tracer41matrix[m> oof
<gchristensen> as I said, it is up to you :)
<tracer41matrix[m> this troll is so weak
<gchristensen> I agree
<DigitalKiwi> am i about to witness the first ban ever
leothrix has joined #nixos
<tracer41matrix[m> Ignorantia legis non excusat id say 101
<tracer41matrix[m> dude youre not playing with the rules