gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || 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
<ashkitten> hmmmm
Erasmus has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
goibhniu1 has quit [Ping timeout: 268 seconds]
sam has joined #nixos
sam is now known as Guest9967
<gchristensen> is it possible to create a module submodule option like: foo.a = {}; foo.b = {}; and then have the submodule have a readOnly attribute which enumerates them? so then automatically foo.a.id == 0; foo.b.id == 1; ?
<gchristensen> the ways I tried hit infinite recursion
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<slack1256> foo = val: { a = val ; b = builtins.length a ; }; ?
<slack1256> foo = val: rec { a = val ; b = builtins.length a ; }; ?
<disasm> how can I get buildRustPackage to use the rust in nixpkgs-mozilla overlay?
<slack1256> gchristensen ^^
stepcut has quit [Ping timeout: 250 seconds]
aanderse has joined #nixos
alex``` has quit [Ping timeout: 246 seconds]
<gchristensen> ah sorry slack1256, I mean a NixOS module option with mkOption
<slack1256> No worries, I don' know the answer then :-)
<disasm> think I might have found an example that works: https://github.com/ETCDEVTeam/etcommon-rs/blob/master/nightly.nix
rcshm has quit []
buckley310 has joined #nixos
blankhart has joined #nixos
<ashkitten> clever: it's not picking up the new cmakeFlags set in preConfiguuuure for some reason?
stepcut has joined #nixos
<ashkitten> oh waiit
<ashkitten> oops
dhkl has joined #nixos
o1lo01ol1o has joined #nixos
Guest9967 has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
judson has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjLPw
<ashkitten> clever: how can i make fetchgit retain the .git directory for rev-parse during build?
<clever> ashkitten: leaveDotGit
<clever> ashkitten: but its better to patch it to not need that
<ashkitten> clever: i'm trying to get dolphin-emu to have version info (needed for netplay)
<ashkitten> it needs to do `git describe` so i need the .git dir
<ashkitten> clever: should i offer git to the build process so it can figure that out itself, or should i override the values by doing the same thing in the derivation?
<clever> ashkitten: i think i patched dolphin...
<ashkitten> clever: if i am the netplay host, nobody can connect to me because the version strings don't match
<clever> i could swear i packaged dolphin-emu, where did i leave it...
<ashkitten> it is in nixpkgs, yes
<ashkitten> it just doesn't have version info
<clever> nope, wasnt me
<clever> ashkitten: i think you can set vars like DOLPHIN_WC_REVISION via the cmakeFlags
mabel has joined #nixos
<ashkitten> clever: yes, but i feel that would be duplication of effort. it's three variables that are already handled by the cmakelists.txt if it has git
<clever> ashkitten: but fetchFromGitHub is downloading a .tar.gz, which is much faster then `git clone`
<clever> and keeping .git causes an impurity that will randomly break fetching
npmccallum has quit [Ping timeout: 264 seconds]
<ashkitten> clever: netplay needs the output of `git describe --always --long --dirty` which can't be derived from the revision hash
<clever> ashkitten: dang
<ashkitten> clever: i'm also running into an issue where it switches to a new branch fetchgit before building, which screws up the branch and describe variables
Ariakenom_ is now known as Ariakenom
johnw has joined #nixos
nD5Xjz_ has quit [Ping timeout: 245 seconds]
schneid3306 has quit [Quit: ZZZzzz…]
nD5Xjz has joined #nixos
init_6 has quit []
init_6 has joined #nixos
m0rphism has quit [Ping timeout: 250 seconds]
sam has joined #nixos
<clever> ashkitten: ahhhh, i packaged faster melee, a fork of dolphin!
sam is now known as Guest46966
slack1256 has quit [Remote host closed the connection]
<ashkitten> clever: oh okay
<clever> ashkitten: i made this back in nov of last year, and the description says it includes netplay
<ashkitten> clever: netplay only works if the version strings match up, that's the problem
<clever> yeah
Guest46966 has quit [Ping timeout: 258 seconds]
dbmikus has quit [Quit: WeeChat 2.4]
<ashkitten> clever: i'm not sure how to do this really. i wish there was a way to grab the revision info without making the repo non-deterministic
<samueldr> ashkitten: fixed-output derivation where you download with git, get that (stable hopefully) string. then remove the .git folder?
<{^_^}> #10652 (by pmahoney, 3 years ago, closed): fetchgit: add record-playback
<samueldr> as long as DOLPHIN_WC_REVISION does what clever says
<clever> samueldr: thats basically what the above PR did
<ashkitten> clever: how can i use that for what i want?
<ashkitten> oh it wasn't merge
<ashkitten> d
<clever> yeah :(
<ashkitten> hm
<ashkitten> i don't really know what to do tbh
<ashkitten> i don't want to hardcode the strings lol
<ashkitten> but it really wants a repo with everything intact including tags
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic has joined #nixos
mabel has quit [Ping timeout: 264 seconds]
dhkl has quit [Ping timeout: 268 seconds]
Church- has joined #nixos
Church- has quit [Changing host]
o1lo01ol1o has quit [Remote host closed the connection]
mabel has joined #nixos
o1lo01ol1o has joined #nixos
dhkl has joined #nixos
Mr_Keyser_Soze has joined #nixos
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @worldofpeace closed pull request #47378 → sublimeMerge: init at 1058 → https://git.io/fAxgD
<ashkitten> clever: how opposed are we to just hardcoding the describe string
<clever> ashkitten: i would be fine with that, just leave a comment near the version= reminding people to update it
<ashkitten> clever: got it
Mr_Keyser_Soze has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @teto opened pull request #59044 → strongswan module: use strings for secrets. → https://git.io/fjLXJ
InFlames has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #59045 → linux_mptcp: 0.94.3 -> 0.94.4 → https://git.io/fjLXU
Ariakenom has quit [Quit: Leaving]
dhkl has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
mabel has quit [Ping timeout: 264 seconds]
sam has joined #nixos
drakonis1 has joined #nixos
sam is now known as Guest22639
InFlames has quit [Ping timeout: 252 seconds]
<ashkitten> clever: it seems that it actually does check the rev string
<ashkitten> i need to find someone to verify this with
<ashkitten> i must've made an assumption somewhere
acarrico has joined #nixos
mabel has joined #nixos
stepcut has joined #nixos
silver has quit [Read error: Connection reset by peer]
init_6 has quit []
Guest22639 has quit [Remote host closed the connection]
buffet has joined #nixos
buffet_ has quit [Ping timeout: 245 seconds]
InFlames has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
Erasmus is now known as Pink_press_threa
Pink_press_threa is now known as Pink_pressthreat
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
vmandela has joined #nixos
vmandela has quit [Client Quit]
stepcut has quit [Remote host closed the connection]
sam has joined #nixos
sam is now known as Guest99446
mabel has quit [Ping timeout: 250 seconds]
buckley310 has quit [Quit: Connection closed for inactivity]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
nakkle has quit [Ping timeout: 258 seconds]
nakkle has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #59046 → Pr/arrow 1 13 0 → https://git.io/fjLXK
stepcut has quit [Ping timeout: 264 seconds]
Pink_pressthreat is now known as Erasmus
Lears has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Guest99446 has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @marler8997 opened pull request #59047 → rund: init at version 1.0.0 → https://git.io/fjLXS
<{^_^}> [nixpkgs] @delroth opened pull request #59048 → xkeyboard-config: intltool should be a nativeBuildInput → https://git.io/fjLXH
justanotheruser has quit [Ping timeout: 244 seconds]
justanotheruser has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
mabel has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #58778 → nixos/davmail: set logging default to warn, instead of debug → https://git.io/fjIsC
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjL1e
init_6 has joined #nixos
freeman42x has quit [Read error: Connection reset by peer]
dhkl has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.3]
drakonis_ has joined #nixos
lmarks has joined #nixos
evhan` is now known as evhan
drakonis has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Kaali opened pull request #59050 → pipenv: Ignore Python site-packages → https://git.io/fjL1q
<{^_^}> [nixpkgs] @delroth opened pull request #59051 → environment.noXlibs: disable gnome3 support for pinentry → https://git.io/fjL1m
Rusty1 has quit [Quit: Konversation terminated!]
dhkl has quit [Ping timeout: 264 seconds]
drakonis_ has quit [Ping timeout: 268 seconds]
<detran> I recently switched to the unstable channel, and I've got one program that works while I'm logged in as one user but not as another
<detran> the program is leiningen, has anybody else seen this issue?
ddellacosta has quit [Ping timeout: 258 seconds]
drakonis_ has joined #nixos
init_6 has quit []
Glider_IRC_ has joined #nixos
palo has joined #nixos
Glider_IRC__ has quit [Ping timeout: 246 seconds]
Guest71014 has quit [Ping timeout: 255 seconds]
dhkl has joined #nixos
o1lo01ol1o has joined #nixos
justanotheruser has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
lmarks has quit [Ping timeout: 252 seconds]
sam has joined #nixos
sam is now known as Guest70604
justanotheruser has joined #nixos
<CMCDragonkai> I'm getting a ghc: can't find package database at ...package.db directory when I run cabal build on a derivation using haskell.lib.buildStrictly.
lmarks has joined #nixos
dhkl has quit [Ping timeout: 250 seconds]
lmarks has quit [Ping timeout: 240 seconds]
hamishmack has quit [Read error: Connection reset by peer]
Guest70604 has quit [Remote host closed the connection]
<detran> ok, it's definitely not behaving like I'd expect
<detran> I uninstalled it system wide (I removed it from my configuration.nix)
<detran> Then I tried using it with `nix-shell -p leiningen`
<detran> in one user this works just fine
<detran> in the other it blows up with a java stacktrace
sam has joined #nixos
sam is now known as Guest50364
<detran> wait, I may have figured it out. It looks like a lein plugin I had installed in one user profile
<jasongrossman> detran: \o/
<detran> :)
<detran> I should go to bed, that shouldn't have taken so long to figure out
buckley310 has joined #nixos
Guest50364 has quit [Ping timeout: 258 seconds]
buckley310 has quit []
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/82b8ff405bd (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
buckley310 has joined #nixos
buckley310 has quit [Client Quit]
mojjo has joined #nixos
<mojjo> I'm using nixos with xmonad. How can I start a second x session / xmonad session with a different user logged in?
obadz has joined #nixos
<mojjo> ok got it
<jasongrossman> mojjo: What was the answer?
<mojjo> go to another tty, eg. `Ctrl+Alt+F6`, login as different user there. then `nix-env -i xinit; startx -- :1`
buckley310 has joined #nixos
buckley310 has quit [Client Quit]
knupfer has joined #nixos
fusion809 has joined #nixos
buckley310 has joined #nixos
buckley310 has quit [Quit: leaving]
buckley310 has joined #nixos
mojjo has quit [Ping timeout: 256 seconds]
eyjhb_ is now known as eyJhb
gagbo has joined #nixos
endformationage has quit [Ping timeout: 250 seconds]
knupfer has quit [Ping timeout: 252 seconds]
knupfer has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
Erasmus has quit [Quit: zzz]
mabel has quit [Ping timeout: 258 seconds]
sam has joined #nixos
linarcx has joined #nixos
sphalerite has quit [Quit: WeeChat 2.2]
sam is now known as Guest88154
sphalerite has joined #nixos
lovesegfault has joined #nixos
InFlames has quit [Ping timeout: 250 seconds]
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
hlolli has joined #nixos
hlolli_ has joined #nixos
hlolli__ has joined #nixos
InFlames has joined #nixos
hlolli has quit [Ping timeout: 245 seconds]
hlolli_ has quit [Ping timeout: 250 seconds]
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
<colemickens> ping for reviews: https://github.com/NixOS/nixpkgs/pull/58847
<{^_^}> #58847 (by bachp, 3 days ago, open): nixos/fhsUserenv: make all locales available
orivej has joined #nixos
dermetfan has joined #nixos
dermetfan has quit [Client Quit]
mabel has joined #nixos
juhe has joined #nixos
<juhe> Hi, I'd like to have better control over how nix channel is updated. Is there a way to use nix-channel to point to local path containing git clone of nixpkgs?
<MichaelRaskin> juhe: I think you are saying you do not want to use the channel directly and just want nixpkgs=/path/to/nixpkgs as a part of your NIX_PATH instead (and maybe use the channel information when deciding to update the repository)
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MichaelRaskin> Running a system without channels works
<juhe> MichaelRaskin: Yes, that sounds like something I want :-). Could you give me some pointer where I can read more about that?
mounty has quit [Ping timeout: 268 seconds]
mounty has joined #nixos
<juhe> Hm, probably looking for NIX_PATH seems to be a good start, I see it's set to some stuff so maybe I need to change that path only...
<MichaelRaskin> Yes, NIX_PATH and maybe nix-channel to remove the channels you don't want to use
<MichaelRaskin> Just to avoid their getting into the way if you use nix as another UID or something
<juhe> ok, thanks!
<juhe> ok
<{^_^}> [nixpkgs] @megheaiulian opened pull request #59052 → gitraken: 5.0.1 -> 5.0.4 → https://git.io/fjLMy
<juhe> Hm, that's nifty link.
Guest88154 has quit [Ping timeout: 252 seconds]
<MichaelRaskin> Of course, git is not a system for tracking history, so getting the list of recent channel states is less trivial…
sam has joined #nixos
sam is now known as Guest23923
<juhe> I'd expect nixos-19.03 being in Active branches too. Will that happen after 19.03 is released?
<MichaelRaskin> I am not sure there is an actual channel for it
<{^_^}> [nixpkgs] @megheaiulian opened pull request #59053 → avocode: 3.6.12 -> 3.7.0 → https://git.io/fjLMH
* juhe nods
Guest23923 has quit [Remote host closed the connection]
Mithror has joined #nixos
<yurb> Do I need to do anything special to make nix packages find their locales on non-nixos? Or are they hard-wired into the packages themselves? Currently it seems they can't find the locale.
<MichaelRaskin> Generally exporting LOCALE_ARCHIVE to point to either built-from-nixpkgs locale archive file (provided by glibLocales, if you don't care much about space, or you can override the list of languages) or, if you are lucky and glibc versions match, to your system locale-archive
<yurb> MichaelRaskin: is the locale file something that is made available under ~/.nix-profile when I install packages?
<MichaelRaskin> Hm, not sure what are the defaults; do you have /lib/ included there?
<MichaelRaskin> (package /lib/, not global)
<yurb> yes, there is ~/.nix-profile/lib
<MichaelRaskin> then installing glibcLocales is likely to provide lib/locale/locale-archive (which is what you need)
linarcx has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @gnidorah reopened pull request #59027 → munt: init at 2.3.0 → https://git.io/fjLrv
<{^_^}> [nixpkgs] @thefloweringash opened pull request #59054 → [WIP] packr: init at 2.1.0 → https://git.io/fjLMd
<yurb> MichaelRaskin: Thanks! Installing and pointing LOCALE_ARCHIVE to ~/.nix-profile/lib/locale/locale-archive worked.
linarcx has joined #nixos
<yurb> MichaelRaskin: Do you know why this is not done by default?
<MichaelRaskin> Well, the solution I describe eats quite a bit of space. Many desktop users who use Nix in addition to their underlying system don't really care even about a GiB or two of space; but there are Nix-on-non-Linux use cases where a full locale-archive per installation would be… unfortunate
Thra11 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @suhr opened pull request #59055 → tox-node: init → https://git.io/fjLMp
<MichaelRaskin> Why it is not in docs? We are just not always good with documenting everything (and Nix on non-NixOS Linux is a step below NixOS in support.
<MichaelRaskin> Maybe installer should also remind/offer to do this, I am honestly not sure how exactly it should be best done
mabel has quit [Ping timeout: 252 seconds]
<yurb> MichaelRaskin: I see. I don't know much about locales, but is it possible to install only the locales I'm interested in?
<MichaelRaskin> It is, by installing glibcLocales built with custom parameters
<MichaelRaskin> Not sure what is the easiest way via nix-env (I don't use nix-env and I don't remember what it supports)
<yurb> MichaelRaskin: okay, thanks for the hint.
m0rphism has joined #nixos
<juhe> What is the best place to set NIX_PATH, is it environment.sessionVariables?
<MichaelRaskin> yurb: glibcLocales.override { allLocales = false; locales = ["en_US.UTF-8" "C.UTF-8"]; }
<yurb> Thank you!
InFlames has quit [Ping timeout: 240 seconds]
<MichaelRaskin> juhe: hard to say what is «best», your choice seems reasonable
<juhe> ok, will try and let's see what the experience is :)
<MichaelRaskin> I am a person who just keeps text user configs under version control, my advice on «best» might be biased or useless
<{^_^}> [nixpkgs] @vbgl merged pull request #58610 → hol_light: 2018-09-30 -> 2019-03-27 → https://git.io/fjkVP
<{^_^}> [nixpkgs] @vbgl pushed 2 commits to master: https://git.io/fjLDT
<juhe> That's no problem, opinions are subjective and it is fine, I'll try "environment.sessionVariables" or maybe "nix.nixPath" first and will see the outcame - based on that I'll stay with it or change it.
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
<MichaelRaskin> yurb: I might have messed up the names of the locales in the example, but the error message should provide the correct option list
<linarcx> Gyus, i want to search for a package via `nix search`, but it always give me an error: `error: no results for the given search term(s)!`. What's going on?
juhe has quit [Remote host closed the connection]
juhe has joined #nixos
arjen-jonathan has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
hlolli__ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dywedir merged pull request #59029 → unrar: 5.7.3 -> 5.7.4 → https://git.io/fjLKu
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjLDl
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
lassulus has joined #nixos
<manveru> linarcx: which package?
<linarcx> manveru: For example: firefox or ranger.
<manveru> hmm
<manveru> and you ran `nix-search -u`?
<manveru> i mean `nix search -u`
sam has joined #nixos
sam is now known as Guest12153
<linarcx> manveru: Yes
<manveru> what's the output of `nix-shell -p nix-info --run "nix-info"`?
<linarcx> manveru: error: infinite recursion encountered, at undefined position
<manveru> uh...
<manveru> you're not on nixos i guess?
<linarcx> Yes i am.
<linarcx> About 2 month. but this is first time i see this error.
<{^_^}> [nixpkgs] @xeji merged pull request #59019 → buildah: 1.7.1 -> 1.7.2 → https://git.io/fjLg2
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fjLDE
<manveru> did you recently change channels?
<linarcx> No.
<linarcx> I just change some settings in `configuration.nix`.
<{^_^}> [nixpkgs] @xeji merged pull request #59020 → traefik: 1.7.9 -> 1.7.10 → https://git.io/fjLgj
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fjLDu
<linarcx> And i'm working on nixpkgs repo.. add some packages to it and so on..
<manveru> what's your $NIX_PATH?
<linarcx> manveru: `/home/linarcx/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`
<linarcx> I'm also using home-manager. Is it related?
Mithror has quit [Ping timeout: 258 seconds]
<manveru> does `nix run nixpkgs.nix-info -c nix-info` work?
<manveru> can't say i've ever seen this behaviour before, so hard to say :)
<linarcx> manveru: `error: infinite recursion encountered, at undefined position`.
<manveru> ok
<linarcx> What should i do? report it as a bug?
<manveru> and what does `nix run -f /nix/var/nix/profiles/per-user/root/channels/nixos nix-info -c nix-info` give?
<linarcx> manveru: `error: infinite recursion encountered, at undefined position`.
<manveru> can you add `-vvvvv` to that?
<linarcx> manveru: To end of last command
<manveru> after the `nix`
<manveru> should give a bunch of debugging output
<linarcx> manveru: Yes, let me paste it somewhere.
<manveru> there we go
<manveru> can you paste the i3.nix?
dhkl has joined #nixos
Neo--- has quit [Ping timeout: 244 seconds]
carlos1 has joined #nixos
<linarcx> manveru: Shit. i found the issues. last night i add i3.nix in nixpkgs in home directory and then:"home-manager switch". i guess it will be the issue. let me delete it and see what happen next.
iceypoi has joined #nixos
<linarcx> But i'm confused why home-manager didn't show me any error.
<linarcx> I should report it to those guys to fix this issues.
<iceypoi> is there a canonical way of turning on numlock during boot? I've found services.xserver.displayManager.sddm.autoNumlock, but is that the only way?
<linarcx> manveru: Now every thing works like charm. Thank you man. :)
<manveru> linarcx: the overlay was made by you, not home-manager
<linarcx> manveru: Yes, i've added it to overlays directory. but forgot to delete it. now system is up and working :)
<manveru> that's why i would've loved to see what caused it :)
<manveru> but all's well, so enjoy :)
<linarcx> manveru: Ha ha ha. you are awesome :)
<manveru> iceypoi: if you're using sddm, that's the normal way... there's always other ways :)
Anton-Latukha has joined #nixos
carlos1 has quit [Quit: WeeChat 2.2]
Thra11 has joined #nixos
<iceypoi> the arch wiki suggests creating a systemd service which feels like a reasonable fit to nixos given how it relies on systemd. Do we have a section about building services in the nixos manual?
<iceypoi> (sorry for noob questions, I'm quite new to nixos)
carlosdagos has joined #nixos
<manveru> i think that's actually missing from the manual...
<manveru> well, it's pretty simple for this case
<linarcx> manveru: It's my question too. i'm currently useing startx and i want to turn on numlock. what should i do?
<manveru> you can add `numlockx on` before starting your wm
<iceypoi> well for that case, the arch wiki tells exactly
<iceypoi> i assume you use xinitrc or xsession
<iceypoi> in either of those, you can put in the command and have it happen before you starts the wm
<iceypoi> manveru: do you know of some module that's simple and I could use as a good starting point?
Ariakenom has joined #nixos
<manveru> something like this
<manveru> my keyboard doesn't have a numpad, so i can't test this
<{^_^}> [nixpkgs] @timokau merged pull request #59053 → avocode: 3.6.12 -> 3.7.0 → https://git.io/fjLMH
<{^_^}> [nixpkgs] @timokau pushed commit from @megheaiulian to master « avocode: 3.6.12 -> 3.7.0 (#59053) »: https://git.io/fjLDV
<{^_^}> [nixpkgs] @timokau merged pull request #59052 → gitraken: 5.0.1 -> 5.0.4 → https://git.io/fjLMy
<{^_^}> [nixpkgs] @timokau pushed commit from @megheaiulian to master « gitraken: 5.0.1 -> 5.0.4 (#59052) »: https://git.io/fjLDw
<manveru> updated the paste with a translation of this service
<manveru> if that works for you, we could include it in nixpkgs :)
<iceypoi> cool, I'll test it and if it's fine, I'll make another pr ;-)
<{^_^}> [nixpkgs] @timokau merged pull request #59051 → environment.noXlibs: disable gnome3 support for pinentry → https://git.io/fjL1m
<{^_^}> [nixpkgs] @timokau pushed commit from @delroth to master « environment.noXlibs: disable gnome3 support for pinentry (#59051) »: https://git.io/fjLDo
<kandinski> hey, I have an ASUS 168B+ displaylink monitor, and I just added services.xserver.videoDrivers = [ "displaylink" ]; to my /etc/nix/configuration.nix file and rebuilt switched. However, I can still not see the monitor when I plug it in, despite dmesg recognising the USB device. Any idea?
mabel has joined #nixos
<kandinski> the above is a 18.09 install, btw, and everything else seems to just work.
<manveru> kandinski: does `sudo journalctl -xef -u dlm` say anything?
<manveru> also there should be a /var/log/displaylink with potentially some logs
ng0 has joined #nixos
Mithror has joined #nixos
<kandinski> manveru: thanks, there is an issue with the evdi module not being found
<manveru> you probably need to reboot then
<{^_^}> [nixpkgs] @timokau merged pull request #59040 → qownnotes: 19.3.4 -> 19.4.1 → https://git.io/fjL68
<{^_^}> [nixpkgs] @timokau pushed commit from @dtzWill to master « qownnotes: 19.3.4 -> 19.4.1 (#59040) »: https://git.io/fjLDF
<kandinski> manveru: what is this, Windows?
<kandinski> (rebooting now)
<manveru> :P
<{^_^}> [nixpkgs] @timokau merged pull request #59037 → zsh-autosuggestions: 0.5.0 -> 0.5.1 → https://git.io/fjLKd
<{^_^}> [nixpkgs] @timokau pushed commit from @dtzWill to master « zsh-autosuggestions: 0.5.0 -> 0.5.1 (#59037) »: https://git.io/fjLDA
<kandinski> before I reboot: this is because I did switch --upgrade and in the rebuilt I bilt evdi for my next kernel, not the one currently running, correct?
<manveru> most likely
Guest12153 has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #59034 → lxd: 3.11 -> 3.12 → https://git.io/fjLKS
<{^_^}> [nixpkgs] @timokau pushed commit from @dtzWill to master « lxd: 3.11 -> 3.12 (#59034) »: https://git.io/fjLDp
<manveru> kandinski: you can try something like `sudo modprobe $(nix-build '<nixos>' -A linuxPackages_4_9.evdi)/lib/modules/4.9.166/kernel/drivers/gpu/drm/evdi/evdi.ko`
<{^_^}> [nixpkgs] @timokau merged pull request #59032 → goxel: 0.8.2 -> 0.8.3 → https://git.io/fjLKi
<{^_^}> [nixpkgs] @timokau pushed commit from @dtzWill to master « goxel: 0.8.2 -> 0.8.3 (#59032) »: https://git.io/fjLye
<manveru> just pulling this out of my ass, i don't actually have used displaylink
dhkl has quit [Ping timeout: 268 seconds]
iceypoi has quit [Remote host closed the connection]
<kandinski> manveru: manveru same issue after reboot
<manveru> damn
<manveru> well, at least that clarifies the kernel issue
<kandinski> I'm running 1.14.110 so I'll subtitute that in your modprobe example and try that
<manveru> you definitely should have the module somewhere in `find /nix/store/*evdi* -name evdi.ko`
<kandinski> sure, it's there
<manveru> what does `lsmod` say?
<{^_^}> [nixpkgs] @timokau merged pull request #58918 → wesnoth: 1.14.5 -> 1.14.6 → https://git.io/fjIiv
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master « wesnoth: 1.14.5 -> 1.14.6 (#58918) »: https://git.io/fjLyU
<kandinski> I just did modprobe evdi
<kandinski> I think that should do it
<manveru> it didn't error?
<kandinski> but why did I have to do it by hand?
<kandinski> nope
<manveru> wtf
<kandinski> and lsmod | grep evdi shows six lines
<manveru> so... `systemctl status dlm` also shows the service running?
iceypoi has joined #nixos
<kandinski> manveru: it does now
<kandinski> still not listed in arandr outputs
<kandinski> nor gnome displays
<manveru> arandr or xrandr?
<manveru> oh, TIL about arandr :)
<kandinski> arandr is what I use, it's an x application
<kandinski> xrandr output doesn't find it either
<kandinski> (not surprised, I understand arandr is an interface to xrandr)
<manveru> yeah
<manveru> anw, nice tool, thanks :)
<manveru> so... what does dmesg say now when you plug it in?
<kandinski> dmesg always found, now it does something that "connects" and "disconnects" a Painter
<kandinski> evdi_painter_connect:572 bla bla Connected with xxxxxx
<manveru> and dlm logs?
<kandinski> what does dlm stand for?
<manveru> display link manager
<kandinski> says it's active (running)
<manveru> that's the status
<manveru> the logs are from journalctl or the log dir
<kandinski> I think logs now say all is good
<manveru> then can you try this?
<kandinski> but not sure because I'm only seeing logs from earlier, my terminal won't scroll to the latest events
<manveru> `journalctl -xef` does automatic scrolling to latest lines
<manveru> sorry, not sure i can help you much
<kandinski> I think it's not good, xrandr --listproviders only sees 2 providers, and I already have 2 monitors
<manveru> providers aren't monitors
<manveru> i have 3 monitors and only one provider
<kandinski> ah, one is my card and the other one is deisplaylink...
<manveru> so arandr doesn't support that, i guess
<kandinski> I'm looking at xrandr
<manveru> yeah, just follow the wiki :)
<kandinski> I'm pretty sure arandr does support it, because that's what I used in Ubuntu
<{^_^}> [nixpkgs] @aanderse opened pull request #59056 → nixos/httpd: replace ssmtp with system-sendmail → https://git.io/fjLyO
<kandinski> not 100%, but I can't think how else I would have made it work.
<manveru> i gotta make some food for my son
<kandinski> manveru: thanks a bunch.
<kandinski> manveru++
<{^_^}> manveru's karma got increased to 9
alex``` has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0c0954781e2 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
lielazivee has joined #nixos
gagbo has quit [Ping timeout: 264 seconds]
<lielazivee> Is there a way to get the evaluated content of NixOps deployment? I.e. I know I can nix-instantiate --eval a nix file/expression and I'm guessing NixOps also does some evaluations of machine configurations under the hood - if that's true, can I get/see that evaluation?
grizwako_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aszlig pushed to master « nixos/tests/acme: Use exact match in TOS location »: https://git.io/fjLyC
freeman42x has joined #nixos
mounty has quit [Ping timeout: 246 seconds]
mounty has joined #nixos
dhkl has joined #nixos
jakov has joined #nixos
sam_ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging-next: https://git.io/fjLyw
<jakov> Hi ! I am having a small issue with downgrading. From my nix-channels i removed nixos-unstable, which had the channel name 'nixos'. With the command
<jakov> 'sudo nix-channel --list'
<jakov> "sudo nixos-rebuild --switch"
<jakov> But when i do a
<jakov> warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
<jakov> I get the error:
<jakov> How can i update --whatever point-- i have to update to make nix not search through those paths ?
<jakov> error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
rauno has joined #nixos
lovesegfault has quit [Ping timeout: 268 seconds]
arjen-jonathan has quit [Ping timeout: 246 seconds]
rauno has quit [Remote host closed the connection]
lielazivee has quit [Ping timeout: 268 seconds]
lielazivee has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 76 commits to master: https://git.io/fjLyK
xkapastel has joined #nixos
alex``` has quit [Ping timeout: 258 seconds]
<chaker> Hey, when I try to build a derivation remotely why does Nix check if the paths that are being copied exist in one of the caches or not?
sam_ has quit [Remote host closed the connection]
sam_ has joined #nixos
alex``` has joined #nixos
<chaker> It seems like it doesn't because I get `copying path '/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30' to 'ssh://blaa'` where if I do nix ls-store on cache.nixos.org I find that path.
<{^_^}> [nixpkgs] @vcunat merged pull request #56772 → Staging next → https://git.io/fhAxS
<chaker> Is there a way to force nix in the remote machine to check for binary caches and only fallback to copy from my local machine if it doesn't exist in there.
<chaker> jakov: Did you run nix-channel --update?
<{^_^}> [nixpkgs] @vcunat pushed to release-19.03 « Revert "Merge #57010: Luarocks update" »: https://git.io/fjLy1
<srhb> chaker: Sounds like you may want builders-use-substitutes
__monty__ has joined #nixos
niksnut_ is now known as niksnut
<srhb> chaker: It's also dockumented in man nix.conf
<chaker> It seems that's the solution for me. I tried it however I'm getting `waiting for locks or build slots`
<chaker> Will check more the documentation. Probably I'm doing something wrong
<{^_^}> [nixpkgs] @markuskowa merged pull request #58896 → sysbench: 1.0.16 -> 1.0.17 → https://git.io/fjIwU
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjLy7
Makaveli7 has joined #nixos
sam_ has quit [Ping timeout: 258 seconds]
<mikeplus64> how can i get the stdout of test suites ran w/ callcabal2nix?
lielazivee has quit [Ping timeout: 246 seconds]
<chaker> Do remote builds use the nix-daemon of the remote machines?
<gchristensen> yea
<gchristensen> I take that back. I'm not sure.
<MichaelRaskin> Well, one is supposed to set up ssh to the remote host
<MichaelRaskin> If it goes to a non-root user (and it should), then daemon has to be used
afics has quit [Quit: afics]
leat has quit [Ping timeout: 240 seconds]
<chaker> Okay, this is weird then. Becuase I supllied some AWS credentials to the nix daemon of the remote machine to be able to download some store paths from a private s3 binary cache. However it fails to do so 'Access denied' and it fallback to copy those store paths from my local machine. BTW If I'm sure the credentials are valid and that the nix-daemon itself can download paths from that binary cache. I validated
<chaker> that using `NIX_REMOTE=daemon nix-store -r foooo`
<chaker> MichaelRaskin: Both the normal user and the root user in my local machine can ssh to the builder.
<MichaelRaskin> Never did anything with restricted binary caches
Erasmus has joined #nixos
mabel has quit [Ping timeout: 250 seconds]
<andi-> chaker: I am not sure but e.g. hydra requires the `.aws/credentials` file in the home of the user running the queue. Not exactly sure how that transforms into remote builders being able to pull.. I'd imagine the daemon on the host woudl check the remote (se) store? Mostly guessing.. let me know if you figure it out
dsiypl4__ has joined #nixos
mabel has joined #nixos
iceypoi has quit [Quit: Lost terminal]
dhkl has quit [Ping timeout: 245 seconds]
<chaker> andi-: That actually make sense if the build aren't done by the nix-daemon. Requiring .aws/credentials to be present means that the Nix check directly the credentials using CPP AWS sdk.
<chaker> Let me add that and try again.
npmccallum has joined #nixos
vsss has quit []
<{^_^}> [nixpkgs] @pSub pushed to update-zim « zim: 0.69.1 -> 0.70 »: https://git.io/fjLSB
<chaker> And yep it worked by adding the creds to .aws/credentials. Thanks gchristensen MichaelRaskin andi-.
silver has joined #nixos
<{^_^}> [nixpkgs] @pSub opened pull request #59058 → zim: 0.69.1 -> 0.70 → https://git.io/fjLSE
<jakov> @chaker, yes, both "sudo nix-channel --update" and "nix-channel --update"
<jakov> chaker, yes, both "sudo nix-channel --update" and "nix-channel --update"
<{^_^}> [nixpkgs] @pSub merged pull request #58931 → migrate: init at 3.7.2 → https://git.io/fjI16
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fjLSg
<{^_^}> [nixpkgs] @aanderse opened pull request #59059 → redmine: 3.4.9 -> 3.4.10, redmine_4: 4.0.2 -> 4.0.3 → https://git.io/fjLS2
<chaker> jakov: Not sure if it can help but can you try to run nix-channel --update in root session `sudo su -` then run the update?
iceypoi has joined #nixos
sam_ has joined #nixos
sam_ has quit [Remote host closed the connection]
eyJhb has quit [Quit: Bye]
eyJhb has joined #nixos
sam_ has joined #nixos
<chaker> The reason I suggested it is that the env variables used during the update if you run `sudo nix-channl --update` are of your non-root user. You can verify that by running sudo echo $NIX_PROFILES
<iceypoi> manveru: I've managed to get numlock to work in console mode: https://pastebin.com/g2UMn5Mf
<chaker> In my case it returns `/etc/profiles/per-user/chaker /run/current-system/sw /nix/var/nix/profiles/default /home/chaker/.nix-profile ` Which isn't the path nixos-rebuild search for.
<iceypoi> manveru: as for X11, it's probably easiest to use xsession from home-manager: xsession.profileExtra = "${pkgs.numlockx}/bin/numlockx"
<{^_^}> [nixpkgs] @timokau merged pull request #59048 → xkeyboard-config: intltool should be a nativeBuildInput → https://git.io/fjLXH
<{^_^}> [nixpkgs] @timokau pushed commit from @delroth to staging « xkeyboard-config: intltool should be a nativeBuildInput (#59048) »: https://git.io/fjLSo
<therealwaphire[m> does anyone use `unstable` as their main channel on their primary laptop / desktop?
<therealwaphire[m> while keeping the kernel LTS
carlosdagos has quit [Ping timeout: 250 seconds]
<iceypoi> can't you just use stable channel and have your own user account set to unstable for all your software?
acarrico has quit [Ping timeout: 264 seconds]
<MichaelRaskin> I just build my laptop system from master (which has LTS kernel, which I just don't use)
carlosdagos has joined #nixos
<__monty__> MichaelRaskin: I think they mean LTS as in nixpkgs-17.xx, rather than linux-LTS on nixpkgs-unstable.
<{^_^}> [nixpkgs] @offlinehacker merged pull request #58360 → dockerTools: add nix-prefetch-docker script → https://git.io/fjU8n
Notkea has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/fjLSX
Notkea has joined #nixos
dhkl has joined #nixos
<jakov> chaker, sorry for the late response: Output "sudo echo $NIX_PROFILES":
<jakov> But nixos rebuild switch doesn't work from either shell. It seems to me, that, because i removed the unstable channel from my channel list, it's necessary to delete some entry somewhere.
<jakov> and from within root shell it's
civodul has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #57344 → ocamlPackages.uutf: 1.0.1 -> 1.0.2 → https://git.io/fhjkQ
<{^_^}> [nixpkgs] @vbgl pushed 2 commits to master: https://git.io/fjLS9
<srhb> therealwaphire[m: I do, mostly..
sam_ has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
sam_ has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fjLSH
mabel has quit [Ping timeout: 258 seconds]
mabel has joined #nixos
<{^_^}> [nixpkgs] @delroth opened pull request #59060 → libsecret: pass libgcrypt prefix to ./configure (cross compilation fix) → https://git.io/fjLSd
iyzsong has joined #nixos
thc202 has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #59061 → Redmine 19.03 backport → https://git.io/fjLSF
<Myrl-saki> Uhh, what's the current standard for Bash scripts? PATH wrapper or ${foo}/bin/foo?
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to release-19.03: https://git.io/fjLSb
<{^_^}> [nixpkgs] @aanderse opened pull request #59062 → redmine: 3.4.9 -> 3.4.10 (18.09 backport) → https://git.io/fjLSN
o1lo01ol1o has joined #nixos
mconstant has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #59063 → hunspellDicts.uk-ua: init at 4.2.5 → https://git.io/fjLSA
jakov has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @teto opened pull request #59064 → ppp: add eap-tls patch → https://git.io/fjLSj
iceypoi has quit [Quit: leaving]
iceypoi has joined #nixos
iceypoi_ has joined #nixos
iceypoi_ has quit [Client Quit]
mconstant has quit [Ping timeout: 268 seconds]
mconstant has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #59065 → ocamlPackages.base64: 2.0.0 -> 3.2.0 → https://git.io/fjL9f
<apeyroux> nh2: Following our discussions, here are my notes https://alexandre.peyroux.io/posts/2019-04-06-nix-and-haskell.html , Again, thank you.
sam_ has quit [Remote host closed the connection]
sam_ has joined #nixos
boogiewoogie has joined #nixos
gagbo has joined #nixos
stepcut has joined #nixos
boogiewoogie has quit [Client Quit]
stepcut has quit [Remote host closed the connection]
wfranzini has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
domogled has quit [Quit: domogled]
gentauro has quit [Ping timeout: 244 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
boogiewoogie has joined #nixos
<emily> hi there, can I get some help using an exfat SD card with NixOS?
<emily> I'm not sure how I have to adjust my NixOS configuration to get this to work. https://www.irccloud.com/pastebin/Drdndhrl/
<andi-> emily: boot.extraModulePackages = [ config.boot.kernelPackages.exfat-nofuse ];
<andi-> I have that snippet (commented out) in my configuration repo.. used to work
<andi-> I think you also need the `exfat` user space utilities in your shell / environment
iceypoi has quit [Quit: leaving]
tboston_ has joined #nixos
<emily> andi-: thank you ^^
gentauro has joined #nixos
juhe has quit [Quit: Leaving.]
stepcut has joined #nixos
<apeyroux> nh2: I am always obliged to prefix by NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/88ae8f7d.tar.gz if not, it doesn't compile
<{^_^}> [nixpkgs] @marius851000 opened pull request #59066 → azimuth: init at 1.0.2 → https://git.io/fjL93
mconstant has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @239 opened pull request #59067 → vivaldi: 2.3.1440.60-1 -> 2.4.1488.36-1 → https://git.io/fjL9Z
<{^_^}> [nixpkgs] @delroth opened pull request #59068 → pinentry: fix libassuan and libgpg-error detection in cross builds → https://git.io/fjL9n
sam_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @delroth opened pull request #59069 → nilfs-utils: fix cross-compilation issue caused by AC_FUNC_MALLOC → https://git.io/fjL9c
<DigitalKiwi> apeyroux: 'Exemple'
random_yanek has quit [Ping timeout: 245 seconds]
boogiewoogie has quit [Remote host closed the connection]
sam_ has joined #nixos
gagbo has quit [Read error: Connection reset by peer]
<DigitalKiwi> looks useful *bookmarks*
linarcx has quit [Quit: WeeChat 2.4]
rauno has joined #nixos
Erasmus has quit [Read error: Connection reset by peer]
<emily> andi-: well that's exciting... "inconsistent kernel versions: 4.19.33 \n 5.0.6"
sam_ has quit [Ping timeout: 252 seconds]
<emily> maybe the fuse filesystem is the best approach
<{^_^}> [nixpkgs] @marius851000 closed pull request #59066 → azimuth: init at 1.0.2 → https://git.io/fjL93
Makaveli7 has quit [Quit: Makaveli7]
<apeyroux> DigitalKiwi: thank you
<apeyroux> DigitalKiwi: I'm not a great writer, but examples can be enough.
gagbo has joined #nixos
jakov has joined #nixos
o1lo01ol1o has joined #nixos
<jakov> Hi! After updating the channels on the nixos-unstable channel, i get followinng warnings:
<jakov> BusyBox v1.30.1 () multi-call binary.
<jakov> stat: unrecognized option '--printf'
<jakov> WARNING: the per-user gcroots dir /nix/var/nix/gcroots/per-user/jakov should belong to user id 1000
<jakov> Usage: stat [OPTIONS] FILE...
<jakov> -- usage profile --
<jakov> And the system does not boot
<jakov> how could i fix that ?
<Myrl-saki> jakov: Uh, do you have busybox in your environment.systemPackages?
mconstant has joined #nixos
random_yanek has joined #nixos
boogiewoogie has joined #nixos
lmarks has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
nschoe has joined #nixos
<jakov> yes, i do.
<jakov> i'll try removing it.
logzet has joined #nixos
<jakov> i'm wondering how i could have pasted it there ..?..?!..? weird
jakov has quit [Quit: rcirc on GNU Emacs 26.1]
jakov has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #59070 → python3Packages.papis: provides as a library too → https://git.io/fjL9M
<jakov> Thanks a lot for the busybox suggestion !
mconstant has quit [Ping timeout: 268 seconds]
acarrico has joined #nixos
gagbo has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @marius851000 opened pull request #59071 → azimuth: init at 1.0.2 → https://git.io/fjL99
<{^_^}> [nixpkgs] @Infinisil merged pull request #58556 → steamcmd: Add needed binaries to PATH → https://git.io/fjTNH
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjL9H
<{^_^}> [nixpkgs] @dhl opened pull request #59072 → pythonPackages.serverlessrepo: init at 0.1.8 → https://git.io/fjL9Q
boogiewoogie has quit [Remote host closed the connection]
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Myrl-saki> Lmao. I just realized something dirty you can do with Nix.
fendor has joined #nixos
fendor has quit [Remote host closed the connection]
<Myrl-saki> $(nix-instantiate --eval 'true') && foo, where true can be any expression which returns a boolean.
tdbgamer has joined #nixos
<samueldr> --expr missing or I'm using it wrong?
<{^_^}> [nixpkgs] @vbgl opened pull request #59073 → ocamlPackages.faraday: 0.5.0 -> 0.7.0 → https://git.io/fjL9d
<infinisil> Hehe neat
<Myrl-saki> samueldr: Yep. --expr missing.
<Myrl-saki> I'm using it this way, for anyone curious.
<Myrl-saki> $(nix eval '(with builtins; any ({ prefix, ... }: prefix == "restore") nixPath)') ||
<Myrl-saki> export NIX_PATH=restore=./.${NIX_PATH:+:$NIX_PATH}
<infinisil> Myrl-saki: Do you know about nix-instantiate --find-file?
<infinisil> nix-instantiate --find-file restore
<Myrl-saki> Oh...
<Myrl-saki> Eep
<Myrl-saki> Let me check.
acarrico has quit [Ping timeout: 252 seconds]
<Myrl-saki> infinisil: Damn, thanks. I should have asked instead of making my own solution.
justanotheruser has quit [Read error: Connection reset by peer]
<infinisil> :P
<Myrl-saki> samueldr: I actually do that. ; ;
dhkl has quit [Ping timeout: 250 seconds]
<Myrl-saki> Hence why I'm kind of opposed to having the module system as part of the Nix language itself.
<infinisil> I've been considering adding an RTS to nixlisp, that would be neat
endformationage has joined #nixos
<Myrl-saki> What happens to nixos-rebuild build-vm's nix-store?
logzet has joined #nixos
<samueldr> by default they're mounted using p9 IIRC? though don't know at runtime when manipulating them what happens for sure, but I would hazard a guess that it gets overlaid with an overlayfs
<{^_^}> [nixpkgs] @vbgl pushed commit from @r-ryantm to master « ocamlPackages.reactivedata: 0.2.1 -> 0.2.2 »: https://git.io/fjL9p
sam_ has joined #nixos
<Myrl-saki> Yeah, I checked the qemu-vm.nix comments, and it's written to either /tmp or something.
<{^_^}> [nixpkgs] @vbgl closed pull request #58405 → ocamlPackages.reactivedata: 0.2.1 -> 0.2.2 → https://git.io/fjUof
<Myrl-saki> Though, it should technically be possibly to add a post* that will nix copy from /tmp.
iyzsong has quit [Ping timeout: 264 seconds]
<Myrl-saki> samueldr: mount -t overlay overlay $targetRoot/nix/store
sam_ has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #59074 → libnotify: 0.7.7 -> 0.7.8 → https://git.io/fjLHm
<manveru> so, you're saying i should build a web framework in nix?
mconstant has joined #nixos
<manveru> i'll call it nails
<samueldr> nix on nails
<Myrl-saki> Lmao
<Myrl-saki> manveru: It should be possible TBH.
<manveru> sure is :)
<samueldr> there might be some issues with (among others) french-speaking people: "NoN" means "No" :)
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cd39bc9d125 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<Myrl-saki> manveru: Nix itself itself does not have I/O though.
<infinisil> Oh actually, Nix would be pretty well fit as a static site generator
<manveru> you can just make each request twice to get the correct hash
<Myrl-saki> There's someone who uses Nix as a caching system.
<samueldr> infinisil: there already is at least one
* samueldr digs
Neo--- has joined #nixos
jakov has quit [Quit: ERC (IRC client for Emacs 26.1)]
<manveru> yeah, styx
<samueldr> yes, I didn't remember the name
<infinisil> Ahh right I've seen it before too
jakov has joined #nixos
<Myrl-saki> mpickering.github.io/posts/2018-09-12-funflow-nix.html
<manveru> i actually meant more CGI style, like `nix-instantiate --arg method GET --arg headers "foo: bar" --arg path /index ./nails.nix` :)
<manveru> still glorified caching i guess
xkapastel has joined #nixos
<Myrl-saki> How do I nix copy a whole store?
<manveru> rsync?
boogiewoogie has joined #nixos
<samueldr> I think "nix copy" is an important part in the question
<samueldr> I had something, don't know where I stashed that script
<Myrl-saki> manveru: Doesn't populate Nix's database.
ee1943 has quit [Ping timeout: 245 seconds]
<Myrl-saki> I mean, I could make a Bash script, but I'd rather use something that's actually tested.
<stammon> Hi I'm trying to connect with x2go client to a server. It works with x2go-client on ubuntu, but on nixos it tells me "The server is unknown. Do you trust the host key?" and when saying yes, it asks again. If someone uses x2goclient on nixos, some help would be appreciated
<samueldr> though yeah, I don't remember for sure if it was simply looping through /nix/store and trying to copy or if it was more intelligent... if only I knew where the script was
boogiewoogie has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @pSub pushed to update-zim « zim: 0.69.1 -> 0.70 »: https://git.io/fjLHa
mconstant has quit [Ping timeout: 268 seconds]
pie__ has joined #nixos
pie_ has quit [Remote host closed the connection]
justanotheruser has joined #nixos
softinio has joined #nixos
acarrico has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #59075 → phpPackages.apcu{,_bc}: minor updates → https://git.io/fjLHV
<Myrl-saki> samueldr: Thanks. I can just build an argument list and/or use xargs.
<Myrl-saki> It should be considerably simple, since Bash's parameter expansion is something.
softinio_ has joined #nixos
sam_ has joined #nixos
softinio_ has quit [Client Quit]
<{^_^}> [nixpkgs] @Yarny0 opened pull request #59076 → nixos/printing: fix CUPS `SetEnv` directive placement → https://git.io/fjLHX
softinio_ has joined #nixos
<{^_^}> [nixpkgs] @divi255 opened pull request #59077 → libow package (1-wire file system library) → https://git.io/fjLHM
acarrico has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #59078 → nextcloud: fix use of mismatched php versions, updates → https://git.io/fjLHD
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
tboston_ has quit [Ping timeout: 252 seconds]
stepcut has quit [Read error: Connection reset by peer]
<softinio_> Hi I am new to Nix and working on a PR .... how do I run the sandbox locally? I am using a macbook
stepcut has joined #nixos
<Myrl-saki> samueldr: for i in /nix/.rw-store/store/*; do echo /nix${i#/nix/.rw-store}; done | xargs nix copy --store /nix/.rw-store/store --to ssh://__
<Myrl-saki> Or something similar.
<Myrl-saki> Hm, might not work though, since --store should take the root path.
stepcut has quit [Ping timeout: 268 seconds]
<samueldr> :/ I couldn't find the script, but I'm sure there was some cleverness to it, but don't remember the cleverness
<samueldr> something about minimizing the "already copied" hits
mconstant has joined #nixos
stepcut has joined #nixos
jakov has left #nixos ["ERC (IRC client for Emacs 26.1)"]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
linarcx has joined #nixos
<Myrl-saki> Eep. My nix-instantiate runs so slow under run-*-vm.
boogiewoogie has joined #nixos
stepcut has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #59079 → php7{1,2,3}: bump for "security release" → https://git.io/fjLQe
<Myrl-saki> Okay, wtf.
<Myrl-saki> I have the packages in /nix/store, in both the host and the VM, but the host VM still builds it.
<Myrl-saki> s/host VM/VM/
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<Myrl-saki> Think it has something to do with my /nix/store having too much files?
sam_ has quit [Remote host closed the connection]
sam_ has joined #nixos
<Myrl-saki> Ah. "Unknown hash type"
drakonis has joined #nixos
<linarcx> Gyus. How can i find all types in nix?
<Myrl-saki> What makes other.pam?
mconstant has quit [Ping timeout: 246 seconds]
drakonis_ has quit [Ping timeout: 250 seconds]
tboston_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4a985a67c51 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jakov has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to update-zim « zim: 0.69.1 -> 0.70 »: https://git.io/fjLQt
<{^_^}> [nixpkgs] @dtzWill opened pull request #59080 → openjpeg: 2.3.0 -> 2.3.1 → https://git.io/fjLQ3
<jakov> Hi! does anyone know how to set the access rights on wireshark using nixos ?
<jakov> I have already created a group in my /etc/nixos/configuration.nix and added myself to the group.
<jakov> users.users.jakov = {
<jakov> users.groups.wireshark = {};
<jakov> ... extraGroups = [ wireshark];
<jakov> };
leat has joined #nixos
<jakov> But it's not enough to give me the priviliges to capture network packages.
<jakov>
tboston_ has quit [Ping timeout: 250 seconds]
<Myrl-saki> Hard yeesh. I get error: hash '' has wrong length for hash type 'sha256'
<Myrl-saki> Even after nix-store --repair-path
<Myrl-saki> How do I recalculate hash or whatever?
<Myrl-saki> I'm so close to ignore-liveliness rn
<manveru> jakov: i have a few settings for it...
<MichaelRaskin> jakov: isn't it better to capture with tcpdump (maybe even as root) and only analyse with Wireshark (and maybe under less-privileged user)?
i1nfusion1 has joined #nixos
leat has quit [Remote host closed the connection]
rauno has quit [Remote host closed the connection]
<Myrl-saki> Welps, I guess I'll do this first.
josiah_sama has joined #nixos
leat has joined #nixos
<Myrl-saki> nix-store --verify --check-contents --repair
<jakov> manveru, thank you very much, it works like a charm :D
<softinio_> so I have added a new vim plugin how do I build it locally in sandbox to test it?
<boogiewoogie> hey, it seems there's no native nixos option to run awesomeWM as the default window manager, is this correct? trying to get this https://github.com/PapyElGringo/material-awesome to work
<Myrl-saki> Okay, maybe I was misundertsanding how this works.
mabel has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 268 seconds]
<infinisil> softinio_: If you don't have the sandbox enabled through /etc/nix/nix.conf, you can pass `--option build-use-sandbox true` to a nix-build to enable it just for that command
leat has quit [Remote host closed the connection]
ddellacosta has joined #nixos
leat has joined #nixos
<Myrl-saki> Oh.
<Myrl-saki> I need to use virtualisation.pathsInNixDB
<Myrl-saki> Uh, does it suffice to just readDir /nix/store?
sam_ has quit [Remote host closed the connection]
sam_ has joined #nixos
<Myrl-saki> Aside from /nix/store.links, I guess.
<kalbasit> I'm trying to make a meta derivation, meaning that when I install it, I get all the packages of it's buildInputs installed and exposed. Is that possible?
<softinio_> infinisil: ty for that tip thats great .... what would my nix-build command look like? my changes are in pkgs/misc/vim-plugins/generated.nix . sorry if silly question new to doing this
afics has joined #nixos
<clever> Myrl-saki: when qemu vm's have a writable store, they automatically import a fake backup of db.sqlite
<clever> Myrl-saki: that fake backup includes the full closure of a given path, but lacks the hashes
<infinisil> softinio_: Well first you should put it in overrides.nix instead, the file generated.nix is autogenerated, and your changes would be overridden on the next regenerate
<infinisil> softinio_: The command should be `nix-build -A vimPlugins.<the-plugin-attribute-name>`
<Myrl-saki> clever: Are you talking about the hash error a while ago?
<Myrl-saki> Because that was a huge PEBCAK that made me wste 30 minutes lmao
orivej has joined #nixos
leat has quit [Remote host closed the connection]
<kalbasit> I managed to get it to work with buildEnv
leat has joined #nixos
<clever> Myrl-saki: yeah
<softinio_> infinisil: got it thanks for that
<clever> jakov: one min
mabel has joined #nixos
<clever> jakov, MichaelRaskin: this allows dumpcap to run as root, but not wireshark itself, and thats enough to run wireshark as non-root and still capture packets
<Myrl-saki> clever: I load-db'd store-paths instead of registration, because I didn't understand the Bash variable.
Neo--- has quit [Ping timeout: 250 seconds]
<clever> Myrl-saki: ah
boogiewoogie has quit [Remote host closed the connection]
boogiewoogie has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
W1lkins has quit [Read error: Connection reset by peer]
W1lkins has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/fjLQ5
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-19.03: https://git.io/fjLQN
sam_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.09: https://git.io/fjLQp
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #59067 → vivaldi: 2.3.1440.60-1 -> 2.4.1488.36-1 → https://git.io/fjL9Z
<{^_^}> [nixpkgs] @NeQuissimus pushed commit from @239 to master « vivaldi: 2.3.1440.60-1 -> 2.4.1488.36-1 »: https://git.io/fjLQj
sam_ has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #58350 → dockerTools: storePathToLayer use runtimeShell in script → https://git.io/fjUWZ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjL7v
jakov has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @nlewo pushed commit from @offlinehacker to release-19.03 « dockerTools: storePathToLayer use runtimeShell in script »: https://git.io/fjL7T
leat has quit [Remote host closed the connection]
leat has joined #nixos
drakonis_ has joined #nixos
mabel has quit [Ping timeout: 268 seconds]
fendor has joined #nixos
mabel has joined #nixos
<fendor> how can i tell the nix daemon to stop building something that takes too much time?
<{^_^}> [nixpkgs] @pSub merged pull request #59058 → zim: 0.69.1 -> 0.70 → https://git.io/fjLSE
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fjL7s
<{^_^}> [nixpkgs] @pSub pushed 0 commits to update-zim: https://git.io/fjL7G
<softinio_> infinisil: I am trying to fix the comment you made in this PR https://github.com/NixOS/nixpkgs/pull/56250 I can't reproduce the error you got. When I build using the command u gave with sandbox enabled it builds with no could not resolve host error
<{^_^}> #56250 (by softinio, 6 weeks ago, open): vim-plugins: Added more vim plugins
Glider_IRC__ has joined #nixos
drakonis has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/fjL7l
Glider_IRC_ has quit [Ping timeout: 246 seconds]
drakonis has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #58760 → pure-ftpd: 1.0.47 -> 1.0.48 → https://git.io/fjIOn
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjL7V
<{^_^}> [nixpkgs] @nlewo merged pull request #58759 → pspg: 1.6.3 -> 1.6.4 → https://git.io/fjIY7
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjL7K
<infinisil> softinio_: What's the output of `nix-shell -p nix-info --run nix-info`?
leat has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @nlewo merged pull request #58722 → meld: 3.20.0 -> 3.20.1 → https://git.io/fjITE
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjL71
leat has joined #nixos
<infinisil> softinio_: Or just `nix-build --version`
<softinio_> infinisil: nix-build (Nix) 2.2
<{^_^}> [nixpkgs] @nlewo merged pull request #58732 → open-vm-tools: 10.3.5 -> 10.3.10 → https://git.io/fjILR
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fjL7y
<infinisil> Hmm that's the latest version,
sam_ has quit [Read error: Connection reset by peer]
sam_ has joined #nixos
fendor has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Yarny0 opened pull request #59081 → HylaFAX: fix ModemGroup, also minor metadata updates → https://git.io/fjL7H
knupfer has joined #nixos
<infinisil> softinio_: This succeeds for you? `nix-build -A vimPlugins.deoplete-tabnine --option build-use-sandbox true`
stepcut has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « zoom-us: Update script to commit »: https://git.io/fjL77
boogiewoogie has quit [Remote host closed the connection]
sam_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @thefloweringash opened pull request #59082 → firefox: aarch64 fixes → https://git.io/fjL75
<softinio_> infinisil: this is what I am doing and what I get so it looks like success to me unless you spot anything: https://gist.github.com/softinio/3f9a5309bbd37c5ae15df00780ebc61d
sam_ has joined #nixos
<infinisil> That sure looks like success to me too
leat has quit [Remote host closed the connection]
<infinisil> Odd, I'm not sure why that is, the sandbox should prevent it from downloading stuff at build time
leat has joined #nixos
softinio has quit [Quit: Connection closed for inactivity]
<softinio_> agreed I do think the change you suggested makes sense so do want to make that change but would have been good to have sandbox do what it did for you so I can see it fixed
<softinio_> going to rebase with latest with master and try again
<infinisil> softinio_: Oh, try `--option sandbox true`
earldouglas is now known as earldouglas[m]
earldouglas[m] is now known as earldouglas
<infinisil> Although build-use-sandbox should be an alias to sandbox
<softinio_> yeah and I even tried setting it globally in my configuration.nix and got same result
<softinio_> will try that and let you know give me 5 min
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
slack1256 has joined #nixos
<linarcx> Guys, i get an error in line 64 of this file: https://gist.github.com/LinArcX/772a54ecf45e4a072c152d958f5ec6c9. why?
<infinisil> linarcx: Hard to say without the error..
<linarcx> infinisil: error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE
leat has quit [Remote host closed the connection]
leat has joined #nixos
<simpson> linarcx: Un-nest your antiquotes by one level, assigning them using a let-expr. Perhaps write a function, even. That nesting is hard to read and asking for trouble.
mabel has quit [Ping timeout: 250 seconds]
<infinisil> And line 39 is wrong: `cfg.defaultSession != ""''`, maybe you meant `if cfg.defaultSession != "" then ''`
<linarcx> infinisil: I should write `then` keyword?
<infinisil> linarcx: I suggest you to experiment with the language in `nix repl`
<linarcx> infinisil: Good idea. let me try it.
shibboleth has joined #nixos
leat has quit [Remote host closed the connection]
zupo has joined #nixos
leat has joined #nixos
sam_ has quit [Remote host closed the connection]
rauno has joined #nixos
sam_ has joined #nixos
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion1 has joined #nixos
i1nfusion1 has quit [Remote host closed the connection]
<kalbasit> how to get the tag of a `dockerTools.buildLayeredImage` without building it?
grizwako has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
<alienpirate5> How do I use bundix with buildFhsUserEnv
<nh2[m]> apeyroux: that's correct, that pins the version of nixpkgs. Newer versions might also work, but I haven't tested them, and they may need slightly different/more overrides. Porting it to newer nixpkgs versions is something I'd appreciate help with. Also, that will naturally go away once it gets absorbed into nixpkgs.
<nh2[m]> Btw, one doesn't necessarily have to put the version into an environment variable, it can also be set in code: https://github.com/nh2/static-haskell-nix/commit/b4bc76f875fca1250217afa51175899b5b48ac23
InFlames has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i1nfusion1 has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
raduom has joined #nixos
<softinio_> infinisil: so rebased with latest master and used `--option sandbox true` and got same success
<manveru> alienpirate5: what's the problem?
<infinisil> (that is expected, rebasing won't change the result)
<alienpirate5> I'm trying to run a ruby script that needs the opus library
<alienpirate5> and some ruby gems like discordrb, opus-ruby
<manveru> Hmm
<alienpirate5> when I require opus-ruby it returns errors because the ruby FFI library can't find the libopus.so
<manveru> I've fixed lots of such gems before
<manveru> Did you check the default Gem configs?
<manveru> On mobile right now, can help in a bit tough
<softinio_> infinisil: yeah but I tried your option and same weird ha. If u have time wanna see if u can reproduce it / re-review my PR?
<infinisil> softinio_: Just rebasing won't solve the problem
<softinio_> I know
<infinisil> It will still fail for me (and everybody else that has a working sandbox)
<softinio_> my main point was running it with `--option sandbox true` still didn't make a difference
amfabasti has joined #nixos
<hyper_ch> hmmm, nginx is acting up. I set two seperate locations but on both I just get 404
softinio_ has quit [Remote host closed the connection]
tboston_ has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
sam_ has quit [Remote host closed the connection]
<apeyroux> nh2[m]: Yes, I had done that : https://gist.github.com/apeyroux/a6d66f5a7fe5f59d855bfbdd44739fde (line 6 and 22) but I have a compilation error. I am obliged to use NIX_PATH
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
sam_ has joined #nixos
zupo has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/680b155975c (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<hyper_ch> where did my nginx config go wrong? https://paste.simplylinux.ch/view/raw/68baa345
softinio has joined #nixos
<softinio> infinisil: got disconnected did I miss any message from you?
<infinisil> nope
tboston_ has quit [Ping timeout: 258 seconds]
mabel has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
<softinio> infinisil: got the sandbox to work
<softinio> reproduced your error
<infinisil> Oh how?
leat has quit [Remote host closed the connection]
leat has joined #nixos
<softinio> I am using nix on a macbook using nix-darwin .... what I tried that made a difference was run: `nix-channel --update darwin` then rebuild then tried again and it worked
boomshroom has joined #nixos
<softinio> i can't explain why that made a difference but it did
<boomshroom> Hello! (Good morning!)
<infinisil> softinio: Huh alright, I don't see it either, but glad you got it working :)
<softinio> yeah lol gremlins :-) thanks for your time can now make the PR changes u suggested :-)
<boomshroom> I'm considerring installing home-manager, but I don't want to break anything.
raduom has quit [Read error: Connection reset by peer]
acarrico has joined #nixos
sam_ has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
slack1256 has quit [Remote host closed the connection]
<Myrl-saki> We should try to add Nix to GCJ.
<MichaelRaskin> GCE you mean?
<MichaelRaskin> Although resurrecting GCJ would mean irreplaceable pdftk can be built in the future.
<Myrl-saki> Google Code Jam, I mean.
<drakonis> summer of code?
tboston_ has joined #nixos
<{^_^}> [nixpkgs] @Ekleog merged pull request #59056 → nixos/httpd: replace ssmtp with system-sendmail → https://git.io/fjLyO
<{^_^}> [nixpkgs] @Ekleog pushed 2 commits to master: https://git.io/fjLd3
rembo10 has quit [Quit: ZNC 1.7.2 - https://znc.in]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<boomshroom> Anyone who has experience, how does using Home Manager compare to normal configuration, especially if you already have a lot in place?
arjen-jonathan has quit [Ping timeout: 246 seconds]
sam_ has joined #nixos
nschoe has quit [Ping timeout: 240 seconds]
<betawaffle> does anyone here run nixos on GCE?
<betawaffle> oh wow, someone asked the same question already?
leat has quit [Remote host closed the connection]
leat has joined #nixos
<boomshroom> betawaffle: Technically no. Someone thought that was the question being asked, but it wasn'
rembo10 has joined #nixos
<boomshroom> wasn't. :P
<betawaffle> ohhh
<betawaffle> ok, so question still stands.
* betawaffle awaits answer
domogled has joined #nixos
domogled has quit [Client Quit]
leat has quit [Remote host closed the connection]
leat has joined #nixos
clasick has joined #nixos
<linarcx> Gyus, what's the difference between system profile and default profile?
Notkea has quit [Ping timeout: 245 seconds]
<clasick> uh. can someone help me with installation? i've followed all the steps but when i reboot, x11 starts but it goes directly to cli login and sddm doesn't appear
<clasick> x11, sddm, plasma are all enabled
<clasick> do i need some intel or nvidia drivers also, cause the manual doesn't mention as such
<boomshroom> Sounds like something may have crashed. Do you have a log?
<clasick> i checked journalctl using journalctl -b -p err
<clasick> doesnt show any errors
<boomshroom> Try launching sddm manually from the terminal
stepcut has quit [Remote host closed the connection]
<linarcx> clasick: Upload your `configuration.nix` somewhere.
stepcut has joined #nixos
<ninjin> Finally returning to my slow project to obtain NixOS Nirvana, but I am stuck with a software raid issue when installing on a server. I have sda and sdb as md0 with RAID1, but when I run `nixos-install` Grub barfs with “error: unable to identify a filesystem in hostdisk//dev/sda”. Has anyone experienced anything akin to this? `/` (md0p1) is encrypted, but `/boot` (md0p3) is not, and `lsblk` looks the way I
<ninjin> would expect so I really do not understand what Grub is upset about.
<infinisil> clasick: journalctl -u display-manager -e
<clasick> boomshroom: trying to start sddm manually, says "sddm.service" does not exist
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/fjLd5
<manveru> boomshroom: for me it's mostly just much easier to see what _i_ configured and not some random program i ran some years ago...
<clasick> i dont need to add sddm as a systempackage right?
<boomshroom> Right... because NixOS. It's possible to find the binary being used, but infinisil's instructions would probably be better.
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-19.03 « jenkins: 2.150.1 -> 2.164.1 »: https://git.io/fjLdd
<manveru> boomshroom: plus with home-manager it got a bit easier to separate OS and home nixpkgs versions, so OS is stable and home mostly unstable
<boomshroom> `nix-store -qR /nix/var/nix/profiles/system | grep sddm`
<manveru> alienpirate5: so, how's it going?
sam_ has quit [Remote host closed the connection]
<infinisil> boomshroom: Let's just wait until they can show the logs before suggesting any other things to try
stepcut has quit [Ping timeout: 258 seconds]
sam_ has joined #nixos
leat has quit [Remote host closed the connection]
<boomshroom> manveru: I wanted to do that kind of separation at first, but now I'm just using unstable across the whole system.
leat has joined #nixos
meck has quit [Quit: WeeChat 2.4]
<boomshroom> From my understanding, home-manager can be used as either a standalone package, or as a nixos module. Are there any differences, and is there any reason to fetch the upstream vs using the version inx nixpkgs?
<clasick> linarcx: file.io/N23eEz
<manveru> boomshroom: mostly more frequent updates, new modules, and stuff
stepcut has joined #nixos
<manveru> can't say i tried the nixos module though :)
stepcut has quit [Remote host closed the connection]
<clasick> boomshroom: running "nix-store -qR /nix/var/nix/profiles/system | grep sddm" gives me quite a number of hits including sddm, sddm-greeter,sddm-autologin
<boomshroom> Also there's the fact that I find installing user-specific packages from the command line easier than modifying a file then updating.
stepcut has joined #nixos
<boomshroom> clasick: The one without fancy qualifiers should be the one with /bin/sddm
<boomshroom> Essentially, I like installing packages imperatively, but modifying them declaritively.
<clasick> infinisil: logs look pretty normal. X11 starts, sddm: initialization -> logind interface found -> Starting....
<clasick> no errors
<infinisil> clasick: What's `systemctl status display-manager` say
<boomshroom> The sddm-autologin: what does sddm have set as the default?!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boomshroom> I think it is working, it just doesn't see Plasma and auto-logs into the terminal
<clasick> infinisil: it says. display-manager.service - X11 Server. (active, running)
<infinisil> clasick: Can you switch to it with Ctrl-Alt-F7?
<clasick> and it shows x11 -> sddm sequence as i said
<{^_^}> [nixpkgs] @Ekleog pushed commit from @aanderse to release-19.03 « nixos/httpd: replace ssmtp with system-sendmail »: https://git.io/fjLFv
<alienpirate5> manveru: I am trying to run a Ruby script
<alienpirate5> it's a Discord but
<alienpirate5> it's a Discord bot*
sam_ has quit [Ping timeout: 252 seconds]
<alienpirate5> it relies on opus-ruby gem to connect to voice channels
arjen-jonathan has joined #nixos
stepcut has quit [Ping timeout: 268 seconds]
<alienpirate5> This gem uses the ffi gem
<boomshroom> clasick: `services.xserver.displayManager.sddm.extraConfig` "[Autologin]\nSession=plasma.desktop"
<alienpirate5> to load libopus.so
<alienpirate5> The problem is that the ffi gem does not look at /nix/store/g281gj32gbrchxbw4lrfj1wlfw5l6a8f-libopus-1.3/lib/libopus.so
<alienpirate5> It only looks in /usr/lib
<alienpirate5> so I would like to use buildFhsUserEnv to build a FHS environment that I can enter
<alienpirate5> through nix-shell
leat has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil> boomshroom: I have a feeling clasick did Ctrl-Alt-F7 and doesn't know how to get back to the first tty where their irc client is running xD
devalot has quit [Quit: ZNC - http://znc.in]
<linarcx> clasick: Page not found.
<clasick> infinisil: haha
<clasick> infinisil: nah, actually found that tty7 doesn't exist
<clasick> but 1-6 does
stepcut has joined #nixos
<clasick> linarcx: it was ephermal, looks like someone downloaded it before you
<clasick> one sec
<boomshroom> clasick: ?! That seems suspicious
<infinisil> Weird, if sddm is running it should be in tty7
<infinisil> sddm is running right? There is a process for it?
<boomshroom> home-manager mentions that it has a shell configuration, but it only works for Posix shells, can I still use it with fish?
<clasick> systemctl status sddm -> sddm.service not found
zupo has joined #nixos
<infinisil> clasick: It runs under display-manager
<infinisil> clasick: Check whether sddm is running with htop or so
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/680b155975c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<clasick> linarcx: here you go https://transfer.sh/4UUUc/configuration.txt
<clasick> infinisil: okay, it just got stranger
<clasick> i see /bin/sddm in htop
<clasick> user is root, is that alright?
<infinisil> Huh, no /run/current-system/sw/bin/sddm?
<infinisil> Just /bin/sddm?
<infinisil> Yeah it should be root
<clasick> nono, it is /run/current-system/sw/bin/sddm
<clasick> i just didnt wanna type the whole thing
<boomshroom> Copy-paste is your friend. :P
<clasick> :D
<infinisil> clasick: Restarting with `systemctl restart display-manager` doesn't make it work?
zupo has quit [Client Quit]
<clasick> infinisil: nope
<clasick> infinisil: is my config alright? https://transfer.sh/4UUUc/configuration.txt
leat has quit [Remote host closed the connection]
<infinisil> Nothing suspicious there, looks very normal
leat has joined #nixos
<infinisil> clasick: Oh, although, you seem to have no user configured
<clasick> yeah, i fixed that now
<clasick> doesnt seem to help
<infinisil> What's the output of `nix-shell -p nix-info --run nix-info`?
softinio has quit []
<clasick> system: x86_64-linux, multi-user? yes, version: nix-env 2.1.3
<manveru> alienpirate5: it's easier to fix the gem :)
<infinisil> clasick: The *full* output
<alienpirate5> is it?
<clasick> infinisil: oh
<manveru> alienpirate5: use this in your bundlerEnv https://www.irccloud.com/pastebin/FFBCp4JY/
<alienpirate5> Ok
<clasick> infinisil: can i paste the full output here?
<clasick> or upload it somewhere
<infinisil> It should only be a single line
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<clasick> infinisil: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.1.3, nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
<ninjin> After doing even more digging, I have at least found someone with similar issues on NixOS. Just sad to see it unresolved. https://github.com/NixOS/nixops/issues/946
<{^_^}> nixops#946 (by nh2, 47 weeks ago, open): hetzner: installing grub fails if /dev/sda isn't used
<{^_^}> [nixpkgs] @ck3d opened pull request #59083 → vdr: fix overrideAttrs → https://git.io/fjLFt
<ninjin> Not sure if I should chime in though, I am experiencing issues without Nixops and I *am* using sda.
Nycatelos is now known as Cattus
<infinisil> clasick: And what about nixos-version
<{^_^}> [nixpkgs] @jtojnar pushed to master « Revert "meld: 3.20.0 -> 3.20.1" »: https://git.io/fjLFm
shibboleth has quit [Quit: shibboleth]
<clasick> infinisil: 18.09.2467.1d36ad6d16d (Jellyfish)
<{^_^}> [nixpkgs] @manveru opened pull request #59084 → gem-config: add opus-ruby → https://git.io/fjLFY
<{^_^}> [nixpkgs] @ck3d closed pull request #57811 → Revert "ghidra: use autoPatchelfHook" → https://git.io/fjvBi
<manveru> alienpirate5: lemme know if that works for you, and comment on the PR :)
leat has quit [Remote host closed the connection]
leat has joined #nixos
Cattus is now known as Nycatelos
<ninjin> Okay, today I learned something, you can not boot a partitioned raid device, but you can boot raided partitions. Thank you for putting up with my ramblings, back to getting this to work.
zupo has joined #nixos
Nycatelos is now known as Cattus
cantstanya has quit [Remote host closed the connection]
Cattus has left #nixos ["WeeChat 2.4"]
<infinisil> clasick: What hardware are you using? What GPU?
cantstanya has joined #nixos
<infinisil> I don't have many more ideas
<clasick> infinisil: ah, thats fine
<clasick> thanks for the help
<{^_^}> [nixpkgs] @timokau opened pull request #59085 → python.pkgs.cypari2: 2.0.3 -> 2.1.0 → https://git.io/fjLFG
<infinisil> clasick: I still have *some* ideas though, not out just yet. What's the hardware?
leat has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil> Tried to reproduce it in a VM with your nixos config and the exact same nixpkgs version, but no luck
<infinisil> So unsupported hardware is my last guess
<infinisil> clasick: And you could try upgrading to 19.03, maybe that fixes is for some reason
<infinisil> clasick: Oh and I hope you didn't forget to `nixos-rebuild switch`
<infinisil> Prob not
ddellacosta has quit [Ping timeout: 245 seconds]
Ariakenom_ has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #58751 → playerctl: 2.0.1 -> 2.0.2 → https://git.io/fjImX
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjLF4
Ariakenom has quit [Ping timeout: 250 seconds]
<hyper_ch> how to actually use the portmap option in websockify? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/websockify.nix#L28
justanotheruser has quit [Ping timeout: 258 seconds]
leat has quit [Remote host closed the connection]
jmgai has quit [Ping timeout: 255 seconds]
<hyper_ch> I should need to provide at least src ip and dst ip as well as src port and dst port but I fail how to enter that
leat has joined #nixos
jmgai has joined #nixos
jmgai has quit [Ping timeout: 252 seconds]
jmgai has joined #nixos
clasick has quit [Read error: No route to host]
clasick has joined #nixos
alex``` has quit [Quit: WeeChat 2.4]
lurkless has joined #nixos
<alienpirate5> manveru: it works
<manveru> cool :)
leat has quit [Remote host closed the connection]
Mithror has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
leat has joined #nixos
tboston_ has quit [Ping timeout: 240 seconds]
sam_ has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
alex`` has joined #nixos
<boomshroom> Can I still install packages imperatively after installing home-manager?
<stammon> How can I build a package from nixpackages, if in all-packages, it is not added with callPackage but with libsForQt5.callPackage?
<stammon> I.e. I want to do something like: nix-build -E 'with import <nixpkgs> { }; libsForQt5.callPackage ./default.nix { }'
logzet has joined #nixos
<stammon> boomshroom: You can still use `nix-env -i packageName` after installing home-manager
<pingiun> can I use nixops to place files that should be read by passwordFile options?
leat has quit [Remote host closed the connection]
leat has joined #nixos
<logzet> Hi! What is the preferred way to set environment variables in the X session? I tried .profile and .xinitrc, but they both don't seem to be sourced. I'm using sddm and i3
<boomshroom> stammon: But I guess you can't imperatively add packages to the file. I think that's a reasonable compromise.
clasick has quit [Read error: Connection reset by peer]
goibhniu1 has joined #nixos
<stammon> boomshroom: How would you imperatively add packages to a file? To which file anyways?
<boomshroom> stammon: I'd like to be able to imperatively install packages, but then modify them after the fact declaratively.
tboston_ has joined #nixos
<stammon> boomshroom: Your homemanager can involve several configuration files and they don't necessarily have to be at any specific location. Also not only packages set by home.packages are installed, but setting other options can lead to installed packages as well.
<boomshroom> Is there any way to easily transition packages from nix-env to home-manager?
<stammon> You can still use nix-env
shibboleth has joined #nixos
<stammon> I sometimes install packages with nix-env. Roughly every week, I go through all nix-env packages with nix-env -q and remove those, which I won't need and the other make it into my home-manager configuration
goibhniu1 has quit [Ping timeout: 245 seconds]
leat has quit [Remote host closed the connection]
goibhniu1 has joined #nixos
leat has joined #nixos
<stammon> There is one very small caveat: You can have version conflicts between packages installed with home-manager and nix-env. To apply a conflicting home-configuration, you need to uninstall the nix-env package or remove it from the home-configuration
<boomshroom> The repo mentions having it manage graphical services, but that it needs to control the X session. How does that work with NixOS and a display manager?
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<stammon> If you want to manage your packages imperatively withing home-configuration, I recommend you writing a small utility. It would modify only one specific file of your home-configuration (let's call it imperative.nix). You include it in your home-configuration. And to add a package you'd write something like myutil install package and it would put that package into that file and apply the full new home-configuration (probably
<stammon> requiring a configuration setting to specify the update command)
logzet has joined #nixos
<stammon> > The repo mentions having it manage graphical services, but that it needs to control the X session. How does that work with NixOS and a display manager?
<stammon> It only manages things, that you configure. A empty home configuration changes nothing. If you only add Packages with the home.packages option, you add new packages and no program gets configured. If you do `man home-configuration.nix` you can see however, that there are plenty of other configuration options, some of which change your display / window manager (like the i3 ones). If you use none, you will have no problem
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):243:54
goibhniu1 has quit [Ping timeout: 250 seconds]
<stammon> > The repo mentions having it manage graphical services, but that it needs to control the X session. How does that work with NixOS and a display manager?
<stammon> It only manages things, that you configure. A empty home configuration changes nothing. If you only add Packages with the home.packages option, you add new packages and no program gets configured. If you do `man home-configuration.nix` you can see however, that there are plenty of other configuration options, some of which change your display / window manager (like the i3 ones). If you use none, you will have no problem
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):243:54
leat has quit [Remote host closed the connection]
leat has joined #nixos
arjen-jonathan has quit [Ping timeout: 268 seconds]
<boomshroom> I'm finding tmux options that I'm using that don't seem covered by the module.
<stammon> You mean you want to configure your tmux in a way, that is not supported by the tmux module?
<boomshroom> Looks like that.
iceypoi has joined #nixos
<stammon> You can add new configuration options by modifying this file: https://github.com/rycee/home-manager/blob/master/modules/programs/tmux.nix more reasonable configuration options are always appreciated
sam_ has quit [Ping timeout: 252 seconds]
drakonis_ has quit [Ping timeout: 252 seconds]
justanotheruser has joined #nixos
<stammon> also it has a extraConfig option, which you can use to put the options in, that the module doesn't cover. extraConfig will be put directly into the file by the module
<boomshroom> That's what I'm using.
<stammon> So you are fine?
<boomshroom> Ya, I'm just trying to determine what home-manager does vs what I need to copy into extraConfig.
i1nfusion has quit [Remote host closed the connection]
i1nfusion1 has quit [Remote host closed the connection]
drakonis_ has joined #nixos
i1nfusion1 has joined #nixos
<boomshroom> I notice it's using bind and set where my previous config used set-option and bind-key.
<stammon> You can put everything in extraConfig and most likely it will work the some. Otherwise you have to have a closer look at the tmux.nix module file, to figure out, what it does for you
i1nfusion has joined #nixos
leat has quit [Remote host closed the connection]
<stammon> I don't know the difference between bind/set and set-option and bind-key. But as a general rule for home-manager modules, from my experience, they don't always fit to the way you want to configure a program.
leat has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
__monty__ has quit [Quit: leaving]
<stammon> Sometimes I just use home.file to write my own configuration file without using the module at all. Sometimes I just use the extraconfig most modules have with my own config and use some of the module options. And some modules are so nice, that they fit exactly how I want things to be configured and then I use them.
<boomshroom> Next up neovim! How do specify the plugins? There's a configure option, but it doesn't have much documentation.
goibhniu1 has joined #nixos
<stammon> I never used the home-manager neovim module or neovim under nixos in general (I barely ever used vim/neovim), so I can't help you much. Maybe this can help you though: https://github.com/rycee/home-manager/issues/416
<{^_^}> rycee/home-manager#416 (by turion, 25 weeks ago, open): How to install further vim plugins?
meck has joined #nixos
meck has quit [Client Quit]
meck has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
<stammon> @all Also I'm looking still for help with debugging my x2go issues. For one, if someone ever used it and can tell me whether it still works for them, it would be very helpful, because the current version doesn't work for me. If someone who never used it can help me debugging it by helping me build old versions of it, that might also help a lot.
leat has quit [Remote host closed the connection]
leat has joined #nixos
<boomshroom> How's work on private store files coming along?
<stammon> I'm not working at it and not very up to date or in touch with the responsible persons. But from what I can tell, there have been several proposals and ideas over the past years. So far nothing practical for me has shown up or seems to be coming.
<stammon> But maybe others have a different view on this. Also there is something going on with nixops. I just don't put anything sensitive (like passwords) in my config files. Also I don't publish it and use a private gitlab, which works for me
meck has quit [Quit: WeeChat 2.4]
fendor_ has joined #nixos
leat has quit [Remote host closed the connection]
fendor has quit [Ping timeout: 264 seconds]
leat has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
xkapastel has quit [Quit: Connection closed for inactivity]
fendor_ is now known as fendor
<rycee> logzet: Try ~/.xprofile
<das_j> Is it possible to use variables in <>? Something like <nixos-${release}>?
<stammon> boomshroom: About the nixops secret management approach: Someone does this: https://elvishjerricco.github.io/2018/06/24/secure-declarative-key-management.html and it doesn't seem unreasonable to me, although I never tried it out
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<elvishjerricco> boomshroom: I wouldn't hold my breath on private store files ever coming to Nix proper. Best thing to do is store secrets outside the store (as that link does), or only store encrypted files in the store
logzet has joined #nixos
justanotheruser has quit [Ping timeout: 264 seconds]
<logzet> rycee: Thanks! It works :)
lielazivee has joined #nixos
meck has joined #nixos
meck has quit [Client Quit]
leat has quit [Remote host closed the connection]
ayerhart has joined #nixos
leat has joined #nixos
meck has joined #nixos
<therealwaphire[m> Is there a way I can have `home-manager` directly installed when I'm installing the system?
winem_ has joined #nixos
Erasmus has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #59085 → python.pkgs.cypari2: 2.0.3 -> 2.1.0 → https://git.io/fjLFG
<{^_^}> [nixpkgs] @timokau pushed to master « python.pkgs.cypari2: 2.0.3 -> 2.1.0 (#59085) »: https://git.io/fjLbR
xkapastel has joined #nixos
meck has quit [Client Quit]
meck has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #59087 → gnome3.gitg, vte-ng: fix build → https://git.io/fjLbz
<infinisil> ,home-manager therealwaphire[m
<{^_^}> therealwaphire[m: home-manager allows you to manage your per-user configuration similarly to NixOS's configuration.nix <https://nixos.wiki/wiki/Home_Manager>. It can also be used in your NixOS configuration directly, see <https://rycee.gitlab.io/home-manager/index.html#sec-install-nixos-module>
<therealwaphire[m> thank you :)
leat has quit [Remote host closed the connection]
leat has joined #nixos
sam_ has joined #nixos
meck has quit [Quit: WeeChat 2.4]
meck has joined #nixos
Erasmus has quit [Quit: END-AUMF]
fusion809 has quit [Remote host closed the connection]
r0x has joined #nixos
leat has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #58830 → python37Packages.pyscard: 1.9.7 -> 1.9.8 → https://git.io/fjIBl
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjLbX
leat has joined #nixos
pointfourone has joined #nixos
wolfman154 has joined #nixos
<wolfman154> How do I remove older configurations and packages?
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 245 seconds]
drakonis_ has joined #nixos
meck has quit [Quit: WeeChat 2.4]
<logzet> wolfman154: Check out nix-collect-garbage
<logzet> e.g. nix-collect-garbage -d
lielazivee has quit [Ping timeout: 246 seconds]
<wolfman154> logzet: thanks, what is the: -d(vs without)?
<wolfman154> -d
leat has quit [Remote host closed the connection]
leat has joined #nixos
<wolfman154> logzet++
<{^_^}> logzet's karma got increased to 1
meck has joined #nixos
pointfourone has quit [Remote host closed the connection]
<ddellacosta> a bit of a longshot here, but has anyone experienced setting up a networked HP printer and had it fail continuously with an error message about the firewall blocking the connection (which is not actually true)?
<logzet> wolfman154: Delete everything not needed in the current generation, see nix-collect-garbage --help ;)
<ddellacosta> using hp-setup
<ddellacosta> trying to set the printer manually in the CUPS admin doesn't work either
<wolfman154> logzet: ok thanks, I’m still new to nixos (only three weeks using it)
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
goibhniu2 has joined #nixos
goibhniu1 has quit [Ping timeout: 252 seconds]
sam_ has quit [Ping timeout: 252 seconds]
winem_ has quit [Ping timeout: 240 seconds]
justanotheruser has joined #nixos
tboston_ has quit [Ping timeout: 250 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<{^_^}> [nixpkgs] @etu merged pull request #59079 → php7{1,2,3}: bump for "security release" → https://git.io/fjLQe
<{^_^}> [nixpkgs] @etu pushed 4 commits to master: https://git.io/fjLbN
tdeo_ has quit [Quit: Quit]
tdeo has joined #nixos
<alex``> I have an issue to update Nix with nar.xz
<alex``> > warning: unable to download 'https://cache.nixos.org/nar/146smhrb2zwkgz76bj2v7rg3a89h0ga6w3sz318n3szf4bygngbi.nar.xz': HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer); retrying in 330 ms
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):243:29
linarcx has quit [Quit: WeeChat 2.4]
justanotheruser has quit [Ping timeout: 246 seconds]
<jtojnar> why would Python package try to run tests that are not there? https://github.com/JimmXinu/FanFicFare/issues/391
<{^_^}> JimmXinu/FanFicFare#391 (by jtojnar, 11 hours ago, open): Tests failing with Python 3 (nixpkgs)
<alex``> I have this issue
leat has quit [Remote host closed the connection]
leat has joined #nixos
<alex``> Can I download nar.xz myself and put it somewhere while updating Nix?
<alex``> warning: unable to download 'https://cache.nixos.org/nar/0hpd6jr3k5fg7sjq38ygbi5wcgp4qkc9iaxdza403q6y27gj5v3w.nar.xz': HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer); retrying in 571 ms
<alex``> # nixos-rebuild switch --upgrade --keep-going --fallback
<{^_^}> [nixpkgs] @worldofpeace merged pull request #59087 → gnome3.gitg, vte-ng: fix build → https://git.io/fjLbz
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to staging: https://git.io/fjLNJ
<{^_^}> [nixpkgs] @worldofpeace merged pull request #59009 → ibus: 1.5.17 -> 1.5.20 → https://git.io/fjL0e
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/fjLNU
lovesegfault has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
leat has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
Qubasa has quit [Ping timeout: 250 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
dany has joined #nixos
iceypoi has quit [Quit: leaving]
dany is now known as iceypoi
m0rphism has quit [Ping timeout: 268 seconds]
wolfman154 has joined #nixos
<wolfman154> Is urxvt the same as bash?
<Yaniel> no
<Yaniel> urxvt is a terminal emulator, bash is a shell
<Yaniel> shell == command interpreter
leat has quit [Remote host closed the connection]
<Yaniel> terminal emulator == the window with text
leat has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52209 → libmediainfo: 18.08.1 -> 18.12 → https://git.io/fpbxo
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjLN3
gagbo has joined #nixos
<wolfman154> Yaniel: I did: echo $SHELL and it shows bash, what is the command that shows what terminal emulator I’m using?
<Yaniel> there isn't any
<Yaniel> you might not be using a terminal emulator
<Yaniel> you could be using the linux console
<Yaniel> your could be SSHing in
<Yaniel> you could be connected to a UART debug console via a serial port
freeman42x has quit [Ping timeout: 252 seconds]
<wolfman154> Oh my xmonad text has: terminal = “urxvt” , should I remove it?
<wolfman154> Yaniel: ?
<Yaniel> no, why?
<Yaniel> that is the terminal emulator that gets started when you press the "open new terminal window" key
<Yaniel> which in turn launches your login shell (bash if you haven't changed it)
i1nfusion1 has quit [Remote host closed the connection]
i1nfusion has quit [Remote host closed the connection]
Qubasa has joined #nixos
i1nfusion1 has joined #nixos
<wolfman154> Yaniel: oh ok, I’m just trying to fix some errors to get nixos to rebuild without errors.
<wolfman154> Yaniel++
<{^_^}> Yaniel's karma got increased to 2
i1nfusion has joined #nixos
<iceypoi> wolfman154: you also need to make sure urxvt is installed, otherwise nothing will happen in xmonad
<Ralith> Yaniel: $TERM is a thing, though
<Ralith> it even propagates over SSH!
slack1256 has joined #nixos
<wolfman154> iceypoi: how do I check if it is installed or not?
ddellacosta has quit [Ping timeout: 246 seconds]
<Yaniel> $TERM is a lie though
<Yaniel> or an approximation
<iceypoi> type: which urxvt
<iceypoi> if you get a path, it is
<iceypoi> otherwise it is not
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<Ralith> Yaniel: I don't get the impression he's looking for subtleties here :p
leat has quit [Remote host closed the connection]
ddellacosta has joined #nixos
infinisil has joined #nixos
<wolfman154> iceypoi: it’s not so do I remove from xmonad or install it? 16:59 wolfman154: Oh my xmonad text has: terminal = “urxvt” , should I remove it?
leat has joined #nixos
<iceypoi> wolfman154: you need to have *some* terminal emulator installed, otherwise you won't be able to open a console at all in xmonad. And urxvt is just fine as a terminal emulator, that's the one I use. I propose intalling it
<wolfman154> I’m confused, just trying to figure why nixos is not rebuilding correctly
<iceypoi> wolfman154: when you say "is not rebuilding" what exactly do you mean?
<wolfman154> iceypoi: so that’s why when I would press: mod + shift + enter , a terminal would not open, I feel dumb :(
<wolfman154> iceypoi: gdm and gnome don’t want to work with my custom keyboard layout or xmonad so I removed them, I think I need to use the garbage collector after rebuilding so old depencies are not used?
Anton-Latukha has quit [Quit: Leaving.]
<samueldr> they will be present in the store, but shouldn't really be used unless actively used
<samueldr> and if actively used, they won't be collected anyway from a GC
<wolfman154> I’m looking at libinput on nixos options, I still don’t know what syntax to use to make the touchpad just like how it is in gnome3, do you guys know the syntax for this?
<samueldr> in other words, removing from config and rebuilding should be sufficient, even though they will be in the store, there wouldn't be references left to them
<iceypoi> wolfman154: I haven't run GC yet, it works pretty well and versions don't interfere
<wolfman154> samueldr++
<{^_^}> samueldr's karma got increased to 69
<wolfman154> iceypoi++
<{^_^}> iceypoi's karma got increased to 1
sam_ has joined #nixos
<wolfman154> 17:14 wolfman154: I’m looking at libinput on nixos options, I still don’t know what syntax to use to make the touchpad just like how it is in gnome3, do you guys know the syntax for this?
leat has quit [Remote host closed the connection]
<samueldr> I've seen users here report GCs within the hundred of GBs; and things keep working fine
leat has joined #nixos
<samueldr> removing all older generations is also not the best idea considering how it can be used to get back into a working system, sometimes
<iceypoi> samueldr: Is there some kind of best practice like e.g. run a cron job to GC > 90 days old or something?
<wolfman154> Ok I won’t use it I think it’s because I was using urxvt in xmonad even though it was not installed, that’s why the terminal would not open
<wolfman154> :(
<slack1256> iceypoi: Not a best practice(tm), but keeping the last two working generations on disk has worked great for me
<samueldr> I personally do it with --older-than 14d whenever I feel cramped in my dedicated drive :)
<wolfman154> So only use gc if you are running out of storage?
<samueldr> or bi-weekly on my laptop with only 128GB space (projects on it are big!)
<jasongrossman> Yes, only use GC if you're running out of storage.
<samueldr> though of note: there are multiple ways to look at GC
<samueldr> (1) removing unneeded things (2) removing older generations
cantstanya has quit [Ping timeout: 256 seconds]
<samueldr> (1) can be run however and whenever and should be safe; it might purge things that would have been useful for a nix-shell invocation, but won't remove generations
<samueldr> this is what happens with nix-collect-garbage without passing -d or --delete-older-than; it removes all things that aren't held by "GC roots"
<samueldr> while (2) can be done in a rather automatic way with -d or --delete-older-than
cantstanya has joined #nixos
<samueldr> but keep in mind that GC roots are not only made of generations! any leftover `result` folder from a nix-build, for example, is a GC root and could realistically keep a sizeable closure from being collected
<samueldr> nix-store --gc --print-roots # this will print all roots, including those from running software that could be otherwise unneeded from GC roots
<wolfman154> samueldr: I have been using nixos for three weeks, how long until I get comfortable with it?
<samueldr> e.g. here I see {memory:72} -> /nix/store/73bda0a26bda42v22y9fj051r44wsyma-libpng-apng-1.6.35 <- this means that something in memory refers to something in that specific store path
<jasongrossman> I have a new VPS with very little disk space which has GC roots that I don't understand. It's new and I've never installed anything on it except via /etc/nixos/configuration.nix ... and yet it has packages installed that are not mentioned in the current configuration, even after sudo nix-collect-garbage -d :-(
gentauro has quit [Ping timeout: 268 seconds]
<samueldr> wolfman154: varies greatly with how comfortable one is with Linux and general, and by this I mean also the deeper undestanding; then how much time you spend learning the tools; and finally the language (nix) itself
<samueldr> highly variable I'd say
<jasongrossman> Specifically, I installed something that depends on GHC (using configuration.nix), then removed it from configuration.nix, then garbage collected, but GHC is still in my store.
leat has quit [Remote host closed the connection]
Rusty1 has joined #nixos
leat has joined #nixos
<samueldr> I immersed myself deeply at first and it took a while to be 100% confident and groking most things
iyzsong has joined #nixos
gentauro has joined #nixos
<samueldr> jasongrossman: use nix-store --gc --print-roots to look at existing roots?
<jasongrossman> samueldr: I don't understand the output of that ... but oh wait. Probably pandoc depends on GHC. I still have pandoc in my configuration.nix. So maybe I don't have a problem.
<samueldr> and there's the nix why-depends command that you could use, but I'm not sure how it works when you don't how what depends on a thing
<samueldr> yeah, pandoc has quite the baggage in Nixpkgs
<jasongrossman> (Except that I wish pandoc didn't depend on GHC, just because disk space.)
<jasongrossman> samueldr: Thanks!
<wolfman154> Thanks and later guys I’m going to take a break
wolfman154 has quit [Quit: Mutter: www.mutterirc.com]
<jasongrossman> Ah, but I have SEVERAL versions of GHC in my store, so I do still have a problem. I'll paste my GC roots here and see whether samueldr or anyone else would be willing to help me understand them.
<samueldr> one thing that could help, jasongrossman, is rebooting the server if it hasn't been for a while, due to the {memory} roots
<infinisil> I have at least 8 GHC's in my store :)
<samueldr> I don't even want to look, I'm not even a haskeller!
sam_ has quit [Read error: Connection reset by peer]
<jasongrossman> samueldr: Thanks. Tried that.
sam_ has joined #nixos
<samueldr> though I did just gc (without removing older generations!) I just freed ~22GB apparently
<jasongrossman> samueldr: Yay!
<boomshroom> Going for a while without a GC can delete HUGE chunks of the store when you finally do.
<samueldr> I think it was clever, the other day, who just shed ~300GiB
<dsx> How to create directories (such as /tmp for example) using pkgs.dockerTools.buildLayeredImage?
r0x has quit [Quit: Leaving]
<infinisil> Oh boy, it seems that I have many more GHC's than 8
<boomshroom> Decided to do my own GC just to see what it would do.
<jasongrossman> I'm having trouble using wgetpaste, because my fingers are so used to wget that they type a space after "wget"!
<boomshroom> I also probably should have done an update before the GC, but it's a little late now.
leat has quit [Remote host closed the connection]
<samueldr> wouldn't have collected much more considering memory roots, unless you would have rebooted :)
leat has joined #nixos
<boomshroom> (Then again the state I have now would have still been rooted since I'm not doing -d)
<jasongrossman> sameuldr and others: http://dpaste.com/091MCFC
<jasongrossman> I haven't been paying much attention to what I've installed. I could rebuild this server from scratch fairly easily, and then watch my GC roots accumulate in real time.
<jasongrossman> But apparently I have several profiles with GC roots, even though I've done sudo nix-collect-garbage -d
<jasongrossman> Could it be because I've got named profiles?
<samueldr> looks like you have four generations, and then those six profiles...
<samueldr> ... I have no experience with profiles
<jasongrossman> I don't know why I have four generations after using -d :-(
<samueldr> can't say really
<jasongrossman> (A side issue: I used named generations on my main computer with systemd-boot, and I find them very useful BUT on the system I'm talking about today, with grub, they don't appear in the boot menu. I don't know why they don't.)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/714d9130bc0 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jasongrossman> samueldr: OK. I expect it's got something to do with those named profiles then. I'll get rid of them somehow.
<jasongrossman> samueldr: That's some progress. :-) Thanks.
<samueldr> jasongrossman: bootloaders don't have equivalent support for extra features :/ it's a bit annoying to me; all "generations" generation is handled in their own isolated script for all bootloaders
<samueldr> so I guess grub doesn't have profiles support? or uh, maybe they're under a submenu since systemd-boot I think cannot do submenus?
<jasongrossman> samueldr: I see. Yet another documentation problem! It works wonderfully well on my MacBook with systemd-boot - that makes me happy at least.
<jasongrossman> samueldr: They are under a submenu, yes, but even there their names are not displayed properly.
<jasongrossman> samueldr: By the way, I mistyped above. I DO know why I have 4 generations, but I don't know why my named profiles still have GC roots.
<boomshroom> `deleting '/nix/store/trash'` Ah, the final step
<jasongrossman> samueldr: I can solve my personal problem easily by rebuilding the server (yay NixOS making that easy).
<jasongrossman> samueldr: I'll find out later whether my problem comes back.
<samueldr> the nixos-rebuild manpage explicitly states submenus for GRUB 2, so uh, I don't know :)
<samueldr> (and no mention on how to remove them)
<jasongrossman> samueldr: So something is broken, and it's probably grub-specific, and it might just be documentation that's broken. I'm happier now that I understand that.
<jasongrossman> samueldr: For example, the problem might be that the way grub is set up by this VPS host I need to enable some option to see the names. But actually I don't want the names badly enough to risk these GC problems. So I'm going to cut my losses and stop using named generations ... except on systemd-boot.
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
<jasongrossman> For posterity, I should say that it looks like there's some problem with GC and named generations, and that presumably has nothing to do with bootloaders.
leat has joined #nixos
<samueldr> they're not part of "generations" like the other generations, AFAICT
<slack1256> I would like to associate a generation with a version of nixpkgs. For system generations is possible reading manifest.nix, but for user generations you can't :-(
<jasongrossman> samueldr: That would explain the problem. We have a documentation problem with nix-collect-garbage -d then.
sam_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fjLN6
lovesegfault has quit [Quit: WeeChat 2.4]
<samueldr> not sure, that might be an expectation that "profiles" are "generations" in the same sense that nix-env and nixos-rebuild assumes them to work, while it might be something else?
<samueldr> I'm looking into it, a bit curious about what's different
<jasongrossman> samueldr: Just in terms of the documentation, I believe it's slightly wrong. The manual says:
<samueldr> one older ML thread seems to imply it should be fine to simply rm them https://nixos.org/nix-dev/2016-February/thread.html#19438
<jasongrossman> "The following command deletes old roots ... nix-collect-garbage -d"
fendor has quit [Remote host closed the connection]
<jasongrossman> samueldr: Oh cool. I'll try that.
<samueldr> past-clever also says so, but also doesn't seem aware of --profile? https://logs.nix.samueldr.com/nixos/2018-07-31#1533063810-1533063827;
xkapastel has quit [Quit: Connection closed for inactivity]
<jasongrossman> samueldr: A good improvement to the documentation might be to add "except when using profiles" to the GC section!
<boomshroom> I forgot about `deleting unused links...`. It's been on that for a while.
<samueldr> jasongrossman: or more appropriately, "old generation roots"; since it doesn't remove any other kind of roots; e.g. won't clobber any misc. result symlinks
<jasongrossman> samueldr and posterity: I've solved my immediate problem, which was GC roots for named generations not being garbage collected by nix-collect-garbage -d.
<jasongrossman> samueldr: yes.
leat has quit [Remote host closed the connection]
<jasongrossman> samueldr and posterity: The solution is to `cd /nix/var/nix/profiles/system-profiles`, check that there's nothing there you want to keep, do `rm *`, THEN do `nix-collect-garbage -d`.
leat has joined #nixos
<jasongrossman> samueldr: And then dance because you have your disk space back.
lovesegfault has joined #nixos
mbrgm_ has joined #nixos
<jasongrossman> samueldr++
<{^_^}> samueldr's karma got increased to 70
_monokrome is now known as monokrome
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
sam_ has joined #nixos