gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<cdomigan> LnL: Yeah problem is I'm trying to use pkgs.dockerTools, which don't support darwin
<LnL> ah yeah
hakujin4 has quit [Ping timeout: 255 seconds]
<LnL> gchristensen: it assumes you have the docker for mac thing, but that's based on xhyve
<puffnfresh> it's innovation week on my team at Atlassian
<puffnfresh> gonna try addressing some PR feedback on my LinuxKit stuff
<LnL> oh nice!
<puffnfresh> I should really test it out on Nix 2.0
<puffnfresh> but I don't have easy access to High Sierra
Albori has joined #nixos
<LnL> it worked for me, just couldn't get it to build because of some platform weirdness
<LnL> hydra got all confused :)
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
<gchristensen> a rare visit from puffnfresh
BlessJah has quit [Ping timeout: 256 seconds]
<puffnfresh> LnL: Hydra building the linuxkit-builder expression?
<LnL> yeah
vidbina has quit [Ping timeout: 256 seconds]
<puffnfresh> parts of it require linux_x86-64 and parts require darwin_x86-64
<puffnfresh> I would have thought the linux_x86-64 stuff would be found first though :(
klntsky has quit [Remote host closed the connection]
<LnL> I know, but I have a builder for both and at some point the queue just got stuck
jrolfs has joined #nixos
klntsky has joined #nixos
hakujin has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #32751: fwupd: 1.0.1 → 1.0.4 (master...fwupd-1.0.2) https://git.io/vbKMC
NixOS_GitHub has left #nixos [#nixos]
BlessJah has joined #nixos
parsnip has quit [Quit: WeeChat 2.1-dev]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vAZCT
<NixOS_GitHub> nixpkgs/master 0d20bf0 Herwig Hochleitner: chromium: 64.0.3282.140 -> 64.0.3282.167...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to release-17.09: https://git.io/vAZC0
<NixOS_GitHub> nixpkgs/release-17.09 0264c64 Herwig Hochleitner: chromium: 64.0.3282.140 -> 64.0.3282.167...
erasmas has quit [Quit: leaving]
kelleyNif has quit [Quit: Leaving.]
ryanartecona has joined #nixos
grulli has quit [Ping timeout: 256 seconds]
dan_b has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Ping timeout: 240 seconds]
ryanartecona has joined #nixos
cdomigan has quit [Quit: Page closed]
grulli has joined #nixos
<LnL> whoo, hopefully my rust update also works on darwin
grulli is now known as Guest5624
<nhill> Do most nixosers use zfs?
<gchristensen> not most
<nhill> Trying to decide between zfs/btrfs/ext
<nhill> I'll go with ext4 for familiarity, unless you guys all use something else
fragamus has joined #nixos
<simpson> ext4 is a good general-purpose workhorse. I have heard things about ZFS for many many years but never used it. XFS is a thing, and I use it on my storage machine, but feelings are...mixed, to say the least.
<maurer> If you don't have a good reason to pick a specific filesystem, just use ext4
<simpson> btrfs is still in my "don't use if you value your data" boat, but I haven't looked at it in years and years, and maybe they've stopped having those issues.
<maurer> it will have the fewest gotchas
<gchristensen> I always default to ext4
<gchristensen> +1 to maurer, and its gotchas are generally pretty well understood
<maurer> (I say this as someone who is doing root-on-zfs - there are features and good reasons to use the other filesystems, but if you don't need them, don't pay for it in maintenance/configuration burden)
<nhill> I will go with ext4 just for familiarity and having one less variable in this experiment
<nhill> Do most of y'all encrypt? I think I will avoid that at first for similar reasons
<maurer> Encryption is pretty stable/easy these days, but if you don't need it vov
once_upon_a_nixo has joined #nixos
<gchristensen> is that zoidberg?
<simpson> It'll reliably add a little CPU overhead, although usually not latency, to disk operations.
<maurer> It's supposed to be a shrug
<gchristensen> oh I get it. I'm just a bigger futurama fan than shrug fan
* simpson why not Zoidberg? (\ ( ;,;) ,/)
ditadi has quit [Quit: WeeChat 2.0]
<once_upon_a_nixo> woop woop woop
<dnovosel> nhill: For a laptop, especially one you bring around places, I would suggest encryption. For a desktop machine, probably less important.
<nhill> dnovosel: yeah, I plan on using it on my laptop, but I'm going to do several installs on a dummy computer until I switch over on my daily comp
<once_upon_a_nixo> Give me some downsides to NixOS please aside from learning the language. Reading thus far it appears too good to be true.
<gchristensen> once_upon_a_nixo: nixos uses more disk space
<LnL> heh
<gchristensen> once_upon_a_nixo: nixos requires you to solve problems up front that other tools let you pretend don't exist
<samueldr> immutability of store can be a bother at first
<symphorien> documentation is scarce
<once_upon_a_nixo> how so samueldr?
<LnL> I'd say it makes simple things slightly harder, but as a reward certain very hard things become trivial
stephenjudkins has quit [Remote host closed the connection]
<gchristensen> LnL++
<dnovosel> nhill: In general, the cost to encrypt SSDs for normal usage is not noticable. And peace of mind for someone else seeing your data is pretty swell. I've had two laptops stolen over the years, and both were encrypted, so I worried less about someone getting my data.
<samueldr> let's say that you wanted to "just add a UCM file to alsa", well you have to patch the derivation for it, and anything isuing it will be rebuilt upwards in the tree
<simpson> once_upon_a_nixo: Many language-specific package managers do not play well with Nix at first. We end up taming them and providing our own ways to get their packages into environments, usually.
<samueldr> (UCM files are kind of like configuration files afaiui)
<once_upon_a_nixo> gchristensen: example of problems that otherwise you'd pretend don't exist with other tooling?
<gchristensen> once_upon_a_nixo: `pip install` isn't deterministic. nix: you pretty much have to solve that now if you want to package a python thing. other distros: meh, its probably fine.
<gchristensen> nix's plus: it'll keep working like that ~forever. other distros: bitrot
<samueldr> forever^[citation needed] :)
<gchristensen> samueldr: forever for small values of forever. Eelco's thesis still builds for example
<samueldr> forever is a long time! but working for the duration of at least our generations is a safe bet :)
<samueldr> ah, a downside of nixos, but pretty much anywhere geeks congregate: free snark
<samueldr> not to be confused with free snacks :)
<samueldr> hmmm, snark may not be the word I was thinking of...
<gchristensen> once_upon_a_nixo: one of my favorite things about NixOS is how stinking smart everyone is around here
<Ralith> snarks can be pretty delicios
<Ralith> not very filling, though
<once_upon_a_nixo> LnL: interesting, what kind of things that are easy become more difficult?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> a simple example is downloading a binary "without" dependencies
<once_upon_a_nixo> simpson: but if you stick with NixOS you're not troubled with other package managers most likely?
<simpson> once_upon_a_nixo: Ideally, yes.
<LnL> you have to explicitly package it so it can find glibc
<once_upon_a_nixo> gchristensen: ah interesting - how do you solve that kind of thing then with pip? End up packaging all the pip packages?
<LnL> but as an upside adding a ppa won't magically break apt because of missing symbols in a libstdc++ package that was replaced in place
<LnL> (this happened to a colleague today)
<LnL> :D
<gchristensen> zoinks
<once_upon_a_nixo> gchristensen: that's a good thing! Lacking documentation but good community support can be better. Is the community large? This channel seems decently populated.
<gchristensen> once_upon_a_nixo: indeed :)
<samueldr> not a problem with nixo, but here goes : the other day I was debugging grub issues with the install image of nixos... with a custom patched grub and it was a cakewalk, always a fresh iso as would have been built by the maintainers!
<gchristensen> here is a very hard thing made trivial: making correct installer images, or PXE images, or server images, from scratch, on your laptop, in a couple minutes
<samueldr> using the latest git revision was as simple as changing the source files
<gchristensen> very hard made easy: perfectly rolling back software upgrades
<once_upon_a_nixo> LnL: ouch hah. How does NixOS then handle say packages that require older versions of libraries? it just installs them with their unique hashes and no issues, etc.?
<once_upon_a_nixo> Are there issues with different versions of a library when configuration files change formats? or those track as expected across versions?
<gchristensen> config files are typically in the store as well, and are also rolled back / rolled forward
<samueldr> (user's configs are not, by default, though)
<samueldr> (that's something that's being worked on!)
<gchristensen> yeah, a bit of nuance there
<once_upon_a_nixo> samueldr: yeah actually how is the debugging of NixOS issues? nice! So your modifications just resulted in a fresh ISO?
<samueldr> every modification a fresh iso
jmc has joined #nixos
<once_upon_a_nixo> gchristensen: Ah very nice. You can do that within NixOS by nature huh?
<samueldr> (filled my hard drive a couple of times!)
<gchristensen> yea
<once_upon_a_nixo> samueldr: and just run a command to output the ISO?
<once_upon_a_nixo> neat neat
<once_upon_a_nixo> gchristensen, samueldr: I see. So stuff such as dotfiles would need to be manually rolled back/forth?
<once_upon_a_nixo> samueldr: hah wow, what capacity?
<LnL> depends on how much of that you manage with nix
<samueldr> 120GB SSD :| not dedicated only to the nixos store
<once_upon_a_nixo> Are the ISOs directly writable to a USB or disc for installation or more of a process?
<samueldr> they're isohybrid (if it rings a bell) and handles MBR and UEFI boot right either as optical discs or usb drives
<clever> once_upon_a_nixo: the nixos ISO's include a gpt partition table and can just be dd'd directly to the root of a usb drive
<once_upon_a_nixo> LnL: fair. When you install something with nix, are there patches applied that are Nix specific? such as getting aronud the absence of FHS or is there support for that which needs no patching?
<once_upon_a_nixo> samueldr: ah excellent, as one would expect these days basically.
<once_upon_a_nixo> Very nice clever
<clever> once_upon_a_nixo: yeah, some programs have nix specific patches, which are usually kept in the nixpkgs repo
<once_upon_a_nixo> Also, thank you all for the input.
<once_upon_a_nixo> clever: ah, makes sense. Seems like there are a lot of contributors for nixpkgs
<LnL> yeah sometimes, some projects just do the right thing if you give them a --prefix but a lot of them don't
<gchristensen> once_upon_a_nixo: a few hundred contributors each month
<jmc> In some examples I see default.nix containing a tuple, and some containing a lambda. How is the expression in default.nix handled if it isnt always the same type?
<clever> once_upon_a_nixo: as an example, multimc tries to save some data into its installation directory at runtime, but thats immutable, so this was required: https://github.com/NixOS/nixpkgs/blob/17020526a78b0814fc813900cabd7043d7b419e4/pkgs/games/multimc/multimc.patch
<clever> jmc: line 115 deals with `callPackage lambda` vs `callPackage ./default.nix`, and then i believe line 75 deals with the default.nix containing either a lambda, or something else
<once_upon_a_nixo> clever: great example. In that example, where is 'translations' by default then? a mutable nix directory somewhere?
<clever> once_upon_a_nixo: the patch redirects it into going into a directory somewhere under $HOME, which the application already used for other writable data
<clever> i think they wanted to cache the translations between users, but that requires the installation directory to be world-writable
kelleyNif has joined #nixos
fragamus has joined #nixos
coot has quit [Remote host closed the connection]
<once_upon_a_nixo> clever: and does the installation of that package persist across users? or when another user installs the same version (derivation?) of multimc does it use the package already on the system?
<once_upon_a_nixo> Perhaps better worded, if two users install the same package, it installs twice correct? Is there any notion of a global package?
<jmc> clever: thank you very much. is there a place where things like this are documented?
<clever> once_upon_a_nixo: if you install it system-wide with configuration.nix and systemPackages, the executable will be available to everybody, but the translations are per-user, so it will probably have to re-download
<samueldr> once_upon_a_nixo: as long as it's the same store path, anything in the store won't be re-downloaded, until GC-ed
<clever> once_upon_a_nixo: if one user installs it with nix-env, then the executables are basially private, and nobody else gets them automatically
<samueldr> GC: garbage collection
<clever> jmc: i dont think the internals of callPackage are documented anywhere
<once_upon_a_nixo> Very good.
<once_upon_a_nixo> clever: nix-env seems neat to isolate environments for different use cases. One for x, one for y, etc. Are environments completely separate?
<once_upon_a_nixo> samueldr: Does gc run manually only?
<once_upon_a_nixo> How does NixOS handle this case: Old application needs old libraries. No longer receives updates. Still wish to receive updates for the rest of the system (say within compatability, so updated kernel)
<clever> once_upon_a_nixo: by default, every user has his own environment
<samueldr> can be enabled for automatic collection: https://nixos.org/nixos/options.html#nix.gc
<once_upon_a_nixo> samueldr: but default is manual? Are older versions available for a long time since it's based on source control commit?
<clever> once_upon_a_nixo: but if 2 users attempt to install the same package, they will automatically share the files, which is also why everything must be immutable
<samueldr> oh ah, the binary cache from nixos is a different thing, that binary cache has a huuuuuuuuuuuuge cache right now of older revisions
<once_upon_a_nixo> clever: ah can a user have multiple environments? Right - no user can be changing things around.
<samueldr> so no need to rebuild for older revisions going far back
<samueldr> BUT, the way it's done, even if it got nuked somehow, you're "just" a long build away
<clever> once_upon_a_nixo: you could manually create a second profile, but you will have to mess with $PATH to switch between them on a per-shell, and some stuff may not like it
<clever> once_upon_a_nixo: or you could change the ~/.nix-profile symlink to swap the profile out on the entire user
<once_upon_a_nixo> samueldr: right but say the old versions were destroyed or what have you or maybe it's a local staging repository thing. Ah right, great, you just answered that. Thanks.
<clever> which would have less problems
<once_upon_a_nixo> samueldr: are there a lot of cache servers?
kelleyNif has quit [Quit: Leaving.]
<clever> once_upon_a_nixo: cache.nixos.org doesnt have any garbage collection, so anything that has been built by hydra.nixos.org, will persist, forever
<once_upon_a_nixo> clever: interesting, how else could you do say, one environment with customizations for running a game and it's requirements and another environment for running another kind of application?
kelleyNif has joined #nixos
<samueldr> as most users do, the cache is a "black box" offered by nixos, but in reality it's hosted on S3, so it should be geographically redundant and all positive and negative things from S3
<clever> once_upon_a_nixo: and locally, as an example of what GC can do, i have 7 copies of firefox in my nix store, for versions 51, 55, 53, 56, 55, 57, and 57
<once_upon_a_nixo> clever: wow, won't they run out of space at some point?
<clever> once_upon_a_nixo: thats part of why my nix store is 61gig in size, lol
<once_upon_a_nixo> samueldr: ah, how is that funded? must be a fair amount of space and traffic. If not now, at some point.
<clever> once_upon_a_nixo: in general, you dont make a profile for a game, and a profile for applications
<Ralith> it's really weird how nix-shell invokes `failureHook`
<clever> once_upon_a_nixo: you patch both, so they can co-exist in the same profile
<once_upon_a_nixo> samueldr: does NIxOS run the only official cache at this point?
<clever> once_upon_a_nixo: yeah
<samueldr> "black box" for me :D url goes in, cached artifact comes out
fragamus has quit [Ping timeout: 276 seconds]
kelleyNif has quit [Client Quit]
<once_upon_a_nixo> samueldr: haha surely like you said for most users. Just curious. Don't want someone to end up not having access to the packages. What team develops and runs NixOS and the servers, etc.?
<gchristensen> once_upon_a_nixo: what would it even mean for there to be multiple official binary caches?
<samueldr> (I don't know the details, I'm assuming some benevolent entity makes this a non-issue for the nixos org)
<gchristensen> once_upon_a_nixo: there are a few people who have access to maintain the build and cache infra
<gchristensen> no formal team right now
<once_upon_a_nixo> gchristensen: Multiple sources to retrieve the data from? some kind of load balancing and point of failure reduction similar to mirrors for other distributions? Though with the packages being able to be built from source, it's not a dire issue in that sense but binary vs build is often lopsided for time to install.
<gchristensen> ah
<once_upon_a_nixo> perhaps 'old paradigm' thinking but seemed relevant still.
<gchristensen> well, mirrors could be setup and not violate the trust model
kelleyNif has joined #nixos
<adisbladis[m]> once_upon_a_nixo: There has been talks of (and even some code!) using ipfs for binary cache
<gchristensen> once_upon_a_nixo: however, the cache is hosted on Cloudfront and is geodistributed by default, and has pretty good availability
<jmc> /quit
jmc has quit [Quit: leaving]
<adisbladis[m]> Except speeds are not great in asia..
<once_upon_a_nixo> clever: you patch the packages so they can coexist? is there no other way to isolate environments outside the symlinking you previously mentioned?
<clever> once_upon_a_nixo: what do you think would break if you dont isolate things?
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0264c64ebb5 (from 85 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
mahalel_ has left #nixos [#nixos]
<gchristensen> adisbladis[m]: asia and australia :(
hakujin has joined #nixos
<adisbladis[m]> gchristensen: Ohh right. The first time I installed nix I was actually in New Zealand. Super slow :/
<once_upon_a_nixo> clever: different applications needing different versions of the same library perhaps, or some other application specific peculiarity?
<clever> once_upon_a_nixo: libraries never go into your profile, and all applications refer to libraries by absolute path
<once_upon_a_nixo> gchristensen: ah interesting, so then the trust model is just packages signed by and accessed by the few developers?
<clever> once_upon_a_nixo: so different versions can co-exist trivially
<adisbladis[m]> Imo non-cloudfront mirrors would be so nice
<gchristensen> once_upon_a_nixo: the packages are signed by a cache.nixos.org key
kelleyNif has quit [Client Quit]
<adisbladis[m]> once_upon_a_nixo: Packages are automatically signed by hydra
<gchristensen> adisbladis[m]: it can be done very simply, I could even help administer it. just need storage and bandwidth
kelleyNif has joined #nixos
<once_upon_a_nixo> adisbladis[m]: very neat!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #34990: libbsd: update darwin patch (master...libbsd-mac-0.8.7) https://git.io/vAZBr
NixOS_GitHub has left #nixos [#nixos]
hakujin has quit [Ping timeout: 256 seconds]
<once_upon_a_nixo> clever: That works. I guess you could have a user per application though too if you wanted to isolate things or something. Maybe if you have an experimental build process where your home is going to be a mess from things and then another environment for your standard stuff?
kelleyNif has quit [Client Quit]
ryanartecona has quit [Quit: ryanartecona]
<clever> once_upon_a_nixo: yeah, you can do that
kelleyNif has joined #nixos
<clever> once_upon_a_nixo: you can also use nix-shell to load things up without adding them to your profile
<clever> once_upon_a_nixo: `nix-shell -p firefox` should give you a shell where firefox can be ran, without actually installing firefox into any profile
<samueldr> e.g.: want to run htop once and then not worry about it? `nix-shell -p htop --run htop`
<clever> yep
<clever> and nix also makes it trivial to do other fun things
<samueldr> this is especially useful for tools like nix-info, which you don't generally need to have installed, or for running a dmidecode once on a device
<clever> nix-shell -p '(enableDebugging htop)' --run htop
<clever> this re-compiles htop with debug symbols, then runs that variant
<samueldr> TIL and I like that
<once_upon_a_nixo> clever: oh that's interesting. Lot of use cases for that too like the htop recompilation or dmidecode that otherwise you'd not think about.
<gchristensen> once_upon_a_nixo: this is a magic trick I like: https://gist.github.com/grahamc/289840df946ba4eb23491377b0962664
<once_upon_a_nixo> Especially with toying with say new hardware, a lot of one off commands you'll only need once.
<clever> once_upon_a_nixo: yep
<samueldr> gchristensen: madness
<once_upon_a_nixo> gchristensen: that's great
<clever> gchristensen: lol, neat
<clever> gchristensen: i think i could de-bash that though, ....
<once_upon_a_nixo> You folks use NixOS at work and so forth?
<gchristensen> how about de-zsh? :)
<adisbladis[m]> Yeah! :)
<clever> gchristensen: oh, wait no, that wont work right
<clever> [clever@amd-nixos:~]$ nix-shell -p 'map x: pkgs.ruby_${x} [ "2_0" "2_1" "2"2" "2_3" "2_4"]'
<samueldr> you forgot 2_5 (or are using 17.09)
<gchristensen> samueldr: yeah 17.09.
<samueldr> :)
<clever> this would give you a shell that had every version of ruby at once, lol
<adisbladis[m]> once_upon_a_nixo: Though most folks at work use computers from a certain fruit company. So nix on darwin for most
<clever> [clever@amd-nixos:~]$ nix-shell -p 'map (x: pkgs."ruby_${x}") [ "2_0" "2_1" "2_2" "2_3" "2_4" ]'
<clever> fixed the syntax errors
<samueldr> hmmm
<samueldr> how does it work?
<clever> samueldr: it doesnt really, there is only 1 ruby directly accessible, 2.0
<samueldr> yeah, that's what I was trying to ask :)
thc202 has quit [Ping timeout: 248 seconds]
<clever> all of them are in the same $PATH, and conflict
<samueldr> for p in $buildInputs ; do $p/bin/ruby -v ; done
<samueldr> works only when you only require rubies though
<gchristensen> y'all are getting silly
<catern> hmmm
<clever> gchristensen: yeah, lol
<once_upon_a_nixo> Aha I see.
<catern> can I use Nix with Python to somehow allow me to import multiple versions of a package?
<once_upon_a_nixo> Number 1 reason to switch to NixOS from some other Linux distribution?
<samueldr> once_upon_a_nixo: nixos is on my personal computers and workstation, but only nix is used at work for development and production use
<clever> once_upon_a_nixo: i use nixos on all new installs i make, and all of the work systems
<once_upon_a_nixo> samueldr: Intriguing, why not NixOS at work?
<once_upon_a_nixo> clever: very neat - works well in all cases? I can imagine duplicating environments exactly is quite helpful.
<samueldr> inertia, if/when we change architecture it'll switch, all new bits are already starting to use nix as much as possible
<clever> once_upon_a_nixo: very, i was able to trivially spin up an extra 40 mirrors over a weekend
<once_upon_a_nixo> samueldr: Good to hear, the reception of it by others seems good then?
<catern> samueldr: if you're willing to say i'd be curious where you work
iyzsong has joined #nixos
kelleyNif has quit [Quit: Leaving.]
<once_upon_a_nixo> clever: very nice; that's got to be very useful for desktop deployments too.
<samueldr> I technically do consulting work with a business for another business, no big names all local to ~ québec city
<samueldr> web development / a bit of devops for one product
chessai has joined #nixos
kelleyNif has joined #nixos
d4g_ has joined #nixos
<samueldr> once_upon_a_nixo: with differing technical backgrounds all seems to like the fact that nix-shell on their macOS and different linuces all makes them free from dependency and installation hell
<samueldr> only native dependencies to install: their IDEs and tools (if they don't want to install via nix), virtualbox, nix; everything else is handled via nix-shell
<chessai> once_upon_a_nixo: samueldr: my company hates Nix and NixOS. I had to fight to be allowed to set up a Hydra.
<once_upon_a_nixo> samueldr: do you work on NixOS, etc.? Contribute is probably a better word here.
<clever> samueldr: heh, quebec is so close to me, that it causes issues with my cellphone, lol
<clever> samueldr: i'm in NB, and if i leave the phone timezone on automatic, it will randomly grab a quebec tower, and shift the clock by an hour
<samueldr> fun! :) not québec city though
<clever> samueldr: ive had the alarm clock just not go off one day, because the shifting dodged the set time
<samueldr> ouch
<clever> samueldr: and ive had the alarm go off 3 times within a 2 hour span
<once_upon_a_nixo> samueldr: The ability to go between the OSes too if needed is pretty significant. The setup being basically run your file.
<chessai> once_upon_a_nixo: samueldr: My direct boss thought it was a great idea. I asked the IT/hardware provisioning guy to get me a DNS for the hydra, and he said "hydra? what are you, a nazi?" (he was joking around, but the whole company does hate nix)
<samueldr> I got nix in the stack the moment it saved our bacon by trivially allowing us to use a specific software version that didn't exhibit issues (PDF generation from HTML)
<once_upon_a_nixo> chessai: why the nix/nixOS hate then?
d4g has quit [Ping timeout: 240 seconds]
<chessai> once_upon_a_nixo: samueldr: Luckily, our Haskell application at work uses reflex-platform, so we *have* to use nix in some capacity. For our largest project, it's a huge help.
<clever> samueldr: i also use nix for pdf generation and data processing
<samueldr> fear from change I would guess, I had a colleague (project lead) initially be apprehensive and only going on with it because (he is a friend) he knew how level-headed my tech choices are
<samueldr> clever: knowing you, you're generating PDF using actual nix code :^)
mbrgm has quit [Ping timeout: 248 seconds]
<clever> samueldr: ive written a nix expression and some haskell code, that took nearly 600mb worth of PDF files, extracted the data from them into a database, filtered&sorted it, then spit out a PDF file of the results
<once_upon_a_nixo> samueldr: That sounds like it came through at a good time. It is certainly a different approach but seems far more reasonable in the end really.
<clever> samueldr: and the entire process was started with a single `nix-build`
kelleyNif has quit [Quit: Leaving.]
<clever> samueldr: and if i modify any of the code, nix just re-computes whatever it has to, using the normal dep tree
<chessai> once_upon_a_nixo: samueldr: They hate NixOS because, once upon a time, a person who used to work there was really into Nix/NixOS, and saw the great potential in it, but was very new. But he tconvinced everyone in the company to switch to NixOS, after probably an amazing pitch for it, but they were unable to handle Nix/NixOS due to the relatively high learning curve and off-colourness compared to Ubuntu/CentOS,etc
kelleyNif has joined #nixos
<clever> samueldr: pandoc is the primary way of creating the pdf's, and lately, i have been using HaTeX (a haskell package)
<clever> samueldr: its a latex monad
<chessai> once_upon_a_nixo: samueldr: they've even gone so far as to make me switch to using a work laptop with Ubuntu as the Host OS, and I have to VM NixOS now
silver has quit [Read error: Connection reset by peer]
mbrgm has joined #nixos
<once_upon_a_nixo> ouch hah
<adisbladis[m]> chessai: Haha sounds like my colleagues old company. They had a similar guy.
<once_upon_a_nixo> Thanks all for the input, perhaps will drop by for more Q&A. Cheers!
<samueldr> ours was for provincial government tax slips generation, and we pretty much had to go the HTML/CSS route as it was the easiest to grasp (already had experience) in the time we had (it was already late)
<adisbladis[m]> once_upon_a_nixo: In my current company I eased it in.
once_upon_a_nixo has quit [Quit: Page closed]
<chessai> once_upon_a_nixo: samueldr: it was a little annoying, as I have recently bought a laptop and use NixOS as the host OS, and it's more powerful than the laptop they're making me switch to
<adisbladis[m]> Started by making CI reproducible and went from there
<chessai> once_upon_a_nixo: samueldr: NixOS is a beautiful, amazing thing, but they just don't see it that way
<samueldr> :| where I work it's bring your own OS, as long as it's macOS or linux
<clever> samueldr: the PDF's ive been dealing with are unclaimed property reports
<clever> samueldr: lately, the data is in text files with a fixed width, spaces for padding
<samueldr> I prefer the production side of the hose, scraping is fun but can be maddening
<clever> chessai: just install ubuntu inside virtualbox, and hit the fullscreen button
<clever> chessai: and dont tell them :P
<samueldr> oh, CI! I just, as in yesterday, implemented gitlab-ci using dockerTools
<catern> does nixops support incremental rollout?
<samueldr> chessai: install the ubuntu theme and don't tell them :D
<catern> heck, does NixOS support incremental rollout?
Xorkle has quit [Ping timeout: 268 seconds]
<catern> can I have some services on an old version and some services on a new one?
<clever> chessai: do you mean restarting one machine at a time, or pushing updates out to an already running machine?
<adisbladis[m]> samueldr: <3
<chessai> samueldr: clever: that seems like a good idea
<clever> catern: oops, ^^^
<clever> catern: ah, you may want to use packageOverrides to change the versions of the services
<catern> I don't actually use NixOps or NixOS so I need others to tell me what they support :)
<catern> clever: does that also work for NixOS/Ops-level configuration changes?
<clever> catern: in general, i would use an override to upgrade some services, rather then trying to mix things
<catern> clever: interesting
<catern> clever: so would you just keep overriding things selectively forever?
<catern> and eventually roll forward the base version?
<catern> essentially, you'd have the base version be old rather than have the base version be new?
<clever> catern: yeah, at some point, you would update the nixpkgs version, and delete some of the overrides
Arcaelyx has joined #nixos
<catern> hmmm.... that makes a lot of sense as a way to incrementally roll out software as well...
davidak has quit [Ping timeout: 240 seconds]
<catern> (to have an old base version and selective upgrades on top of it, and then once everything is upgraded, roll the base version forward)
<clever> catern: nixops also lets you trivially deploy a second copy of the entire cluster
<clever> catern: so you can pre-test a new nixpkgs on a staging cluster
aminechikhaoui has quit [Read error: Connection reset by peer]
<catern> clever: but what if I want to have different versions within a single cluster?
<dhess> this NixOps Hetzner backend test is crazy
<catern> is that discouraged, I guess?
aminechikhaoui has joined #nixos
<catern> duplicating the cluster is preferred?
<clever> catern: you can apply the overrides on a per-host basis
<catern> intriguing
Fannar has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<dhess> catern: another way to do this would be to split your network up into A/B (etc) and then you can use the exact same expressions with just a different <nixpkgs> for each
<dhess> I don't go quite so far as to have formal subsets of hosts, but I do occasionally only upgrade subsets of my network
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
<gchristensen> catern: I have a nixops patch I always use because I neeed this
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mmlb opened pull request #34991: elvish: add shellPath passthru (master...shellize-elvish) https://git.io/vAZ0o
NixOS_GitHub has left #nixos [#nixos]
<catern> ah, interesting
<dhess> gchristensen: oh nice
<catern> very cool
<dhess> even better
<dhess> NixOps seems a bit... neglected :(
<dhess> it's not broken, it just doesn't get a lot of love for the patches and issues.
Fannar has quit [Quit: leaving]
<gchristensen> its too complicated
klntsky has quit [Ping timeout: 255 seconds]
<gchristensen> I have another branch which deletes most of the nixops code :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #34992: albert: 0.14.14 -> 0.14.15 (master...albert-0.14.15) https://git.io/vAZ0M
NixOS_GitHub has left #nixos [#nixos]
klntsky has joined #nixos
<dhess> gchristensen: That may be. What I meant specifically is that I've personally witnessed quite a few patches that are ready to go but just sit waiting for a merge, presumably because the maintainers are stretched thin.
<dhess> and maybe the right thing to do would be to be a little more willing to pull things in the interest of forward progress and encouraging participation.
<gchristensen> yeah
<adisbladis[m]> I think gchristensen is on to something big. Mixing terraform and nixops sounds like a dream :)
<dhess> adisbladis[m]: yes! IOHK does this I think
<dhess> adisbladis[m]: I thought about it as well. I think I'm going to go with a Cloudformation wrapper instead of terraform
<gchristensen> I think it being so complicated makes it hard to be flexible, because it has to work for its big users, it is too complicated to thoroughly test making each change really scary
<dhess> there's a nice Haskell project for generating CF pipelines or whatever they're called
<gchristensen> making it stressful to merge PRs
<samueldr> leaving provisionning out of nixops may help a bunch
* samueldr still hasn't looked into nixops :S
<dhess> samueldr: ergh, that's like at least half of its value to me
<dhess> probably more than half
<samueldr> I mean, the implementation of the provisionning, but the declaration as nix is good
Supersonic has quit [Disconnected by services]
<samueldr> (I may not know enough nixops to make sense here)
<dhess> Without the provisioning, I think NixOps is mostly just a wrapper around ssh and some nixos-* commands.
Supersonic112 has joined #nixos
<clever> dhess: yeah, and you can use that directly, by setting it to the "none" backend
<clever> dhess: i manage 2 netbooks with that
Supersonic112 is now known as Supersonic
<gchristensen> dhess: I'd suggest you'd get better value out of something other than nixops (say: terraform) + a thin connector to nixops
<dhess> samueldr: I think you're on to something though. For example, a lot of the recent nixops commits have been dealing with AWS route53 stuff. It does feel like everything more than the basic "provision a VPS" stuff could be better left to things like terraform
<gchristensen> terraform's mindshare is just too big
<dhess> gchristensen: you kinda beat me to it there
<gchristensen> =)
<dhess> clever: sure, I use the none backend with about 20 hosts myself :)
<dhess> but I am trying to move most of that to EC2 instances, partly because the provisioning is just so useful.
<adisbladis[m]> gchristensen: And terraform supports a LOT more aws features
<clever> dhess: yeah
<gchristensen> adisbladis[m]: and gcp, and azure, and hetzner, and packet, and alicloud, and github, and digitalocean, and heroku, and pagerduty, and vmware, and cloudflare, and...
<dhess> gchristensen: adisbladis[m]: mostly agree, however there is something to be said for something that speaks Nix natively so that you can do everything in one language and is conceptually unified
<dhess> Gabriel Gonzalez had a very interesting comment to that effect recently re: Haskell app deployment in /r/haskell
<gchristensen> dhess: I agree
<dhess> there is a lot of friction in doing the OS and app provisioning in one language (Nix) and then needing to switch to a totally different mindset for Terraform or other tools
kelleyNif has quit [Quit: Leaving.]
<dhess> it's a tradeoff of expressivity vs. a more limited set of features that "just works"
kelleyNif has joined #nixos
<gchristensen> I think it'd be worth more to reduce that friction and use a powerful tool than move the friction to a not great tool
stqism has quit [Quit: Like 3 fire emojis lit rn 🔥🔥🔥]
<dhess> gchristensen: I think sticking with both is good. Many people's needs can be addressed by NixOps.
<gchristensen> yeah, and that is fair
kelleyNif has quit [Client Quit]
<gchristensen> nixops probably won't ever(short-term values of ever) lose some of its provisioning support
kelleyNif has joined #nixos
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0264c64ebb5 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
cdomigan has joined #nixos
<cdomigan> Any way to get quieter installs without all the curl download output?
<cdomigan> --no-build-output looks like what I'm after
stqism has joined #nixos
<dhess> gchristensen: if I were in charge I'd probably make sure NixOps could provision VPSes "everywhere," and very reliably; and for anything else just say, "You need to upgrade to/supplement with a more powerful tool."
stqism has quit [Client Quit]
<dhess> keep NixOps focused on the basics, the ones that most small teams will need.
<gchristensen> *calculates the bill* that'll be a dedicated, perpetual team of 2, please
stqism has joined #nixos
<dhess> it should probably just be part of NixOS, so that there's no question about how one should go about spinning up new NixOS instances
<clever> dhess: have you seen my kexec trick?
<dhess> gchristensen: hehehehehe
<adisbladis[m]> You could even make a small layer to convert nix to hcl ;)
<dhess> clever: I've seen a lot of people talking about it but I haven't actually needed it yet.
<gchristensen> Terraform doesn't even do that, their providers are built by the hosting companies
<clever> dhess: it can be used to almost trivially convert any VPS into nixos
<dhess> gchristensen: that's why I put "everywhere" in quotes. It would be the kind of thing where you prioritize by how big/accommodating the provider is.
<dhess> clever: you should roll it into NixOps!
<gchristensen> no he shouldn't
<gchristensen> because it isn't universal, it takes tweaks per host
<gchristensen> its complicated
stqism has quit [Client Quit]
<dhess> hey man I'm just going off the "almost trivially convert any VPS" quote :)
chessai has quit [Remote host closed the connection]
<gchristensen> it is almost trivial
kelleyNif has quit [Quit: Leaving.]
<gchristensen> but putting it in to nixops makes it much harder to tweak as necessary
<catern> I have no real interest in either nixops or terraform :) IMO, deployment/orchestration should be done in a full-fledged programming language, to manage all the runtime state (on top of Nix, of course)
stqism has joined #nixos
<dhess> catern: but that's what NixOps is, or aims to be.
kelleyNif has joined #nixos
<catern> dhess: the Nix language is not good enough :)
badi has quit [Ping timeout: 248 seconds]
<dhess> catern: isn't the fact that NixOps can already deploy/orchestrate so many backends an existence (dis)proof of your statement?
<catern> dhess: isn't the fact that you were just discussing getting rid of large parts of NixOps a disproof of *your* statement? :)
kelleyNif has quit [Client Quit]
kelleyNif has joined #nixos
badi has joined #nixos
<dhess> No, I don't think it is.
stqism has quit [Client Quit]
<dhess> It can be done. There just aren't enough team members to pull it off.
<gchristensen> I agree
<dhess> I don't think it has anything to do with Nix the language.
pie___ has quit [Ping timeout: 248 seconds]
elninja44 has quit [Remote host closed the connection]
<Profpatsch> hyper_ch: Now I am. :)
stqism has joined #nixos
<Profpatsch> gchristensen: Nice! Hydra threw out their build streaming support, so maybe we could enable that again with stomp.
<gchristensen> Profpatsch: its a bit complicated because it requires rabbitmq
<Profpatsch> Or another STOMP implementation.
<Profpatsch> Maybe there’s a perl module. :P
<Profpatsch> Uh, it would be too simple if there were like one STOMP module on CPAN … https://metacpan.org/search?q=stomp
<dhess> Profpatsch: gchristensen: do you mean streaming of the logs so that you can watch them in a browser?
<Profpatsch> dhess: yeah
<dhess> oh god plz plz plz
<Profpatsch> Just a thought, older hydra versions had that feature.
<Profpatsch> But it didn’t survive some changes apparently.
<dhess> yeah, I went looking for it just after I got mine running
<dhess> couldn't figure out where it went as I saw URLs referencing it
jrolfs has quit [Ping timeout: 265 seconds]
<gchristensen> iirc it was sort of fake support for tailing
<Profpatsch> exactly.
<Profpatsch> Worked well enough while it lasted.
<gchristensen> and I think it was disabled because of performance problems
<dhess> fake or not I would take it :)
jrolfs has joined #nixos
<gchristensen> but I don't know
<dhess> gchristensen: yes it seems that was true. I think it was clever who found the commit
<dhess> when I was asking about it like a month ago
<gchristensen> ah
<gchristensen> bed time.
<dhess> The main problem with Hydra is that it's so good, you end up putting everything in it and then half your day, it seems, is spent refreshing build logs
stqism has quit [Quit: Like 3 fire emojis lit rn 🔥🔥🔥]
<gchristensen> not often I hear people praising it for being so good. I'm glad you think so :D
stqism has joined #nixos
<dhess> I absolutely love it. It has changed the way I develop software!
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs has quit [Ping timeout: 240 seconds]
stqism has quit [Client Quit]
stqism has joined #nixos
mizu_no_oto has joined #nixos
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
<hyper_ch> Profpatsch: how to use rss2email? it seems it's not configured as service? can I just add feeds like it says on the github wiki? and I need to configure some mail sending?
kelleyNif has quit [Client Quit]
kelleyNif has joined #nixos
<Profpatsch> hyper_ch: Hah, I never got around to actually using that thin.
<Profpatsch> g
<Profpatsch> Is still on my todo-list
marusich has joined #nixos
mbrgm has quit [Ping timeout: 248 seconds]
<hyper_ch> Profpatsch: because wiki says create a new default email to send entries to and then add feeds... so i guess it has to store cnfig somewhere
<hyper_ch> and not sure if that can be done by default just like that
<Profpatsch> hyper_ch: Sure, since it has to remember which entries already exist.
<hyper_ch> "By default, rss2email uses sendmail (or an equivalent) to send outgoing email. If you don't have such a program installed, or simply prefer to use SMTP directly, edit the configuration file and fill in your outoing email server's details:"
<Profpatsch> Depends on how you want to use it.
<hyper_ch> since by default I can't write to /etc then I can't really edit the config file, right? :)
<hyper_ch> I'll have to test it
<Profpatsch> hyper_ch: Look at the manpage
<hyper_ch> manpage of?
<Profpatsch> It uses $XDG_CONFIG_HOME
<Profpatsch> rss2email
<hyper_ch> ah :)
<hyper_ch> I see
<hyper_ch> ha... that sounds like it makes it easier
<Profpatsch> Oh shit
bpa has quit [Ping timeout: 248 seconds]
<hyper_ch> ?
<Profpatsch> I just read the AUTHOR part, apparently the first version was done by Aaron Swartz
mbrgm has joined #nixos
<Profpatsch> RIP my dude
<hyper_ch> :(
<dhess> :(
<hyper_ch> so, new stargate is out
<hyper_ch> I'll test rss2email then
<hyper_ch> Profpatsch: thx for packaging... how comes you packaged it if you don't use it?
<Profpatsch> hyper_ch: Because I wanted to use it, but haven’t come around to actually setting it up yet.
jrolfs has joined #nixos
<hyper_ch> :) well, thx
jrolfs has quit [Ping timeout: 256 seconds]
nuncanada has quit [Ping timeout: 240 seconds]
<hyper_ch> and i think one day I also have to have a look into home manager
cdomigan has quit [Quit: Page closed]
<Profpatsch> I’ve been thinking about that a lot, and I’m pretty sure at least for generating static files, a combination of nix, GNU stow and dhall is going to work wonders.
<Profpatsch> So you obviously use nix to build a store path that gives you a folder you can then deploy with stow(1r
<Profpatsch> *stow(1)
<Profpatsch> But of course you want to avoid putting user secrets into the nix store (or nix files for that matter).
<hyper_ch> Profpatsch: you only want to avoid using that if you let other people touch your notebook and servers :)
<Profpatsch> So what you do is you make the configs you generate into dhall functions (as in: data with typed holes in it) and give the function its arguments when you build the final thing (outside of nix).
kelleyNif has quit [Quit: Leaving.]
<hyper_ch> sounds good
<Profpatsch> Given dhall’s text interpolation features I’m not even sure you need nix in the equation?
<hyper_ch> (/me has no idea.... /me is just a normal user)
<Profpatsch> Ah yes, if you want to reference executables and stuff from nixpkgs you’d certainly need nix.
<hyper_ch> so, quiterss allowed me to easily export the feeds to a file which makes it simple to get them again
<hyper_ch> on the email account that I have yet to create that receives the notices, I can then probably easily use sieve to sort mails in to different foldersw
<hyper_ch> so that my current categories as in quiterss are still maintained
jrolfs has joined #nixos
<hyper_ch> so, gotta get to work now
<Profpatsch> hyper_ch: I’d hope it to be able to set a mail header.
<Profpatsch> So I’d hope to be able to give rss2mail a tag string or list and have that attached to the mails it sends, maybe as X-RSS-Tags
<Profpatsch> Maybe I’ll have to patch the script.
<Profpatsch> Also I’d want to be able to give & reload the config declaratively, so that it can be integrated into a systemd module.
<Profpatsch> But haven’t taken a closer look yet.
nuncanada has joined #nixos
jrolfs has quit [Ping timeout: 265 seconds]
pkill9 has quit [Ping timeout: 256 seconds]
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 252 seconds]
marusich has quit [Ping timeout: 240 seconds]
<dnovosel> Anyone using dropbox here? When I try and activate it, I get essentially a version too old message. I use two-factor authentication, I'm not sure if that makes a difference.
marusich has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
schoppenhauer has quit [Ping timeout: 255 seconds]
schoppenhauer has joined #nixos
jrolfs has joined #nixos
marusich has quit [Ping timeout: 248 seconds]
c0ffee152 has quit [Quit: Lost terminal]
pkill9 has joined #nixos
Ralith_ has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
Arcaelyx has joined #nixos
Arcaelyx_ has quit [Ping timeout: 265 seconds]
nuncanada has quit [Ping timeout: 264 seconds]
dnovosel has quit [Quit: WeeChat 1.9.1]
aarvar has quit [Ping timeout: 240 seconds]
dnovosel has joined #nixos
ashijit has joined #nixos
dnovosel has quit [Client Quit]
Rusty1_ has quit [Quit: Konversation terminated!]
dnovosel has joined #nixos
hamishmack has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
xcrot has joined #nixos
hakujin has joined #nixos
ashijit has quit [Ping timeout: 240 seconds]
ashijit has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
xcrot has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vAZVV
<NixOS_GitHub> nixpkgs/staging 79e7f7a Franz Pletz: radvd service: fix due to systemd upgrade...
NixOS_GitHub has left #nixos [#nixos]
Guanin has quit [Ping timeout: 255 seconds]
ashijit has quit [Ping timeout: 256 seconds]
spear2 has joined #nixos
Guanin has joined #nixos
vidbina has joined #nixos
rauno has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
vvvvo has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vvvvo> What set of nixpkgs am I using if I installed nix on macos? `nix-channel --list` suggests I'm not subscribed to any channels. Am I pinned to some particular version of the nixpkgs repo based on when I installed?
rauno has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
ssmike has joined #nixos
<vvvvo> Ah, I guess it was because I had to log into root in a particular way to see its list of channels
<clever> vvvvo: apple is being naughty, "sudo nix-channel --list" uses the wrong $HOME
<clever> but "sudo -i" sets the right HOME=/root/, then nix-channel --list works
hyper_ch2 has joined #nixos
klntsky has quit [Ping timeout: 255 seconds]
JosW has joined #nixos
* fearlessKim[m] sent a long message: fearlessKim[m]_2018-02-15_07:00:46.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/GtczuqlkRhxRqVTHXPaWOyvR>
hiroshi has quit [Ping timeout: 260 seconds]
aminechikhaoui has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0d20bf0287c (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ssmike1 has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
ssmike has quit [Ping timeout: 248 seconds]
ssmike1 is now known as ssmike
<clever> fearlessKim[m]: i think the problem is writing to the local skmsg.log
pie___ has joined #nixos
reinzelmann has joined #nixos
<fearlessKim[m]> clever: yeah the file had only read access I have no idea why. seems fixed now
<clever> -r-------- 1 root root 0 Feb 11 03:10 /proc/kmsg
<clever> fearlessKim[m]: i suspect scp preserved the permissions of the original "file" when you first copied it
<clever> which then locked itself out on the 2nd copy
<fearlessKim[m]> clever: that must be it o/
aminechikhaoui has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vAZri
<NixOS_GitHub> nixpkgs/master 77fead0 Herwig Hochleitner: clojure: 1.9.0.273 -> 1.9.0.326
NixOS_GitHub has left #nixos [#nixos]
aarvar has joined #nixos
alex`` has joined #nixos
MercurialAlchemi has joined #nixos
<pmeunier> Has anyone tried to package Mist (Ethereum browser) for NixOS?
<pmeunier> I've seen closed PRs about it.
leat has quit [Ping timeout: 276 seconds]
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to openssl-1.1: https://git.io/vAZoi
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/openssl-1.1 9c63261 Vladimír Čunát: Merge branch 'staging' into openssl-1.1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34992: albert: 0.14.14 -> 0.14.15 (master...albert-0.14.15) https://git.io/vAZ0M
NixOS_GitHub has left #nixos [#nixos]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34984: Adding @0x4A6F to maintainers.nix (master...0x4A6F) https://git.io/vAZLH
NixOS_GitHub has left #nixos [#nixos]
periklis has joined #nixos
asuryawanshi has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
<dhess> anyone around who uses WireGuard with NixOS?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bkchr opened pull request #34993: qt5: 5.10.0 -> 5.10.1 (master...qt_5_10_1) https://git.io/vAZKc
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34936: kde_frameworks: 5.42 -> 5.43 (master...kde_frameworks_5_43) https://git.io/vAO7h
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jokogr opened pull request #34994: openvswitch: 2.5.2 -> 2.5.4 (master...u/openvswitch-2.5.4) https://git.io/vAZK5
NixOS_GitHub has left #nixos [#nixos]
<makefu> dhess: me, yes
dan_b has joined #nixos
Tucky has joined #nixos
<hyper_ch2> so, I think I setup rss2email... now I have have to wait for new entries
<etu> hyper_ch2: I go the other way around and use killthenewsletter to get emails as rss :D
<hyper_ch2> etu: what reader do you use?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas closed pull request #34791: boot.kernel.features: add nixos option for setting kernel features (master...nixos-kernel-features) https://git.io/vALCV
NixOS_GitHub has left #nixos [#nixos]
<etu> I've migrated from ttrss to freshrss a few months ago, it was a good upgrade :)
rauno has joined #nixos
<etu> But before that I've used ttrss since google reader shut down
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34827: rtl8812au: 4.3.20 -> 5.2.20_25672.20171213 (master...rtl8812-5.2.20) https://git.io/vAtat
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> etu: nox couldn't find freshrss
klntsky has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 394a881 Andrew Dunham: syncthing: Add discovery/relay servers, improve build (#34831)...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAZ6Q
zzamboni has quit [Remote host closed the connection]
zzamboni1 has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
<pjan> Is there a way to get the current version of the current haskell compiler in nixpkgs. Right now pkgs.haskellPackages is equivalent with pkgs.haskell.packages.ghc822. I was wondering whether the `ghc822` value can be extracted from somewhere (so that it is being updated when the default version is being updated as well)?
jrolfs has joined #nixos
klntsky has quit [Ping timeout: 255 seconds]
rauno has joined #nixos
ssmike has quit [Ping timeout: 240 seconds]
ssmike1 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kolloch opened pull request #34996: restic: add completions and man page to package (master...restic) https://git.io/vAZim
NixOS_GitHub has left #nixos [#nixos]
jrolfs has quit [Ping timeout: 248 seconds]
zzamboni1 has quit [Ping timeout: 248 seconds]
ssmike1 is now known as ssmike
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to release-17.09: https://git.io/vAZil
<NixOS_GitHub> nixpkgs/release-17.09 9f815c4 Daniel Fullmer: rtl8812au: 4.3.20 -> 5.2.20_25672.20171213...
<NixOS_GitHub> nixpkgs/release-17.09 adae2b6 Jörg Thalheim: Merge pull request #34995 from Mic92/rtl8812au...
NixOS_GitHub has left #nixos [#nixos]
rauno has joined #nixos
asuryawanshi has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
zzamboni has joined #nixos
vidbina has quit [Ping timeout: 260 seconds]
leat has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
<etu> hyper_ch2: It's web based
<etu> hyper_ch2: I just put it on a server with a webserver, php and postgres
<hyper_ch2> I don't like postgres :(
<etu> It can use mysql or sqlite as well
<srhb> pjan: I don't understand what you mean by updated.
vidbina has joined #nixos
<Havvy> hyper_ch: Why don't you like Postgres?
hotfuzz has quit [Read error: Connection reset by peer]
schoppenhauer has quit [Ping timeout: 240 seconds]
<etu> I wish I could work with postgres instead of mysql-based things :/
yegortimoshenko has quit [Ping timeout: 255 seconds]
<srhb> pjan: Do you mean something like nix-instantiate '<nixpkgs>' --eval -A haskellPackages.ghc.version
<srhb> ?
hotfuzz has joined #nixos
jrolfs has joined #nixos
periklis has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
<pjan> srhb: updated - if the default version in nixpkgs gets bumped
roberth has joined #nixos
<pjan> I'm looking for the `ghc822` string (or ghc802 one before), the `haskellPackages.ghc.version` returns 8.2.2
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34996: restic: add completions and man page to package (master...restic) https://git.io/vAZim
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAZPZ
<NixOS_GitHub> nixpkgs/master aaeeff6 Jörg Thalheim: Merge pull request #34996 from kolloch/restic...
<NixOS_GitHub> nixpkgs/master 6760f6d Peter Kolloch: restic: add completions and man page to package
NixOS_GitHub has left #nixos [#nixos]
schoppenhauer has joined #nixos
<srhb> pjan: It's defined in pkgs/top-level/all-packages.nix as haskellPackages = haskell.packages.ghc822 ...
<pjan> srhb: that one I already got. I was hoping there was a `haskellCompiler = "ghc822"` somewhere
jrolfs has quit [Ping timeout: 240 seconds]
Neo-- has joined #nixos
asuryawanshi has joined #nixos
zzamboni has quit [Remote host closed the connection]
zzamboni1 has joined #nixos
vidbina has quit [Ping timeout: 276 seconds]
<Phlogistique> Hi
<Phlogistique> I'm trying to cross-compile a Linux stdenv from MacOS
<Phlogistique> I read https://nixos.org/nixpkgs/manual/#chap-cross and tried running:
<Phlogistique> nix-build -E '(import <nixpkgs> { crossSystem = { system = "x86_64-darwin"; }; }).stdenv'
<adisbladis[m]> Wohoo 😆 I can build my work project with https://github.com/adisbladis/pnpm2nix/ <3
<Phlogistique> but that fails with error: infinite recursion encountered, at /nix/store/ry607y6dbna2449mzr6fj0gwmiwlvmfz-nixpkgs-18.03pre127876.9553ca5bb6c/nixpkgs/pkgs/top-level/all-packages.nix:6689:53
<Phlogistique> did I do anything wrong?
<clever> Phlogistique: do you want to cross-compile, or just use a remote builder of the right arch?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rick68 opened pull request #34997: softether: 4.20 -> 4.25 (master...softether) https://git.io/vAZPh
NixOS_GitHub has left #nixos [#nixos]
<srhb> pjan: No, that's the one place it is defined. The closest you'll get is the ghc.version you found already.
<Phlogistique> clever: sorry; I'm trying to native-compile a cross-compiler
<clever> Phlogistique: also, i think you have crossSystem backwards, it should be set to linux
<Phlogistique> ...indeed
zzamboni1 has quit [Quit: Leaving.]
<Phlogistique> now I get Package ‘glibc-2.26-131’ in /nix/store/ry607y6dbna2449mzr6fj0gwmiwlvmfz-nixpkgs-18.03pre127876.9553ca5bb6c/nixpkgs/pkgs/development/libraries/glibc/default.nix:100 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<Phlogistique> does that mean that it's tryng to compile GLibc for MacOS?
<Phlogistique> trying
zzamboni has joined #nixos
<clever> Phlogistique: yeah
Ubercow has quit [Quit: Ubercow]
periklis has joined #nixos
spear2 has quit [Quit: Leaving]
<dhess> makefu: hi, sorry, had to step afk for a bit. Still around?
Guest5624 has quit [Ping timeout: 256 seconds]
<makefu> sure
kier has quit [Ping timeout: 240 seconds]
<dhess> makefu: do you have this problem where wg0 (or whatever interface name you're using) fails to start properly on boot, and it needs a restart to get going ?
jrolfs has joined #nixos
<makefu> dhess: mhhh at least not on the server where i use it. maybe it tries to initialize before the underlying network is online?
<makefu> i had a similar issue on openwrt afair
<dhess> makefu: are you connecting to an endpoint, or is it set up for roaming?
<makefu> i have both server and client side running with nixos. not sure what exactly you mean by roaming.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yuriaisaka opened pull request #34998: cpp-gsl: init at unstable-2018-02-15 (master...pr-cpp-gsl-init) https://git.io/vAZ1k
NixOS_GitHub has left #nixos [#nixos]
<dhess> makefu: what I mean is, is your peers.foo.endpoint set?
knupfer has joined #nixos
<dhess> networking.wireguard.interfaces.wg0.peers.foo.endpoint
<makefu> ahhh
ThatDocsLady has joined #nixos
<dhess> actually peers is just a list, not an attrset, but you get my meaning
grulli has joined #nixos
grulli is now known as Guest59526
<dhess> makefu: config is even better, thanks!
<makefu> the x config is my laptop, the gum config is a vps
roberth has quit [Ping timeout: 240 seconds]
<dhess> makefu: right, hence no endpoint set on the server, that's what I was talking about. So your server wg0 interface just starts right up with no issues, eh?
<makefu> exactly
<dhess> cool thank you
<hyper_ch2> Profpatsch: it hates me :)
civodul has joined #nixos
fragamus has joined #nixos
<hyper_ch2> dhess: I have that problem as well.... what I did was create a cron that checks every 5 min if the wg interface is up
alex`` has joined #nixos
<Profpatsch> hyper_ch2: How so?
<hyper_ch2> it only happens though on two machines - the ones that use bridge networking via systemd
<hyper_ch2> Profpatsch: it looks for /usr/sbin/sendmail
<Profpatsch> Ok, now that’s a packaging mistake.
<dhess> hyper_ch2: Are you using NixOps to deploy the WireGuard private keys or pre-shared keys, by any chance?
<hyper_ch2> cause: [Errno 2] No such file or directory: '/usr/sbin/sendmail': '/usr/sbin/sendmail'
<hyper_ch2> Profpatsch: that's why I highlighted you :)
<hyper_ch2> (just setup defaultMailServer now)
periklis has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
<hyper_ch2> dhess: no, never used nixops.... I just create the key and put them into the config
<Profpatsch> Hm, sendmail normally is provided by your MSA
<hyper_ch2> (or rather my secrets file)
<Profpatsch> So msmtp in my case
<hyper_ch2> MSA?
atrx has joined #nixos
<dhess> hyper_ch2: OK, and are you using any IPv6 addrs with the WireGuard interface?
asuryawanshi has joined #nixos
<hyper_ch2> I have not declared one yet on that server... now I did and setup networking.defaultMailServer which find sendmail
<hyper_ch2> but not in /usr/sbin/
<hyper_ch2> dhess: no, I don't believe in ipv6
<dhess> hyper_ch2: ok, thanks.
<hyper_ch2> the only two machiens I have issues with are the ones with a bridge
<hyper_ch2> for qemu
<hyper_ch2> bridge is setup by systemd....
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos
silver has joined #nixos
ma27 has joined #nixos
<dhess> hyper_ch2: I'm actually trying to figure this out to make a NixOS test work, so a cron job or similar doesn't help in this case. Thanks though.
<makefu> hyper_ch2: how about you simply add Restart=always;RestartSec = 10; to the systemd service?
MP2E has quit [Remote host closed the connection]
<hyper_ch2> makefu: which systemd server?
<hyper_ch2> service?
<Profpatsch> hyper_ch2: The manual doesn’t list configuration options, but take a look at
<makefu> wireguard-<iterfacename>.service
<makefu> this is at least what the wgStartFix script is using, no?
<Profpatsch> I’m actually not entirely sure how I should patch that (except 's|/usr/bin/sendmail|sendmail')
<hyper_ch2> makefu: yes it's using that
<hyper_ch2> Profpatsch: I have now /run/wrappers/bin/sendmail
<Profpatsch> hyper_ch2: See https://github.com/rss2email/rss2email
<Profpatsch> The README is pretty exhaustive.
<makefu> hyper_ch2: then you should do the following instead of your script: systemd.services.wireguard-<interface>.serviceConfig = { Restart = "always"; RestartSec = "10" };
<hyper_ch2> Profpatsch: but it still tries to use a sendmail that isn't where it expects it to be
<makefu> hyper_ch2: maybe not Restart=always, i think it will exit gracefully if everything worked, so it should be "on-failure"
<hyper_ch2> makefu: not really sure where you want to add what
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ca7b1e64d78 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
thc202 has joined #nixos
<makefu> hyper_ch2: right now you have a script which starts the wireguard services if they crash via your script. however you could use systemd features to keep the service running instead. this is what i mean
Reventlov has joined #nixos
<Reventlov> Oh hi.
magnetophon has joined #nixos
klntsky has joined #nixos
<sphalerite_> pjan: pkgs.ghc
<sphalerite_> I think?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nico202 opened pull request #35000: non: 2017-03-29 -> 2018-02-15 (master...non) https://git.io/vAZDA
NixOS_GitHub has left #nixos [#nixos]
rauno has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
sigmundv has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
ma271 has joined #nixos
ma27 has quit [Remote host closed the connection]
atrx has quit [Read error: Connection reset by peer]
<dhess> yay, wireguard issue resolved.
<dhess> Operator error.
roberth has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
rauno has joined #nixos
<pmeunier> Hi! How can I specify an attribute that depends on the presence of another attribute (possibly from another set)?
<pmeunier> inherit doesn't seem to work if the attribute is missing from the other set
<LnL> you can use or or the ? operator
<LnL> foo = attrs.foo or 42
klntsky has quit [Ping timeout: 255 seconds]
<dhess> PR #35000. That should win some kind of prize or something
<dhess> ^ check my trips
<makefu> ISSUE ENDS WITH TRIPLES AND NIXOS WILL BE LINUX DISTRO ON THE DESKTOP
<dhess> hahahahah, high five, makefu
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/77fead01814 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
Guest59526 is now known as grulli
grulli has quit [Changing host]
grulli has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34973: zathura: make compatible with darwin (master...zathura) https://git.io/vAGdC
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vAZ9R
<NixOS_GitHub> nixpkgs/master b484164 Pallav Agarwal: zathura: Make compatible with darwin
<NixOS_GitHub> nixpkgs/master c0fcdb5 Pallav Agarwal: Fix optional gtk-mac-integration
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4857b14 Jörg Thalheim: Merge pull request #34973 from pallavagarwal07/zathura...
periklis has joined #nixos
<pmeunier> LnL: thanks, but that would set the "foo" attribute in my set. What if I want it to be set if and only if attrs.foo is set?
<LnL> oh like that
klntsky has joined #nixos
<LnL> {} // stdenv.lib.optionalAttrs (attrs ? foo) { inherit (attrs) foo; }
periklis has quit [Ping timeout: 255 seconds]
sirkha has quit [Ping timeout: 240 seconds]
<Profpatsch> hyper_ch2: Yeah, but
<Profpatsch> Did you look at config.py
sirkha has joined #nixos
<pmeunier> LnL: thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1872: monitor-fds: Fix on macOS. (master...macOS-poll-fix) https://git.io/vAG6k
NixOS_GitHub has left #nixos [#nixos]
jensens has joined #nixos
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/adae2b6bc8f (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
Neo-- has quit [Ping timeout: 240 seconds]
<LnL> \o/
<LnL> I suspect that’s going to help with hydra builders getting stuck
pkill9 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35000: non: 2017-03-29 -> 2018-02-15 (master...non) https://git.io/vAZDA
NixOS_GitHub has left #nixos [#nixos]
<ij> Is master going to become the 18.something branch at one point?
kelleyNif has joined #nixos
dan_b has quit [Ping timeout: 260 seconds]
<Profpatsch> ij: master is always on the next release.
<Profpatsch> Ah, you mean the freeze?
<Profpatsch> Normally 2 or 3 months before the next release, yes.
<Profpatsch> Announcement mail should go to nix-devel when that happens.
__monty__ has joined #nixos
<ij> Oh, so the branch is created, but it's going to receive only bugfixes for a couple of months until it works?
<ij> Cool, cool, cool.
MercurialAlchemi has quit [Ping timeout: 255 seconds]
ZoomZoomZoom has joined #nixos
freeman42x]NixOS has joined #nixos
iyzsong has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
iyzsong has joined #nixos
simukis has joined #nixos
ZoomZoomZoom has joined #nixos
jensens has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/adae2b6bc8f (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
jtojnar has quit [Ping timeout: 256 seconds]
ma271 has quit [Ping timeout: 276 seconds]
ma272 has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NinjaTrappeur opened pull request #35001: fixedsys-excelsior: init at 3.00. (master...excelsior) https://git.io/vAZNF
NixOS_GitHub has left #nixos [#nixos]
<Orbstheorem[m]> Hello, I want to run `pip install gpg` inside `pipenv shell`, but it requires `gpg-error-config`, I can find it using nix-locate, but it's in `libgpgerror.dev`, so, when I install libgpgerror it does not appear in my library path
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] layus opened pull request #35002: bazel: 0.9 -> 0.10.1 (master...bazel-update) https://git.io/vAZAe
NixOS_GitHub has left #nixos [#nixos]
iyzsong has joined #nixos
Myrl-saki has joined #nixos
iyzsong has quit [Ping timeout: 276 seconds]
orivej has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to release-17.09: https://git.io/vAZAy
<NixOS_GitHub> nixpkgs/release-17.09 b2e7bb5 Raitis: terraform: add the version component to terraform provider paths (#34497)...
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
iyzsong has joined #nixos
<Orbstheorem[m]> how can I have `gpg-error-config` appear in my system path?
Neo-- has joined #nixos
hakujin has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
hakujin has quit [Ping timeout: 256 seconds]
chrios_ has quit [Ping timeout: 248 seconds]
chrios_ has joined #nixos
<hyper_ch2> makefu: I tried to fix this via systemd but couldn
iyzsong has joined #nixos
<hyper_ch2> Profpatsch: there is no config.py in the user folder
xcmw has joined #nixos
kier has joined #nixos
<Profpatsch> hyper_ch2: It’s in the source code.
MercurialAlchemi has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
<Profpatsch> hyper_ch2: You can fetch that with nix-build -A rss2email.src
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #35004: rss2email: add docs and code for running tests (master...rss2mail-docs) https://git.io/vAZh6
NixOS_GitHub has left #nixos [#nixos]
<Profpatsch> hyper_ch2: ^ This PR adds a doc output which also contains the README
<Profpatsch> fwiw I also patched out the sbin path.
<Profpatsch> Not sure if that picks up sendmail from PATH correctly though.
hiroshi has joined #nixos
pie___ has quit [Ping timeout: 255 seconds]
<srk> anyone running their own cache (either as a mirror or full hydra building nixpkgs)?
<__monty__> srk: I proxy the nix cache.
kelleyNif has quit [Quit: Leaving.]
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
klntsky has quit [Ping timeout: 255 seconds]
raynold has quit [Quit: Connection closed for inactivity]
kelleyNif has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
<srk> hmm, think I'll try setting up independent hydra
<srk> are there declarative configs used on hydra.nixos.org?
<clever> srk: any declarative project will have a jobset called .jobsets
<clever> srk: the config for that jobset comes from the spec.json hydra was pointed at
jtojnar has joined #nixos
<clever> srk: i dont see such a jobset on the random nixos.org projects i checked
<srk> true!
<srk> nvm, I'll try to cook something
stranger___ has joined #nixos
fxr has joined #nixos
simukis has quit [Quit: simukis]
<Profpatsch> huh, gchristensen, is ofborg now building PRs by maintainers without mention? https://github.com/NixOS/nixpkgs/pull/35004
<clever> srk: https://github.com/cleverca22/hydra-configs in here is the spec.json for nearly every project on my own hydra
<clever> srk: the dummy json files in the root also let you just nix-build the default.nix's for testing, to preview the json hydra will be using
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch closed pull request #35004: rss2email: add docs and code for running tests (master...rss2mail-docs) https://git.io/vAZh6
NixOS_GitHub has left #nixos [#nixos]
* clever heads back off to bed
ZoomZoomZoom has quit [Read error: Connection reset by peer]
EG^ has joined #nixos
ZoomZoomZoom has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
<srk> clever: ah, cool. I'm already using not-os part of that. btw I have a declarative netboot server configuration. a module that generates tftp root, httpd dir with signatures and also a ipxe script
<srk> *an
<srk> needs few finishing touches and I'll push that to git
<srk> forgot where I've got pxelinux.0 from..
<clever> main issue with automating even the signing, is that your private keys wind up in the binary cache, and hydra will share them with the world
taktoa has joined #nixos
<clever> [clever@amd-nixos:~]$ nix-build '<nixpkgs>' -A ipxe --arg config '{}'
<clever> srk: this is where i get ipxe from
<srk> hmm, but which one is pxelinux.0
<clever> that is just a default name
<clever> ipxe.dsk ipxe.iso ipxe.lkrn ipxe.usb undionly.kpxe undionly.kpxe.0
<clever> oh these, .dsk is an MBR formatted disk image
<clever> .iso is an iso9660 cdrom image
<clever> .lkrn acts like a linux kernel, for use with bootloaders
<clever> .usb is another mbr image, but with usb drivers included
<clever> and the last 2 are for actual network booting
<srk> undionly.kpxe.0: symbolic link to undionly.kpxe
<clever> and you can configure the dhcp server to use whatever file you want
<srk> I see
<clever> oh, and i remember now, pxelinux.0 is an entirely different program/package
<clever> thats a much dumber network boot loader
<srk> aaaah
<stranger___> hey is it possible to somehow prefetch dependencies from user scripts which use nix-shell shebang with each system rebuild?
<srk> I use it to chainload ipxe
<clever> pxelinux.0 supports a very basic config file
<srk> not sure if it's even needed
<clever> while ipxe has an entire scripting language
<clever> ive put password prompts and signature checking into my ipxe scripts
<srk> ah yah, I need to chainload cause I don't want to reflash servers
<srk> yeah, I'm using that in vpsadminos :)
<clever> here is an entirely self-contained netboot server, in a single nixos module
<clever> complete with nat, lol
<clever> the original use for this, was to install it onto my old laptop
fxr has quit [Ping timeout: 255 seconds]
<srk> ah, cool
<clever> it would then configure NAT, with the wifi as the 'internet' side, and the ethernet jack as the 'local' side
<clever> and it would run nginx/dhcp/tftp on the ethernet jack
<clever> plug anything in, netboot, and it just loads a nixos installer
jtojnar has quit [Quit: jtojnar]
<clever> and the NAT gives you wifi via the old laptop wifi
jtojnar has joined #nixos
<clever> srk: the process starts with the dhcp config, line 69 will fail the match, and it will instruct the bios to download the file on line 72
<clever> srk: it then connects to the tftp configured on line 79, which uses the directory made on 19
<srk> right, I don't want to generate dhcp but I'll put mac case into generated ipxe script to achieve the same functionality
<clever> ipxe will then re-query the dhcp server, this time with the user-class set to "iPXE", causing the if statement to flip the other way
<clever> so now ipxe is told to load the filename on line 70
fxr has joined #nixos
<clever> which is the "php" script defined on line 25-28
<clever> the code i was copying had an actual php script, with a switch/case statement, to provide different configs based on the MAC
<clever> and line 27 instructs ipxe to load the image that comes from nixos, via modules/installer/netboot/netboot-minimal.nix
<srk> PoC of mac checking in ipxe, doesn't yet allows defining mac / image pairs
<clever> that nixos image also includes the justdoit script on line 12
<clever> so you can login and run "justdoit" to wipe the hdd and install nixos
<srk> justdoit is cool :D
<clever> srk: you could probably also do that stuff with server-side scripting, one sec
ZoomZoomZoom has quit [Read error: Connection reset by peer]
<clever> srk: at one point, i was network booting my gentoo laptop via this script, to run nixos on it without wiping the drive
ZoomZoomZoom has joined #nixos
<clever> srk: the really fun part, is that the sanboot command, hijacks the bios routines for reading the local hdd
<clever> srk: so when grub tries to read the local hdd via standard bios routines, it winds up reading an iscsi image!
<clever> grub has zero clue its network booting, lol
<clever> its a totally standard MBR partition table with grub in the MBR, stored in a file on an iscsi server, lol
<Reventlov> Hi
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Reventlov> How hard would it be to create a package for ns-3 https://www.nsnam.org/wiki/Installation#Linux ? I'm considering trying, but as I'm not a casual user of nix, I wonder
<clever> srk: the iscsi-boot.nix module is also pretty crazy, i modified what nixos supports in fileSystems
coot has joined #nixos
<Reventlov> (ns-3 is a pain in the back to use already)
<clever> srk: so you just set fileSystems."/".iscsi = { enable = true; host = "foo"; lun = "bar"; };
EG^ has quit [Ping timeout: 260 seconds]
<clever> Reventlov: start with just a basic derivation like this, paste in the right url to its source, then run nix-build and see what fails first: https://gist.github.com/cleverca22/06ca28c95083d564cad827b09f3a2a89
Synthetica has joined #nixos
xcmw has joined #nixos
<srk> clever: cool!
<Reventlov> clever: Ok, will try. Thanks.
<clever> srk: it also needs the more standard fileSystems things as well, like the uuid and type
<clever> srk: and all of that was written before the initrd had proper networking support, so the ip stuff is a bit of a hack
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
EG^ has joined #nixos
lord| has quit [Quit: WeeChat 2.0.1]
Drakonis has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
jluttine_ has quit [Quit: WeeChat 2.0]
jluttine has joined #nixos
<infinisil> Reventlov: Damn, that's a lot of dependencies for different functionalities, it's not a simple thing to package nicely
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/gcc-7 b1916b4 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/staging' into gcc-7...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to gcc-7: https://git.io/vAnT1
coot has quit [Quit: coot]
<xnaveira[m]> so where would be a place to put eval "$(ssh-agent -s)" in order to have the ssh keys agent available in different sessions open from the window manager?
<makefu> xnaveira[m]: sessionCommands
<makefu> ah no, for the shell you should put it ....
seanparsons has quit [Read error: Connection reset by peer]
<makefu> i added gpg-connect-agent in programs.<shell>.interactiveShellInit
<makefu> there is some info about gpg-agent+ssh at https://nixos.org/nixos/manual/release-notes.html (search for gpg). the info may be a great addition for https://nixos.wiki
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b2e7bb5ee80 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
seanparsons has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzamboni has quit [Quit: Leaving.]
alexteves_ has joined #nixos
<clever> [clever@amd-nixos:~]$ gist -p .xsession
<clever> makefu: this is how mine is setup
coot has joined #nixos
<clever> makefu: and now that i look closer, i think thats disabled?, and its not even doing anything...
<clever> now i'm not even sure how/why it works at all, lol
<clever> not entirely sure its off though, the signs are muddy
<xnaveira[m]> I think that programs.ssh.startAgent will work for me, i'm going to test it
<clever> if you just want plain ssh-agent, that should be fine
<clever> but its too dumb to discover ~/.ssh/id_rsa on its own, and ask for the passphrase on-demand
<clever> so you have to manualy ssh-add before use
EG^ has quit [Ping timeout: 276 seconds]
<clever> the agent inside gpg, will save the keys you ssh-add long-term, and re-encrypt them via gpg, then actually ask for the passphrase as-needed
<clever> and they can expire and re-lock after a timeout
xcmw has joined #nixos
<clever> so you never have to ssh-add again, it just asks for the passphrase and remembers it for a bit
leat has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
<xnaveira[m]> it's fine ssh-add them every time i reboot (which i very rarely do)
<xnaveira[m]> it worked fine, thx
<xnaveira[m]> it's my second day in nixos as desktop machine, coming back to linux after a 6 month excursion to macos land
<xnaveira[m]> i like it a lot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #35005: firefox: enable pulseaudio by default (master...firefox-pulse) https://git.io/vAnLG
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> xnaveira[m]: clever: there's also the AddKeysToAgent option for ssh which can make using it simpler
<sphalerite_> (see man ssh_config)
<xnaveira[m]> while I am at it, anyone has experience configuring i3status?, i'm kind of confuse on where to put the config file...
<sphalerite_> xnaveira[m]: ~/.config/i3/i3status.conf iirc
<genesis> packaging stuff on git rev, some use date , others use shorted git rev as version, when i see first be easy to understand update ( if people respect year-month-day format ) , does it really matter for nix ?
asuryawanshi has quit [Ping timeout: 248 seconds]
<sphalerite_> xnaveira[m]: or if you want to configure it in a nixy way, you can put an expression like pkgs.writeTextFile {name = "i3status.conf"; destination = "etc"; text = ''... your config here ...'';} and point i3status to it through your i3 config
orivej has joined #nixos
<sphalerite_> genesis: <personal opinion> yyyy-mm-dd-shortrev is best because it works with sort order *and* contains exact rev information </personal opinion>
<infinisil> or just pkgs.writeText "i3status.conf" '' config here ''
<sphalerite_> and because it instantly gives you an idea of how recent it is. In that respect it's better than "proper" version numbers.
<sphalerite_> infinisil: nope files can't be installed straight into the profile
<infinisil> ah, didn't know it needs to be in the profile
<genesis> sphalerite : i like the idea, i'd like much all people doing same :D
<sphalerite_> well it doesn't have to be but you can simply point it to ~/.nix-profile/etc/i3status.conf and restart it to update the config if it is
Rusty1_ has joined #nixos
<sphalerite_> genesis: not to say that version numbering isn't useful, especially with schemes like semver that give them useful semantics
<xnaveira[m]> i see sphalerite_ thank you
logotags has joined #nixos
coot has quit [Ping timeout: 255 seconds]
<genesis> short rev is 7 on many project (github etc) but 11 for others ... that's not so cool too.
<genesis> ( 7 character is default fetchgit )
chrios_ has quit [Remote host closed the connection]
<clever> genesis: i think the git tool itself, will analyze the entire git repo, and pick the shortest prefix that remains unique, plus one or 2 digits
<genesis> git rev-parse --short is 11
<genesis> fetchgit is 7 using substring
<clever> genesis: that command returns 4c4f1c4 in one of my nixos config repo's
<genesis> hum perharps a git conf, oki i'll have look
<clever> genesis: and the exact same command returns 0fcc3ab23d73 in a checkout of linux
<clever> and ca5482604 on another project
<etu> Doesn't it depend on the shortest one that is unique but isn't too short?
<clever> ca548 is the smallest i can make it while still being unique
<genesis> so fetchgit substring to 7 would be not so smart ?
<clever> for linux, its 0fcc3ab
<clever> genesis: yeah, i need 7 digits to maintain a unique reference in the linux repo
<clever> genesis: and then you have repos like chromium that are literally a 20gig clone, i dont even want to know how many digits that needs :P
dnovosel has quit [Ping timeout: 240 seconds]
* etu likes full hashes
<sphalerite_> etu: they're so easy to type out :p
<etu> sphalerite_: That's why computers invented copying
ssmike1 has joined #nixos
<sphalerite_> one day we will have easy copying from one screen to another…
<clever> sphalerite_: synergy does that for me, and i was surprised at how seamless it was being yesterday
<clever> sphalerite_: synergy synced the clipboard between the laptop&desktop
ssmike has quit [Ping timeout: 276 seconds]
ssmike1 is now known as ssmike
<clever> sphalerite_: virtualbox synced the clipboard between the win10 vm and the laptop
<clever> sphalerite_: teamviewer synced the clipboard between the win10 vm, and the guy i was helping over teamviewer
<sphalerite_> clever: yeah, I've used synergy before too
<clever> sphalerite_: end result, the nixos machine, that is not involved in teamviewer at all, is mirroring a clipboard on the other side of the continent :P
<etu> sphalerite_: I use KdeConnect to copypaste between phone and computer :)
<sphalerite_> isn't as neat with my phone and stuff though
mai_at_saturn has joined #nixos
<sphalerite_> oh yeah I need to try kde connect at some point
<clever> sphalerite_: pushbullet is an app i use to share links between mobile devices and the browser, and it also has a clipboard sync feature
<sphalerite_> nonfree
<clever> ?, i just installed the chromium extension and android app
<clever> neither side delt with nix
<hyper_ch2> Profpatsch: thx
* goibhniu1 <3 kdeconnect
goibhniu1 is now known as goibhniu
<etu> clever: kdeconnect let me share an url on my phone via kdeconnect, choose computer and have it opened in firefox on my computer :)
<clever> etu: pushbullet does similar
<mai_at_saturn> Hi! I've been searching for a way to be able to reinstall my system with all its configuration (dotfiles, installed packages, /etc configurations and so on) automatically on multiple machines and have it synced. Would nixOS be a solution to this?
<goibhniu> kdeconnect also lets you control your pointer and keyboard remotely, which I use a fair bit when watching movies etc.
<clever> genesis: ah, now that starts to get a bit more useful
<clever> goibhniu: oops, wrong g name
<sphalerite_> clever: yeah but it's nonfree
<goibhniu> you can also control vlc (and other players), and share notifications
<goibhniu> and transfer files
<clever> notification sharing is another thing i use in pushbullet
<goibhniu> ah
<clever> i dont think it has full file sharing, but you can share images
<clever> its sort of like facebook messenger, but each device is a seperate user
<clever> and you can also friend other pushbullet users and share to them, like FB
<infinisil> mai_at_saturn: nixos will certainly help with software and system-wide configuration, it doesn't handle $HOME files by default though, you can use home-manager for this though, which is pretty much nixos for your $HOME https://github.com/rycee/home-manager
<goibhniu> outside your local network?
rauno has quit [Ping timeout: 256 seconds]
oida has joined #nixos
<infinisil> mai_at_saturn: you can even integrate home-manager into nixos: https://github.com/rycee/home-manager/pull/97
<mai_at_saturn> infinisil, $HOME files are the smallest problem in the puzzle I think, home-manager looks like a good solution though
<infinisil> mai_at_saturn: yeah nixos is definitely the right thing for this though
<mai_at_saturn> I guess my doubt is, if I change something like /etc/sudoers, does nix help me have it any time I want to reinstall my system (provided I backup nix config stuff)?
<clever> mai_at_saturn: /etc/sudoers is read-only, nixos doesnt allow you to change it directly
ixxie has joined #nixos
<clever> mai_at_saturn: you must edit the configuration.nix values that control its generation, and nixos will keep a history of every version you have built, and you can even pick an older version from the bootloader to undo it
<mai_at_saturn> And this is how everything I can configure system wide works in nixOS, I assume, so I can't edit something without nixOS "managing" it for me?
<infinisil> mai_at_saturn: Specifically security.sudo.extraConfig
<sphalerite_> mai_at_saturn: you can edit things without nixos managing them for you, but if you edit something nixos is managing your changes will be lost on the next update
<sphalerite_> mai_at_saturn: but for instance I have my /etc/wpa_supplicant.conf not managed by nixos on my laptop, and just manage it myself
<clever> same
<infinisil> clever: sphalerite_: there's a module for it now btw!
<sphalerite_> infinisil: yeah but I don't want my uni login password exposed in the nix store :)
<sphalerite_> (for eduroam)
<clever> also, nixos-rebuild will fail if the network is down
<clever> and you have to edit wpa_supplicant.conf to get the network up!
<clever> now what? :P
<mai_at_saturn> so whenever I want something to be replicated whenever I reinstall I can just make sure I'm managing it through nix... that would make sense
<sphalerite_> clever: systemctl stop wpa_supplicant ; wpa_passphrase foo bar | wpa_supplicant -iwlpfoobar -c/dev/stdin
<infinisil> clever: well it's just a symlink, so i can just write my own thing there still
<sphalerite_> mai_at_saturn: yep
<sphalerite_> infinisil: nope, no symlink. the module points it directly to the config file path in the nix store
<infinisil> Also, there's a nixos option for making `wpa_cli` work, which you can use to imteractively control it
<infinisil> sphalerite_: i mean the symlink from /etc/wpa_supplicant -> /etc/static/wpa_supplicant, can just be changed to an actual file
<sphalerite_> infinisil: there is no such link
<clever> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
<infinisil> sphalerite_: Ohh i see
<clever> infinisil: i just put this line into the unmanaged config file
vidbina has joined #nixos
<sphalerite_> clever: eww /var/run :p
<infinisil> sphalerite_: hmm, is there no way around this? I guess I could edit the systemd file, buut..
<clever> sphalerite_: i think wpa_cli/wpa_gui are hard-coded to expect it there
<infinisil> there's wpa_gui??
<clever> infinisil: yes
<sphalerite_> clever: /var/run is a symlink to /run though ;)
davidak has joined #nixos
<infinisil> Ah it's in the wpa_supplicant_gui package
<sphalerite_> clever: also -s option for wpa_cli
<clever> sphalerite_: i just copied the config from a gentoo machine, it worked, so i left it as it was
<sphalerite_> :)
<clever> infinisil: https://imgur.com/a/xUM1V
<clever> sphalerite_: and all the passwords came along for the ride, so it just worked, everywhere, lol
<sphalerite_> also, not really related to nixos but #nixos is where I find all the wizards who know about this stuff... A functional RS232 cable should have more than 2 wires, right?
<clever> i believe wpa_gui can also dynamically add a network&pass to the daemon
<clever> but it needs special config to persist
<infinisil> wpa_gui is niice
<clever> sphalerite_: at a bare minimum, 3, rx, tx, gnd
<clever> sphalerite_: preferably, another 2 as well, clear-to-send, in either direction
<clever> which enables hardware flow control
<sphalerite_> right. I wonder what this 2-wire cable with female DB9 connectors on each end is for then
<clever> i think there are another 2, for detecting the remote machine
<mog> rs232 has more as defined by standard
<clever> sphalerite_: photo?
<mog> but some devices might only have 2 like a gps, only has ground and transmit lines
<mog> typically 3 is the minimum though
* sphalerite uploaded an image: file1518706490734.jpg (21KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/QUzimiTSjxfjyNfMQmEsybGk>
<sphalerite_> clever: ^
<clever> sphalerite_: crack it open!, lets see what pins its connected to
<clever> sphalerite_: also, that connector in the middle, is it just 2 pins?
<sphalerite_> yep
<mog> thats three cables? red white and black?
<clever> time to crack it open then
<sphalerite_> 2, red and white
<mog> at least what i see in the photo
<clever> i dont see a black
<mog> there is a black cable inbetween red and white
<clever> just a shadow between the red and white
<mog> ahh i blew it up you are correct
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vAnOB
<NixOS_GitHub> nixpkgs/master 3dacdf1 Jens Binkert: graph-easy: init at 0.76
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 34fa5d2 Joachim F: Merge pull request #34903 from jensbin/graph-easy_0.76...
<mog> its probably used for logging
* sphalerite uploaded an image: file1518706693483.jpg (20KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/RWGazCgptTeVWTqRVVyotxnY>
<sphalerite_> same on both ends
oida has quit [Quit: WeeChat 1.6]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAn3v
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8d7b069 Peter Hoeg: neomutt: 20171208 -> 20171215...
<clever> sphalerite_: thats data terminal ready and gnd, weird
<clever> sphalerite_: i believe thats an output from the PC, and its wired to the output on both PC's?
<clever> definitely not a serial console thing
xcmw has quit [Ping timeout: 248 seconds]
<sphalerite_> Hm. I wonder if we have any actual rs232 cables lying around. That would be useful
reinzelmann has quit [Quit: Leaving]
<mpickering> Anyone feel like merging #32925 ?
<mpickering> Simple documentation fix
<sphalerite_> so… I have a bunch of male-female DB9 cables. Those aren't very helpful for connecting two computers' serial ports together though. Would it make sense to disassemble two and wire them together in some way?
<sphalerite_> particularly if I don't have soldering equipment?
<clever> sphalerite_: you want to get a null-modem adapter
<clever> that is female-female, and it swaps the rx/tx pairs
<clever> what you have, are just extensions, and they keep everything the same
<sphalerite_> yeah… I was just hoping I wouldn't have to buy anything because that requires waiting for it to arrive
MercurialAlchemi has quit [Ping timeout: 256 seconds]
<mog> gchristensen, if you get a chance to test sqlite or json backends on https://github.com/NixOS/nixops/pull/865
<maurer> sphalerite_: If you're in uni, go talk to the EEs, they'll have some you can borrow. If you're at a tech firm, go talk to your sysads, they have some for debugging early boot and switches
nuncanada has joined #nixos
<mog> im hoping we cant get in so i can work on and finish the other plugins
<sphalerite_> maurer: ooh, not a bad idea. (EEs)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 3 new commits to master: https://git.io/vAnsT
<NixOS_GitHub> nixpkgs/master 8d55538 Matthew Pickering: Revert "idris: Move library setup to the setup hook."...
<NixOS_GitHub> nixpkgs/master 947e7d8 Matthew Pickering: Refactor Idris packaging infrastructure...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 0171543 Shea Levy: Merge branch 'idris-packaging' of git://github.com/mpickering/nixpkgs
Drakonis has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] leenaars closed pull request #34975: stubby: init at 0.2.1 (master...stubby) https://git.io/vAZeo
NixOS_GitHub has left #nixos [#nixos]
stranger___ has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #31327: WIP:Refactor Idris packaging infrastructure (master...idris-packaging) https://git.io/vF8Ve
NixOS_GitHub has left #nixos [#nixos]
orivej has quit [Ping timeout: 248 seconds]
<genesis> https://github.com/NixOS/nixpkgs/pull/34965 i can assume this will not be merge due to invalid way to PR on nixpkgs ?
dnovosel has joined #nixos
<genesis> i think it's very easy to review btw.
coot has joined #nixos
klntsky has joined #nixos
kus_ubuntui686 has joined #nixos
kus_ubuntui686 has quit [Max SendQ exceeded]
Izorkin_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jensens has joined #nixos
aarvar has joined #nixos
cement has joined #nixos
<sphalerite_> genesis: I've added some comments but it seems pretty sensible to me. Why do you assume that?
Drakonis has joined #nixos
<genesis> donno, i should have split in two PR, i read your comment, i'll fix it ;
<sphalerite_> They seem related an fairly uncontroversial as far as the contents go, so I'd say it's fine
<genesis> i'd profit to fix my shitty $version
xcmw has joined #nixos
<genesis> i'm on z88dk derivation since days, what a mess :3
<sphalerite_> oh actually you should separate it into multiple commits
pie___ has joined #nixos
rauno has joined #nixos
<genesis> next time i will, i would like to close this quickly
<sphalerite_> one PR is fine, but it should be one commit per package and have a commit message corresponding to https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md
<infinisil> Always nice to have a package not be pulled from the cache because it doesn't build in your channel :/
ZoomZoomZoom has quit [Quit: Leaving]
iyzsong has quit [Ping timeout: 260 seconds]
<sphalerite_> genesis: "i would like to close this quickly" is not a good reason to neglect the commit convention
<genesis> i guess
rauno has quit [Ping timeout: 240 seconds]
pie__ has joined #nixos
<__monty__> genesis: While convention may be inconvenient from time to time you have to consider the number of people who want to submit changes and the number of people who need to go over them. Even if it's only a couple minutes extra for them if you deviate, what's to stop everyone from doing so?
<xnaveira[m]> so sphalerite_ when you said "xnaveira[m]: or if you want to configure it in a nixy way, you can put an expression like pkgs.writeTextFile {name = "i3status.conf"; destination = "etc"; text = ''... your config here ...'';} and point i3status to it through your i3 config" in what context was that? because pkgs.writeTextfile doesnt work in configuration.nix
pie___ has quit [Ping timeout: 240 seconds]
<sphalerite_> xnaveira[m]: oh right, this would be for systemwide config. I assumed it would be for per-user config. In nixos configuration you could do environment.etc."xdg/i3status/config".text = ''your i3status config''; to put its config in /etc
<xnaveira[m]> i see, what about if i want to create a file in my home?
okami has left #nixos [#nixos]
<xnaveira[m]> and how would I go if I wanted to create a per user config? I'm a bit confused regarding profiles, shells and envs
<sphalerite_> there's no generic provision for that in nixos. You could use https://github.com/rycee/home-manager or you could do what I mentioned before — install your config into your nix profile
<xnaveira[m]> well VERY confused tbh :)
<genesis> __monty__ : i'm noob in nix and i'm being confuse with my git branch since i need to package many things in one branch, i did some extra work to separate and prepare commit, i just think, sometime newbie can't do perfect PR and perharps it's not so bad to pass once ...
dan_b has joined #nixos
<sphalerite_> A profile is just a set of packages managed by nix. Usually this takes the form of user profiles (for most nix installations) and the system profile (for nixos)
<sphalerite_> genesis: there's a reason we have contributing guidelines, if a newbie can't be arsed reading them that's not our fault
<xnaveira[m]> ok, and how do I change my user profile?
<__monty__> genesis: That's a valid opinion. I'm just saying there's very few people considering how many packages there are so the bulk of the burden's on the submitter of PRs.
<sphalerite_> s/arsed/bothered/ :)
<sphalerite_> xnaveira[m]: using nix-env
<genesis> sphalerite : i agree with that, it's a matter of best effort, anyway, i shouldn't discuss that
<xnaveira[m]> ok, but that i guess generates a nix file somewhere?
<sphalerite_> xnaveira[m]: no. Hang on
<sphalerite_> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
pie___ has joined #nixos
<sphalerite_> That wiki entry covers simple declarative user profiles as well as why to use -A :)
<xnaveira[m]> ok, i'll read it, so far i only added my stuff in configuration.nix since it is a single user machine
<xnaveira[m]> but maybe the user stuff is more appropiate to keep track of home folder config files
<sphalerite_> yeah. It won't manage anything outside ~/.nix-profile though — if you want to do that, use home-manager
<sphalerite_> I personally stick to ~/.nix-profile and use wrapper scripts where necessary
rauno has joined #nixos
<xnaveira[m]> even more confused...
pie__ has quit [Ping timeout: 240 seconds]
<xnaveira[m]> whats nix-profile? :P
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] layus opened pull request #35007: conky: 1.10.7 -> 1.10.8 (master...update-conky) https://git.io/vAncT
<sphalerite_> the user profile managed by nix-env
<sphalerite_> try nix-env -iA nixos.hello ; which hello
mkoenig_ has joined #nixos
vidbina has quit [Ping timeout: 248 seconds]
<xnaveira[m]> oh i see
mkoenig has quit [Ping timeout: 256 seconds]
<xnaveira[m]> oh, i've been testing install things with nix-env before adding them to configuration.nix
<xnaveira[m]> so i guess now i have two copies
<xnaveira[m]> and i 'm using the ones in the profile
Izorkin has joined #nixos
ThatDocsLady has quit [Read error: Connection reset by peer]
ThatDocsLady has joined #nixos
ryanartecona has joined #nixos
simukis has joined #nixos
<xnaveira[m]> sorry sphalerite_
<sphalerite_> ?
<xnaveira[m]> last question
<xnaveira[m]> if i want ie create a .terraform file for my terraform installation
<xnaveira[m]> that i installed through nix-env
<xnaveira[m]> and i want to do it the nix way
<xnaveira[m]> how would that work
<xnaveira[m]> ~/.terraform is the file in a regular linux
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b2e7bb5ee80 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite_> genesis: you don't need to make a new branch and PR, just put 3 commits, one per package, in the one PR
fxr has quit [Ping timeout: 240 seconds]
vvvvo has quit [Ping timeout: 240 seconds]
<genesis> oki , i'll try that next time
hyper_ch2 has quit [Quit: Page closed]
Tucky has quit [Quit: WeeChat 2.0.1]
Arcaelyx has joined #nixos
thblt has joined #nixos
thblt has quit [Changing host]
thblt has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bignaux opened pull request #35008: caprice32 : init at 20170210-53de695 (master...caprice32) https://git.io/vAnWD
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] matthewbauer opened pull request #1873: Set backup MANPATH in case man path isn’t set correctly. (master...fix-manpath) https://git.io/vAnlv
NixOS_GitHub has left #nixos [#nixos]
rauno has quit [Remote host closed the connection]
jensens has quit [Ping timeout: 256 seconds]
thblt has quit [Remote host closed the connection]
<sphalerite_> xnaveira[m]: your options are 1. use home-manager to put it in ~/.terraform; 2. make a wrapper for terraform to have it look for it in ~/.nix-profile/etc/terraform or similar, and put it there using nix-env; 3. (only really if there's no option for 2) make a patch for terraform to look there
chreekat has joined #nixos
arianvp2 has joined #nixos
<arianvp2> Anybody here know anything about vulkan mesa support in nixos?
<arianvp2> Mesa should be built with the radeon vulkan support
coot has quit [Ping timeout: 268 seconds]
<arianvp2> but if I do $ nix-shell -p vulkan-loader and then $ vulkaninfo
<arianvp2> it tries to load the vulkan_intel icd instead and fails
<arianvp2> whilst I don't even have an intel machine
pie___ has quit [Ping timeout: 248 seconds]
hakujin has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<arianvp2> libvulkan_radeon isn't even in the output derivation :/
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vAn8H
<NixOS_GitHub> nixpkgs/master 9342b56 Rob Vermaas: imbalanced-learn: init at 0.3.2
NixOS_GitHub has left #nixos [#nixos]
<arianvp2> so enableRadv is true..
<arianvp2> but no radeon icd in the derivation output
tvon has joined #nixos
tvon has quit [Client Quit]
erasmas has joined #nixos
mizu_no__ has joined #nixos
chreekat has quit [Quit: quitting]
Slabity has joined #nixos
mizu_no__ has quit [Client Quit]
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vAnBd
<NixOS_GitHub> nix/master 3a5a241 Eelco Dolstra: Merge pull request #1873 from matthewbauer/fix-manpath...
<NixOS_GitHub> nix/master 8f18672 Matthew Bauer: Set backup MANPATH in case man path isn’t set correctly....
NixOS_GitHub has left #nixos [#nixos]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<xnaveira[m]> sphalerite_: by wrapper you mean a script that i put in my ~/bin that does "terraform -f ~/.nix-profile/etc/terraform" ?
freeman42x]NixOS has quit [Ping timeout: 248 seconds]
<clever> xnaveira[m]: you could create a nix package that generates such a wrapper, then just nix-env -i the package
<sphalerite_> xnaveira[m]: a script that you install into your user profile like writeShellScriptBin "terraform" ''${terraform}/bin/terraform -f ~/.nix-profile/etc/terraform''
thblt has joined #nixos
knupfer has quit [Ping timeout: 276 seconds]
<gchristensen> Profpatsch: did I answer your question? I don't remember
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging b24ce2a Shea Levy: Handle sourceRoots with leading dashes
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to staging: https://git.io/vAn01
<Profpatsch> gchristensen: You are building PRs of maintainers directly, right?
<Profpatsch> I didn’t have to call ofborg before and it directly built my PR.
<Profpatsch> Might be bad for e.g. Chromium patches.
<gchristensen> Profpatsch: only in certain well-defined cases: https://github.com/nixos/ofborg#automatic-building
<gchristensen> if we waste an hour building chromium, that is ok
<gchristensen> maybe, one day, we'll be able to properly build chromium
<infinisil> I just wrote a script that rewrites every http url in nixpkgs to https if it's available \o/
<Profpatsch> Ah, that’s interesting.
<Profpatsch> infinisil: Awesome.
digitalmentat has joined #nixos
jensens has joined #nixos
<Profpatsch> infinisil: This will considerably shorten this list: https://repology.org/repository/nix_unstable/problems
<digitalmentat> grahamc, I saw something on twitter you posted about Terraform and NixOS; do you have anything that is working that I could look at / hopefully use?
<gchristensen> Profpatsch: I'm hoping the auto-building is a nice carrot to improve people's adherence to the commit message standard :)
<xnaveira[m]> thx guys, i hae some reading to do...
freeman42x]NixOS has joined #nixos
<infinisil> Profpatsch: nice list
<gchristensen> digitalmentat: ping me again in like 3 days?
<gchristensen> gotta go
<infinisil> I'm currently running my replacement script on all 10568 http urls in nixpkgs..
<infinisil> Maybe I should refine it a bit more though, because this takes quiet a while
raynold has joined #nixos
<Profpatsch> One noble goal for nixpkgs would probably to assemble a list of all Archlinux core-packages and keep them totally green in repology. :)
<digitalmentat> gchristensen, okay!
<Profpatsch> And to automate every metric that can be automated.
<Profpatsch> But right now I’m just trying to survive Rabbitmq & Docker on caffeine, without any noble goals in mind.
nflores has joined #nixos
<digitalmentat> Profpatsch, what is specifically going wrong w/ Docker for you?
<infinisil> Profpatsch: To package arch linux packages automatically?
<infinisil> That would be impressive..
stephenjudkins has joined #nixos
<Profpatsch> digitalmentat: The CLI is just horrible.
<digitalmentat> it truly is
EG^ has joined #nixos
<Profpatsch> docker load … docker run <sometag>
<Profpatsch> where sometag is not put out by docker load.
<Profpatsch> So half of the time I executle the wrong image from my history
<Profpatsch> And then of *course* it’s impossible to stop the f* container with the image name.
<digitalmentat> Profpatsch, yeah I have similar gripes
<Profpatsch> So it’s docker container list, copy hash, docker container stop <insert hash>
<digitalmentat> I also have a lot to gripe about with docker load
<Profpatsch> And half the command line tools just output the f* internal datastructures the devs use in their go code.
<Profpatsch> Instead of actual helpful information.
<digitalmentat> we have a "download layers into the nix store and stream them as a composite image to docker load" process and docker load is SLOOOWW
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master e26a229 Vladimír Čunát: ranger: don't include "v" in nix-perceived version...
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vAnzW
NixOS_GitHub has left #nixos [#nixos]
<digitalmentat> I also think it's ridiculous that they tied the container image format so tightly to the way they describe layers and store them
<Profpatsch> And there is no way to inpect images without f* running them and running a f* shell inside them.
<Profpatsch> There’s so much wrong with this tooling, it makes git look like a f* miracle.
<thblt> Hi! I have a dell XPS 9560 (like everybody else, it seems) and I can't seem to be able to use the discrete NVidia card on NixOS. When I try to modprobe nvidia, journalctl reports the following: https://paste.thb.lt/1518710722.html
<digitalmentat> yeah, Docker has cost our company a tremendous amount in terms of wasted developer time
vidbina has joined #nixos
<Profpatsch> digitalmentat: Do you think migrating over to OCI images & runc is worth the effort?
<thblt> I've tried lspci -n -d 10de:*, and it reports 01:00.0 0302: 10de:1c8d (rev ff), which, IIUC, means the card is in compute mode and not in graphics mode.
<thblt> "
<thblt> Some sources suggest using gpumodeswitch to put it into graphics mode, but I can't find this binary in NixOS.
<thblt> Any ideas? thanks!
<digitalmentat> Profpatsch, I mean, if I truly needed containers I would just use nixos-containers
<thblt> (Also maybe I'm completely wrong about the compute vs graphics mode thing)
<clever> thblt: another handy thing, `lspci -nn`
<digitalmentat> our company had legacy reasons for choosing docker but in truth we don't need it at all
<gchristensen> Hah. Docker is legacy...
<Profpatsch> digitalmentat: Yeah, we want to have a way for people to deploy without hassle.
<thblt> clever: says "01:00.0 3D controller [0302]: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] [10de:1c8d] (rev ff)"
<digitalmentat> Profpatsch, don't you have Nix?
<clever> thblt: the difference, is that -n only shows the numbers, but -nn mixes the numbers and the text from no -n
<Profpatsch> That’s not really handling the runtime issues.
<digitalmentat> containers are just a great way to get the dev team to not talk to ops
<thblt> clever: it's indeed much more legible :)
<clever> thblt: yep
<digitalmentat> Profpatsch, what do you mean by runtime issues?
<Profpatsch> Well, you need to get a nixos running, know how to configure it, debug modules …
<Profpatsch> Instead of just running all the parts you don’t want to care about inside their containers & start developing.
<Profpatsch> like e.g. the database, the message queue, the API, … just fire them up in your local docker instance and start writing frontend code or services.
acarrico has joined #nixos
<digitalmentat> could you bundle the backend services as a vbox or kvm VM to accomplish the same development environment needs?
<Profpatsch> And when generating them with nix we get the pros of from-source builds as a plus.
<Profpatsch> digitalmentat: Nah, that’s even more brain damage.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAngZ
<NixOS_GitHub> nixpkgs/master 77c4e46 Shea Levy: Add JayDeBeApi and JPype1 python packages
NixOS_GitHub has left #nixos [#nixos]
<digitalmentat> *shrug* for us we're running into the problem of container workflow proliferation being a way for people to hide sloppy development behind the walls of a container
vidbina has quit [Ping timeout: 268 seconds]
<Profpatsch> That sounds like a social problem.
<digitalmentat> yeah it is
Lisanna has quit [Quit: Lisanna]
<digitalmentat> I also think people not being willing to learn Nix and NixOS is a social problem as well
knupfer has joined #nixos
<Profpatsch> Why should e.g. a designer know about nix(os)?
asuryawanshi has joined #nixos
<digitalmentat> they should know enough to use it as a brew replacement IMHO since that is how we build and deploy utilities and not just our product
<Profpatsch> It’s kind of tangential to their job.
ryanartecona has quit [Quit: ryanartecona]
<Profpatsch> Well, as brew replacement, certainly.
<Profpatsch> But that’s not necessarily enough knowledge to debug failing nix builds.
<simpson> digitalmentat: If a team wants to own and ship shitty code, and the code's shittiness isn't affecting you directly, then this is WAI and you're not meant to be part of the regulating force which improves their code.
ashijit has joined #nixos
<digitalmentat> simpson, you're right, if it is not affecting me directly but it does :)
<simpson> digitalmentat: Ask your manager to speak to their manager, or whatever your company policy is, I suppose.
jtojnar has quit [Quit: jtojnar]
<Profpatsch> There’s always another manager.
<Profpatsch> It’s managers all the way up!
coot has joined #nixos
<digitalmentat> simpson, I appreciate the thought, I think we're slowly solving the problem (as a very small company and group of people) since there is no one person that actually wants it this way and it really is due to legacy forces and other factors not worth discussing
EG^ has quit [Ping timeout: 255 seconds]
<digitalmentat> Profpatsch, back to your original question, if you really do want containers I think going directly to OCI / runc is good idea
thblt has quit [Read error: Connection reset by peer]
<digitalmentat> but you do have to manage a lot of other things docker will "do for you"
<Profpatsch> Yeah, that’s the next step probably.
<Profpatsch> First get it running with docker.
sigmundv has quit [Ping timeout: 276 seconds]
<digitalmentat> I wonder if you could generate a nixos container from a docker image specification; that way you don't have to incur the cost of using `docker load` in production
<Profpatsch> Then write the nix builder for OCI images.
<digitalmentat> yeah
logzet has joined #nixos
roberth has quit [Ping timeout: 260 seconds]
<digitalmentat> I'd ask that if you do that work you make it OSS-able (if possible) because I'd be interested in it
<Profpatsch> buildah is already in.
<Profpatsch> I haven’t looked at how the tool works exactly, but I suspect it could help with building these containers.
<digitalmentat> oh nice
<p_l> Is it possible to test NixOs configuration on single-user nix install? I mean, to test a dry run to see if what I wrote makes sense
<Profpatsch> Feel free to self-insert into the people section and maybe write what you are working on.
<Profpatsch> You can log in with GitHub
<digitalmentat> Profpatsch, you may also find this project interesting: https://github.com/awakesecurity/hocker
<digitalmentat> cool thanks
<Profpatsch> Hm, interesting.
<Profpatsch> Will take a look, thanks.
<Profpatsch> Also a tool in $languageofchoice. :)
ambro718 has joined #nixos
<digitalmentat> yeah, we use it to generate Nix build instructions that fetch a docker image not as a whole image but as a granular set of layers from a registry
<digitalmentat> we're a Haskell shop, so...yeah
Lisanna has joined #nixos
<p_l> sounds like rare thing :)
asuryawanshi has quit [Remote host closed the connection]
<Profpatsch> digitalmentat: lol, you work with Gabriel?
jacob_ has joined #nixos
endformationage has joined #nixos
asuryawanshi has joined #nixos
jacob_ is now known as Guest78634
<digitalmentat> Profpatsch, yeah
kelleyNif has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAnau
<NixOS_GitHub> nixpkgs/master 050810e Frederik Rietdijk: Revert "Add JayDeBeApi and JPype1 python packages"...
NixOS_GitHub has left #nixos [#nixos]
digitalmentat has quit [Quit: Leaving]
<p_l> has anyone tried testing NixOS configuration snippets from single-user nix install?
jensens has quit [Ping timeout: 256 seconds]
lexsomething has joined #nixos
vidbina has joined #nixos
<CrazedProgrammer> does anyone know how to use OpenCL on a modern AMD GPU in NixOS?
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<arianvp2> CrazedProgrammer: I'm trying to get that working at the moment
<arianvp2> :P
<arianvp2> So I think OpenCL should work with the mainline mesa driver for AMD
zzamboni has joined #nixos
<arianvp2> I think installing ocl-icd should be enough...
<arianvp2> though not sure
tabaqui has quit [Ping timeout: 252 seconds]
ottidmes has joined #nixos
coot has quit [Remote host closed the connection]
m0rphism1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #35012: Make the commit message format a recommendation. (master...no-commit-message-policing) https://git.io/vAnrO
NixOS_GitHub has left #nixos [#nixos]
<arianvp2> CrazedProgrammer: turns out OpenCL support doesn't seem to be enabled in NixOS at the moment :(
m0rphism has quit [Ping timeout: 240 seconds]
<arianvp2> though maybe I'm wrong
<arianvp2> I am trying to get Vulkan Compute working though...
<arianvp2> but there I am running against walls as well. Probably something wrong in the MESA package though can't figure out what
rihards has joined #nixos
ambro718 has quit [Ping timeout: 260 seconds]
kelleyNif has joined #nixos
<CrazedProgrammer> oh that's unfortunate. thanks for the explanation and issue report! :)
<CrazedProgrammer> arianvp2:
zzamboni has quit [Quit: Leaving.]
dan_b has joined #nixos
<lexsomething> hey, I would like to execute simple python script of my own via ./myscript.py (I don't want to write a package of it) . so I added to the beginning of file : #! /usr/bin/env nix-shell and next line #! nix-shell -i 'python3.withPackages(ps: [ps.numpy])' . however, when I execute ./myscript.py nix shell complains: default.nix’: No such file or directory
vidbina has quit [Ping timeout: 248 seconds]
yann-kaelig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAnKT
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2dbf5dd Shea Levy: pythonPackages.JPype1: Init at 0.6.2
<lexsomething> how should I fix my shebang? I reproduced what stated in official nixpkgs manual, python section 9.11.1.1.3.3. nix-shell as shebang . but official example doesn't work for me
Drakonis has quit [Read error: Connection reset by peer]
aanderse_ has quit [Ping timeout: 255 seconds]
tmaekawa has joined #nixos
<Lisanna> wow, I just realized that all nix derivations are infinite datastructures
asdfoiawe has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAn6v
<NixOS_GitHub> nixpkgs/master 5812195 Shea Levy: pythonPackages.JayDeBeApi: Init at 1.1.1.
NixOS_GitHub has left #nixos [#nixos]
logzet has quit [Remote host closed the connection]
<__monty__> lexsomething: Have you tried nix-shell -i python -p pythonPackages.numpy?
tmaekawa has quit [Client Quit]
ixxie has joined #nixos
<lexsomething> __monty___ trying, got error: unknown flag ‘-i’ Try ‘/nix/store/c7axbcb4f21n7m6kjdkrfzs2z2p28k14-nix-1.11.16/bin/nix-store --help’ for more information.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAn6M
<NixOS_GitHub> nixpkgs/master 29536db Shea Levy: Add missing files
NixOS_GitHub has left #nixos [#nixos]
<lexsomething> nice nickname by the way ;)
logzet has joined #nixos
ixxie has quit [Client Quit]
asdfoiawe has quit [Remote host closed the connection]
<__monty__> lexsomething: You get the reference? You're the first. Not sure what the issue could be I use a similar setup for haskell and that works.
ryanartecona has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__> lexsomething: Slight difference I need to specify -i runghc, then -p haskellPackages.with... (ps: [...])
<__monty__> Maybe try -i python3 -p pythonPackages.with...
dan_b has quit [Ping timeout: 240 seconds]
<__monty__> I'm not sure why nix-store complains about the -i flag.
alexteves_ has quit [Ping timeout: 248 seconds]
magnetophon has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 276 seconds]
<lexsomething> oh, thank you, looks like I fixed and got it working, I just remowed whitespeaced after shebang and changed lines to #!/usr/bin/env nix-shell #!nix-shell -p python3 -i python3
<__monty__> Hmm, I have spaces and it doesn't seem an issue.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #34990: libbsd: update darwin patch (master...libbsd-mac-0.8.7) https://git.io/vAZBr
NixOS_GitHub has left #nixos [#nixos]
kini has quit [Quit: No Ping reply in 180 seconds.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 64a4a69 Frederik Rietdijk: Merge pull request #35002 from layus/bazel-update...
<NixOS_GitHub> nixpkgs/master f6b6d72 Guillaume Maudoux: bazel: 0.9 -> 0.10.1
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAniA
NixOS_GitHub has left #nixos [#nixos]
kini has joined #nixos
jsgrant_ has quit [Remote host closed the connection]
jsgrant_ has joined #nixos
zzamboni has joined #nixos
oida has quit [Quit: byez]
<troydm> so
nuncanada has quit [Ping timeout: 255 seconds]
<troydm> I want to debug xterm package to know why it's using different cursor theme compared to Xresources setting
<troydm> I've copied nixpkgs
<troydm> now how can I locally build my version and hack source code?
xcmw has joined #nixos
[0x4A6F] has joined #nixos
zzamboni has quit [Quit: Leaving.]
<__monty__> troydm: Try nix-shell '<nixpkgs>' -A xterm
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #35015: nixUnstable: pre5943_52c777a7 -> pre5947_d26b71fd (master...nix-unstable) https://git.io/vAnXP
<troydm> __monty__: ahh, thx, now let's say I've extracted source to xterm-330 folder, using unpackPhase, what commands there are to build/run tit
<troydm> *it
<__monty__> That's a good question which I'll leave to someone more experienced to answer : )
nflores has quit [Ping timeout: 260 seconds]
aanderse_ has joined #nixos
pie_ has joined #nixos
<etu> troydm: If you have a clone of nixpkgs, you can stand in the root of that project and run: nix-build -A xterm # to build it from the current tree that you stand in
winem_ has joined #nixos
<etu> troydm: Then I think you want to look in pkgs/applications/misc/xterm/default.nix to see what happens and make changes and run the build command again
kini has quit [Quit: No Ping reply in 180 seconds.]
<etu> troydm: The result will be available in a symlink named result
zzamboni has joined #nixos
coot has joined #nixos
aanderse_ has quit [Client Quit]
kini has joined #nixos
fragamus has joined #nixos
aanderse has joined #nixos
dnovosel has quit [Ping timeout: 268 seconds]
[0x4A6F]1 has joined #nixos
alexteves_ has joined #nixos
<troydm> etu: ic, thx
<genesis> excellent game to take a break with cpc emulator : https://cpcrulez.fr/GamesTest/skweek.htm?t=Uw==
[0x4A6F] has quit [Ping timeout: 256 seconds]
[0x4A6F]1 is now known as [0x4A6F]
<sphalerite_> troydm: export src=path/to/sources out=/path/to/install/to; genericBuild
<sphalerite_> that should do it I think
<sphalerite_> troydm: FWIW xterm probably just doesn't have XCursor support
<sphalerite_> does it respect the cursor theme on any other distros for you?
<sphalerite_> troydm: oh you mean to build xterm from your nixpkgs checkout. yeah what etu said in that case
oida has joined #nixos
<troydm> sphalerite_: yes it does, basicly I have retina display and I set Xcursor.size to fix tiny cursor and it works in Firefox
<troydm> sphalerite_: but not in xterm/urxvt
Neo-- has quit [Ping timeout: 240 seconds]
<sphalerite_> troydm: I mean if *xterm* respects cursor size settings on other linux distros
<troydm> sphalerite_: ahh, well I haven't tried other distro, as I hadn't had an issue with cursor size on other distros
<hyper_ch> Havvy: Postgres is way too complicated
<sphalerite_> troydm: easiest thing to do is probably to just use gnome-terminal or something instead
<sphalerite_> if you don't want a heavyweight terminal maybe alacritty
<sphalerite_> those both respect cursor settings
<troydm> sphalerite_: I have urxvt configuration which is really convenient to use
<troydm> sphalerite_: as I know rxvt-unicode should technicly support cursor theme
<troydm> sphalerite_: but apparently it doesn't so I want to figure out why
<Baughn> So... I wonder, did anyone ever create a Docker image for evaluating Nix expressions?
<Baughn> I.e. to make Nix-based repositories more useful to non-Nix-using users.
* etu runs stupidterm. It's really nice. Doesn't do much more than reading an .ini-file for configuration.
<sphalerite_> troydm: "should" why?
<nhill> Okay.... "Timed out waiting for device /dev/root"
<sphalerite_> etu: I see your stupidterm and I raise you st, which is configured at compile time :p
<nhill> trying to install from usb stick
<LnL> Baughn: there are 2 images that provide a working nix environment
<LnL> Baughn: nixos/nix and http://github.com/LnL7/nix-docker
<Baughn> Hum. Couldn't find them.
<etu> sphalerite_: stupidterm is nicer out of the box though :)
<Baughn> Thanks!
<LnL> not sure if the "official" is still updated
[0x4A6F] has quit [Ping timeout: 256 seconds]
<troydm> sphalerite_: well if it doesn't then I'm pretty much suprized, because it's just Xresources configuration that specifies which cursor folder to use
simendsjo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #35016: Fix build of acl and attr from source with unstable Nix (staging...acl-attr) https://git.io/vAnyk
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> troydm: yes, but urxvt doesn't seem to use libxcursor which is what actually reads that configuration
<troydm> sphalerite_: that is something that I haven't noticed on other setups
<troydm> sphalerite_: really weird
aanderse_ has joined #nixos
bpa has joined #nixos
digitus has joined #nixos
<troydm> sphalerite_: I wonder if there is a way to disable urxvt to change cursor
aanderse has quit [Ping timeout: 276 seconds]
<troydm> sphalerite_: like don't even do anything mouse pointer related
<sphalerite_> I doubt it
boomshroom has joined #nixos
<boomshroom> Hello!
[0x4A6F] has joined #nixos
<boomshroom> How can I run an executable within nix-shell with a given package in the library path?
<boomshroom> On a related note, does anyone have any experience with Java 9's AOT compiler?
EG^ has joined #nixos
<xnaveira[m]> why after running a nix-channel --update if I do nix-env -i terraform i get terraform 0.11.3 but if i have terraform in my systempackages in configuration.nix i just get 0.11.1?
mai_at_saturn has quit [Read error: Connection reset by peer]
<boomshroom> xnaveira[m]: Because running `nix-channel --update` updated your user channel while configuration.nix uses the system channel.
<xnaveira[m]> how do i update the system channel then?
<boomshroom> xnaveira[m]: Try `sudo nix-channel --update`
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aanderse has joined #nixos
knupfer has joined #nixos
<boomshroom> I personnally don't even have a user channel and just update my system one. If you're on a shared machine where you don't have access to the system channel, then it's perfectly fine to use a user one.
<xnaveira[m]> i did that and then sudo nixos-rebuild switch --upgrade but still the old version
ottidmes has quit [Quit: WeeChat 1.9.1]
<xnaveira[m]> this is one user machine and the plan is to use only system
<boomshroom> I should mention that the --upgrade flag implicitly running nix-channel --update.
aanderse_ has quit [Ping timeout: 276 seconds]
<xnaveira[m]> but i have to learn owto update it :)
<boomshroom> What's the output of `nix-channel --list` and `sudo nix-channel --list`?
<sphalerite_> Why am I not getting manpages available in nix-shell -p xorg.libXcursor, even though they're there in hte package?
<xnaveira[m]> nix-channel --list gives me nothing
<xnaveira[m]> sudo nix-channel --list gives me:
<sphalerite_> xnaveira[m]: actually the reason is probably…
<xnaveira[m]> nixos-unstable https://nixos.org/channels/nixos-unstable
<sphalerite_> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<sphalerite_> ^
<xnaveira[m]> but what does have a nix-env switch to do with the system channel?
<boomshroom> You might to updating one, but rebuilding from the other.
aanderse_ has joined #nixos
<xnaveira[m]> ?
<boomshroom> nix-env pulls from the default system channel if you don't have any user channels, which it seems like you don't.
<sphalerite_> xnaveira[m]: nix-env just searches for all packages with the name terraform
<sphalerite_> xnaveira[m]: and it *doesn't* get the one under the attr name terraform
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #34888: ripgrep: 0.7.1 -> 0.8.0, install shell completions (master...ripgrep) https://git.io/vAmUw
NixOS_GitHub has left #nixos [#nixos]
<xnaveira[m]> sorry but i don't get it
<xnaveira[m]> nix-env does the right thing and installs the latest version
aanderse has quit [Ping timeout: 276 seconds]
<sphalerite_> xnaveira[m]: nix-env searches through nixos *and* nixos-unstable and finds a newer one
<sphalerite_> in nixos-unstable
<sphalerite_> so it installs that one
<sphalerite_> as the wiki entry mentions, it's searching through everything rather than being precise about what you want
<xnaveira[m]> aahhhhh
<boomshroom> sphalerite_: While you're here, what's the best way to query packages? I got fed up with nix-env -qa and just use the website now.
rauno has joined #nixos
<xnaveira[m]> now i get it
<xnaveira[m]> okok
rburkholder has joined #nixos
<sphalerite_> boomshroom: I use nox with a patch to make it noninteractive
<boomshroom> nox?
<sphalerite_> boomshroom: with nixUnstable comes a beautiful `nix search` command :D
<sphalerite_> the only problem with nix search is that it only supports one term at a time
<xnaveira[m]> now it woks
<xnaveira[m]> thx
aanderse has joined #nixos
<boomshroom> I'll have to check it out.
<sphalerite_> eventually I'll probably add a patch to nix to add multiple search terms to nix search
<troydm> sphalerite_: this is strange as everything I've googled suggested, that rxvt-unicode respects Xcursor.theme setting
<boomshroom> Well nox --help didn't explain much
aanderse_ has quit [Ping timeout: 256 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite_> troydm: links?]
<boomshroom> Also, should I be using nix-shell as often as I do? I'm pretty sure I run more within nix-shell then by installing.
<sphalerite_> boomshroom: just `nox foo` to search for foo
<sphalerite_> yeah I use nix-shell a lot too. It's great, isn't it? :D
<sphalerite_> although if you find yourself using it with the same packages over and over again it might make sense to write a shell.nix or install the packages into your profile if appropriate
<gchristensen> boomshroom: I used the `pass` password manager for about a month via nix-sheell before I added it to systeemPackages
<troydm> sphalerite_: other ppl's Xresources configs :)
<troydm> sphalerite_: well just checked and termite respects settings
fragamus has joined #nixos
zarel has joined #nixos
<boomshroom> What's more, I have very little in my configuration.nix and the rest of my packages are spread between nix-env and a mystuff package defined in config.nix.
orivej has joined #nixos
<sphalerite_> troydm: and termite uses gtk which uses libXcursor. Coincidence? I think not! :p
<arianvp2> gchristensen: you do your share of rust programming right?
<arianvp2> what's an easy way to get rust package built with nix?
<arianvp2> (I want nix to handle the external deps like sdl2 etc)
<troydm> sphalerite_: now how do I fix rxvt-unicode :D
<boomshroom> arianvp2: pkgs.rustPlatform.buildRustPackage
rauno has quit [Remote host closed the connection]
<boomshroom> I'm off to continue my pointless project of building a Java bytecode interpreter that runs on the JVM.
rauno has joined #nixos
<nhill> btw, the install iso f-ed up my system
<gchristensen> arianvp2: I use carnix
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #35016: Fix build of acl and attr from source with unstable Nix (master...acl-attr) https://git.io/vAnyk
NixOS_GitHub has left #nixos [#nixos]
rauno has joined #nixos
<boomshroom> `nix-shell -p nox --run "nox nox"`
<fragamus> howdy I am a nixos newb and I want to run on ec2. HOW IN THE BLUE BLAZES can I launch my ec2 instance with a higher amount of EBS storage? I need to install lots of haskell stuff on there
<gchristensen> how did you launchit?
<fragamus> ec2-run-instances $EC2_AMI -t t2.large -k $EC2_KEY --group $EC2_SECURITY_GROUP --user-data-file $EC2_USER_DATA_FILE
<gchristensen> faancy
<fragamus> lol
<arianvp2> I have some package that dynamically loads some shared library (libvulkan in this case)
<arianvp2> is there a way to patch the binary to look in the nix store?
<arianvp2> or should I just set LD_LIBRARY_PATH when running the executable instead?
<arianvp2> I now have
<arianvp2> LD_LIBRARY_PATH=$(nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.makeLibraryPath [vulkan-loader] | tr -d '"'')
<arianvp2> as a hack around it
rauno has quit [Ping timeout: 240 seconds]
<gchristensen> fragamus: it should work to just ask for a larger ebs volume
<fragamus> how do I ask for that
<gchristensen> probably some argumentss to ec2-run-instances, it is purely an AWS problem I think
<fragamus> I used this to get a second volume: --block-device-mapping '/dev/sdd=:40:true’
<arianvp2> I guess something with patchelf?
<nhill> gchristensen: "waiting for device /dev/root to appear..."
<sphalerite_> nhill: it shouldn't do that by itself. It was probably you :)
<gchristensen> fragamus: somehow you can tell it to make the root device bigger
<fragamus> but I dont know the right nixos stuff to have it use that volume
EG^ has quit [Ping timeout: 248 seconds]
<gchristensen> nhill: how did you manage to make a block device named root?
<fragamus> yeah root device bigger sounds like what I am after
<sphalerite_> gchristensen: it's the default name, it uses that for a root device passed on the kernel commandline
<nhill> gchristensen: I've done nothing... this is the message from the installer
<nhill> sphalerite_: Well, after it failed I could no longer boot
<nhill> sphalerite_: had to use a recovery usb to resetup secure boot
<sphalerite_> nhill: are you trying to boot the installer or an installed system?
<nhill> sphalerite_: installer
<sphalerite_> nhill: nixos doesn't support secure boot afaik
<gchristensen> fragamus: insteaed of sdd use sda maybe
<nhill> just verified the sha256
<nhill> installed it with unetbootin
<fragamus> If I make the root device bigger, I have no real confidence that nixos will use that extra space
<nhill> sphalerite_: That's fine, but the installer should not brick my damn system
aanderse has quit []
<fragamus> like the partition table comes from the ami right?
aanderse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight opened pull request #35017: fix error handling and return code (master...nix-prefetch-git_error_handling_fix) https://git.io/vAnQj
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> fragamus: I have confidence it will :)
<sphalerite_> nhill: unetbootin is terrible. Write the installer to a USB stick using cp from a linux system, or dd mode in rufus
<gchristensen> the / filesystemt is marked for auto-resizing on boot for the ec2 image
<fragamus> yeah well I was pretty sure I could fly when I was a kid
<sphalerite_> nhill: the installer will not brick your system if you don't tell it to
<nhill> sphalerite_: I've never had trouble with it before
<fragamus> I messed up my chin jumping off a concrete slab
<gchristensen> see: nixos/modules/virtualisation/amazon-image, around line 28
<sphalerite_> nhill: nixos's installation image does not work with unetbootin, because unetbootin messes with how it's loaded
<gchristensen> fragamus: I mean if you don't have any fconfidence the trial is free.
<gchristensen> ~freee
<sphalerite_> nhill: and again, your system should not be bricked unless *you* bricked it by running commands that brick it from the installer system or something
<fragamus> yeah but my chin
<nhill> sphalerite_: then why the hell is it recommended in the manual?
<nhill> sphalerite_: I agree that it shouldn't, but it was
<sphalerite_> nhill: if you just unplug the USB stick and reset the ocmputer does it fail to boot??
<gchristensen> nhill: please curb yourlanguage and behavior. sphalerite_ has no obligation to help you.
<sphalerite_> nhill: yeah it really hsouldn't be recommended i nthe manual. We need to fix that. In fact I'm going to fix it right now because we've had issues with this before
<gchristensen> fragamus: you wereen't looking at the .nix source for your jump beforee you jumped. a key difference!
<fragamus> oh yeah
<nhill> sphalerite_: correct
<nhill> I will use dd
<gchristensen> then no bricking involved
<gchristensen> no reason to be so upset
<fragamus> that does look nice: autoResize = true;
<nhill> gchristensen: bricking was definitely involved
<nhill> why can't you guys seem to hear what I'm saying?
<sphalerite_> nhill: Your system did not boot. It is not bricked.
<sphalerite_> err
<nhill> semantics sure
<sphalerite_> your system still boots. It is not bricked.
<nhill> but it was in an unbootable state
<nhill> did not boot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master acd80e4 Austin Seipp: h2o: init at 2.2.4...
<NixOS_GitHub> [nixpkgs] thoughtpolice pushed 2 new commits to master: https://git.io/vAn7X
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 33cfad9 Austin Seipp: hyperfine: init at 0.4.0...
<sphalerite_> not really. You could have booted it by pressing C in grub and then typing exit
<gchristensen> purely transitory and easy to resolve.
<sphalerite_> assuming it's grub. Something like that.
<sphalerite_> Anyway. Make sure not to *actually* brick your system with dd :)
<nhill> it is, but grub did not load
<nhill> I had to use a recover usb to reinstall the bootloader
simukis has quit [Ping timeout: 268 seconds]
<gchristensen> uhh what
<nhill> yes
<nhill> did y'all not hear me before?
<nhill> I plugged in unetbootin stick... had error "mounting tmpfs on /... waiting for /dev/root......"
<sphalerite_> no, I haven't heard you at all :) reading your messages is aggravating enough, I'm glad I don't have to hear them
<gchristensen> nhill: and then what happened?
<nhill> removed usb stick and rebooted... bios no long reconized any bootloaders
rauno has joined #nixos
<sphalerite_> that's not something the installer will do.
<sphalerite_> If you can show me a reproducible way of obtaining these results I'll accept it, but I simply do not believe you
<nhill> Yeah, I've picked up on that pretty clearly
coot has quit [Ping timeout: 240 seconds]
<sphalerite_> specifically the bit where the previously existing bootloaders don't work anymore.
<sphalerite_> The waiting for /dev/root bit, yes, I've seen that before.
<sphalerite_> If you produce some instructions that allow me to reproduce the bit where the existing bootloader stops working, then I'll believe you on that bit too
ottidmes-laptop has joined #nixos
<nhill> Yes, I'll spend several hours helping debug a distro that I can't even install
<nhill> Risking my personal data in the process
jrolfs has quit [Ping timeout: 256 seconds]
<gchristensen> soundss like maybe NixOS isn't a good fit then
<sphalerite_> nhill: you're also welcome not to.
<gchristensen> we're not able to provide a seemless experience with no problems
<sphalerite_> nhill: also if installing *any* OS is risking your personal data, you're risking your personal data anyway by not having a good backup strategy.
<ottidmes-laptop> I went experimenting again with my GPU to see if I can get it to run with a newer driver then the proprietary available only at kernel 4.4 (and below), but I am perplexed, the GPU seemed to have crashed once again, but when I logged in again after 10 minutes (via lightdm), it seems to work fine
<nhill> It would just be nice if you addressed my questions instead of telling me that what I experienced didn't happen
<nhill> Like use dd instead of unetbootin even though it's in the manual
<nhill> or how about the actual error I got from the installer
chris| has quit [Quit: Quit]
<sphalerite_> nhill: if you want help getting nixos to work or are convinced that the boot breakage is nixos's fault and can confirm it then I'm glad to help you
<nhill> Yeah, I'm trying to freaking install it
<sphalerite_> nhill: sorry, what are the questions there?
<nhill> installer completely fails
<nhill> Timeout waiting for /dev/root
<sphalerite_> nhill: your first messages as far as I can see were "Okay.... "Timed out waiting for device /dev/root"" and "trying to install from usb stick". I do not see a question there.
<sphalerite_> You still haven't asked a question.
<nhill> ?
Ubercow has joined #nixos
winem_ has quit [Ping timeout: 255 seconds]
<ottidmes-laptop> nhill: Does the USB stick normally work, e.g. does it work with any other liveCD of another distro?
<sphalerite_> I don't know what you want. Do you want to know why this is happening? Do you just want to know how to fix it?
<sphalerite_> I can't help you very well if I don't know what kind of help you want.
<sphalerite_> Complaints aren't questions.
<ottidmes-laptop> sphalerite_: You have made your point
<nhill> No problems with the stick. Anything would be helpful
<nhill> Why is it failing?
<nhill> What are the fixes?
<sphalerite_> nhill: the fix is writing the image directly to the USB stick, i.e. `cp nixos-*.iso /dev/sdX` where sdX is the appropriate node for your USB stick. Or dd if you prefer. Up to you.
bpa has quit [Remote host closed the connection]
arianvp2 has quit [Quit: arianvp2]
<sphalerite_> The reason it's happening is that unetbootin copies the files to the USB stick
<ottidmes-laptop> nhill: I always use as root: dd if=/path/to/nixos.iso of=/dev/sd<device_letter_of_USB_stick> bs=4M status=progress && sync
alexteves_ has quit [Ping timeout: 256 seconds]
mkoenig_ has quit [Remote host closed the connection]
<sphalerite_> whoops, didn't finish writing that message. Unetbootin copies the files to a partition on the USB stick which doesn't have the name that the installer image is looking for
<sphalerite_> ottidmes-laptop: add oflag=direct instead of && sync and you'll get more accurate progress :)
<ottidmes-laptop> sphalerite_: Thanks, did not know that one :)
alexteves_ has joined #nixos
mkoenig has joined #nixos
<ottidmes-laptop> sphalerite_: But I am also obviously directly going to forget it, so I guess it is high time to make it into its own shell function
<nhill> ottidmes-laptop: is the blocksize critical?
<ottidmes-laptop> nhill: For speed, yes
fendor has joined #nixos
xcmw has joined #nixos
Ross has quit [Quit: ZNC - http://znc.in]
JayVii has quit [Ping timeout: 265 seconds]
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #35018: irssi: 1.1.0 -> 1.1.1 (master...irssi-1.1.1) https://git.io/vAnFD
NixOS_GitHub has left #nixos [#nixos]
nixer has joined #nixos
<nixer> How can I upgrade to 1.12? I know it hasn't been released yet.
<etu> (it's now called 2.0)
<nhill> usb stick is working with dd
<sphalerite_> nixer: in nixos, nix.package = pkgs.nixUnstable
<sphalerite_> nixer: on other OSes, nix-env -f '<nixpkgs>' -iA nixUnstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #35019: [17.09] irssi 1.0.7 (release-17.09...17.09/irssi-1.0.7) https://git.io/vAnFj
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> nhill: glad to hear it! Any questions, don't hesitate to ask.
kus_ubuntui686 has joined #nixos
kus_ubuntui686 has quit [Max SendQ exceeded]
mkoenig_ has joined #nixos
jrolfs has joined #nixos
<nhill> can I use swapfiles from the installer?
mkoenig has quit [Ping timeout: 264 seconds]
<ottidmes-laptop> nhill: You can modify /etc/nixos/configuration.nix of the installer itself and configure the swap devices there and then `nixos-rebuild switch` the installer itself
<sphalerite_> yes, create a swapfile (head -c 2G /dev/zero > /mnt/swapfile ; mkswap /mnt/swapfile) and then enable it using swapon (swapon /mnt/swapfile)
<sphalerite_> a swap partition is preferable over a swap file when possible though.
<ottidmes-laptop> nhill: Or swapon... yeah, that is easier
<nhill> ok
<nhill> I prefer swapfiles, why a partition?
<sphalerite_> a file goes through the filesystem and may be fragmented as a result, which can be bad for performance
fendor has quit [Ping timeout: 256 seconds]
<sphalerite_> depending on the filesystem you may also have some trouble when swapping happens, I'm not sure of the exact details but this is very much not recommended with zfs for instance
<sphalerite_> I think a partition will also still perform better than a file, even if the file isn't fragmented
92AACUWKJ has joined #nixos
92AACUWKJ has left #nixos [#nixos]
<92AACUWKJ> [nixpkgs] andir pushed 2 new commits to master: https://git.io/vAnbN
<92AACUWKJ> nixpkgs/master 9ce085f Andreas Rammhold: Merge pull request #35018 from andir/irssi-1.1.1...
<92AACUWKJ> nixpkgs/master 4893d35 Andreas Rammhold: irssi: 1.1.0 -> 1.1.1...
7YSAAIHRB has joined #nixos
<7YSAAIHRB> [nixpkgs] andir closed pull request #35018: irssi: 1.1.0 -> 1.1.1 (master...irssi-1.1.1) https://git.io/vAnFD
7YSAAIHRB has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to release-17.09: https://git.io/vAnbj
<NixOS_GitHub> nixpkgs/release-17.09 c632884 Andreas Rammhold: Merge pull request #35019 from andir/17.09/irssi-1.0.7...
<NixOS_GitHub> nixpkgs/release-17.09 c3a1cac Andreas Rammhold: irssi: 1.0.6 -> 1.0.7...
NixOS_GitHub has left #nixos [#nixos]
<Dezgeg> no, the performance is the same as the swap code just asks the filesystem for access to the raw blocks on swapon()
<nhill> Dezgeg: I was wondering, since Ubuntu uses swapfiles exclusively
<sphalerite_> #TIL
<nhill> not that they care about performance tho
<ottidmes-laptop> But it could still depend on the file system you are using, btrfs does not support them: https://btrfs.wiki.kernel.org/index.php/FAQ#Does_btrfs_support_swap_files.3F
jtojnar has joined #nixos
<gchristensen> also swap-on-zfs requires some guts
szicari has joined #nixos
<Dezgeg> yes, if the filesystem can't support someone writing to the raw disk behind their back (i.e. CoW, checksums) then it should'nt claim supporting swap
shabius has joined #nixos
<sphalerite_> Dezgeg: is the fragmentation thing still correct?
<sphalerite_> AFAIU it is in fact rather unlikely to be the case with a filesystem like ext4, especially if it's created early on in the filesystem's lifetime
<Dezgeg> yes, fragmentation still applies of course
<dhess> sphalerite_: that's a good point, I had never considered the fragmentation issues.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs_ has joined #nixos
<dhess> On the other hand, if I'm swapping so much that it matters I have other issues, and I prefer the flexibility of swapfiles vs. a fixed partition
<sphalerite_> fair point
<nixer> sphalerite_: thanks
jrolfs has quit [Ping timeout: 264 seconds]
fragamus has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
<nixer> sphalerite_: Actually, I'm on OSX and this doesn't change the nix-daemon. Any easy way to restart the daemon?
<sphalerite_> nixer: not sure how that setup works unfortunately. Maybe try #nix-darwin
<LnL> nixer: sudo launchctl kickstart -k system/org.nixos.nix-daemon
<dhess> nixer: nix-darwin will manage that for you. It's great.
<dhess> (among other nice things that it does)
<gchristensen> "upstream cannot be trusted to consistently produce versions that are usable in production" ouch
<LnL> yeah, the daemon will restart if you update nix or change the nix.conf
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34883: acpica-tools: init at 20180209 (master...acpica) https://git.io/vAqFA
NixOS_GitHub has left #nixos [#nixos]
<LnL> gchristensen: ?
xcmw has quit [Quit: Textual IRC Client: www.textualapp.com]
<nixer> LnL: The daemon still seems to be from 1.11.15?
<LnL> what did you do to update?
<nixer> LnL: nix-env -f '<nixpkgs>' -iA nixUnstable, I guess I have to do that as root instead of my user?
<LnL> yeah, that would only update the client
jrolfs has joined #nixos
<LnL> also I think you might need to unload/load the service plist to get it to run the new daemon after you upgrade the root profile
jrolfs_ has quit [Ping timeout: 276 seconds]
ambro718 has joined #nixos
szicari has quit [Quit: szicari]
<gchristensen> LnL: a comment on the issue tracker about Jenkins
Ross has joined #nixos
szicari has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework> how do I install ack?
<sphalerite_> ldlework: nix-env -f '<nixpkgs>' -iA ack
<gchristensen> or nix-shell -p ack
coot has joined #nixos
ma272 has quit [Ping timeout: 276 seconds]
ma272 has joined #nixos
simendsjo has quit [Ping timeout: 248 seconds]
ssmike has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
davidak has quit [Ping timeout: 276 seconds]
mai_at_saturn has joined #nixos
taktoa has quit [Remote host closed the connection]
nixer has quit [Quit: Page closed]
szicari has quit [Quit: szicari]
hakujin has quit [Ping timeout: 276 seconds]
ssmike has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<mai_at_saturn> after lots of scratching my head followed by running a long efibootmgr command I didn't understand, I've successfully installed nixOS (I hope). But now I really feel like I don't understand at all how grub and efi and boot stuff works. I'm not sure where I could learn more, anyone have any suggestion on resources?
asuryawanshi has joined #nixos
<mai_at_saturn> (probably not exactly the correct channel, but close enough)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vAcep
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master ce35114 Shea Levy: nixUnstable: 2.0pre5943_52c777a7 -> 2.0pre5950_3a5a241b
<ottidmes-laptop> mai_at_saturn: boot.loader.systemd-boot.enable or (boot.loader.grub.device = "nodev"; and boot.loader.grub.efiSupport) should have handled that for you
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #35015: nixUnstable: pre5943_52c777a7 -> pre5947_d26b71fd (master...nix-unstable) https://git.io/vAnXP
NixOS_GitHub has left #nixos [#nixos]
<mai_at_saturn> ottidmes-laptop, I had boot.loader.grub.efiSupport set to true, but I still always ended up at a "reboot and select proper device, or insert boot media in selected boot device" error message
JosW has quit [Quit: Konversation terminated!]
Mateon1 has quit [Quit: Mateon1]
<mai_at_saturn> i might have also cp'd grub/grub.efi to boot/bootx64.efi too, but I'm not sure if I already tried that before the efibootmgr command. The command, by the way, was described here: https://bbs.archlinux.org/viewtopic.php?pid=910369#p910369
<ottidmes-laptop> mai_at_saturn: I had trouble with Grub on Arch Linux, which I tried to install first, there systemd-boot worked perfectly, so I used systemd-boot as well on NixOS at first, but I preferred Grub's UI, so I then tried Grub with those 2 options that worked as well for me. But just to get things working, I would recommend systemd-boot first
<mai_at_saturn> I'm already writing from nixOS, so whatever I did worked, so I guess the problem would be that I'd like to understand what's happening.
Mateon1 has joined #nixos
<ottidmes-laptop> mai_at_saturn: Yeah, but I guess you want your installation to be reproducible, so I would document what you did to make it work, and then clean your /boot and try to reinstall just by using the NixOS options
rihards has quit [Quit: rihards]
Slabity has quit [Remote host closed the connection]
<mai_at_saturn> that's a good idea, ottidmes-laptop. Thanks.
<ottidmes-laptop> mai_at_saturn: You also want to set this to true: boot.loader.efi.canTouchEfiVariables
<ottidmes-laptop> I believe I just had boot.loader.efi.canTouchEfiVariables and boot.loader.systemd-boot.enable both set to true and that worked for me
sigmundv has joined #nixos
<mai_at_saturn> nixos-rebuild doesn't work, complaining about grub stuff, so I'll try right now. Thanks again for the help.
<ldlework> garbas neat nix-virtualenv
<ldlework> I hope it works
mai_at_saturn has quit [Quit: Leaving]
civodul has joined #nixos
szicari has joined #nixos
davidak has joined #nixos
boomshroom has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vAcJz
<NixOS_GitHub> nixpkgs/master 0be2746 Michael Weiss: pythonPackages.scapy: 2.2.0 -> 2.3.3
NixOS_GitHub has left #nixos [#nixos]
mai_at_saturn has joined #nixos
deba5e12 has quit [Quit: WeeChat 1.9.1]
chrisbarrett has joined #nixos
<mai_at_saturn> ottidmes-laptop, your suggestion worked. just added your configuration changes, and started from a fresh /boot
dan_b has joined #nixos
<ottidmes-laptop> mai_at_saturn: Great to hear!
hiratara has quit [Ping timeout: 255 seconds]
Guest78634 has quit [Quit: Lost terminal]
<ottidmes-laptop> mai_at_saturn: Personally I am using grub 2, just because I becomes really annoying that you cannot properly see the version and time of a configuration in the labels that are generated for systemd-boot entries, while in grub they are clearly readable, especially when you are experimenting and need to keep track of a valid configuration to go back to
hiratara has joined #nixos
<ottidmes-laptop> Maybe I should create an issue for that though
<mai_at_saturn> maybe it would also work just changing canTouchEfiVariables, then. I might try that later.
ssmike has quit [Ping timeout: 240 seconds]
<makefu> regarding gsoc, weirdly enough wireguard was chosen for a gsoc project. however what jason (main dev) did was mainly linking to the wireguard todo list ( https://www.wireguard.com/gsoc/ ).
<gchristensen> jason is usually in here fwiw
ssmike has joined #nixos
nuncanada has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
<dhess> Did Nix(*) apply for GSoC?
<gchristensen> yeah
endformationage has quit [Quit: WeeChat 1.9.1]
<dhess> and?
<gchristensen> declined
MP2E has joined #nixos
tertleeltret has joined #nixos
<gchristensen> they say it wa a close choice, but since some of our projects were ill-defined they declineed
<dhess> too bad. Are there "actionable" items to correct for next time?
<gchristensen> eyah, zimbatm sent a good email to the ML about it
<dhess> oh cool, sometimes I forget there's an ML :)
<gchristensen> :)
<makefu> it feels like other projects had put a lot more effort into fleshing out their gsoc overview pages
<gchristensen> yeah, ours was a b it last minute
kelleyNif has quit [Quit: Leaving.]
szicari has quit [Quit: szicari]
<makefu> so an action point is definitly a dedicated page for gsoc and some fleshed out ideas prepared a bit ahead of time just for the gsoc entry
<dhess> jeeze, that eta-lang GSoC page looks like more effort went into it than most early-stage start-ups' pages
<gchristensen> GSoC project idea: a nixos marketing team ;)
<dhess> lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #34928: makeModulesClosure: support firmware (master...firmware) https://git.io/vAOr2
NixOS_GitHub has left #nixos [#nixos]
davidak has quit [Remote host closed the connection]
davidak has joined #nixos
davidak has quit [Remote host closed the connection]
davidak has joined #nixos
yann-kaelig has quit []
asuryawanshi has quit [Remote host closed the connection]
<bhipple[m]> Nix is in dire need of a marketing team. And doc writers :)
<gchristensen> bhipple[m]: for chief doc writer :)
erictapen has quit [Remote host closed the connection]
<__monty__> Isn't the motto "Avoid success at all costs."?
<simpson> "Avoid (success at all costs)", and it's the motto of the Haskellers, not of Nix.
<bhipple[m]> Actually I think this is one of the more important issues for adoption:
knupfer has quit [Ping timeout: 265 seconds]
<__monty__> simpson: Not sure if double bluff or you actually think I don't know -.-
<bhipple[m]> Since every enterprise env will generally start by putting multiuser on a Deb DE/build farm first
<simpson> __monty__: Why ask questions if you already know the answer?
<__monty__> Exactly.
erictapen has joined #nixos
<simpson> No, that was a real question; I don't know why you'd ask rhetorical questions on IRC.
quqvv has joined #nixos
Neo-- has joined #nixos
<simpson> bhipple[m]: While I don't think that this is actually the adoption problem (I personally think people are just bad at change and need to be dragged kicking and screaming to victory sometimes) I agree that it's a good PR.
<__monty__> The same issue holds in the arch community bhipple[m]. They're so deluded into thinking pacman's great that they believe it's nix's fault for not playing along nicely : )
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c632884e64e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<__monty__> simpson: My retoric question was just a bit of fun, but also I like how haskell's slowly getting popular because of its merits rather than marketing.
<simpson> __monty__: Haskell's got some pretty powerful marketing going on. Their memes are pretty popular. Really, any ML could have become popular, but for Haskell it seems quite memetic.
<gchristensen> ^
klntsky has quit [Ping timeout: 255 seconds]
<__monty__> I disagree, SML never had an industry grade compiler afaik and ocaml still lacks proper multithreading support I believe.
<__monty__> Only popular haskell meme I know is the monads and endofunctors one. Do tell me the others.
hakujin has joined #nixos
zarel has quit [Quit: Leaving]
<gchristensen> 2how about this one, __monty__ https://twitter.com/jcreed/status/963135436674781185
<simpson> "monads" is massive. "purely functional" is another big one. "Haskell is maths" is one that used to be more common. There's lots of clinger-ons, like "static types, like in Haskell, are better than Language X".
<__monty__> gchristensen: That's not obviously haskell imo.
hiratara has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/33cfad9a111 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<gchristensen> but haskell is just maths
lexsomething has quit [Ping timeout: 260 seconds]
<gchristensen> ;)
hakujin has quit [Ping timeout: 265 seconds]
hiratara has joined #nixos
<simpson> Folks do really want Hask to be Haskell. Too bad it isn't.
<tokudan[m]> I'm having trouble compiling an npm module that seems to need a header file dns_sd.h, is there an easy way to add that somewhere in the node2nix generated expressions?
klntsky has joined #nixos
vcunat has joined #nixos
<__monty__> I think "monads" as a meme hurts haskell more than helps it spread.
<__monty__> Most people like purity but not in the strict sense as in haskell, so again not a clear positive.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vAct3
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 5bede1a Herwig Hochleitner: cask: init...
<__monty__> Haskell's ADTs are amazing and nix should feel bad for being untyped ; )
<simpson> Maybe. It's hard to say, but I think that *any* exposure to a meme can be "hazardous" or "infectious". Ever heard of Lojban, the logical language? I'm likely the first speaker you've ever talked to, but you probably picked up a meme letting you know of its existence years ago.
rauno has joined #nixos
coot has quit [Quit: coot]
<simpson> I assure you that ADTs can be done without types: https://github.com/monte-language/typhon/blob/master/mast/lib/gadts.mt
<__monty__> Actually I only know of it because I knew someone interested in it, not a fluent speaker by any means but he dabbled.
<simpson> Oh, cool.
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vAct4
<NixOS_GitHub> nixpkgs/master d3ea26d Herwig Hochleitner: zcashNh: init 0.4b
<__monty__> A GADT without a type doesn't make sense.
<simpson> Anyway, I think we've drifted way off-topic. I should look at my nixpkgs PRs.
<simpson> (An ADT can be defined by its eliminator rather than its type. This GADT library's main purpose is to help write eliminators.)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vActr
<NixOS_GitHub> nixpkgs/master e47e45c Herwig Hochleitner: Revert "zcashNh: init 0.4b"...
NixOS_GitHub has left #nixos [#nixos]
<simpson> (Oleg has a really cool demo of this: http://okmij.org/ftp/tagless-final/nondet-effect.html )
<mai_at_saturn> I thought I understood that /etc/nixos/configuration.nix had all the informations needed to describe my system - for example, I could back it up, and install a copy of my system on another machine. While reading the manual, I ran nix-env -i hexchat, and now I can use hexchat. However, I can't find anything about hexchat in /etc/nixos/configuration.nix. I'm pretty sure I have some fundamental misunderstanding
<mai_at_saturn> about how nixOS works.
<mai_at_saturn> Say I wanted to back up everything I needed to install the same system again. What would I need to back up? Or even better, in addition to the nixOS manual, what should I read to learn more about nixOS? (Or do I just need to read the manual more carefully?)
<__monty__> A Type can never be equal to something that's not a type : p
ryanartecona has joined #nixos
<gchristensen> mai_at_saturn: nix-env is imperativev package management. put hexchat tinconfiguration.nix yourself and then your backup story is true
<simpson> mai_at_saturn: Your Nix user environments aren't stored in configuration.nix. They're managed by nix-env, like you've found. You can either maintain the list of packages in nix-env, or you can put them in configuration.nix, or you can put them in local .nix files which you use with nix-shell.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master b7b2a4f Herwig Hochleitner: connmand: add extraFlags option to service
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vActy
<__monty__> Is there nothing left in $HOME that wouldn't be declarative?
coot has joined #nixos
<mai_at_saturn> Let me make sure I understand this conceptually: if I want something to be part of my "system", so that I can always "count" on it being that way, it goes in /etc/nixos/configuration.nix. As long as I do this, by backing up /etc/nixos/configuration.nix I always get the same "system" as defined earlier.
knupfer has joined #nixos
<ottidmes-laptop> __monty__: If you use something like home-manager, then even $HOME could be declerative as well
<tokudan[m]> mai_at_saturn: basically yes. if you include other files from configuration.nix, you need to backup them as well, of course
<mai_at_saturn> I think I get it. Thanks.
Neo-- has quit [Ping timeout: 260 seconds]
<ottidmes-laptop> mai_at_saturn: And if you build your own custom installer iso, which is quite easy to do in NixOS, you can even simplify the steps needed for prepping a system to install NixOS on. I have an installer that includes things like making git checkouts, so it truly becomes, prepping the file system and calling my install script, and I am back in my described environment
<quqvv> When I run a nix-shell shebang script in a pre-commit hook, it complains "Not a git repository"
<quqvv> When I run the same script directly, there's no problem. Does that make sense?
<quqvv> (I can also solve the immediately issue via setting GIT_DIR, but I'd like to understand what's going on and that also introduces other problems)
<mai_at_saturn> I guess what I still don't get, then, is what the nix user environments are *meant* to be used for.
<ottidmes-laptop> mai_at_saturn: If you want to allow users to install their own packages, that would be one use case
<ottidmes-laptop> mai_at_saturn: Personally I only use nix-env when I want to use something for a short time (test, one time usage, etc.)
lord| has joined #nixos
<quqvv> Nevermind. It was actually a git issue, not a nix complication
coot has quit [Quit: coot]
ottidmes-laptop has quit [Quit: Page closed]
Ross has quit [Quit: ZNC - http://znc.in]
quqvv` has joined #nixos
quqvv has quit [Ping timeout: 255 seconds]
quqvv`` has joined #nixos
quqvv` has quit [Read error: Connection reset by peer]
davidak has quit [Ping timeout: 256 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #35021: python-pysqlite: fix darwin build (staging...darwin-pysqlite) https://git.io/vAcYZ
NixOS_GitHub has left #nixos [#nixos]
mai_at_saturn has left #nixos ["Leaving"]
jrolfs_ has joined #nixos
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c632884e64e (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
coot has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
jrolfs has quit [Ping timeout: 248 seconds]
quqvv``` has joined #nixos
quqvv`` has quit [Read error: Connection reset by peer]
coot has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
quqvv```` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 4 new commits to master: https://git.io/vAcOT
<NixOS_GitHub> nixpkgs/master db38e0c Tuomas Tynkkynen: kernel config: Cleanup self-test module disabling...
<NixOS_GitHub> nixpkgs/master 64fa0d5 Tuomas Tynkkynen: kernel: Add deps for building 4.16
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7a7e8a8 Tuomas Tynkkynen: kernel config: Disable USB_SERIAL_* on 4.16 and above...
Ross has joined #nixos
quqvv``` has quit [Ping timeout: 260 seconds]
zzamboni has quit [Quit: Leaving.]
quqvv```` has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
<tertleeltret> hi
__monty__ has left #nixos [#nixos]
jrolfs_ has quit [Ping timeout: 260 seconds]
<WilliamHamilton> hi, after a `nixos-rebuild switch --upgrade` my firefox has no sound (I install it in the global nixos configuration, and tried removing it and adding it again); do you have any idea on how I could debug this problem?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ce35114ee4c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
tgunb has joined #nixos
ottidmes has joined #nixos
<tgunb> rnhmjoj[m]: where am i supposed to put your code?
knupfer has quit [Ping timeout: 255 seconds]
<sphalerite_> I've set networking.wireless.userControlled.enable = true; but it doesn't seem to have had any effect on the wpa_supplicant unit and I still can't use wpa_cli. Why might this be?
<rnhmjoj[m]> tgunb: is this about firefox?
<sphalerite_> WilliamHamilton: that's odd and I don't know the solution to your problem, but I opened a sound-related PR for firefox today https://github.com/NixOS/nixpkgs/pull/35005
<sphalerite_> WilliamHamilton: enabling pulse may or may not fix stuff for you too
freeman42x]NixOS has quit [Ping timeout: 255 seconds]
ryanartecona has quit [Quit: ryanartecona]
Adluc has quit [Ping timeout: 256 seconds]
snajpa has quit [Ping timeout: 260 seconds]
<sphalerite_> WilliamHamilton: try setting nixpkgs.config.firefox.pulseaudio to true, rebuilding and switching, and check if it works then
<sphalerite_> WilliamHamilton: assuming you're using pulseaudio, that is.
<sphalerite_> if you're not it probably won't have any effect
Mateon1 has quit [Remote host closed the connection]
hakujin has joined #nixos
Mateon1 has joined #nixos
<WilliamHamilton> sphalerite_: will do in a moment, I didn't use pulseaudio till now (does that mean I'm using alsa? I never looked into the difference)
fragamus has joined #nixos
srk has quit [Ping timeout: 240 seconds]
pie__ has joined #nixos
Leo` has joined #nixos
<WilliamHamilton> sphalerite_: another thing I noticed trying to debug the firefox problem, is that most of the games packaged with nix fail to start; but let me check the pulseaudio stuff first
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #35022: nix-buffer: make eshell-path-env be inherited (master...patch-10) https://git.io/vAc39
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> WilliamHamilton: yeah enabling pulseaudio generally might fix your problem even if you don't set the firefox option
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vAc3b
<NixOS_GitHub> nixpkgs/master 8ac63bd Herwig Hochleitner: clojure: fix for running in pure environments...
NixOS_GitHub has left #nixos [#nixos]
<Leo`> I have a derivation which cannot be reached from amy root (as reported by nix-store at least) but nix-collect-gc won't collect it. Any idea why and how I can force-remove it?
logzet has quit [Remote host closed the connection]
pie_ has quit [Ping timeout: 268 seconds]
<sphalerite_> WilliamHamilton: since iirc dmix isn't enabled for alsa by default whic means only one program can access audio devices at a time
<sphalerite_> WilliamHamilton: so your issue may also be fixed by stopping anything else that's got audio open before starting firefox (try lsof /dev/snd/* to see what's accessing it)
<sphalerite_> Overall pulseaudio is an easier way of solving the problem though, I'd say
snajpa has joined #nixos
<WilliamHamilton> sphalerite_: tangential question: when I do nixos-rebuild switch, do I generally need a reboot to be sure that hardware changes are been followed on? How do I think about this in general?
srk has joined #nixos
srk has quit [Changing host]
srk has joined #nixos
<WilliamHamilton> sphalerite_: the dmix stuff would explain something for sure, ok the rebuild has finished
<sphalerite_> Leo`: did you run the nix-store -q --roots as a regular user? There may be in-memory reerences to it which can only be read by superuser but are nevertheless preventing gc of it
<Leo`> sphalerite_: No, as root.
<Leo`> (Well, at least I just tried again as root and same result.)
<sphalerite_> WilliamHamilton: most changes can be applied without rebooting. Key exceptions are the kernel and some services that won't be restarted automatically like display-manager
<sphalerite_> Leo`L and nix-store --delete <path> also tells you it can't be deleted?
<sphalerite_> WilliamHamilton: in the latter case you can still restart them manually, but with display-manager for instance you'll want to be careful since it'll kill any graphical sessions
<Leo`> sphalerite_: Hmm. Cannot delete it since it's still alive.
Adluc has joined #nixos
<WilliamHamilton> sphalerite_: for now enabling pulseaudio didn't seem to solve the problem; just to be sure, I'll try a rebbot
<WilliamHamilton> reboot*
<sphalerite_> WilliamHamilton: logging out and back in should be enough for this case
ma272 has quit [Ping timeout: 276 seconds]
<sphalerite_> Leo`: do you very desperately need to be rid of it?
<Leo`> Kinda.
ma272 has joined #nixos
<sphalerite_> Try rebooting and then running nix-store --delete again
<sphalerite_> out of curiosity ­– why?
<Leo`> Well I'm not entirely sure, but it's a custom derivation and I'm afraid I completely messed up with it and want to build it again.
<sphalerite_> You don't need to delete it
<sphalerite_> If you change the derivation it will result in a different derivation hash, thus a different output path
<Leo`> Yes but I cannot change the derivation since it does basically nothing except cloning the repository.
<sphalerite_> still, you don't need to delete it
<Leo`> But for some reason .pyc files appeared in the /nix/store. I thought the /nix/store was supposed to be read-only but eh??
<Leo`> I'm still trying to figure out how these ended up there.
<WilliamHamilton> sphalerite_: I eventually rebooted, not having read your comment in time, and I'm happy that it works now! Thanks for the help, I'm going to use pulseaudio from now on 😅
<Leo`> So my intuition was: remove that thing and build it again.
<sphalerite_> WilliamHamilton: glad to hear it!
dan_b has quit [Ping timeout: 248 seconds]
<sphalerite_> Leo`: yes, it is supposed to be. Sometimes python manages to write them anyway (not sure of the details)
<sphalerite_> but in this case you'll probably want nix-store --repair-path
vidbina has joined #nixos
<Leo`> Ha maybe.
<Leo`> The issue I have is very weird.
<Leo`> I'm trying to package some Django application.
<Leo`> And when I run it manually from the version installed in the /nix/store it works...
<Leo`> When I run it manually from the *exact* same revision but cloned elsewhere it fails with a strange database error that no amounts of syncdb can fix...?
<Leo`> It's really getting me mad.
<fragamus> Hi I am trying to get haskell stack to run on nixos and it seems there has been some problems over the years. Can anyone tell me how to do it?
ambro718 has quit [Ping timeout: 256 seconds]
dnovosel has joined #nixos
<Leo`> Urhhhh. I used repair-path and that got rid of the .pyc. And now: if I copy the code from the /nix/store and run it, the bug happens, if I link to it, it works.
<Leo`> This is so frustrating...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jbedo opened pull request #35023: bioconductor: 3.4 -> 3.6 (master...bioconductor) https://git.io/vAcGP
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_> why are wpa_supplican't human factors so bad… config manpage consisting purely of examples, CLI containing some 50 commands that most users won't care about and not making the most important ones obvious...
<sphalerite_> Leo`: why are you copying it out anyway?
stephenjudkins has quit [Remote host closed the connection]
<gchristensen> sphalerite_: something something foss
stephenjudkins has joined #nixos