gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || 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://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<bemeurer> clever: Aha, bingo :)
<Myrl-saki> clever: Were you gonna show me a method?
<clever> Myrl-saki: was going to mostly make educated guesses based on the contents
<Myrl-saki> clever: Ah. :P
nur0n0 has joined #nixos
<clever> Myrl-saki: oh, also: nix show-derivation /nix/store/5bk1ddvdzxhixj3lhlaps2yvzhhgzg4h-blaze-builder-0.4.0.2-r1.cabal.drv
<clever> Myrl-saki: combine that, with the attrs in a derivation with the same name, basically
bemeurer has quit [Quit: WeeChat 2.1]
sir_guy_carleton has joined #nixos
griff_ has joined #nixos
astsmtl has quit [Ping timeout: 252 seconds]
dbmikus_ has quit [Quit: WeeChat 2.1]
Guanin has quit [Ping timeout: 248 seconds]
<Myrl-saki> ughh
shabius has quit [Quit: Leaving]
<Myrl-saki> the price we pay for our views of correctness. :/
<Myrl-saki> Wait what
<Myrl-saki> Is hackage2nix.yaml using stack?
<clever> ?
<Myrl-saki> Or is the k-v values only inspired from stack?
<Myrl-saki> Actually, I'm stupid and sleepy.
shabius has joined #nixos
sigmundv__ has joined #nixos
<Myrl-saki> I saw extra-packages and immediately thought Stack. Everything else is barely close to stack.
ldlework has joined #nixos
acarrico has joined #nixos
<Myrl-saki> clever: How should I merge 2 files of this format?
<Myrl-saki> Oh wait, this was the fixed point thingy we were thinking
<Myrl-saki> gah.
<clever> yeah, that looks like fixpoint stuff
<ldlework> clever: can you link your dotfile repository?
<Myrl-saki> clever: You were talking about modules and not doing //, does this apply to package sets too?
<clever> Myrl-saki: // can be used with package sets, after you supply the self argument
<Myrl-saki> Or can I just do `attrs: self: a attrs self // b attrs self` to merge 2 things
woodson has quit [Ping timeout: 245 seconds]
<Myrl-saki> > to merge 2 things
<clever> ldlework: https://github.com/cleverca22/nixos-configs is most of it
<{^_^}> undefined variable 'to' at (string):41:1
<Myrl-saki> sweet jesus
<ldlework> clever: thanks
<Myrl-saki> clever: Think `attrs: self: a attrs self // b attrs self` will work?
<clever> probably
<ldlework> clever: where is configuration.nix
<Myrl-saki> I'll give it a try next time. :P
<Myrl-saki> Also, is everyone guaranteed to have a <nixpkgs>?
<Myrl-saki> I'm doing something hacky with my stuff.
<clever> ldlework: only my router is on there in full, under deployments
<Myrl-saki> import <nixpkgs/pkgs/development/haskell-modules/configuration-ghcjs.nix>
<clever> Myrl-saki: pkgs.path + "/pkgs/development/haskell-modules/configuration-ghcjs.nix
<clever> "
woodson has joined #nixos
<Myrl-saki> clever: Yeah, that's also what I saw before. Why that over this?
<clever> it uses the same version of nixpkgs as pkgs, rather then the one in NIX_PATH
<Myrl-saki> ...
<Myrl-saki> offc.
<Myrl-saki> clever: Thanks for explaining. I was almost about to make a PR to change that to <nixpkgs/...> <.<
steell has quit [Ping timeout: 248 seconds]
<Myrl-saki> Who can I ping regarding stackage2nix?
<ldlework> If I want a highly modular configuration, so that I can compose bits of configuration together into complete configuration.nix files for different hosts and environments does it make sense to arrange those partials into a local "repository"? That is, a file near my various configuration.nix files that export a single giant object with all my configuration partials organized into groups like compilers, editors,
<ldlework> browsers, utilities and so on, and then somehow slap that onto pkgs.myrepo so that in my configuration.nix configs I can refer to those packages?
<ldlework> Should I compsoe those snippets as callPackage modules?
<ldlework> Is this over complicating things, or a worthy goal?
Fare has joined #nixos
<clever> ldlework: i just keep everything in a single repo, and have several starting files, like amd-nixos.nix and laptop.nix
<clever> and one of those starting files is in the imports of configuration.nix, which is purely whats needed to boot and nothing else
<ldlework> Yes, I plan on doing a symlink for configuration.nix to a hostname based .nix file
<ldlework> So I've got the similar idea. I'm just thinking, how to organize the partials.
<ldlework> I want to be able to include other nix files in imports = [];, but I also want to be able to parameterize them.
<ldlework> So I suppose that each of my modules would have to be a function returning a nixpkgs module.
<clever> ldlework: create custom options
<clever> ldlework: look at the vim.nix in my nixos-configs repo
<ldlework> And then I would import and call the function, which would return a proper nixpkgs module, which could go into imports = [];
<ldlework> Is that the right idea, before I look?
<Myrl-saki> ughhh, i really want a threadripper. >~<
<clever> ldlework: its better to use options then to try and pass params to the module yourself
<ldlework> Hmm, interesting so "options" allows you to define the interface by which other code can configure.
<ldlework> I forget the declare / define distinction but I think I remember this.
<clever> ldlework: thats how every single nixos service works
<ldlework> clever: so far, I had one huge configuration.nix. Then I simply broke it apart with each part being in a mundane nixpkgs module, which I simply then refer to in imports = [];
<ldlework> But there's no ability to customize what gets imported that way.
<ldlework> So with your way, I'd have to add the module to imports like before, but then my configuration.nix could set values for options for things that were included if I need non-defaults for that specific configuration.nix?
<clever> ldlework: yep
<ldlework> That would probably end up reading pretty clearly in the top-level file.
<clever> ldlework: you can also still make another file, that sets common groups of options
<ldlework> clever: that would be a normal nixpkgs module, that would utilize the options from the other modules, and I would have to add that to imports = []; too right?
<ldlework> Or I guess the file that was grouping some common things together could import the things it needed.
<ldlework> Making the top-level file even cleaner.
<clever> ldlework: configuration.nix and everything in the imports list, is treated as normal nixos modules
<ldlework> Right right.
Sonarpulse has quit [Ping timeout: 256 seconds]
thc202 has quit [Quit: thc202]
<ldlework> clever: I kinda feel like it would be useful to have a public repository of those kinds of things were people could collaborate on nice nixpkgs modules that were not packages, but configuration abstraction modules.
<ldlework> I think home-manager does a little bit of this, it ships some nixpkgs modules that provide abstractions for installing but also configuring some applications.
<ldlework> Like those options translate into a properly rendered configuration with those options, etc.
<ldlework> I feel like I'm about to spend a few hours writing some abstractions that only I will ever use, and that feels sort of shameful.
<clever> ldlework: sort of like https://github.com/NixOS/nixos-hardware ?
<ldlework> Yes, exactly!
<ldlework> But for other things.
griff_ has quit [Quit: griff_]
karlguy has joined #nixos
<ldlework> clever: I feel like that repo should be structured more like nixpkgs though.
<ldlework> Where the default.nix exports an object with every available hardware as an attribute.
<ldlework> And the laziness makes that ok, since only the options you utilize and enable will be used, etc
ericsagnes has joined #nixos
<ldlework> Instead of doing that <direct/file/reference/for/hardware/type> thing
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Myrl-saki> Is there a nix-copy-closure equivalent to nixops?
rauno has quit [Ping timeout: 252 seconds]
oltoAltn has joined #nixos
<clever> Myrl-saki: what do you need to copy?
olto has quit [Ping timeout: 260 seconds]
<Myrl-saki> clever: drvs.
<clever> Myrl-saki: why do you need to copy them?
<Myrl-saki> clever: For nix-shell.
<clever> and you cant use the nix expressions normally?
<Myrl-saki> clever: nixops doesn't have nixpkgs.
<clever> what exactly are you trying to do?
mbrgm has quit [Ping timeout: 252 seconds]
<Myrl-saki> clever: `nixops deploy`, then `nix-shell` to one of my packages.
<Myrl-saki> For some unpackPhase/buildPhase kind of thing.
<clever> and you cant run the nix-shell locally or eval the nix expressions remotely?
<Myrl-saki> The nix-shell can be run locally, but I want to test it on the server.
<clever> why does it have to be a nix-shell on the remote server?
mbrgm has joined #nixos
<i0-dfn> i'm using -hr to profile retainer sets but it doesn't tell me the actual object being retained...
<jasongrossman> ldlework: I agree. When I've wanted things out of that hardware repository I've copied and pasted them into my configuration.nix, which is obviously not ideal.
<i0-dfn> sorry, wrong channel
<ldlework> clever: what do you think about this? https://gist.github.com/dustinlacewell/e623bac70a73a0f9c2a451b814cbd5ee
<ldlework> jasongrossman: any interest in collaborating on such a repo? not limited to hardware quirks
<ldlework> obviously my example is trivial as shit
<clever> ldlework: looks like a start
<ldlework> but if I do the whole nested-attribute repo object thing, I could do config.nixos.powerManagement.enable = true; and get sensible powerManagement.
<ldlework> I'm still wondering if I should go the full callPackage 9-yards
<jasongrossman> I'm a newbie and don't have anything much that I understand yet. Very happy to collaborate in principle.
<ldlework> Because sometimes like in this case, we're basically creating a new enable option just to enable some other enable option, plus 1 other setting.
<ldlework> Well I guess callPackage doesn't really help with that.
<krey> is it possible to run a shell command when evaluating a nix expression?
<krey> i'm looking in builtins or lib
<krey> clever: interesting, thank you
<krey> 1
jasongrossman has quit [Remote host closed the connection]
aminechikhaoui has quit [Ping timeout: 260 seconds]
roconnor has joined #nixos
<ldlework> clever: when you are first setting up the partition pre-nixos-install and you have to copy your configuration.nix to /etc/nixos/configuration.nix, I want to instead clone a repo to the partition somewhere, then symlink the right configuration.nix to /etc/nixos/configuration.nix
<ldlework> What would be the proper way to make it so that nixos-install ends up making whatever path I choose for that git clone be owned by the main user I setup for the system?
jperras has quit [Ping timeout: 245 seconds]
<ldlework> Chowning it ahead of time to UID 1000 and ensuring the user I make has that UID?
<ldlework> Or is there something better.
roconnor_ has joined #nixos
<ldlework> Basically once I reboot into the machine, I want the user I login with to be able to start working on the source configuration in /nixcfg or something
blankhart has quit [Ping timeout: 245 seconds]
<ldlework> I'm assuming there's no way to have nixos-install scripts.
roconnor has quit [Ping timeout: 252 seconds]
<clever> ldlework: i always set uid = 1000; on myself in the config, for nfs reasons
<ldlework> Right, so the best I can do is manually chmod that git checkout to uid 1000?
<ldlework> before nixos-install?
<clever> yeah
<ldlework> OK helper script it is.
aminechikhaoui has joined #nixos
<clever> ldlework: you may also want to look at my justdoit.nix
<clever> ldlework: justdoit
blankhart has joined #nixos
markus1199 has joined #nixos
blonkhart has joined #nixos
<ldlework> that is nuts
<clever> that nixos module puts the compiled copy of the script into systemPackages
<ldlework> But I'm not sure how I would actually run that.
<clever> so if you include that module in your installer ISO, then its pre-installed on the ISO
<clever> so you can just boot the iso, login as root, and run justdoit
markus1189 has quit [Ping timeout: 260 seconds]
<ldlework> what's zfs pool?
<clever> the filesystem
<clever> it hashes all data stored so any corruption can be idenfied
<ldlework> I thought xfs was the new hotness.
<clever> all data is immutable once on disk
<clever> compression
<clever> dedup
<clever> snapshot support
<ldlework> So basically, I could modify this to clone my git repo in order to get the target config, etc
<clever> sort of
<clever> the use-case in that git repo is doing kexec
<clever> look at the session.md in the same dir
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework> Hmm I'm too stupid to know what you're showing me.
<clever> ldlework: in that example, you build a special tar, upload it to literally any linux machine, then untar and run /kexec_nixos
<clever> ldlework: it will then boot into nixos on a ramdisk, ssh back in, run justdoit
<gchristensen> ldlework: ideally your image would already contain your config, not be fetching it.
<gchristensen> ldlework: the Packet.net installers work the same way, the tarball of the installer contains the fully built system it is about to install
<ldlework> This is too confusing right now.
<gchristensen> fair
rauno has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41066 → abcm2ps: 8.13.21 -> 8.13.22 → https://git.io/vhLcz
sigmundv__ has quit [Ping timeout: 245 seconds]
i0-dfn has quit [Ping timeout: 252 seconds]
i0-dfn has joined #nixos
sbdchd has joined #nixos
seafood has joined #nixos
Fare has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41067 → busybox: 1.28.3 -> 1.28.4 → https://git.io/vhLcA
blankhart has quit [Ping timeout: 240 seconds]
blonkhart has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e22d072c641 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
blonkhart has joined #nixos
blankhart has joined #nixos
palo_ is now known as palo
<{^_^}> [nixpkgs] @dtzWill opened pull request #41068 → z3: 4.6.0 -> 4.7.1 → https://git.io/vhLC3
lassulus_ has joined #nixos
slyfox has quit [Ping timeout: 256 seconds]
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
slyfox has joined #nixos
jbboehr has quit [Remote host closed the connection]
mizu_no_oto has joined #nixos
mahalel_ has quit [Remote host closed the connection]
mahalel_ has joined #nixos
<ldlework> infinisil: the problem with home-manager's solution to nixops is that you have to include the username in the configuration, https://github.com/rycee/home-manager/commit/1bc59f729047886b845ffd9162d40593fad5c7f0#diff-64db6a14865c5395b8c3922da8aaa404R604
<ldlework> so you can't really make generic modules to import which would be applied to the main user of the system whoever they are
<ldlework> unless you always use the same username always
<ldlework> hmmmmmm
<ldlework> s/nixops/nixos
lanelet has joined #nixos
tzemanovic has quit [Remote host closed the connection]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
tzemanovic has joined #nixos
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
spacefrogg has joined #nixos
joehh has quit [Ping timeout: 240 seconds]
<ldlework> clever: you probably understand the problem too
<ldlework> it make creating reusable configuration like this, https://gist.github.com/dustinlacewell/944a9c4f9b40545ef5565492723e63cc
<ldlework> not work
<ldlework> :$
tzemanovic has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
<ldlework> Interesting, that means that there is also no way to make these home-manager modules portable between nixos use and non-nixos use
<ldlework> rycee: any thoughts?
iqubic has joined #nixos
mizu_no_oto has joined #nixos
roconnor_ has quit [Ping timeout: 264 seconds]
mizu_no_oto has quit [Client Quit]
blonkhart has quit [Quit: WeeChat 1.9.1]
blankhart has quit [Ping timeout: 260 seconds]
tzemanovic has joined #nixos
fragamus has joined #nixos
seafood has quit [Read error: Connection reset by peer]
<ldlework> How do I do this from my configuration.nix?
seafood has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #41070 → arangodb: 3.3.8 -> 3.3.9 → https://git.io/vhLlE
schoppenhauer has quit [Ping timeout: 260 seconds]
<iqubic> ldlework: Have you installed anyother packages using your configuration.nix?
<ldlework> yes, from nixpkgs.
schoppenhauer has joined #nixos
<ldlework> pkgs.this pkgs.that
<ldlework> programs.other.enable = true
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8d1eddea16a (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<ldlework> etc
<ldlework> not sure how to do the equivalent nix-env thing
<iqubic> good. Well, you can install home-manager in the exact same way, as home-manager is in nixpkgs.
<ldlework> that wont install it from git master
<iqubic> It won't?
<iqubic> Why not?
<ldlework> will it? why would it
<iqubic> Oh. I'm wrong, and you are right.
<ldlework> my favorite outcome
<iqubic> I'm sorry, I don't know how to install the latest version of home-manager from within your configuration.nix.
ikitat has joined #nixos
woodson has quit [Ping timeout: 245 seconds]
steell has joined #nixos
MP2E has joined #nixos
woodson has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
endformationage has quit [Quit: WeeChat 1.9.1]
Fare has joined #nixos
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
palo has quit [Ping timeout: 245 seconds]
palo_ has quit [Ping timeout: 240 seconds]
GamingKitten[m] has joined #nixos
tredontho has joined #nixos
MP2E has quit [Remote host closed the connection]
tredontho has left #nixos [#nixos]
drakonis has quit [Remote host closed the connection]
<ldlework> How do I make it so this derivation depends on home-manager in nixpkgs such that home-manager is also installed into the system environment and not just during build time?
<ldlework> just add buildInputs = [ home-manager ]; ?
<GamingKitten[m]> Hello, is anybody on right now that can help me out? There's a possibility that a miner is is one of the nix packages as I just setup a server and it's making connections to pool<dot>aira<dot>life.
tredontho has joined #nixos
<cbarrett> I've managed to screw up the permissions on my nix store and probably some other things. I'm on Mac OS (high sierra)
jasongrossman has joined #nixos
palo has joined #nixos
seafood has quit [Quit: seafood]
palo has quit [Changing host]
palo has joined #nixos
Fare has quit [Ping timeout: 245 seconds]
<GamingKitten[m]> I'm not sure if this is the right place to be talking about a possible miner in a package, though. Is there a better place?
Fare has joined #nixos
<{^_^}> [nixpkgs] @teto closed pull request #31180 → [WIP] Python language server provider → https://git.io/vFncL
<iqubic> I think you might have more luck if you opened a bug report on the nixpkgs github page.
Ross has quit [Ping timeout: 252 seconds]
<GamingKitten[m]> Alright, that sounds reasonable. I'm going to test some things to see if I can narrow it down to a package in the mean time.
Ross has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
UNIcodeX__ has joined #nixos
woodson has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
tmaekawa has joined #nixos
UNIcodeX_ has quit [Ping timeout: 256 seconds]
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
tmaekawa has quit [Client Quit]
<GamingKitten[m]> Well, just to make sure I don't cause panic I want to make sure anyone reading this chat understands it's just my speculation. I just installed a new server and my pihole showed it making connections to an ethereum pool website. That's the reason behind my concern. But it seems reasonable to me that something is up.
<GamingKitten[m]> But again not 100% certain by any means.
sbdchd has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 260 seconds]
palo has quit [Ping timeout: 248 seconds]
mahalel_ has left #nixos [#nixos]
woodson has joined #nixos
<disasm> if you know the port, do a netstat -tulpn|grep port. That'll tell you the process name.
<GamingKitten[m]> Sadly I don't know the port, all I know is the domain.
<GamingKitten[m]> I am using netstat to see if any connections are being made but I don't have much knowledge of the tool or any experience with these sorts of issues.
<disasm> GamingKitten[m]: Try this: sudo netstat -n -A inet -p | grep -v localhost | grep ESTABLISHED|grep <supected ip>
<disasm> for example, leaving a telnet process connecting to my server, I get an output like this from that command: tcp 0 0 10.40.33.165:48628 45.76.4.212:443 ESTABLISHED 6203/telnet
steell has quit [Ping timeout: 248 seconds]
<disasm> GamingKitten[m]: what's your server running?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #40957 → qjackctl: 0.5.0 -> 0.5.1 → https://git.io/vhJjB
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhLBu
<{^_^}> → 6b5dc5cd by R. RyanTM: qjackctl: 0.5.0 -> 0.5.1
<{^_^}> → bbbcc173 by @matthewbauer: Merge pull request #40957 from r-ryantm/auto-update/qjackctl
<GamingKitten[m]> Well damn. I may just be an idiot. It looks like pool<dot>aira<dot>life might be hosting an IPFS node because my IPFS service is the one connecting to it via the IPFS default port (4001).
<GamingKitten[m]> That would make sense, I believe, since it's my understanding that IPFS and Ethereum have a sort-of relationship.
<iqubic> What is IPFS?
<disasm> InterPlanetary File System
<GamingKitten[m]> Thank you disasm, that chain of commands really helped narrow things down.
<cbarrett> a free, distributed CDN (in so many words)
<disasm> GamingKitten[m]: glad to here it!
jasongrossman has quit [Remote host closed the connection]
<disasm> and I mispelled hear, lol
<GamingKitten[m]> IPFS = Interplanetary File System. It's a protocol and application. It's for having decentralized distributed file sharing and it intends to replace HTTP as well if I recall correctly.
<disasm> it's late, time for bed :)
<GamingKitten[m]> Haha thank you again, i hope you have a nice rest.
<GamingKitten[m]> Glad my fears didn't come to life.
ikitat has quit [Ping timeout: 268 seconds]
<GamingKitten[m]> The gist of it is, similar to Bittorrent iqubic but with hashes instead of torrent magnet links/files.
<GamingKitten[m]> It has a bigger goal than simply file sharing, but that's an easy comparison to make ;p
nD5Xjz has quit [Ping timeout: 260 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
nD5Xjz has joined #nixos
<GamingKitten[m]> Alright, I looked into it a little bit more just to help make sure this wasn't a miner and yeah it looks like the Aira site is a project that implements both Ethereum and IPFS. So all seems good. It was just my paranoia acting up when I saw that I was connecting to an ethereum pool server.
jD91mZM2 has joined #nixos
<GamingKitten[m]> Well that's it. Hope everyone on here has a good day/night/rest or whatever. I'm out.
jperras has joined #nixos
karlguy has quit [Ping timeout: 252 seconds]
reinzelmann has joined #nixos
tredontho has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 245 seconds]
palo_ is now known as palo
reinzelmann has quit [Quit: Leaving]
spear2 has quit [Remote host closed the connection]
robstr has joined #nixos
xAFFE has joined #nixos
lanelet has quit [Quit: lanelet]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yaniel has quit [Quit: WeeChat 2.2-dev]
Yaniel has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
tredontho has joined #nixos
ixxie has joined #nixos
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
xAFFE has left #nixos [#nixos]
tredontho has quit [Quit: leaving]
palo has quit [Ping timeout: 260 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sqzlh> can fetchgit/fetchgitPrivate in a custom package configuration be used to always retrieve the latest commit from a stable branch?
Ariakenom has joined #nixos
leat has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bbbcc1731c4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
fragamus has joined #nixos
griff_ has joined #nixos
lassulus has quit [Quit: WeeChat 2.0]
hyper_ch2 has joined #nixos
reinzelmann has joined #nixos
hamishmack has joined #nixos
lassulus has joined #nixos
octe has quit [Ping timeout: 256 seconds]
<teto1> is there any smarter way to use host's nixpkgs from within a nixops VM than using a shared folder ? It's a bit deppressing that nix-shell won't work out of the box
jtojnar_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar_ is now known as jtojnar
xy2_ has quit [Ping timeout: 252 seconds]
lassulus has quit [Quit: WeeChat 2.0]
lassulus has joined #nixos
joehh has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed to release-18.03 « Revert "Merge pull request from ThomasMader/dlang-update (#41008)" »: https://git.io/vhLzL
Ariakenom has quit [Read error: Connection reset by peer]
myshoe has joined #nixos
adamt has joined #nixos
adamt is now known as Guest60151
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
tzemanovic has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
simukis has joined #nixos
balsoft has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dispanser has joined #nixos
hamishmack has joined #nixos
jperras has joined #nixos
lassulus has quit [Quit: WeeChat 2.0]
brendanzab has left #nixos ["Textual IRC Client: www.textualapp.com"]
lassulus has joined #nixos
cheater has joined #nixos
<cheater> hi
<cheater> if i am doing nix build, can i somehow tell it to not stop on the first error, but to continue building until it's exhausted things it isn't erroring out on?
Guest60151 has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 245 seconds]
<elvishjerricco> cheater: --keep-going
<cheater> i.e. if i have 555 libraries to build, and it errors out on lib #2 but can without lib 2 continue to build until say lib 300, will it only stop after encountering libs 301-555 which all depend on 2 possibly transitively?
Ariakenom has joined #nixos
MichaelRaskin has quit [Quit: MichaelRaskin]
<elvishjerricco> cheater: Right. --keep-going will let it continue to build everything that doesn't depend on a failed build
Guest60151 has joined #nixos
fiddlerwoaroof has quit [Ping timeout: 240 seconds]
balsoft has quit [Remote host closed the connection]
balsoft has joined #nixos
tzemanovic has joined #nixos
Guest39430 is now known as ij
fiddlerwoaroof has joined #nixos
<CrazedProgrammer> sorry to ask, but could someone review https://github.com/NixOS/nixpkgs/pull/40611? thanks :)
jtojnar has quit [Quit: jtojnar]
<cheater> elvishjerricco: thank you :)
periklis has joined #nixos
<ldlework> I have my timezone set to US/Chicago but my time is wrong
woodson has quit [Ping timeout: 260 seconds]
fiddlerwoaroof has quit [Excess Flood]
<cheater> CrazedProgrammer: in bash, there should be a " to the left of every $. (and an accompanying " somewhere to the right). This includes stuff at nix level such as ${foo}.
__Sander__ has joined #nixos
furon has quit [Quit: Connection closed for inactivity]
<sphalerite> cheater: ${} is nix syntax that unfortunately collides with the bash syntax
vaninwagen has joined #nixos
<sphalerite> additionally, $out never contains whitespace, so it's safe and common usage not to quote it
<cheater> i know it is, but nicely enough it coincides such that the rule applies to that as well
<cheater> sphalerite: that may be common usage in nix, but in general it's a better rule to quote absolutely everything, rather than to always consider whether you should be quoting something or not
<sphalerite> ldlework: is it correct for another timezone, or is it just completely wrong?
<cheater> that's my experience from doing a lot of bash. people who see unquoted variables and don't really use bash a lot end up using other variables unquoted, forgetting to think about whether they contain spaces.
<sphalerite> cheater: fair enough. But for the antiquotation: it's often used for generating stuff that doesn't become a single bash string in which case it definitely shouldn't be used
<ldlework> I'm guessing it is UTC
<ldlework> Is there a way to use an option value as the name of an attribute in some other config definition?
<sphalerite> for the use of parameter expansions in bash, fair enough.
<cheater> sphalerite: sure, but in this case it is going to be a single argument
<ldlework> Like can I declare an option "main_user", set it to "ldlework" somewhere
<ldlework> then do like
<ldlework> users.users."${config.main_user}".whatever = true
<sphalerite> ldlework: what does `nixos-option time.timeZone` say?
<sphalerite> and yes, that should work.
<ldlework> huh
<ldlework> sphalerite: what's the trick to run a command while temporarilly installing a package for it
<ldlework> I don't have nixos-option
<ldlework> oops I did nix-option
simukis has quit [Ping timeout: 240 seconds]
<ldlework> nixos-option time.timezone doesn't return anything
<sphalerite> time.timeZone
<sphalerite> capital Z
<ldlework> still nothing
<ldlework> maybe my config spells it wrong
<sphalerite> it should complain about a nonexistent option in that case
<ldlework> sphalerite: maybe you also know, can a nixos module, a thing you add to imports = []; of some other module, can it be a simple attrset defining config options?
<ldlework> like man.nix being just { programs.man.enable = true; }
<ldlework> without being a function, etc
<sphalerite> yes, it can be a simple module (just an attrset, no args), a function module (that accepts args and returns an attrset), or a path to a nix file containing either of these.
<ldlework> thanks
<sphalerite> cheater: I suppose in this case the real right thing to do would be to use ${lib.escapeShellArg urn-rt} since that won't break stuff even if the string value of urn-rt contains quotes.
newhoggy_ has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #41072 → zathura: 0.3.9 -> 0.4.0 → https://git.io/vhLVn
<cheater> interesting
<cheater> good to know
<sphalerite> but that's kind of horrible :p the nicest thing would be to just not use bash, like guix does.
newhoggy has quit [Ping timeout: 260 seconds]
michas_ has joined #nixos
<adelbertc> samueldr: sorry for late response
<adelbertc> turns out my issue was related but not the same as yours
<adelbertc> it was a custom script builder i had that did variable expansion similar to what extraCommands was doing
<adelbertc> and it was being interpolated and ended up as invalid bash
<adelbertc> so my fix was to use passAsFile and `cp` instead of `echo $text > foo`
newhoggy_ has quit [Ping timeout: 265 seconds]
coot has quit [Quit: coot]
coot has joined #nixos
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @tazjin to release-18.03 « maintainers: Add tazjin »: https://git.io/vhLwm
joehh has quit [Ping timeout: 260 seconds]
<jD91mZM2> Oh crap! I just upgraded to NetworkManager unstable where I added support for setting dns=none. ....and it doesn't seem to work
* etu runs NetworkManager on nixos-unstable channel and it's fine
<etu> jD91mZM2: Just do a rollback? :)
<jD91mZM2> Nonon I mean it works I have network
<jD91mZM2> But it doesn't stop touching my /etc/resolv.conf
<jD91mZM2> I want it to stay away!!11111
<jD91mZM2> The thing is it added dns=none to the networkmanager config correctl
<jD91mZM2> correctly*
<jD91mZM2> So I guess NetworkManager is just bad
<ldlework> How can I add all of the files in the directory of the current nix file to imports attribute?
simukis has joined #nixos
<jD91mZM2> Actually wait, okay, so manually restarting the network-manager service doesn't actually add the stuff to /etc/resolv.conf
<ldlework> { imports = allTheThingsHere; }
michas_ has quit [Ping timeout: 248 seconds]
<etu> jD91mZM2: Well, it's standard that dhcp clients does that
<etu> jD91mZM2: Have you tried using /etc/resolv.conf.head (not sure it works in nix)
<jD91mZM2> etu: No such file or directory. What dhcp client? How do I disable it?
Fare has quit [Ping timeout: 256 seconds]
<sphalerite> ldlework: some fiddling with builtins.readDir probably
Guanin has joined #nixos
Guest60151 has quit [Ping timeout: 268 seconds]
simukis has quit [Quit: simukis]
periklis has quit [Ping timeout: 245 seconds]
<teto1> when using filesystems.* is there a way to autocreate the mounting points ? my boots fail because I haven't created the mounting points :s
alpha_sh has quit [Ping timeout: 256 seconds]
<jD91mZM2> etu: Seems like resolvconf is doing the updating
newhoggy has joined #nixos
tzemanovic has quit [Remote host closed the connection]
civodul has joined #nixos
alpha_sh has joined #nixos
Guest60151 has joined #nixos
alpha_sh has quit [Ping timeout: 256 seconds]
jasongrossman has joined #nixos
<jD91mZM2> If only nixos would let you set /etc/resolv.conf to immutable
<jD91mZM2> Why does every single dhcp client / network manager / both want to add my ISP's DNS servers
<jD91mZM2> I don't trust 'em
thc202 has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #41072 → zathura: 0.3.9 -> 0.4.0 → https://git.io/vhLVn
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vhLot
<{^_^}> → 7f04fd82 by @dywedir: zathura: 0.3.9 -> 0.4.0
<{^_^}> → 917099b5 by @nlewo: Merge pull request #41072 from dywedir/zathura
alpha_sh has joined #nixos
<{^_^}> [nixpkgs] @gebner pushed to master « fstar: 0.9.5.0 -> 0.9.6.0 »: https://git.io/vhLoa
<jasongrossman> jD91mZM2: Immutable: Good idea.
lonokhov has joined #nixos
johanot has joined #nixos
doyougnu has quit [Ping timeout: 245 seconds]
<sphalerite> jD91mZM2: chattr -i /etc/resolv.conf ?
<jasongrossman> sphalerite: Isn't the problem getting that done at the right time? jD91mZM2 wants it done before some derivations run, I think.
doyougnu has joined #nixos
<jD91mZM2> sphalerite: +i. But yeah I thought that was really bad practice on NixOS and people would hate me
<jD91mZM2> Since y'know it's not done by the config
newhoggy_ has joined #nixos
newhoggy has quit [Ping timeout: 252 seconds]
<tazjin> jD91mZM2: hmm, what'd happen if you just manually set `environment.etc."resolv.conf"`?
newhoggy_ has quit [Client Quit]
octe has joined #nixos
<sphalerite> nixpkgs.overlays = [(self: super: {openresolv = super.runCommand "openresolv-fake" {} ''echo '#!${self.coreutils}/bin/true' > $out/bin/resolvconf ; chmod a+x $out/bin/resolvconf''})];
<sphalerite> :p
<jD91mZM2> tazjin: It worked lol
<jD91mZM2> that's fun
<tazjin> :)
orbekk has quit [Quit: WeeChat 2.0]
orbekk has joined #nixos
knupfer has joined #nixos
<tazjin> jD91mZM2: I'm not sure if any other modules use the config.networking.nameservers setting, but it may be sane to use that to generate the immutable file instead: https://gist.github.com/tazjin/cb365d2ad875473ccd58e789ed89c62a
tzemanovic has joined #nixos
<jD91mZM2> tazjin: Oo nice, thanks
<jasongrossman> It's a bit complicated by the fact that some people WANT other derivations to change resolv.conf. I want my VPN settings to change resolv.conf (using numbers which I can't get from anywhere else).
<jasongrossman> So I guess I just mean that I'd like to see there be a setting to make resolv.conf immutable, but it had better be optional, and I wouldn't set it.
<tazjin> that's sensible :) something like this should probably never be made the default anyways
<sphalerite> on the topic of resolv.conf — is it ok to have multiple search lines in it, and will it do what would intuitively make sense?
<jD91mZM2> I have a suggestion: networking.please.dont.touch.my.resolv.conf.thanks = true
jperras has joined #nixos
<tazjin> sphalerite: based on the man page, I don't think so - it explicitly notes that `nameserver` can be specified multiple times, but says that multiple entries in `search` must be whitespace-separated on one line
* sphalerite needs to learn to check manpages before asking onric
<sphalerite> s/onric/on irc/
sigmundv has joined #nixos
<tazjin> if you're an emacser, check out `M-x woman` for better man page discoverability
<Plato[m]> I'm getting "warning: Nix search path entry /home/foo/.nix-defexpr/channels does not exist, ignoring'.
<Plato[m]> But it _does_ exist.
ThatDocsLady has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 252 seconds]
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #41066 → abcm2ps: 8.13.21 -> 8.13.22 → https://git.io/vhLcz
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « abcm2ps: 8.13.21 -> 8.13.22 (#41066) »: https://git.io/vhL6h
<jasongrossman> Or M-x helm-man-woman
<tazjin> jasongrossman: lets have an intense ivy vs. helm vs. ido debate *sharpens pitchfork*
allana has joined #nixos
<hyper_ch2> if only I knew what ivy, helm and ido were
<jasongrossman> tazjin: Absolutely!
<jasongrossman> hyper_ch2: schisms WITHIN the Editor Wars.
<tazjin> hyper_ch2: different UI components providing completion for user input for emacs applications
<hyper_ch2> there are other viable editors besides ed?
<srhb> No.
<jasongrossman> srhb: Right! Although I think the point is to have fun rather than to shave off important time. Which is also the point of almost all IT.
<srhb> :)
<jasongrossman> Just like accelerating fast is almost never a way of getting somewhere quicker.
<jasongrossman> But it is a way of having fun.
<tazjin> You know when you get a filling at the dentist and they make you bite down on a piece of colouring paper that highlights the spots that need to be filed down?
<tazjin> this is how I see personal tooling improvement - figure out where your annoying spots are and file them down over time ;-)
<srhb> I just have an intense ability to withstand annoyances.
<jasongrossman> Right. Or you could make yourself be less annoyed by them. Depends on whether you enjoy the dentistry or not.
<srhb> For instance, right now I don't have a 'g' key.
* jasongrossman thinks srhb's way is admirable.
<srhb> It's like a superpower.
<jasongrossman> That's great!
<srhb> Yeah, it is reat!
<jasongrossman> This is why I made sure the g was inside my ID, not at the beginning. Presumably you have nick completion.
<srhb> I can actually press the rubber nub usually under the keycap, it's just very uncomfortable :P
<jasongrossman> Even better.
<andi-> you could add a reversed nail in that spot to make it a bit more painful
<jasongrossman> LLOL
Ariakenom has quit [Ping timeout: 260 seconds]
<srhb> andi-++
<{^_^}> andi-'s karma got increased to 1
bitchecker has quit [Quit: bye!]
<andi-> some people walk on nails.. others type :D
jD91mZM2 has quit [Quit: WeeChat 2.0]
bitchecker has joined #nixos
<tazjin> I guess you could then integrate new features like blood sugar level checks into your keyboard
Ariakenom has joined #nixos
<andi-> daily blood bath^Wtest
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sphalerite> blood microdonations!
<jasongrossman> Too close to real life to be funny IMO. Several countries (e.g. India and I think parts of China) are trying to collect biometrics on everybody now.
<{^_^}> [nixpkgs] @johanot opened pull request #41073 → kubernetes: 1.9.7 -> 1.10.3 → https://git.io/vhLPN
tzemanovic has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2f6440eb09b (from 88 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
balsoft has quit [Quit: balsoft]
jperras has joined #nixos
Thra11 has joined #nixos
Ralith_ has quit [Ping timeout: 260 seconds]
maingo has quit [Quit: Connection closed for inactivity]
slyfox has quit [Quit: :)]
jperras has quit [Ping timeout: 252 seconds]
Ralith_ has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
aarvar has quit [Ping timeout: 260 seconds]
humanoyd has joined #nixos
<{^_^}> [nixpkgs] @srhb opened pull request #41075 → Backport: matrix-synapse: 0.28.1 -> 0.30.0 → https://git.io/vhLMU
Fare has joined #nixos
ixxie has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2f6440eb09b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
iqubic` has joined #nixos
<{^_^}> [nixpkgs] @srhb closed pull request #38445 → kubernetes: 1.9.1 -> 1.10 → https://git.io/vxDEj
iqubic has quit [Ping timeout: 276 seconds]
knupfer has joined #nixos
<sphalerite> Almost every time I run `nix copy --all --from ssh-ng://u@h --to file:///some/binary/cache` it prints "failed to lock thread to CPU $n". It doesn't seem to have any adverse effects, but why might this be?
schoppenhauer has quit [Ping timeout: 240 seconds]
<sphalerite> Hm, I suspect it might be because the machine I'm running it on has 8 logical cores while h only has 4, and it's trying to lock to a core on the remote host based on information about the local host.
<sphalerite> niksnut: ^ ?
Guest55520 has quit [Quit: WeeChat 1.9.1]
garbas has joined #nixos
<Plato[m]> What's the format for NIX_PATH?
<Plato[m]> nix complains that a path doesn't exist, but it does. I see that it's "something=some/path", but I have ~/.nix-defexpr/channels at the front, without "something=
<elvishjerricco> Plato[m]: IIRC, there's currently some inconsistency with how the tools view the NIX_PATH. I think nix-env doesn't look at the path at all; only at ~/.nix-defexpr. But the new `nix` command only looks at the foo=... parts of NIX_PATH
<elvishjerricco> Then I think the Nix language looks through *both* for <foo> expressions
<Plato[m]> Oh dear.
Fare has quit [Ping timeout: 245 seconds]
<elvishjerricco> I could be wrong about all this
<elvishjerricco> I'm going on memory here
rolf has joined #nixos
<Plato[m]> I don't even know where NIX_PATH comes from on my machine.
rolf is now known as Guest71150
<Plato[m]> The message is pretty annoying though.
<niksnut> sphalerite: yes, this is probably another case of ssh-ng forwarding all settings to the remote system, which it really shouldn't do
<niksnut> in any case, any reason not to use ssh:// ?
<sphalerite> I use ssh-ng by default since I often use it for building as well
<sphalerite> but in this case, no, I don't think so
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
<Guest71150> How do I make my laptop wake up from suspend when I open the lid? I currently have
<Guest71150> "physlock.services.enable = true;"
<Guest71150> But I have to press the power button to wake it up
<sphalerite> Guest71150: physlock shouldn't affect this AFAIK
<cheater> what is ssh-ng?
<sphalerite> cheater: the "new way" for nix to communicate via SSH.
<sphalerite> I'm not sure of the exact details, but the newer nix protocol allows more actions, like building derivations, which the old one didn't
<Guest71150> sphalerite: What settings do affect it then?
<LnL> niksnut: wasn't that fixed?
<LnL> pretty sure it doesn't forward everything anymore
<cheater> sphalerite: thanks
<cheater> is there a way to get nix build to tell me what derivations it must build? i have a very long build and would like to know what's left.
<jasongrossman> Guest71150: I don't know for sure, but it might be in the built-in firmware/BIOS. In fact I'm pretty sure it IS on some computers.
<sphalerite> cheater: use nix-build instead, I'm not sure if there are any other ways currently
<sphalerite> Guest71150: I think it should usually wake up on open by default, my guess is it's a hardware support issue more than a configuration issue
<sphalerite> not sure how to proceed though.
<cheater> sorry yeah i am using nix-build
<cheater> but it's not telling me what it's going to build or how far it is along
<cheater> how do i get that info?
<sphalerite> oh right in that case maybe you want to use nix build instead :p
<jasongrossman> cheater: Have you tried nix-build ... --verbose?
<sphalerite> it has a fancy progress bar
<sphalerite> but it doesn't tell you what's still queued unfortunately, just how much
<Guest71150> sphalerite: All right that would explain why noone else is asking about it online
<sphalerite> well it's fairly new, the first release to contain it was 2.0 back in April (or March?)
<cheater> oh
<cheater> thanks
<sphalerite> but yeah, progress reporting still isn't ideal
* sphalerite suddenly wants to make a tool that visualises it as a graph
ericsagnes has quit [Ping timeout: 245 seconds]
jD91mZM2 has joined #nixos
Fare has joined #nixos
<LnL> there's no good way to do progress reporting unless the build system supports it
jasongrossman has quit [Ping timeout: 248 seconds]
<LnL> we have the stdenv phases, but the build phase is usually 90% of the build time
fragamus has joined #nixos
smallville7123 has joined #nixos
<cheater> oh, sorry, nix-build does print out what derivations will be built
<cheater> but..
<cheater> can i tell it to tell me the derivations, and all transitive dependencies that need to be built?
<{^_^}> [nixpkgs] @Mic92 merged pull request #41061 → python.pkgs.python-language-server: init at 0.18.0 → https://git.io/vhLmF
<{^_^}> [nixpkgs] @Mic92 pushed 8 commits to master: https://git.io/vhLHW
<{^_^}> → 53d7fe77 by @Mic92: python.pkgs.parso: 0.1.1 -> 0.2.0
<{^_^}> → 1a1799b6 by @Mic92: python.pkgs.jedi: 0.11.1 -> 0.12.0
<{^_^}> → b76177a6 by @Mic92: mypy: make it usuable as a library
camsbury has joined #nixos
__monty__ has joined #nixos
tzemanovic has joined #nixos
ramses_ has joined #nixos
johanot has quit [Quit: Leaving.]
<ramses_> Is there a way to say in configuration.nix "If /boot is a mountpoint, then use these mount options, else, nevermind"? I can't figure out how to do it
sary has joined #nixos
<crystalgamma[m]> I was wondering: is it even possible to nixos-install (or build an installer image) on a platform with native stdenv? When I tried it, it tried to build libapparmor but choked on stdenv.cc.libc being null, which I assume means it tries to use the build system's stdenv …
<LnL> mic92: doesn't buildPythonApplication work fine for libraries?
camsbury has quit [Ping timeout: 252 seconds]
<Mic92> LnL: mypy was not propapagating to python-language-server before.
<srhb> Shouldn't trustedUsers be able to --require-sigs false?
<{^_^}> [nixpkgs] @jlesquembre opened pull request #41076 → kitty: 0.9.1 -> 0.10.1 → https://git.io/vhLHA
Guest71150 has quit [Quit: WeeChat 2.1]
<LnL> Mic92: hmm, thought it only changes the name, did you check the binary?
<crystalgamma[m]> bgamari: I see on github that you did some work on cross-building install images for ARM … is there something I can reuse for POWER?
asuryawanshi has joined #nixos
CrystalGamma has joined #nixos
NightTrain has joined #nixos
<Mic92> LnL: I have logs where it could not import mypy before I made a library.
<Mic92> It also found it if I add mypy to python-language-server's own propagatedBuildInputs
saran has joined #nixos
<LnL> Mic92: might be misremembering just wanted to check since changing the name breaks nix-env -u
<Mic92> LnL: I wished there was no nix-env -u
<Mic92> it is just broken
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL> :)
<Mic92> I should just write an article to teach people how to avoid it.
frank87 has quit [Read error: Connection reset by peer]
Fare has quit [Remote host closed the connection]
Thra11 has quit [Ping timeout: 268 seconds]
frank87 has joined #nixos
saran has left #nixos ["Leaving"]
balsoft has joined #nixos
schoppenhauer has joined #nixos
<LnL> I think -iA also complains if the nam changes (conflicts) if you don't use something declarative
Guest73467 is now known as mkaito
humanoyd has quit [Quit: WeeChat 2.1]
balsoft has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ekleog opened pull request #41077 → nheko: 0.4.1 -> 0.4.2 → https://git.io/vhLQ9
balsoft has joined #nixos
<Mic92> it is a better only install a declarative environment when using nix-env -iA
<Mic92> or just use home-manager
silver has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<Mic92> This is your brain: O .... This is your brain on `nix-env -u`: .
smallville7123 has quit [Quit: rosa]
asuryawanshi has joined #nixos
knupfer has quit [Quit: knupfer]
smallville7123 has joined #nixos
periklis has joined #nixos
Thra11 has joined #nixos
UNIcodeX_ has joined #nixos
<LnL> yeah, but doing that is currently a bit adhoc so not exactly straightforward fork new users
vaninwagen has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @Mic92 merged pull request #41076 → kitty: 0.9.1 -> 0.10.1 → https://git.io/vhLHA
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhL7H
<{^_^}> → 6040ceb9 by @jlesquembre: kitty: 0.9.1 -> 0.10.1
<{^_^}> → db4187c2 by @Mic92: Merge pull request #41076 from jlesquembre/kitty
UNIcodeX__ has quit [Ping timeout: 264 seconds]
newhoggy has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #41058 → lxqt.lxqt-build-tools: 0.4.0 -> 0.5.0 → https://git.io/vhLJg
<{^_^}> [nixpkgs] @jtojnar closed pull request #41059 → lxqt.libqtxdg: 3.1.0 -> 3.2.0 → https://git.io/vhLTw
<sphalerite> Mic92: lol nice
<sphalerite> Mic92: we already have
leat has joined #nixos
<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> So maybe rather than writing your own article you could improve that
knupfer has joined #nixos
<sphalerite> I'm trying to build linux using only the configured remote builder, but it's not using it — using -vvvv tells me "hook reply is 'decline'" after "considering building on remote machine …".
<sphalerite> Why might this be?
knupfer has quit [Client Quit]
<srhb> Does it adhere to the builder flags that linux requires?
flargon has joined #nixos
<srhb> requiredFeatures or whatever they're called
<Dezgeg> yes, the big-parallel problem
<flargon> \bright srhb
<sphalerite> oh so I need to mark the builder as big-parallel?
<srhb> Yup.
<sphalerite> >.>
<LnL> sphalerit: supportedFeatures, known_hosts
<sphalerite> LnL: other remote builds work on it, so it'll be the features thing
<jD91mZM2> Mic92: sphalerite: How about instead of writing articles on how to avoid certain features we just remove the features :^)
<sphalerite> jD91mZM2: will happen eventually :)
<LnL> ah yeah
<sphalerite> there's just no `nix install` or whatever to replace nix-env yet
<Mic92> jD91mZM2: that would make existing users mad.
<jD91mZM2> Mic92: Only existing users with the following brain: .
rauno has quit [Ping timeout: 245 seconds]
<srhb> jD91mZM2: Please moderate yourself a bit. :P
<jD91mZM2> srhb: I was just quoting him :P
<sphalerite> why does nix.distributedBuilds exist when it could just be based on nix.buildMachines being nonempty?
xAFFE has joined #nixos
flargon has left #nixos [#nixos]
m0rphism has quit [Quit: WeeChat 1.9.1]
sary has quit [Read error: Connection reset by peer]
m0rphism has joined #nixos
ericsagnes has joined #nixos
<sphalerite> why must the kernel be so much code to build
iyzsong has joined #nixos
<srhb> aaaaaaallllll the modules. :P
<sphalerite> on the bright side, with enough parallelism it builds pretty speedily
<sphalerite> unfortunately lots of parallelism is expensive
rauno has joined #nixos
<sphalerite> one dat I will have an aarch64 laptop and have glorious high binary cache coverage
<LnL> sphalerit: enabling the build-hook and configuring the machines used to be separate
newhoggy has quit [Remote host closed the connection]
<sphalerite> LnL: ??
jperras has joined #nixos
Acou_Bass has quit [Ping timeout: 245 seconds]
coot has quit [Quit: coot]
<LnL> with 1.11 the build hook was something separate
<LnL> just creating /etc/nix/machines wouldn't enable it
rauno has quit [Ping timeout: 252 seconds]
jperras has quit [Ping timeout: 260 seconds]
<sphalerite> oh right to answer my question about nix.distributedBuilds
<sphalerite> right
<{^_^}> [nix] @edolstra merged pull request #1664 → Setup NIX_PATH correctly in nix-profile-daemon → https://git.io/vFCx5
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/vhLFc
<{^_^}> → d7a84d33 by @matthewbauer: Setup nix_path correctly in nix-profile-daemon
<{^_^}> → 1df32c7d by @edolstra: Merge pull request #1664 from matthewbauer/patch-4
xAFFE has left #nixos ["Error from remote client"]
Thra11 has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
smallville7123 has quit [Quit: rosa]
tzemanovic has joined #nixos
c_wraith has quit [Ping timeout: 256 seconds]
c_wraith has joined #nixos
NightTrain has quit [Quit: Lost terminal]
smallville7123 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41077 → nheko: 0.4.1 -> 0.4.2 → https://git.io/vhLQ9
<{^_^}> [nixpkgs] @xeji pushed commit from @Ekleog to master « nheko: 0.4.1 -> 0.4.2 (#41077) »: https://git.io/vhLFb
rauno has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41075 → Backport: matrix-synapse: 0.28.1 -> 0.30.0 → https://git.io/vhLMU
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to release-18.03 « matrix-synapse: 0.28.1 -> 0.30.0 (#41075) »: https://git.io/vhLbL
Acou_Bass has joined #nixos
periklis has quit [Ping timeout: 264 seconds]
newhoggy has joined #nixos
<Mic92> Has someone enabled plasma + kmail and can display emails?
Guest60151 has quit [Changing host]
Guest60151 has joined #nixos
<Mic92> Without kde it seems to miss a theme
Guest60151 is now known as adamt
<Mic92> grantlee.template: "Plugin library 'kde_grantlee_plugin' not found."
<adamt> Is there an easy way of getting an oracle jdk installed on nixos?
Guest51021 has joined #nixos
<adamt> (HP decided not to support openjdk for the remote console...)
<srhb> adamt: I think it's packaged. You just need some unfree shenanigans
<srhb> adamt: oraclejdk is the attrname
<etu> yeah, it will tell you to download the files and add it to the store etc
<adamt> srhb: Ah. The goold ol' "oh we must avoid people seeing unfree filth on the package browser web thingy!".
<srhb> adamt: Due to a bug with the requireFile stuff you may want to initially nix-build '<nixpkgs>' -A oraclejdk
<srhb> adamt: Yup.
<etu> Because you have to accept the license on oracles website
<srhb> And download the file by hand... :P
<etu> yeah
newhoggy_ has joined #nixos
<etu> Extra annoying that is.
<Guest51021> Could someone confirm that IPFS does not run properly when enabled via the system configuration?
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<srhb> It would be great if Oracle would just go and die already.
newhoggy has quit [Ping timeout: 245 seconds]
<Guest51021> Guest51021: When I set "services.ipfs.enable = true;" and test the system IPFS fails to start because of a permission error.
<{^_^}> [nixpkgs] @xeji closed pull request #41067 → busybox: 1.28.3 -> 1.28.4 → https://git.io/vhLcA
<srhb> :-)
Thra11 has joined #nixos
<adamt> srhb et. al.: thx.
alexteves has quit [Read error: Connection reset by peer]
<sphalerite> srhb: http://bad.solutions
<etu> sphalerite: :DDD
alexteves has joined #nixos
<srhb> sphalerite: Hahaha. Fantastic.
newhoggy_ has quit [Ping timeout: 248 seconds]
<adamt> Damnit, javaws isn't bundled with neither oraclejdk nor oraclejre. :'/
<sphalerite> adamt: maybe you can use icedtea with oraclejdk?
<srhb> Oh my god. I tried to adjust my "cookie preferences" before accepting cookie on oracle. https://imgur.com/a/oAprcVj
<etu> wow
<adamt> sphalerite: How would I do that?
<sphalerite> adamt: was hoping you wouldn't ask that :p
<adamt> I could also just wait for my windows10 vm to finish updating, but (in case you don't know) waiting multiple hours for that is quite normal. Which is why i don't touch it if I can avoid it. :P
griff_ has quit [Ping timeout: 264 seconds]
<adamt> sphalerite: Isn't icedtea based on openjdk though? Because then i can't use it
<sphalerite> adamt: maybe just setting JAVA_HOME to oraclejdk's path and running javaws from icedtea will do it. I really don't know much about java though.
<cheater> is there a way to tell nix-build to skip tests?
<sphalerite> cheater: no. You can modify the build though.
<sphalerite> adamt: looking at the javaws script, it seems to take the environment variable CUSTOM_JRE into account
<sphalerite> srhb: it seems imgur doesn't work without javascript anymore at all :(
<srhb> :( That's sad.
<{^_^}> [nixpkgs] @peti merged pull request #41060 → all-cabal-hashes: update Hackage snapshot to latest version → https://git.io/vhLkY
<adamt> sphalerite: Ah that's interesting
<{^_^}> [nixpkgs] @peti pushed 2 commits to release-18.03: https://git.io/vhLNb
<{^_^}> → eabc2e65 by @peti: all-cabal-hashes: update Hackage snapshot to latest version
<{^_^}> → 26b6be69 by @peti: Merge pull request #41060 from vaibhavsagar/bump-all-cabal-hashes
<cheater> sphalerite: how do i modify it to do that?
<srhb> cheater: nix-build -E 'with import <nixpkgs> {}; hello.overrideAttrs (oa: { doCheck = false; })'
<cheater> interesting
seafood has joined #nixos
<cheater> what is oa?
Thra11 has quit [Ping timeout: 248 seconds]
<cheater> oh
<srhb> The Old Attributes
<cheater> right
<cheater> hello is the package i'm building, right?
<sphalerite> yes
<cheater> or rather derivation
<srhb> Yep.
<cheater> thanks
Guest27988 is now known as ocharles
<pie_> i get this when i try to run arandr: ImportError: /run/opengl-driver/lib/libGL.so.1: undefined symbol: drmGetDevices2
<pie_> any ideas
<pie_> ?
<cheater> that's really helpful
<sphalerite> package is right in this case I'd say :p
<cheater> ahh ok
<cheater> :)
<sphalerite> because the result is a *different* derivation from what you had before
Thra11 has joined #nixos
Guest51021 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #40697 → memo: 0.2 -> 0.4 → https://git.io/vpAON
<{^_^}> [nixpkgs] @xeji pushed commit from @mrVanDalo to master « memo: 0.2 -> 0.4 (#40697) »: https://git.io/vhLAz
Rusty1_ has joined #nixos
dr_barrucadu is now known as barrucadu
newhoggy has joined #nixos
balsoft has quit [Quit: balsoft]
Guest38570 is now known as sc_
<Myrl-saki> Is it safe to delete the link to my per-user profiles
<Myrl-saki> /nix/var/nix/profiles/per-user/root/channels-3-link
Guest51021 has joined #nixos
<Myrl-saki> Oh wait, that's channels.
<Myrl-saki> I'm stupid.
reinzelmann has quit [Quit: Leaving]
vaninwagen has joined #nixos
<sphalerite> Myrl-saki: why do you want to delete it?
<sphalerite> usually you'd just use nix-collect-garbage for that
<Myrl-saki> sphalerite: Exactly.
<Myrl-saki> sphalerite: I wanted to prune some roots.
CrystalGamma has quit [Quit: Leaving]
<symphorien> there is nix-env --delete-generation iirc
<sphalerite> --delete-generations, yes
<sphalerite> although for channels you'd then also need to pass -p /nix/var/nix/profiles/per-user/$USERNAME/channels
<Myrl-saki> /nix/var/nix/profiles/per-user/myrl/channels-2-link -> /nix/store/my5gqx7z930qf8pksnqviksv5s6s7s6p-user-environment
<Myrl-saki> /nix/var/nix/profiles/per-user/root/channels-3-link -> /nix/store/dqmrrq504fvbh9725dnhpsmlvkm4i1nl-user-environment
<Myrl-saki> /nix/var/nix/profiles/system-538-link -> /nix/store/wfxb8d1cgk43qjs4jh2nyvg979whnx7a-nixos-system-myrl-18.03.git.3734e54
<Myrl-saki> /run/booted-system -> /nix/store/wfxb8d1cgk43qjs4jh2nyvg979whnx7a-nixos-system-myrl-18.03.git.3734e54
<Myrl-saki> /run/current-system -> /nix/store/wfxb8d1cgk43qjs4jh2nyvg979whnx7a-nixos-system-myrl-18.03.git.3734e54
<Myrl-saki> I don't think I can do anything at this point.
<etu> Myrl-saki: pastebins plz
Guest51021 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @dywedir opened pull request #41078 → gopass: 1.6.11 -> 1.7.1 → https://git.io/vhLhc
ikitat has joined #nixos
<Myrl-saki> etu: sorry
<sphalerite> you could remove the user channel profile completely if you don't use user channels
<Myrl-saki> sphalerite: I --references it, and it only uses like 200 MB of storage.
<sphalerite> yeah but if that matters you can :p
<Myrl-saki> True. :P
<Myrl-saki> 6 store paths deleted, 34.81 MiB freed
<Myrl-saki> yay, I guess. :x
<sphalerite> lol
vaninwagen has quit [Ping timeout: 240 seconds]
<symphorien> (shameless self promotion) Myrl-saki: https://github.com/symphorien/nix-du to know what to delete to free more space
oltoAltn has quit [Quit: ZNC - https://znc.in]
<Myrl-saki> Holy yay. Thanks.
<Myrl-saki> symphorien: But I'll have to install Rust and Cargo :thinking:
vaninwagen has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/2f6440eb09b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<Myrl-saki> TIL, you can replace .zip with tar.gz
<symphorien> if you speak in term of space, well, you can garbage collect afterwards :°
allana has quit [Remote host closed the connection]
<Myrl-saki> nix-shell -p 'callPackage (import (fetchTarball "https://github.com/symphorien/nix-du/archive/master.tar.gz")) {}'Anyone know how to temporarily root
<Myrl-saki> Err
<Myrl-saki> Don't mind the trailing message.
olto has joined #nixos
<Myrl-saki> Youknow.
<Myrl-saki> I'm stupid.
<Myrl-saki> works just as fine.
<symphorien> oh
<symphorien> I didn't know it was even possible
<Myrl-saki> I didn't have to do the callPackage/fetchTarball acrobatics.
Guest21076 has quit []
<Myrl-saki> symphorien: I kinda extrapolated it from the nix-env -f. :P
<symphorien> do you end up in the build environment or is it like nix-shell -p ?
<Myrl-saki> Good question.
Guest21076 has joined #nixos
<Myrl-saki> No wonder I was insalling rustc-doc.
<Myrl-saki> Hmmm, wait.
Guest21076 has quit [Client Quit]
<Myrl-saki> these derivations will be built:
<Myrl-saki> /nix/store/b56gvm423ax681ihwfhwybr6lg39446k-nix-du-2-vendor.drv
bitonic has joined #nixos
<Myrl-saki> What does this tell you?
<symphorien> if it builds only that, then it's only the build env
<cheater> srhb: what if my package is not in nixpkgs?
hyper_ch2 has quit [Quit: Page closed]
bitonic has quit [Client Quit]
<symphorien> the real derivation is nix-du-v0.1.2
<srhb> cheater: Depends how it looks
<Myrl-saki> Oh okay.
<symphorien> or so
bitonic has joined #nixos
<Myrl-saki> Then I'll go work with the acrobatics. :P
<cheater> srhb: i just have a default.nix
<srhb> cheater: If you intend to callPackage it, say, nix-build -E 'let pkgs = import <nixpkgs> {}; in (pkgs.callPackage path/to/yourpackage {}).overrideAttrs (oa: ...)'
<srhb> cheater: With which arguments?
<cheater> uhm
<srhb> cheater: { ??? }:
<cheater> well normally i just go in the dir that has default.nix and i do nix-build and that's all
<cheater> oh right ok sorry
<cheater> let me just post it
Peaker has joined #nixos
<cheater> any specific pastebin i should use?
<srhb> cheater: No real preference, there's nixpaste.lbr.uno for nix syntax.
<Myrl-saki> symphorien: Nice polyglot(for some definitions of it) project, by the way. :D
betaboon has quit [Quit: WeeChat 2.0]
rotaerk has quit [Ping timeout: 256 seconds]
<symphorien> you mean several programming languages ?
<Myrl-saki> symphorien: Yeah.
<Myrl-saki> symphorien: What's the Boost dependency for?
<symphorien> it's a dependency of nix
<Myrl-saki> Oh okay.
Peaker has quit [Remote host closed the connection]
Peaker has joined #nixos
<Myrl-saki> symphorien: What to pipe this to? Is this svg?
<symphorien> either to a file, dot format, or to dot to make it svg.
<symphorien> it is all in the readme, maybe I should add it to --help
<symphorien> also pipe it to tred
<symphorien> I plan to implement transitive reduction myself, but later
<sphalerit> Or xdot <(nix-du)
<symphorien> I like zgrviewer
<symphorien> it has nice undocumented features
<CrazedProgrammer> cheater: thanks!
adamt has quit [Quit: WeeChat 2.0]
blankhart has joined #nixos
<Myrl-saki> huh. libcap 12.09
<Myrl-saki> 1209 GB
<Myrl-saki> 12.09 GB
balsoft has joined #nixos
Guest51021 has joined #nixos
cheater has quit [Ping timeout: 260 seconds]
<Myrl-saki> symphorien: Does hard linking make the values look way higher than they're supposetd to?
newhoggy has quit [Remote host closed the connection]
<symphorien> yes
hoshineko has joined #nixos
Kolany has joined #nixos
newhoggy has joined #nixos
<Myrl-saki> Is there a --deoptimizse? :P
Kolany has quit [K-Lined]
<symphorien> taking this into account would make scanning taking approximately as much time as nix-store --optimize, which means way too long
lonokhov has quit [Quit: WeeChat 2.0]
<hoshineko> hello, what's the proper way to use firejail in nixos?, first i was getting a permission error so i added firejail to security.wrappers, and now it says it can't read my profile
ixxie has joined #nixos
rotaerk has joined #nixos
<srhb> Myrl-saki: I think you can theoretically run nix-store --repair-path on every store path with auto optimize switched off, but I'm not sure that it's completely safe.
<srhb> Myrl-saki: Also why though
<srhb> :P
ixxie has quit [Client Quit]
<Myrl-saki> Nix? Unsafe? Heresy!
<sphalerite> hoshineko: basically it doesn't really work AFAIK. I stopped using it after switching to nixos.
<sphalerite> hoshineko: partly because of its extremely limited effectiveness.
jasongrossman has joined #nixos
alexteves_ has joined #nixos
xorkle has quit [Quit: ZNC 1.7.0 - https://znc.in]
xorkle has joined #nixos
<Myrl-saki> stackage2nix = "${fetchTarball https://github.com/typeable/stackage2nix/archive/master.tar.gz}/nix/stackage2nix";
<Myrl-saki> OTOH..
<Myrl-saki> error: The option value `environment.systemPackages.[definition 40-entry 36]' in `/etc/nixos/configuration.nix' is not of type `package'.
<Myrl-saki> Oh right, I have to callPackage, I believe.
smallville7123 has quit [Quit: rosa]
<Myrl-saki> myrl@myrl:/n/store$ sudo du -chs * | sort -h
<Myrl-saki> sudo: unable to execute /run/current-system/sw/bin/du: Argument list too long
<Myrl-saki> Sudo just gave up lmao
jperras has joined #nixos
smallville7123 has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
ThatDocsLady_ has joined #nixos
hoshineko has left #nixos [#nixos]
jperras has quit [Ping timeout: 245 seconds]
<slabity[m]> Has anyone here gotten a NextCloud system deployed using NixOps?
balsoft has quit [Quit: balsoft]
ThatDocsLady has quit [Read error: Connection reset by peer]
leat has quit [Quit: WeeChat 2.0.1]
acarrico has joined #nixos
Peaker has quit [Ping timeout: 245 seconds]
smallville7123 has quit [Quit: rosa]
<{^_^}> [nixpkgs] @dotlambda merged pull request #41078 → gopass: 1.6.11 -> 1.7.1 → https://git.io/vhLhc
<{^_^}> [nixpkgs] @dotlambda pushed commit from @dywedir to master « gopass: 1.6.11 -> 1.7.1 (#41078) »: https://git.io/vhtUo
logzet has joined #nixos
smallville7123 has joined #nixos
leat has joined #nixos
johanot has joined #nixos
newhoggy has quit [Remote host closed the connection]
<eacameron> Is it possible to set the ssh port in the --builders syntax?
blankhart has quit [Quit: WeeChat 1.9.1]
<eacameron> I haven't found a way or example
<gchristensen> I think you have to use an ssh config file
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/26b6be69c4f (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
cheater has joined #nixos
seafood has quit [Quit: seafood]
phreedom has quit [Remote host closed the connection]
chisui has joined #nixos
phreedom has joined #nixos
aminechikhaoui has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
camsbury has joined #nixos
Guest51021 has quit [Ping timeout: 245 seconds]
<cheater> srhb, sorry it took a bit: http://nixpaste.lbr.uno/4XnjbIB4?nix
steell has joined #nixos
rotaerk has quit [Ping timeout: 276 seconds]
<sphalerite> eacameron: yeah just use the ssh config file
<cheater> this doCheck stuff, that can be configured at the command line, right?
<srhb> cheater: The end result you want is to overrideAttrs on drv
<cheater> eg nix-shell --arg doCheck false
<cheater> would that be good?
<LnL> depends on the expression
<cheater> i just posted it
<srhb> cheater: Oh, I missed that. Yep.
<cheater> ok, let me try that then, thank you
<srhb> cheater: That should do it :)
krav_ has quit [Quit: WeeChat 1.9.1]
<LnL> yeah, that works, same with eg. --argstr system x86_64-darwin
m0rphism has quit [Quit: WeeChat 1.9.1]
uralbash has quit [Ping timeout: 260 seconds]
m0rphism has joined #nixos
johanot has quit [Quit: Leaving.]
erasmas has joined #nixos
<infinisil> Hey, I convinced a friend to install Nix on his Manjaro
<infinisil> But now clear throws "/bin/terminal: Unknown terminal type"
johanot has joined #nixos
<infinisil> nano shows "Error: Opening terminal /bin/terminal"
smallville7123 has quit [Quit: rosa]
<infinisil> Anybody know what the reason might be?
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<sphalerite> infinisil: TERMINFO_DIRS and TERM?
gmarmstrong has joined #nixos
<sphalerite> my guess is that TERM is set to /bin/terminal
<sphalerite> although I have no idea why that would be
<sphalerite> maybe that's a weird manjaro thing?
<infinisil> Lol he had set TERM to /bin/terminal is his bash profile
<infinisil> How did he not notice that sooner
<infinisil> He thought it was required for something
<infinisil> But that's obviously the wrong setting
aminechikhaoui has joined #nixos
jperras has joined #nixos
<gmarmstrong> I feel like that would even break Manjaro...
<sphalerite> yeah
steell has quit [Ping timeout: 260 seconds]
Lisanna has joined #nixos
<sqzlh> can fetchgit/fetchgitPrivate in a custom package configuration be used to always retrieve the latest commit from a stable branch?
<Lisanna> sqzlh not without doing bad things
<Lisanna> the right way to do that is to have a script of some kind that generates the fetchgit code, updating the sha256 each time
johanot has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Ping timeout: 240 seconds]
<Lisanna> Has anyone built an equivalent of this in nixpkgs? https://www.gnu.org/software/guix/blog/2018/tarballs-the-ultimate-container-image-format/
<sphalerite> Lisanna: you probably already know about matthewbauer's nix-bundle?
<Lisanna> sphalerite no
<sphalerite> well there's that :D
<sqzlh> Lisanna: ok, I guess thats the price of deterministic configuration.
johanot has joined #nixos
<sqzlh> Lisanna: Thank you
jperras has quit [Ping timeout: 268 seconds]
<Lisanna> sphalerite cool!
tobiasBora has quit [Quit: WeeChat 1.6]
palo_ is now known as palo
dottedmag has quit [Quit: QUIT]
Jackneill has quit [Quit: Leaving]
ericsagnes has quit [Ping timeout: 276 seconds]
colescott has quit [Ping timeout: 256 seconds]
<gmarmstrong> There's also `git ls-remote <url>`, from which you could extract the latest hash...
<Lisanna> sphalerite bet I could use exportReferencesGraph and turn that into a nix function that can take any arbitrary derivation as input
griff_ has joined #nixos
Guest51021 has joined #nixos
<gmarmstrong> Ooh. `git ls-remote <url> | grep refs/heads/master | cut -f 1` outputs the sha256sum.
griff_ has quit [Quit: griff_]
rotaerk has joined #nixos
<jD91mZM2> sphalerite: Wait, can nix-bundle embed runtime libraries?
stepcut has joined #nixos
Mic92 has quit [Quit: WeeChat 2.1]
knupfer has joined #nixos
griff_ has joined #nixos
<bitonic> can i specify using `callCabal2nix` what `library` stanza to use?
knupfer has quit [Remote host closed the connection]
Mic92 has joined #nixos
<sphalerit> jD91mZM2: yes
<stepcut> I use nix-shell a lot to create development environments (in fact, that is all I do. I have almost nothing installed via nix-env). But then I am afraid to run nix-collect-garbage because in addition to wiping the old builds, it will wipe all the current stuff I still care about.
<stepcut> Is this the best method to get nix-shell to add gc roots?
leat has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
orivej has joined #nixos
Neo-- has quit [Ping timeout: 248 seconds]
griff_ has quit [Ping timeout: 252 seconds]
<__monty__> stepcut: What I do is configure buildEnv's that have all the dependencies I could possible want. Then nix-env install those. They don't clutter up the top-level namespace but everything's in the store so you don't need to worry about roots for nix-shell.
Sonarpulse has joined #nixos
<stepcut> __monty__: you create that list of dependencies by hand?
jensens has joined #nixos
<__monty__> Yes.
<__monty__> Don't want to install the entirety of hackage just because I *might* need something : )
<teto1> I am writing a package with several sources it needs to merge , aka `srcs= [ (fetchFromGitHub ...) (fetchurl ...) ] but the unpackPhase fail in nix-shell, is that to be expected ?
johanot has quit [Quit: Leaving.]
camsbury has quit [Ping timeout: 276 seconds]
<__monty__> My config is based on johnw aka jwiegley's. If your needs are similar enough to his you could base your config on it.
<teto1> seems like both are being exported to the "source" folder,I'll try to change the extract folder
<cheater> is it normal to see a Setup.hs that has two shebangs?
<stepcut> __monty__: Not sure that is going to work. While I don't need all of hackage I do need hundreds of packages, and use 3 different versions of ghc, and the list of packages is changing all the time
<cheater> i mean like this https://lpaste.net/5468352202353410048
<logzet> cheater: Is the second line used for additional stack arguments?
<logzet> cheater: Thats normal nix-shell as interpreter usage
Ariakenom has quit [Ping timeout: 252 seconds]
keith_analog has joined #nixos
<__monty__> stepcut: Changing of the list and the ghc version doesn't really matter you just keep appending to the list of packages that are always installed. If you have a way of listing the dependencies you can generate the list. Not like you *have* to do it manually.
<cheater> yea no idea, i've never seen anything like this, i wonder why it has two shebangs
camsbury has joined #nixos
<logzet> cheater: Here is a small tutorial which I used to use this for myself: https://gist.github.com/travisbhartwell/f972aab227306edfcfea
<stepcut> I guess I don't see how that is more appealing than having nix-shell add a gc root. That seems more self managing.
furon has joined #nixos
<__monty__> stepcut: The other part is that nix-shell'll always get newer packages while I can choose when to update a buildEnv.
colescott has joined #nixos
<__monty__> This doesn't apply if you're only defining buildEnv's to use nix-shell though.
<srhb> cheater: That's using the interpreter feature of nix-shell
<stepcut> __monty__: What regulates when I get newer packages is that I have pulled a newer version of nixpkgs...
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<srhb> cheater: Try looking up -i in its man page
<cheater> thanks
<__monty__> stepcut: Sure but you can't update only a single nix-shell that way.
gmarmstrong has quit [Quit: Leaving]
<logzet> I am trying to use nix-shell to dynamically install dependencies (typescript for now) for my emacs, but emacs does only receive the system $PATH wich does not contain typescript
stranger___ has joined #nixos
<logzet> Is this caused by the emacs wrapper in /etc/profiles/per-user/$USER/bin/emacs ?
<stepcut> __monty__: I could by changing the shell.nix to import a different nixpkgs though, right ?
<stranger___> anyone interested in http(s) compression proxy? https://github.com/NixOS/nixpkgs/pull/40939
<stepcut> __monty__: normally it has something like, { nixpkgs ? import <nixpkgs> {}, compiler ? "ghcjs" }:, but I could default that to a different path..
jensens has quit [Ping timeout: 256 seconds]
<__monty__> stepcut: Yes. Another thing is that the more automatic addition has a downside, manual removal. Which one you favor depends on preference and available space I guess.
<gchristensen> srhb: ping
johanot has joined #nixos
<srhb> gchristensen: pong
<gchristensen> PM?
<logzet> nvm, seems to be a bug... https://github.com/syl20bnr/spacemacs/issues/2294
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #40996 → ghc, haskell-infra: #40929 take 2 → https://git.io/vhTeu
<{^_^}> [nixpkgs] @Ericson2314 pushed 13 commits to master: https://git.io/vhtZT
<{^_^}> → 513cd3de by @Ericson2314: haskell-generic-builder: Add extra framework dirs
<{^_^}> → 38fbdcc7 by @angerman: haskell generic builder: Use setup package database for setup-depends
<{^_^}> → e1b9419d by @Ericson2314: haskell generic builder: `setupHaskellDepends` should be `nativeBuildInputs
<stepcut> __monty__: my preference is that if I delete a project directory, and then run nix-collect-garbage, any packages that are no longer used by anyone should be deleted. Which I think the nix-shell + gc-roots solution should do since the roots would be in the project directory
<sqzlh> hmm, when trying to build a custom package configuration with stack, it fails with this really weird error message: "Preventing creation of stack root '/homeless-shelter/.stack/'. Parent directory '/' is owned by someone else."
<sqzlh> any ideas?
<tazjin> sqzlh: the $HOME directory is set to an unusable location by default
<__monty__> stepcut: Yep but that means you keep around the environment for every nixpkgs version you run nix-shell with. I was just suggesting how I achieve something similar to what you want, not trying to say it's necessarily better.
<tazjin> sqzlh: you can pass `--work-dir` to stack as a flag
<tazjin> and set it to some subfolder that you use during the build
<stranger___> anyone intersted in virtual gpu (virgil 3d alternative that supports windows guests)? https://github.com/NixOS/nixpkgs/pull/40242
johanot has quit [Quit: Leaving.]
<sqzlh> tazjin, thank you! Are packages build in their own "sandboxed" directory?
<tazjin> builds execute in a temporary folder in `/tmp/` by default
<tazjin> you can enable stronger sandboxing, too, if you wish
<sqzlh> tazjin, ok thx
jperras has joined #nixos
emmanuelrosa has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dotlambda opened pull request #41080 → home-assistant: add requirements of dependencies → https://git.io/vhtnH
__Sander__ has quit [Quit: Konversation terminated!]
jperras has quit [Ping timeout: 260 seconds]
fendor has joined #nixos
<{^_^}> [hydra] @grahamc opened pull request #562 → Allow channels to be usefully imported by other nix expressions. → https://git.io/vhtc3
sary has joined #nixos
sigmundv has quit [Ping timeout: 245 seconds]
<sqzlh> tazjin: In which directory are buildPhase commands executed? How can I retrieve the location of the build folder to use with stack --work-dir?
<sqzlh> tazjin: I tried creating a subfolder and setting it work-dir to its path, however, it still fails..
<LnL> sqzlh: depends on the build, but it's usually $sourceRoot
<sqzlh> LnL, ok, I'll try that
Neo-- has joined #nixos
aminechikhaoui has quit [Ping timeout: 260 seconds]
<stranger___> when staging will be merged with master? want to try vlc 3
nuncanada has joined #nixos
Neo-- has quit [Ping timeout: 260 seconds]
Thra11 has quit [Quit: IRC for Sailfish 0.9]
knupfer has joined #nixos
aminechikhaoui has joined #nixos
<stepcut> __monty__: if there is a link or something to the buildEnv technique, I am certainly interested in learning more. I am interesting in experimenting with this improved nix-shell workflow, but the buildEnv technique has promise as well. And, I may actually want to use a hybrid approach anyway. The packages we use from work do not change so frequently and need to be more tightly pinned to a specific version of nixpkgs
dottedmag has quit [Quit: QUIT]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
saati_ has quit [Read error: Connection reset by peer]
saati has joined #nixos
<sqzlh> btw. is there a full example of a package configuration somewhere, using stack as a build tool?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
emmanuelrosa has left #nixos [#nixos]
iyzsong has quit [Quit: ZNC 1.6.5 - http://znc.in]
<__monty__> stepcut: John motivates and explains the approach in this talk: https://www.youtube.com/watch?v=G9yiJ7d5LeI Here you can find his nix configuration: https://github.com/jwiegley/nix-config He recently changed stuff so I'm not sure how similar it still is. Here's my configuration based on his, it's a *lot* simpler: https://github.com/toonn/nix-config
vaninwagen has quit [Ping timeout: 265 seconds]
keith_analog has quit [Quit: Konversation terminated!]
rihards has joined #nixos
leat has joined #nixos
maingo has joined #nixos
<stepcut> __monty__: thanks. John is the person who got me to actually start using Nix back when he was still in Chicago.
<tazjin> stranger___: you can just do something like `nix-env -i -E '_: (import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/staging.tar.gz") {}).vlc'` in your user environment to install it from staging
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #41081 → llvm 6: Master version of #39743 → https://git.io/vht86
iyzsong has joined #nixos
stepcut has quit [Remote host closed the connection]
<stranger___> tazjin: that's right, thanks. i just wish to see it in nixpkgs-channels sooner :D
stepcut has joined #nixos
xy2_ has joined #nixos
freeman42x]NixOS has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
stepcut has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos
dbmikus has joined #nixos
ramses_ has quit [Ping timeout: 260 seconds]
woodson has joined #nixos
Guest51021 has quit [Ping timeout: 248 seconds]
fragamus has joined #nixos
<sphalerit> I have some machines netbooting nixos without hard drives. I want to give them persistent SSH host keys. Is there a good way of doing this? Maybe using the TPM (which these machines do have I believe)?
jtojnar has quit [Quit: jtojnar]
Lisanna has quit [Quit: Lisanna]
<gchristensen> oooooohhh cool sphalerit
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
oida has quit [Remote host closed the connection]
oida has joined #nixos
rihards has quit [Quit: rihards]
<__monty__> Hmm, I ran a mac os system upgrade and nix-env has disappeared, is this a known issue? Do I just need to add something to PATH?
<{^_^}> [nixpkgs] @JohnAZoidberg opened pull request #41082 → WIP procps-ng: 3.3.13 -> 3.3.15 → https://git.io/vhtRi
<gchristensen> __monty__: yikes, from what version to what version?
<{^_^}> [hydra] @edolstra merged pull request #562 → Allow channels to be usefully imported by other nix expressions. → https://git.io/vhtc3
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/vhtRd
<{^_^}> → 70eb67fe by @shlevy: Allow channels to be usefully imported by other nix expressions.
<{^_^}> → 7f6d52f4 by @edolstra: Merge pull request #562 from grahamc/141-redux
logzet has quit [Remote host closed the connection]
<__monty__> gchristensen: Yosemite -> recovery to yosemite -> high sierra.
globin has quit [Quit: o/]
Lisanna has joined #nixos
globin has joined #nixos
<cransom> quite a version jump. i wouldn't be surprised if it rewrote all the /etc/bashrcs and profiles and such.
<gchristensen> wow yeah
<gchristensen> and the recovery process is probably not too gentile
<gchristensen> __monty__: do you use bash?
fendor has quit [Ping timeout: 245 seconds]
<__monty__> gchristensen: zshrc
<__monty__> *zsh
<gchristensen> ok
<gchristensen> __monty__: can you paste the contents of /etc/bashrc and /etc/zshrc and /etc/profile.d/nix.sh? also, are there similarly named files nearby, like zshrc.backup or something?
Guest51021 has joined #nixos
<jD91mZM2> Is this in SSH? It's reverted now and probably isn't your problem, but I screwed up ssh apparently in nixpkgs a while ago.
<jD91mZM2> Actually never mind that I'm stupid and didn't read your messages at all apparently
<jD91mZM2> Is it a nix multiuser install?
<rycee> ldlework: It should be possible to use the same Home Manager configuration with both the home-manager tool and the NixOS module. For example, I have a NixOS configuration with `home-manager.users.rah = import ../user/home.nix;` where the `home.nix` is also used with the home-manager tool on a different login.
<__monty__> jD91mZM2: Yes, I think that's the default now.
<gchristensen> for macos yes, not on linux
<__monty__> gchristensen: Working on it, getting lots of command not found's for no reason.
<jD91mZM2> I recently installed nix (single-user though) on an ubuntu scaleway server and got the same issue. Manually added `source . "$HOME/.nix-profile/etc/profile.d/nix.sh"` to my .bash_profile
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/26b6be69c4f (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lisanna> erm... runInLinuxVM's preVM doesn't get stuff from the buildInputs of the runCommand it's nested in?
smallville7123 has joined #nixos
fragamus has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
fragamus has quit [Client Quit]
raynold has joined #nixos
Guest51021 has quit [Quit: WeeChat 2.1]
<__monty__> Any reason for zsh to not find a script that is in a directory on PATH?
<rycee> ldlework: About the home-manager tool, it's unfortunately not supported when using the nixos module. At some point I'd like to fix up the tool to also work in this case but I fear it's pretty far down my list of priorities at the moment :-(
coot has joined #nixos
stanibanani has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
<__monty__> gchristensen: /etc/bashrc http://ix.io/1bnl /etc/bashrc.backup-before-nix http://ix.io/1bnm /etc/zshrc http://ix.io/1bnn Couldn't find /etc/zshrc.* or anything in /etc/profile.d
<cheater> hi
<cheater> how do i make cabal available in nix-shell?
stanibanani has quit [Ping timeout: 240 seconds]
andymandias has quit [Ping timeout: 252 seconds]
<cocreature> cheater: you can just install it globally and not use --pure when invoking nix-shell
fragamus has joined #nixos
<elvishjerricco> cheater: Or you can just add it to the buildInputs of the derivation your shelling
andymandias has joined #nixos
jperras has joined #nixos
<gchristensen> __monty__: in your zshrc and bashrc, put if [ -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh; fi
muzzy has joined #nixos
devhell has joined #nixos
jperras has quit [Ping timeout: 245 seconds]
<sphalerit> or for brevity use && instead of if-then-fi :p
<gchristensen> I'd recommend using the example as written to avoid being too different from what the installer actually puts there
knupfer has quit [Ping timeout: 245 seconds]
<__monty__> Thank you, gchristensen, back up and running : )
<eacameron> sphalerite: I've gotten it to work by specifying things in root's .ssh/config but I'd really rather use CLI since I'm building a tool for others.
katona has joined #nixos
<gchristensen> great!
iyzsong has quit [Ping timeout: 252 seconds]
<sqzlh> hmm.. during building nixos consumes a lot of memory... could it be, downloaded packages are stored in a tmpfs? Can I change this to use the disk instead?
<sphalerit> eacameron: maybe `NIX_SSHOPTS="-p 12345" …`
<sphalerit> ?
<eacameron> sphalerit: Trying
sanscoeur has joined #nixos
Guest63762 is now known as benny
muzzy has quit [Read error: Connection reset by peer]
FRidh has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
<sphalerit> can I get ls to follow symlinks when displaying file sizes?
<sphalerit> ahbnr: no, they're not stored in a tmpfs by default. Builds happen in /tmp so if you have tmpOnTmpfs set it will use RAM for that
<sphalerit> ahbnr: but usually this is just because nix is a RAM-eating monster
<__monty__> Yeah, nix is ramenous.
fendor has joined #nixos
<sphalerit> lol not seen that expression before
fendor_ has joined #nixos
<__monty__> It's commonly used in descriptions of nix, i.e. "Nix is oft referred to as the Ramenous Bugblatter Beast of Traal." ; )
blankhart has joined #nixos
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
fendor has quit [Ping timeout: 248 seconds]
<sphalerit> http://ix.io/1bnU having kernel panic fun while netbooting a machine. Any ideas what might be going wrong here? I suspect this "rootfs image is not initramfs (junk in compressed archive); looks like an initrd" might be part of the problem…
TonyTheL1on has quit [Quit: leaving]
<gchristensen> looks like you need initrd=initrd in the command line args to the kernel
<sqzlh> Linus, its insane.. over 2GiB memory consumption for a package installation.
<sqzlh> This way, nix is useless to me, since it needs to run on a medium to low memory machine
<clever> sqzlh: what command did you run?
<__monty__> sqzlh: You can easily offload the building to remote build machines though.
<sphalerit> yeah, it is. There have been some memory consumption fixes on master but they're not in any released version afaik
<symphorien> sqzlh: it is a known issue https://github.com/NixOS/nix/issues/1969
<sphalerit> ahbnr: maybe if you set `nix.package = pkgs.nixUnstable;` the situation might improve.
<DIzFer[m]> I'm still running nixos on a 256MB VPS
<DIzFer[m]> an by still I mean until I migrate it to my new 1GB instance :P
knupfer has joined #nixos
<sqzlh> clever, nix-build expressionFile.nix . It depends on stack and ghc, so it needs to install ghc, which apparently is the source of the memory consumption
<clever> sqzlh: any time nix is downloading something, it has to keep the entire thing in ram, until the dl is done
<sqzlh> Linus, alright, I might try that
<sqzlh> clever, sounds like a weird design choice to me. Why not stream into a file?
asuryawanshi has joined #nixos
<sqzlh> DlzFer, are you using any special configuration? Did you ever need to install a haskell based package?
<sphalerit> it's not a design choice, it's an implementation bug
<sqzlh> symphorien: Thx for the link
ericsagnes has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6f193b4f903 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<DIzFer[m]> ahbnr: A 4gb swapfile, and a metric ton of patience. No haskell though
<sphalerit> gchristensen: no luck so far. FWIW this is a pre-EFI system. And I'm starting to suspect bad RAM
<elvishjerricco> symphorien: Very frustrating that it seems like the fix to this common issue has been blocked at every turn
<symphorien> what do you mean ?
<elvishjerricco> It's not merged, right?
<elvishjerricco> After months with known solutions?
<sqzlh> DlzFer, ok.. time to increase Swap size... AND patience
ikitat has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
<sphalerit> elvishjerricco: it's fixed on master AFAIK, but not released.
asuryawanshi has joined #nixos
<elvishjerricco> sphalerit: Hm. None of the PRs reachable from the issue were merged and the issue is not closed.
<avn> sqzlh: you can take your c++ skills, and play around memory consumption ;) I believe you got some fun in process ;)
<sphalerit> elvishjerricco: no PR, just committed straight to master
<elvishjerricco> sphalerit: Should the issue be closed then?
<symphorien> sphalerit: the commit linked in the issue is on a fork
<symphorien> not on NixOS/nix
<sphalerit> not really, since people keep encountering it.
<sphalerit> symphorien: looks like it's on master to me.
<symphorien> ah I was looking for e045c41
acarrico has quit [Ping timeout: 245 seconds]
tzemanovic has joined #nixos
acarrico has joined #nixos
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
stranger___ has quit [Quit: Connection closed for inactivity]
blankhart has quit [Ping timeout: 276 seconds]
tzemanovic has quit [Ping timeout: 248 seconds]
steell has joined #nixos
alexteves_ has quit [Ping timeout: 264 seconds]
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #nixos
reinzelmann has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #41084 → haskell generic-builder: Limit usage of --extra-framework-dirs for compat → https://git.io/vhtKk
sanscoeur has quit [Ping timeout: 245 seconds]
steell has quit [Ping timeout: 276 seconds]
reinzelmann has quit [Quit: Leaving]
reinzelmann has joined #nixos
lanelet has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erasmas has quit [Quit: leaving]
<cheater> cocreature: how do i install it globally with nix? or do you mean like from my "outside" OS?
<cheater> elvishjerricco: hmm let me try buildInputs
justanotheruser has quit [Ping timeout: 268 seconds]
<cocreature> cheater: something like "nix-env -iA nixpkgs.haskellPackages.cabal-install". but if you are not on nixos you can also just install it some other way. it doesn’t matter
acarrico has quit [Ping timeout: 240 seconds]
fendor_ has quit [Remote host closed the connection]
<cheater> mhm
fendor_ has joined #nixos
<cheater> hmm i'm not sure how to add buildInputs :/
Neo-- has joined #nixos
contrapumpkin has quit [Ping timeout: 245 seconds]
<cheater> when i do nix-shell, will it just use default.nix?
reinzelmann has quit [Quit: Leaving]
pip3000 has joined #nixos
reinzelmann has joined #nixos
<pip3000> hi! i always have to use kbuildsycoca5 to rebuild the kde application menu. otherwise is doesn't
reinzelmann has quit [Remote host closed the connection]
acarrico has joined #nixos
<pip3000> is this a known issue
reinzelmann has joined #nixos
<pip3000> i installed several application but they didn't show up in the application menu
FRidh has quit [Quit: Konversation terminated!]
aarvar has joined #nixos
<pip3000> does anyone else have this problem?
steell has joined #nixos
<sphalerit> I think so. I don't know about fixes though. Logging out and back in might help, but I'm not sure.
jeaye has quit [Quit: WeeChat 1.9.1]
<pip3000> kk
pip3000 has quit [Quit: Page closed]
Lisanna has quit [Remote host closed the connection]
jeaye has joined #nixos
jeaye has quit [Client Quit]
ixxie has joined #nixos
acarrico has quit [Remote host closed the connection]
asuryawa_ has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
<eacameron> sphalerit: NIX_SSHOPTS doesn't help :(
emmanuelrosa has joined #nixos
acarrico has joined #nixos
<eacameron> Surely the parser for the ssh:// stuff has a way to specify the port. It parses ?ssh-key=file to pass the identity file.
inquisitiv3 has joined #nixos
ikitat has joined #nixos
Neo-- has quit [Ping timeout: 256 seconds]
woodson has quit [Ping timeout: 260 seconds]
<ikitat> Is there a way to have nix download sources/dependencies for offline building, basically download now, build later?
<inquisitiv3> Who of you run NixOS as your daily driver? And what problems do you have with it? I assume that you got some problems, because Nix deviates so far from the common Linux distro.
<inquisitiv3> And when I say daily driver I mean running it on a desktop or laptop.
steell has quit [Ping timeout: 252 seconds]
<gchristensen> inquisitiv3: my main (joke) problem is it is too reliable, so I don't ever erase and try other filesystems or mounting strategies.
<gchristensen> on a more serious note, sometimes it takes time & effort to make something you need work
<averell> i do. basically any non-mainstream software is a potential problem. especially if it's closed source.
<ixxie> inquisitiv3: package availability is lower than with the more popular distros
fendor_ has quit [Ping timeout: 256 seconds]
<ixxie> inquisitiv3: so you will likely at some point have to start packaging stuff
<symphorien> inquisitiv3: the main problem I have encountered is printers. Drivers are crappy and just break in an unusual environment
reinzelmann has quit [Quit: Leaving]
reinzelmann has joined #nixos
<averell> oh man, printers suuuck. xerox-- especially.
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktopPackages.preview: 1.2.21 -> 1.2.22 »: https://git.io/vhtPp
<averell> i have to download a debian package, and manually patch a ppd file for cups.
<inquisitiv3> I'm not to afraid of packaging stuff myself. At least when it isn't to much trouble and to many packages that have to be packaged.
<ixxie> inquisitiv3: this has mainly blocked my use of Nix at work where moving fast is important, but at home 99% of everything I needed for my laptop was available, or was not urgent enough to be a problem
<symphorien> with a specific brother printer, the filter segfaults, and the arch wiki says the only solution is to create a symlink in /usr/share/..../deep
<averell> there's really a lot of upsides too. and very often you could just escape to docker for a quick workaround.
<symphorien> which does not exist on NixoS
reinzelmann has quit [Client Quit]
<inquisitiv3> How much effort is it to package an application? I don't intend to package a Node.JS application in the near future at least.
olto has quit [Quit: ZNC - https://znc.in]
reinzelmann has joined #nixos
<symphorien> it really depends on the application
<ixxie> averell: so when you miss a package you run a docker image?
jeaye has joined #nixos
reinzelmann has quit [Remote host closed the connection]
reinzelmann has joined #nixos
<averell> yes, for example tensorflow in nixos sucks. very long compiles and very often broken or old etc.
olto has joined #nixos
<eacameron> sphalerit: srhb: https://github.com/NixOS/nix/issues/1994
<ixxie> averell: you working with ML stuff?
blankhart has joined #nixos
<averell> occasionally. mostly just dabbling.
simukis has joined #nixos
<ixxie> the main problem is tensorflow is outdated? Because of course if it was up to date hydra would build it and it wouldn't have to be built locally right?
<averell> it's built using bazel, which apparently needs a lot of attention
<ixxie> so it could be resolved in theory, just needs some work
<averell> it is regularly resolved, some people are putting in a lot of effort. but i mostly run off master, and want the latest stuff.
<ixxie> inquisitiv3: if a package is relatively simple - i.e. written in one language and packaged in a common language specific package manager like pip or npm - we have tools to make it relatively easy to package them
<ixxie> inquisitiv3: of course, you may have to package some dependencies on occassion too
<ixxie> inquisitiv3: but some packages are more challenging
<inquisitiv3> ixxie: Good to know. :)
<inquisitiv3> Have the Nix Pills been edited for Nix 2?
<ixxie> no they are quite old I think
blankhart has quit [Ping timeout: 256 seconds]
<inquisitiv3> Is there any up to date learning material for newcomers like me?
<ixxie> inquisitiv3: https://nixos.wiki/wiki/Main_Page and the documentation at nixos.org
jperras has joined #nixos
vaninwagen has joined #nixos
simukis has quit [Quit: simukis]
<ixxie> inquisitiv3: we also have a new discourse channel that is replacing the mailing list https://discourse.nixos.org/
<inquisitiv3> ixxie: I'm looking trough the wiki you linked. It seems that the learning resources for beginners is yet to be written?
simukis has joined #nixos
<ixxie> inquisitiv3: there is a language introduction here https://nixos.wiki/wiki/Nix_Expression_Language
<ixxie> inquisitiv3: but indeed we didn't manage to get as far as we have hoped in adding tutorial pages
<jluttine> has anyone else missing menu bar in libreoffice?
<ixxie> the wiki is relatively young (c.a. half a year)
pip3000 has joined #nixos
tobiasBora has joined #nixos
<tobiasBora> Hello,
<pip3000> hi how do i change plasma5 default system language
<tobiasBora> nix-store --optimize
<averell> i have a menu with 5.4.6.2
<samueldr> though, the wiki did import parts of the older wikis
<tobiasBora> I tried to run nix-store --optimize
<tobiasBora> and I got lot's of messages like skipping suspicious writable file
<tobiasBora> and then no optimization is done
<samueldr> but yeah, even the older wikis didn't have much in beginners resources
<pip3000> in regional settings only "American English" is available
<tobiasBora> any idea why?
<ixxie> inquisitiv3: are you looking for any particular kind of tutorial / guide ?
<pip3000> i already have i18n.defaultLocale
jperras has quit [Ping timeout: 248 seconds]
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<inquisitiv3> ixxie: The best place to begin to learn how to setup Nix on an existing distro (Fedora, Debian, etc.) or a full NixOS installation.
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #41084 → haskell generic-builder: Limit usage of --extra-framework-dirs on Darwin for compat → https://git.io/vhtKk
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/vht1S
<{^_^}> → 2e70a75b by @Ericson2314: haskell generic-builder: Limit usage of --extra-framework-dirs for compat
mahalel_ has joined #nixos
<{^_^}> → 97e376bf by @Ericson2314: Merge pull request #41084 from obsidiansystems/fix-darwin-haskell
justanotheruser has joined #nixos
<ixxie> inquisitiv3: well, the manuals have instructions for that
<ixxie> inquisitiv3: and if you get stuck, this channel is a great place to get help
simukis has quit [Read error: Connection reset by peer]
<inquisitiv3> So the manuals is the best starting place as of now? Just want to clarify :)
<ixxie> yes I would say so
<ixxie> although the Nix pills - even though quite outdated - have helped me understand some aspects of Nix
<averell> agreed, i think theyh're still a good intro. and looking at peoples config when setting up a system can help too. getting from simple conf, to patching/overrides, to full packages.
<judson> Hm. dnscrypt-proxy is reporting "Unable to retrieve server certificates" with NixOS default settings.
mahalel_ has quit [Ping timeout: 248 seconds]
katona has quit [Quit: Connection closed for inactivity]
<ixxie> we really should be writing some nice tutorials for the Wiki :/
reinzelmann has quit [Quit: Leaving]
blankhart has joined #nixos
Guanin has quit [Ping timeout: 245 seconds]
<inquisitiv3> Is there some ongoing work, or is most of the focus on the software?
fragamus has joined #nixos
<ixxie> inquisitiv3: there was a big push in the autumn on the Wiki - most of what you see there didn't exist a year ago
<ixxie> but over the winter things slowed down - at least on the core article level
<ixxie> there have been many contributions to the wiki though on all sorts of arcana but I think we need to work on some of the basics
noobie123 has joined #nixos
<ixxie> inquisitiv3: I agree we have a bit of a problem with the documentation - when I started two years ago it was a challenge - but the people in this channel and in the community in general have been so helpful that it really made up for that for me :)
<inquisitiv3> ixxie: Good to know :D
<inquisitiv3> There to start, NixOS's manual or Nix's?
<ixxie> depends what you want to set up
<ixxie> NixOS or Nix xD
civodul has joined #nixos
spear2 has joined #nixos
<emmanuelrosa> tobiasBora, there shouldn't be anything writable in the Nix store. Did you try running `nix-store --verify`?
devhell has quit [Ping timeout: 245 seconds]
<samueldr> inquisitiv3: you probably will need to jump through the three manuals, nix, nixpkgs and nixos
<ixxie> well, that is true
ikitat has quit [Ping timeout: 240 seconds]
<samueldr> and, except for the nixos manual, they are not necessarily meant to be read in the order they were written; there were comments about that earlier this week
ixxie has quit [Quit: Lost terminal]
<noobie123> Stupid question, I'm afraid. I use environment.shellAliases to set stuff like ll="ls -l" and vi="nvim", but when I so "sudo vi" (or sudo -E vi, or sudo -s vi), for instance, I get "command not found". If it is a matter of (non)login/interactive shell, is there an easy fix? If not, what else? Thanks!
ixxie has joined #nixos
<samueldr> noobie123: sudo will not use aliases, as they're a shell thing
<samueldr> only the shell can see those
<inquisitiv3> Is it generally recommended to start installing Nix on an existing system, and migrate to NixOS when you feel comfortable with former?
<samueldr> inquisitiv3: nix on another system will allow you to play around with nix, but you won't be able to configure "a nixos" with it
blonkhart has joined #nixos
<samueldr> so everything about options in /etc/nixos/configuration.nix won't be really possible
<inquisitiv3> samueldr: So you mean that one shouldn't read the Nix and Nixpkgs straight through, but jump between sections?
<samueldr> inquisitiv3: it may happen that a section isn't easy to understand fully until after you read other things
<ixxie> inquisitiv3: to give a sense of what you can do with them, Nix will allow you to install packages and create shell environments containing particular package collections (nice for development for example)
<ixxie> inquisitiv3: but NixOS will allow you to define a whole system including services and various system configuration options
<noobie123> samueldr: so in debian it always worked because of symlinks, not aliases. Makes sense. Inconvenient, but makes sense :P Thanks!
<{^_^}> [nix] @grahamc opened pull request #2181 → Install Nix behind MITM proxy → https://git.io/vhty1
<inquisitiv3> ixxie: Would you say that NixOS is a "superset" (knowledgewise) of Nix?
blankhart has quit [Ping timeout: 265 seconds]
<inquisitiv3> Just trying to figure out where to start.
<ixxie> inquisitiv3: hmmm technically for sure yes, but in practice the workflow of using Nix on a non-NixOS system is somewhat different than that of NixOS
<inquisitiv3> Or to wait on the documentation getting written :P
<tobiasBora> emmanuelrosa: even when I'm running it as a classic user (nixpkgs, not nixos)? I tried to run the verify, and I just have "reading the Nix store... checking path existence...", and that's all, and then it's still the same problem
<ixxie> do you have a goal in mind for using Nix/OS?
<ixxie> it kinda depends on your motivations
MichaelRaskin has joined #nixos
<ixxie> inquisitiv3: personally I was looking for system customization and a deeper Linux experience (coming from Ubuntu/Debian) and was about to try out Arch when I bumped into NixOS and decided to try it
woodson has joined #nixos
<samueldr> inquisitiv3: if you have a second machine you use linux on and use regularly, I wholeheartedly recommend trying nixos on it
<ixxie> inquisitiv3: so I went straight to NixOS and the experience was delightful
<samueldr> (I started out with nixos on my beater laptop, so I could still work on my main machine)
<samueldr> didn't take long until I wanted to switch everything else
<ixxie> inquisitiv3: or if you are comfortable in the terminal, make a NixOS server on the cloud
<inquisitiv3> Wanting to learn something innovative and more "optimal" than the common practice. And I cant deny that I've a little inner hipster that feels like common distributions is little to mainstream :P
<MichaelRaskin> NixOS uses systemd which is unacceptably mainstream!
atondwal has quit [Remote host closed the connection]
<ixxie> inquisitiv3: sounds like you are after an OS not a mere package manager ;)
<inquisitiv3> But Nix-shell's features for developers creating an isolated development environment certainly looks like one of the most interesting features.
atondwal has joined #nixos
* samueldr hopes nixos becomes mainstream
<MichaelRaskin> That will work fine just with Nix
<MichaelRaskin> If you want to do something definitely not mainstream, read Nix manual before installing anything
griff_ has joined #nixos
<ixxie> lol
<MichaelRaskin> And maybe Nixpkgs and NixOS manuals too
<MichaelRaskin> Reading manuals will never go mainstream I promise
<inquisitiv3> Pfft...
<inquisitiv3> I tend to read books about tools. Manuals are to short...
<inquisitiv3> :P
<Czen> if you are looking to deepen your knowledge of linux, nixos might not be the best choice
griff_ has quit [Client Quit]
<gchristensen> man, I disagree about that -- nixos lets me play with deep down scary bits of linux and not worry about ruining my things
<Czen> a ton of things have an additional layer of abstraction put on top to that makes it easier
<Czen> and for things that don't, you need to be good with linux already
<inquisitiv3> I got LFS planned for the future, but I want to have a system that I like running first as my daily driver before that.
<Czen> and those things might end up being more difficult than anywhere else
<Czen> because it's non-standard
<ixxie> I agree with gchristensen - the thing I love about NixOS is the ability to experiment with (almost) no fear
<MichaelRaskin> Actual kernel-touching tools are quite standard.
<ixxie> also, declarative configuration management xD
tzemanovic has joined #nixos
puercowork has joined #nixos
<ixxie> its true that NixOS is unhelpful in learning standard Linux because it ain't LSB
<MichaelRaskin> And unlike Some Other Distributions, a lot of time you can just go read the low-level commands generated from the code
<ixxie> but I don't think that was the goal right?
<MichaelRaskin> Instead of tracing how ifup calls ifconfig or ip
<gchristensen> MichaelRaskin: for a new github account, I followed in your footsteps for naming conventions
<inquisitiv3> Is there any prerequisites before looking into NixOS?
<Czen> patience
<Dezgeg> are sub-accounts now a thing on github as well?: P
<MichaelRaskin> gchristensen: which is, the same as for passwords?
<srhb> inquisitiv3: Big axe, inquisitiveness.
<Dezgeg> :P
<Czen> when I got into it I thought I knew linux
<Czen> I was wrong
<emmanuelrosa> I recommend reading the Nix and NiOS academic papers. I used Gentoo Linux prior to NixOS, and not only did I immediately see the value in NixOS only after using it briefly, the papers pushed me over the edge because I helped me understand the thoughtfulness that went into it.
<Czen> in the end, it was totally worth every second I put into it
<MichaelRaskin> gchristensen: you do understand that UUIDs are so long to avoid very unlikely random collisions, which are very much not a problem with a centralised registration? Also, you might have disclosed your NIC's MAC…
<gchristensen> MichaelRaskin: I do
<gchristensen> MichaelRaskin: and I didn't
<emmanuelrosa> tobiasBora, are you using NixOS or Nix on another distro?
tzemanovic has quit [Ping timeout: 252 seconds]
<inquisitiv3> I got some experience in programming using Python and Java. Would you say that experience in a functional programming language is a prerequisite?
<ixxie> inquisitiv3: a second machine connected to this channel would be immensely helpful while setting up your first NixOS machine ;)
<ixxie> inquisitiv3: I had none before starting NixOS
<ldlework> inquisitiv3: I came from non-functional languages and Nixlang broke my feeble mind.
<ldlework> But you just gotta stick at it.
<ixxie> inquisitiv3: in fact, I didn't even do any serious programming before NixOS
<MichaelRaskin> I guess when I installed NixOS I was playing the «easy mode»
<ixxie> but I am a mathematician by training so....
<ixxie> uuuh...
<inquisitiv3> I'm thinking setting it up in a VM before making it my primary OS.
<gchristensen> inquisitiv3: that is how I did it. I remember that Thursday.
<ldlework> I used Nix on OSX for a few months before trying out NixOS this week.
<gchristensen> I fell so deeply in love that on Saturday I erased my laptop and installed NixOS
<ldlework> NixOS is sweet.
<LnL> that's a good way to start, you can also install just the package manager on your host
<MichaelRaskin> You can also start with installing just Nix on your real distribution
<LnL> and use it for some stuff
<eacameron> Is there a really simple drv that I can write by hand that only works on one platform? I want to have a way to test remote builders via nix-build
<LnL> with or without nixpkgs
<eacameron> Either
<MichaelRaskin> nix-shell on the main system might be more immediately convenient to integrate into workflow than NixOS in a VM
<inquisitiv3> Wasn't it ixxie that wrote earlier that the workflow is different between just having Nix and running NixOS?
<clever> eacameron: nix-build '<nixpkgs>' -A hello --argstr system x86_64-darwin
<eacameron> clever: Ah, yes exactly what I'm looking for.
camsbury has quit [Remote host closed the connection]
<eacameron> clever: Oh...no
<LnL> emmanuelrosa: nix-build -E 'with import <nixpkgs> {}; hello.overrideAttrs (drv: { REBUILD = builtins.currentTime; })'
<eacameron> clever: That pulls from cache on linux
camsbury has joined #nixos
<clever> one min
<eacameron> Maybe something like `writeFile` that forces a certain system
<clever> eacameron: nix-build -E 'with import <nixpkgs> { system = "x86_64-darwin"; }; enableDebugging hello'
<clever> eacameron: or the override LnL just gave
<samueldr> inquisitiv3: using nix and nix-shell is the same either on nixos or not
<samueldr> but nixos-specifics like its configuration is its own thing
<eacameron> clever: LnL: Oh interesting.
<symphorien> in a multi user install with remote builds enabled, is there a way to tell that a specific nix-build run must not use remote builds ?
<eacameron> This is kinda slow though. How can I do it very fast? I basically just want a way to force something to run on the remote
<clever> symphorien: one min
<clever> symphorien: set `preferLocalBuild = true;` in your derivation
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<symphorien> yes but suppose I am building something from nixpkgs
<clever> eacameron: nix-build -E 'with import <nixpkgs> { system = "x86_64-darwin"; }; writeTextFile "foo" builtins.currentTime'
<clever> eacameron: oops, just writeText
<clever> [clever@amd-nixos:~]$ nix-build -E 'with import <nixpkgs> { system = "x86_64-darwin"; }; writeText "foo" builtins.currentTime'
<eacameron> clever: Aha, yes that makes sense
<clever> it will now use the darwin build of bash to write the file
<clever> error: a 'x86_64-darwin' is required to build '/nix/store/rgx06v6ix9h93rxla9r92gfc6v2cp27v-foo.drv', but I am a 'x86_64-linux'
<clever> ah, my build slave is turned off
<eacameron> clever: Yes this is what I need. It's a quick test.
camsbury has quit [Ping timeout: 256 seconds]
<inquisitiv3> So if I understand you people correctly you need to jump between the manuals for Nix, NixOS and Nixpkgs to get it up and running? Should I skim trough the manuals first to know where I can find the information I need when I need it?
<eacameron> clever: On a side note, builtins.currentTime' is...scary
<gchristensen> eacameron: there are a few of 'em, for when you need escape hatches .... but don't use them and we won't have a problem :).
<clever> eacameron: its an eval-time thing, so its not really impure
<clever> eacameron: it just means you get a different .drv every time, so it never hits a binary cache
<eacameron> clever: ah, that's not *so* bad
<clever> yep
<eacameron> but still not what you want 99% of the time I'm sure
<clever> yeah, it should only be used when testing, when you want to force rebuilds
<ixxie> inquisitiv3: you will be able to go quite far with the NixOS manual for setting up NixOS, but then occassionally it will help to go into the Nix/Nixpkgs manuals for clarification
fragamus has joined #nixos
<inquisitiv3> ixxie: Thanks!
<ixxie> inquisitiv3: just like you need to occassionally read an apt-get manual when working with ubuntu
<eacameron> clever: Ok now riddle me this! I run that test and sure enough my remote builder builds the drv and all is well. I switch to a different drv (that has built hundreds of dependencies) on the remote and now it gives me `error: a 'x86_64-linux' is required to build '/nix/store/qd29ichvjw3sfp9ygvv8sxk8kfqh8l3h-nixos-boot-disk.drv', but I am a 'x86_64-darwin'`
<eacameron> (I'm on darwin using linux remote)
<inquisitiv3> Btw, has there been any "commentary" on OSTree from the Nixcamp? I can't find anything while searching.
<eacameron> clever: Why on earth would it neglect to use the remote builder *just* for this one drv?
<gchristensen> eacameron: `nix show-derivation /nix/store/qd29ichvjw3sfp9ygvv8sxk8kfqh8l3h-nixos-boot-disk.drv`
<gchristensen> eacameron: and look for "features" in the output
commander has quit [Remote host closed the connection]
<clever> eacameron: `nix show-derivation /nix/store/qd29ichvjw3sfp9ygvv8sxk8kfqh8l3h-nixos-boot-disk.drv` what is listed under the required system features?
<gchristensen> it'll list some things you need to specify in your /etc/nix/machines for that builder, in order for it to spport.
<gchristensen> we should have a !features :)
<eacameron> `"requiredSystemFeatures": "kvm",`
<clever> gchristensen: the error nix gives should show that feature too
<clever> eacameron: you need to tell nix what build slave has kvm support
<gchristensen> clever: I have a PR for it, but it won't merge
<clever> builder@system76.localnet armv6l-linux,armv7l-linux,x86_64-linux,i686-linux /etc/nixos/keys/distro 4 1 big-parallel,nixos-test,kvm
<clever> gchristensen: ?
<{^_^}> [nixpkgs] @zimbatm opened pull request #41085 → python2Packages.supervisor: 3.1.4 -> 3.3.4 → https://git.io/vhtH2
<clever> gchristensen: why wont it merge?
blankhart has joined #nixos
<gchristensen> oh maybe it'll merge if I reespond to eelco's feedback
<eacameron> clever: gchristensen: Oh how dandy. I guess I could just try claiming that this vm has kvm support...
<{^_^}> [nixpkgs] @bcdarwin opened pull request #41086 → python2Packages.pyezminc: init at 1.2 → https://git.io/vhtHi
<clever> eacameron: nested visualization doesnt work, but qemu will sanely fall back to software emulation (which is also a lot slower)
<ixxie> I noticed my generations have git hashes on them; where do those come from?
<clever> gchristensen: ah yeah, thats a simple change
<tobiasBora> emmanuelrosa: I'm using Nix on debian
<eacameron> clever: I see. So I need to figure out how to make this drv not require kvm, but if it requires qeme that might work?
<clever> eacameron: you can just lie about your slave supporting kvm, thats simpler
<samueldr> clever: nested virtualization doesn't work?
<clever> samueldr: most hosting providers like aws dont enable it on the host
<samueldr> ah good
<clever> so you cant get the kvm feature on any aws machine
<samueldr> I was following with: "qemu can support it, can nix use it" but I now see why you said that
<samueldr> irrelevant to the question
<gchristensen> clever: man, that PR looks like a mess. how did I submit it in such a state ...
<clever> gchristensen: i think concatStringsSep can be used in the 1 feature case as well
<gchristensen> I'm a bit embarassed :$
<clever> gchristensen: beyond that, you could have a string that contains a fragment of the error, and insert it into a second one
<clever> and if it needs no features, that string is empty
<gchristensen> 2yeah
<eacameron> clever: gchristensen: Ok. THAT works!
<gchristensen> w00t
<eacameron> Super helpful. Thank you both.
<gchristensen> :) hopefully I can clean up this PR enough to get it merged, so it'll actually _tell_ you why.
<clever> gchristensen: the same problem also exists within hydra
<clever> and it doesnt even tell you, it just silently never runs the job
<gchristensen> yeah it is even more enragingly frustrating though on Hydra :D
sanscoeur has joined #nixos
<judson> Does anyone have an example of deploying an authoritative nameserver with NixOps?
<judson> I can probably puzzle it out, but I wouldn't mind cribbing something to start.
<clever> judson: one min
<judson> Cheers
<clever> judson: that creates my own private TLD, .localnet, which is resolvable within my house
<clever> and the lan.reverse below allows me to do reverse dns on 192.168.2.*
Peaker has joined #nixos
<eacameron> clever: Is there a derivation you *haven't* written already?
<samueldr> derivation for life and everything
<clever> eacameron: lol
vaninwagen has quit [Quit: WeeChat 2.1]
<eacameron> NP-clever
<clever> eacameron: yesterday, i threw together a derivation that allows building linux things on darwin
<eacameron> clever: THEN WHY AM I WRITING THIS??
<clever> eacameron: if you run nix-build on this, you get a bash script that runs qemu, start that, and you have an ssh server on 127.0.0.1:2222 that gives you a linux build slave
<gchristensen> I was going to say earlier, "does anyone have a ..." -> yes, clevern does
<judson> Heh.
<eacameron> cleverbot
<gchristensen> sorry for my typos :(
<judson> clever, do you maintain the zonefiles by hand?
<clever> judson: yes
<judson> You didn't write a derivation? :p
<eacameron> clever: ARE YOU SERIOUS
<clever> judson: i did :P
<clever> i just never switched my network over to them
<eacameron> clever: I'm literally writing scripts to run linux builds in a docker container right now
<eacameron> Hence my earlier questions
<gchristensen> eacameron: oh man, there are now three solutions for this :P
<samueldr> didn't lnl already do that?
rain1 has quit [Quit: Leaving]
<eacameron> gchristensen: I'm just using nix remote builders with LnL's docker contaniner
<judson> Serious thought, probably deserves discussion on Discourse, but: boy howdy do I wish it were easier to work after updating Chrome.
<clever> eacameron: you can also use nix remote builders with the qemu script i linked above
<judson> Everything wants to open links in the *old* version.
<clever> doesnt require docker to be installed
<srhb> judson: Uh, never seen that.
<eacameron> clever: Is it...slow?
<srhb> judson: Why is there even an "old" version
<clever> eacameron: it took 22 seconds to boot on a virtualized mac, vs 11 seconds to boot on a native linux host
<samueldr> I'm thinking somehow chrome sets itself as default browser using the fully resolved nix store path?
<judson> Also, whatever nonsense Chrome does to map media keys doesn't switch to the new one.
<clever> eacameron: dont have access to a native mac where vm extensions would work properly
<srhb> judson: What did you just upgrade from/to? This all sounds strange.
<judson> srhb, this has been after every nixos-switch update, and I've tracked it down to the fully resolved path being cached by things. I presume xdg-open?
<eacameron> gchristensen: Nay, 4 ways. I have one that uses nixops and vbox
<eacameron> Hahaha
<eacameron> Which I do not recommend.
<gchristensen> :D
<srhb> judson: I believe I have the same sort of setup and yet not experiences any of this. Hmm.
<eacameron> gchristensen: What does yours use?
<eacameron> clever: Imma try this right now.
<gchristensen> the one I'm working on has been a collaboration between me and puffnfresh, him sponsored by atlassian, mine sponsored by target
<gchristensen> eacameron: hyperkit & LinuxKit, just likedocker for mac
<LnL> eacameron: gchristensen's thing is similar to the docker vm but without docker
<eacameron> I see ok makes sense. So, would *you* use clever's solution?
<gchristensen> clever's solution is just fine
<eacameron> LnL: gchristensen: Ok yeah I see the same mechanics that I've used.
<judson> srhb, the symptom is: after nixos-rebuild switch, restart Chrome. *Chrome* works correctly, but e.g. opening links from (say) pidgin boots a different chrome, which claims that it can't read your profile (because the running chrome has it locked.)
<gchristensen> mine still has UX work left o be done
<eacameron> gchristensen: It seems simplest of all
<srhb> judson: Oh, I see now. I have chromium in my user profile as well, so its chromium.desktop takes precedence
<catern> hmm, is there anything in Nix to support building containers runnable with runc? using rootless containers, rather than something systemwide?
<judson> I learned that `dmenu-run` has a cache that needs to be clobbered.
<srhb> judson: And this there's no chrome-somehash-Default.desktop in xdg
<srhb> s/this/thus
commander has joined #nixos
<catern> It would be really cool if Nix could build the container.json config stuff that runc wants
<gchristensen> catern: it can, with dockerTools
<srhb> chromium is just always ~/.nix-profile/bin/chromium for me, sidestepping it all.
endformationage has joined #nixos
<catern> neato
<judson> I guess I need to dig into how xdg works. Chome also whines about not being the default browser all the time.
<judson> srhb, the equivalent systemwide is what I'd like, I think.
smallville7123 has quit [Quit: rosa]
<srhb> That seems a lot harder.
<samueldr> I'd really bet on chromium/chrome setting itself up using the full path
<srhb> samueldr: Yup.
sanscoeur has quit []
<srhb> Exec=/nix/store/d1bbglmxc24lb1nbvp4idf5hx7b7xqvj-chromium-64.0.3282.186/libexec/chromium/chromium....
sanscoeur has joined #nixos
<samueldr> I personally, from before my nixos use, use a script that goes through the [google-chrome/chromium][/-beta/-dev] to launche the first one it sees
<samueldr> and somehow chrome doesn't bark to set it as default, or I just ignore its directive
<srhb> While a user profile one has... Exec=chromium %U
<srhb> Which sidesteps it
<judson> Where do those .desktop files live?
<samueldr> ah, chrome sees itself as default
<srhb> judson: ~/.local/share/applications are the one chromium itself creates iirc
robstr has quit [Quit: WeeChat 1.9.1]
<srhb> judson: And they'll mess up things due to that.
<clever> srhb: ive also found ones in there for apps that i installed in chrome
<srhb> clever: Right
<judson> Hrm.
<samueldr> and in those it sets the full path... that's something that bothers me
<srhb> I'm betting you need at least a chrome patch to avoid that. and even then, without a user profile, what would you refer to if not the full path?
<judson> /run/current-system/sw/bin/chromium
<srhb> Good point.
<srhb> Let's see if it doesn't already do that...
<judson> Exec=/nix/store/20di7bfxaljl4vky7dwm6g2rr499i6sp-chromium-60.0.3112.90/libexec/chromium/chromium "--profile-directory=Profile 1" --app-id=aapocclcgogkmnckokdopfmhonfmgoek
<judson> :(
<judson> That might be an app though.
<eacameron> clever: I assume I'd need to change the env ssh keys?
<clever> eacameron: yeah
<judson> Okay, that's the start of a path...
<clever> judson: the hash at the end is a chrome extension id
<eacameron> clever: Curious...why rsa not ed25519?
<clever> eacameron: i just went with the defaults that ssh-keygen had created ages ago
<eacameron> clever: ah ok. haha of all people to go with defaults, I wouldn't expect it to be you ;)
<srhb> judson: Works correctly
<judson> Man, I really can't say I like the freedesktop stuff.
<eacameron> clever: Do you think this could be a reusable drv that I could actually use directly in my script? Like, it could take the ssh keys as an arg and I could import it
<srhb> judson: chromium only in /run/current-system/sw/bin, no Desktop file anywhere in ~/ only in /run/current-system/sw/share/applications and it has Exec=chromium %U
<clever> eacameron: easily
<srhb> judson: This should not cause any issues during upgrades.
<srhb> The only thing I can imagine is a different browser interfering and then using chromiums "set as default browser" feature to pollute home with a wrong Desktop file
<eacameron> clever: I can open a PR for that if you like. Just making it a function taking `sshKeys:` list of strings or something
<clever> eacameron: id do { sshKeyFile }:
<eacameron> Sure
blankhart has quit [Ping timeout: 245 seconds]
<eacameron> clever: Is that -m 512 the memory for the vm?
<clever> eacameron: yep
<eacameron> Might want to make that an option too
<clever> maybe also add memory ? 512 to the args
<clever> oh, and by default, the root disk is a tmpfs, so it can only store half of that in the nix store
<eacameron> clever: Oh heh
myshoe has quit [Quit: Lost terminal]
<eacameron> clever: How would I configure that?
<ixxie> how come this stuff is hidden in gists like that
<judson> srhb, I have just that in /run/current-system/sw/share/applications/chromium-browser.desktop
<judson> I think I've got enough to debug - including the promise that this works for someone :)
<clever> eacameron: line 150 mounts a tmpfs that will eventually become / and 160 creates a /nix/.overlay-store/rw that the overlay fs will use for writing to
<judson> Now if I can get the media keys to track...
<srhb> judson: Hehe! One more pointer then, check ~/.config/mimeapps.list
<srhb> judson: And yes, the freedesktop is named "free" because it's completely unbound by normal sanity.
<clever> eacameron: line 150 will need to mount something else, and handle formatting it if its blank, then add a new drive to the qemu args
<clever> eacameron: or format it from the host side, before booting qemu
<judson> I just wish they'd ship a useful manpage once in a while.
jperras has joined #nixos
judson has quit [Remote host closed the connection]
<eacameron> clever: that's a bit over my head; but dang this would be so nice to not have to require docker
asuryawa_ has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<srhb> eacameron++
<{^_^}> eacameron's karma got increased to 1
<eacameron> lol...wat
<Myrl-saki> Has anyone gotten nixpkgs.clangAnalyzer to run here?
<srhb> It's in, uh, base 0.02
<eacameron> srhb: lol
<emmanuelrosa> tobiasBora, I ran `nix-store --optimise` successfully on xubuntu. Hmm, you may want to consider making a list of your installed packages with `nix-env -q --installed`, removing /nix and reinstalling Nix.
<Myrl-saki> lol
* eacameron starts writing a bot that logs in to IRC with random user names and ++ himself.
<clever> eacameron: adjusting the script...
<srhb> Foiled again!
<clever> c++
<{^_^}> c's karma got increased to 2
<eacameron> HAHA
<clever> eacameron: the bot doesnt even care if the "user" exists
<srhb> c--
<srhb> :(
<MichaelRaskin> MiсhaelRaskin++
<{^_^}> MiсhaelRaskin's karma got increased to 3
<eacameron> eacameron++
<{^_^}> eacameron's karma got decreased to 0
<eacameron> Hahaha
<srhb> what.. just happened
<clever> infinisil: was that a bug? lol
<eacameron> Self deprecation is good karma I guess...
<srhb> eacameron: :P
jperras has quit [Ping timeout: 245 seconds]
<ixxie> what is this karma thing?
<MichaelRaskin> decreasing karma for self-++ is an official feature of the karma counting code in the bot
<infinisil> :P
<clever> MichaelRaskin: but yours went up
<srhb> MichaelRaskin: Why did it increase yours though?
<eacameron> Yet another official feature?
<srhb> :D
<infinisil> Oh, I bet he was sneaky with hidden characters
<MichaelRaskin> Because I Know Things.
<srhb> Ah, of course.
<MichaelRaskin> No hidden characters
<MichaelRaskin> You see everything I have typed.
<gchristensen> 00000000: 4d69 d181 6861 656c 5261 736b 696e 2b2b Mi..haelRaskin++
<MichaelRaskin> You might not _recognize_ what I have typed, though.
<infinisil> Heh
definitely-not-e has joined #nixos
<definitely-not-e> eacameron++
<{^_^}> eacameron's karma got increased to 1
<gchristensen> ok everyone
<eacameron> clever: awesome!
puercowork has quit [Ping timeout: 245 seconds]
definitely-not-e has quit [Client Quit]
Guanin has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41009 → Add versions to packages missing it → https://git.io/vhkZr
<{^_^}> [nixpkgs] @matthewbauer pushed 12 commits to staging: https://git.io/vhtFI
<{^_^}> → 02297bea by @matthewbauer: treewide: add version to packages
<{^_^}> → 02de1dc7 by @matthewbauer: unix-tools: add version
<{^_^}> → 04e5cf66 by @yegortimoshenko: renoise: add platforms, derive src version from proper version string
puercowork has joined #nixos
Ariakenom has joined #nixos
<infinisil> gchristensen: I hate to mention it again, but it would be nice if you could deploy the changes so that {^_^} doesn't spam this many msgs on PRs all the time. It's just about as spammy as my ++..
<gchristensen> man right in my feels :)
<infinisil> Sorry, I don't mean it like that <3
<gchristensen> no no I exaggerate
puercowork has quit [Ping timeout: 252 seconds]
pip3000 has quit [Ping timeout: 260 seconds]
<infinisil> :)
<joepie91> infinisil: what do the changes change?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> joepie91: samueldr is the one who made that part, the changes should reduce the messages from {^_^} when a PR gets merged to like 1 or 2 I think
<samueldr> on push events (thus merges) it printed (as the previous bot did) the three tipmost new commits (I like parens)
<joepie91> ah, right
<samueldr> now it doesn't
<samueldr> like in the previous log, you wouldn't see the → commit_id by who: line
puercowork has joined #nixos
<joepie91> yeah, was just hoping the notifications wouldn't go away entirely
<joepie91> there's interesting stuff in there at times
<clever> eacameron: done
<clever> eacameron: and pushed
hiratara has quit [Ping timeout: 245 seconds]
<tobiasBora> eacameron: really? that's a quite direct solution, but why not^^
<eacameron> clever: Amazing!
<clever> eacameron: oh, dang, its using mkfs.ext4, which doesnt work on darwin!
<eacameron> clever: lol
<clever> error: Package ‘e2fsprogs-1.44.1’ in /nix/store/7y6iyld88gq3c9xlyqn6wisy2i6im6nz-c29d2fde74d.tar.gz/pkgs/tools/filesystems/e2fsprogs/default.nix:37 is not supported on ‘x86_64-apple-darwin’, refusing to evaluate.
<clever> i'll patch it to run at bootup
<eacameron> Sheesh I wish I understood this stuff half as well as you
<gchristensen> eacameron: clever is ridiculously ... clever. we all do as best we can :D
hiratara has joined #nixos
<clever> lol
<eacameron> haha
jasongrossman has quit [Remote host closed the connection]
drakonis has joined #nixos
drakonis has quit [Remote host closed the connection]
<eacameron> #thestruggle lol
<eacameron> Speaking of vm, I'm thinking I'll need to use remote on Ubuntu as well to get around this: https://github.com/NixOS/nixpkgs/issues/29448
<eacameron> But the trouble is that I'd need to convince nix to use the remote instead of host even though they're both x86_64-linux
<clever> eacameron: fix pushed
<__monty__> eacameron: I force remote builds on my laptop by setting max-jobs to 0.
<eacameron> __monty__: Ohh interesting!
drakonis has joined #nixos
<clever> eacameron: next fun thing id want to look into is getting it to cross-compile the whole thing from darwin
<clever> eacameron: then you wont need a linux slave to bootstrap
<eacameron> clever: Sonarpulse is also looking into that last I knew
<eacameron> clever: This is great Thanks for doing that! I'll try it out.
<clever> yeah
<gchristensen> ok clever I think my patch is ready now :$ https://github.com/NixOS/nix/pull/2037/files
<Sonarpulse> eacameron: you do anything with that branch yet?
<Sonarpulse> :)
<clever> ooo, tests!
<gchristensen> clever: =)
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
inquisitiv3 has quit [Remote host closed the connection]
<gchristensen> uh oh I should make sure those actually fail properly.
<eacameron> Sonarpulse: Not yet. It's a bit too experimental for me still; I need to get this feature out but I want to circle back
<Sonarpulse> eacameron: sure
<eacameron> Sonarpulse: Have you shown clever ?
NightTrain has joined #nixos
<gchristensen> yeah they do fail properly.
<boxofrox> how does one override packages in a shell.nix file? I created this shell.nix at http://termbin.com/cqpp and nix-shell throws an error about "unable to coerce function into string".
knupfer has quit [Ping timeout: 245 seconds]
<clever> eacameron: i recently played with a few random platforms using things like (import <nixpkgs> { crossSystem = (import <nixpkgs/lib>).systems.examples.muslpi; }).hello
<clever> eacameron: next big thing, is to try to cross-compile from mac to linux, an entire os
<eacameron> O_O
<ixxie> nextup: NixDroid :D
<eacameron> Sonarpulse: I can't find the branch now...
don_quijote[m] has left #nixos ["User left"]
<Sonarpulse> eacameron: uh oh I'm having trouble too
<Sonarpulse> have a link?
<srhb> boxofrox: More parantheses :)
<srhb> parenthesis?
<eacameron> Sonarpulse You have it locally? "mini staging"?
puercowork has quit [Read error: Connection reset by peer]
<boxofrox> srhb: yep, just thought of it myself. need more parentheses :)
<Sonarpulse> oh ok
<Sonarpulse> i will look for that
<srhb> boxofrox: But I sort of doubt that config string is an actual argument
<srhb> boxofrox: It looks like a nixpkgs config
<srhb> boxofrox: Let me check...
<Sonarpulse> eacameron: there is an ios-mini-staging that is not that
<Sonarpulse> but maybe another
<boxofrox> srhb: i've already built the override package in a container, just doing some ancilliary testing and wanted to import the same php override into a nix-shell.
jmeredith has quit [Quit: Connection closed for inactivity]
<srhb> boxofrox: Ah, okay.
<boxofrox> eureka. i need parens because a list is space separated just like function arguments. /facepalm
<sqzlh> hm, how do you add a value to nixPath inside configuration.nix while keeping all other values?
<clever> sqzlh: nix.nixPath = [ ... ];
<clever> sqzlh: list based things should append most of the time
<boxofrox> srhb: thanks for the assist
<sqzlh> clever, so I am not overwriting the standard nixPath? ok, thx
ixxie has quit [Ping timeout: 245 seconds]
<srhb> boxofrox: Sure thing :)
<clever> eacameron: hmmm, and darwin doesnt even have the truncate binary!
<srhb> boxofrox: For reference, this is what I thought (and still think) you needed: http://nixpaste.lbr.uno/vZ9eg6ak?nix
<Sonarpulse> eacameron: i don't even remember where i sent it to you
rain1 has joined #nixos
<clever> eacameron: truncate: failed to truncate 'rootdisk.img' at 53687091200 bytes: No space left on device
<clever> eacameron: boooo, support sparse files already!!!, booo
<srhb> boxofrox: But assuming php reads config and nothing else needs that set, it's fine :)
tzemanovic has joined #nixos
<drakonis> hmm, how does nix handle mounting ntfs partitions with ntfs-3g instead of the kernel's way?
<eacameron> clever: Is that with trying to build the vm on darwin?
<clever> eacameron: the `truncate -s 50g` command to make a dummy file for the rootfs
<clever> on linux, it just makes a sparse file that occupies zero space
<clever> on mac, it fails
<Sonarpulse> eacameron: this linux-to-darwin branch doesn't have my stuff faking a gcc hmm :(
<eacameron> Sonarpulse: `ios-mini-staging` was the branch you told me about I think
<Sonarpulse> eacameron: oh i was thinking of the darwin -> linux cross one
<clever> eacameron: but it is now working
<eacameron> clever: eh it fails but works?
<Sonarpulse> eacameron: checking again
<clever> eacameron: it was lacking a `set -e`, so it kept going
<clever> eacameron: it now works fully
tzemanovic has quit [Ping timeout: 252 seconds]
<sqzlh> hmm.. ghc encountered an error during building, because the perl package is missing. Shouldn't installing ghc automatically add the perl dependency?
<srhb> sqzlh: Yes.
<drakonis> i'm still not sure how the supportedfilesystems module handles ntfs
<Sonarpulse> whew
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<sqzlh> srhb, so this might be a error within the ghc package configuration
<eacameron> Sonarpulse: Haha whew! Thanks. cc clever ^
<sqzlh> *an
<srhb> sqzlh: Hard to say without more information. What are you trying to do?
<drakonis> ah right
<drakonis> it is symlinked
asuryawanshi has quit [Ping timeout: 268 seconds]
<drakonis> this is why
<drakonis> ntfs-3g got symlinked to the ntfs binary
<sqzlh> srhb: I am using haskell.lib.buildStackProject to for a custom package. Building that package also starts installing ghc. However, midway ghc aborted as said. My stack project does not have any dependencies, it's a simple hello world test
sigmundv__ has joined #nixos
<srhb> sqzlh: Uh, is the stack builder supposed to use a nix ghc? I think probably not.
jasongrossman has joined #nixos
arianvp2 has joined #nixos
<arianvp2> I can't seem to get WebGL to work in Firefox on Nix
<arianvp2> is there anything special I need to do?
dbmikus has quit [Quit: WeeChat 2.1]
<sqzlh> srhb: I'm pretty new to nixos, so my idea of what's going on is pretty limited^^
<srhb> sqzlh: I haven't tried the generic stack builder, but historically stack hasn't been very well supported. Let me see...
<clever> sqzlh: id recomend just using cabal, and not stack, when on nix
sigmundv__ has quit [Ping timeout: 245 seconds]
seafood has joined #nixos
<clever> look into cabal2nix
hiratara has quit [Quit: ZNC - http://znc.in]
hiratara has joined #nixos
<infinisil> sqzlh: Use stack2nix instead of buildStackProject
<infinisil> the latter is horrible
<infinisil> Or switch to cabal/cabal2nix. I personally prefer stack
<__monty__> infinisil: What're your reasons?
<infinisil> __monty__: for stack2nix over buildStackProject?
<__monty__> arianvp2: Silly question but did you enable it in about:config?
<sqzlh> clever, infinisil: ok, I'll look into both
<__monty__> infinisil: No, stack over cabal, specifically in the context of nix.
<arianvp2> yeh I did
<arianvp2> but it's complaining the card is blacklisted. Which I highly doubt (works in windows, and other linux installs)
Guanin has quit [Ping timeout: 240 seconds]
<arianvp2> anyhow I'm going to bed. I'll investigate tomorrow :)
<infinisil> __monty__: Ah, well my super nice emacs LSP setup doesn't currently work with cabal. The well working together stackage set is just a bonus
<infinisil> :)
<srhb> Err. I think buildStackProject is broken, at least on 18.03
<__monty__> arianvp2: Try webgl.force-enabled
<infinisil> srhb: I think it needs a disabled sandbox..
<srhb> infinisil: Oh, good call
<srhb> This is sort of bad infrastructure to expose though..
<infinisil> Yeah, I can't recommend buildStackProject at all, it's horrible in multiple ways
<__monty__> infinisil: intero? Have you tried alternatives like dante? And doesn't nixpkgs draw from stackage so stack on nix doesn't have an advantage to cabal on nix in that regard?
<srhb> __monty__: stack still does have advantages.
<srhb> __monty__: For instance, it's much cleverer with regards to repling through multiple local sources.
<infinisil> __monty__: In theory yes, nixpkgs has the lts stackage packages, but I'm pretty sure not everything actually builds because of nix related problems
<srhb> Granted, this matters little when you're just *building*, in which case it mostly gets in the way.
<infinisil> Wait maybe I'm wrong with this
<infinisil> But I've certainly encountered nix related problems when building nixpkgs hackage packages
<__monty__> srhb: REPLing through multiple local sources?
<infinisil> Oh right, yeah I'm totally not wrong with this
<infinisil> nixpkgs has a single versions of all packages and can't do version resolution
<infinisil> So that leads to problems
<__monty__> infinisil: But if you're using stack2nix and cabal2nix don't you always get packages from nixpkgs?
<infinisil> __monty__: Not with stack2nix
sigmundv has joined #nixos
<infinisil> stack2nix generates expressions to build all dependencies at the exact versions from stack specified
<srhb> __monty__: Yes, cabal and friends don't deal nicely with a local _dependent_ package being broken in the repl.
arianvp2 has quit [Ping timeout: 260 seconds]
<srhb> __monty__: Or local dependency package rather.
<infinisil> So yes you can't use the cache, but you have a pretty high certainty that it will build without problems
<infinisil> I'm pretty content with stack + stack2nix :)
<sqzlh> erm...how do I integrate stack2nix with building my package exactly? Fetch the project from git within a mkDerivative and then call stack2nix somehow? Do I need to modify the project files on git itself to produce a nix configuration with stack2nix beforehand?
newhoggy has joined #nixos
<infinisil> sqzlh: I think stack2nix's readme should explain that
<clever> sqzlh: you need to run stack2nix in the root of your project, and it will generate a default.nix file
<infinisil> clever: sqzlh: Correction, you need to pipe its output to a file: stack2nix . > default.nix
tzemanovic has joined #nixos
<__monty__> srhb: When does this apply? When you're developing a package and it's dependency and you want to REPL on the package while the dependency is in a broken state? How does stack handle this gracefully?
pie_ has quit [Remote host closed the connection]
<__monty__> Hmm, kinda weird that stack2nix does more "dependency resolution" than cabal2nix. As opposed to stack and cabal.
<srhb> __monty__: Instead of bailing out it works just as if a module local to your package had an error
drakonis has quit [Remote host closed the connection]
<infinisil> cabal2nix doesn't do anything really, it just converts the .cabal file into nix representation, no resolution
pie_ has joined #nixos
<infinisil> It's up to nix to determine the exact dependencies then
noobie123 has quit [Quit: Page closed]
jasongrossman has quit [Remote host closed the connection]
<srhb> I wonder if someone made an issue for this behaviour for ghci or even just ghcid...
tzemanovic has quit [Ping timeout: 252 seconds]
<srhb> It's my number one wished-for feature.
<srhb> (Well, short of per-component nix builds :)))
<__monty__> infinisil: That's what's strange to me. The versions in nixpkgs are based on the latest stackage lts I assume. So it's weird stack2nix would choose a different stackage version (unless it only does so when you've specified a different resolver) while cabal2nix doesn't pick the versions cabal would come up with but just sticks to the ones from latest stackage.
Ariakenom has quit [Read error: Connection reset by peer]
nur0n0 has joined #nixos
Neo-- has joined #nixos
<eacameron> Also seems like maybe the readFile should happen by the caller.
joelpet has quit [Ping timeout: 260 seconds]
<clever> eacameron: the "${ could go, it was orignally inserted with other keys, that then got deleted
<infinisil> __monty__: Good point, and I'm not sure myself
<clever> eacameron: keeping the readfile there allows you to just --arg sshKeyFile ~/.ssh/id_rsa.pub and it works
<eacameron> clever: Oh cool
<clever> eacameron: look at line 2 of the file
<eacameron> clever: Ohhh
<eacameron> NOICE
sigmundv has quit [Ping timeout: 245 seconds]
<eacameron> Hm, but it doesn't find the nix file
<eacameron> `error: getting status of '/Users/elliot/linux-build-slave.nix': No such file or directory`
<__monty__> Does everyone just reuse a single ssh key for everything? I tend to have one for github, one for connections on my lan, one for nix remote builds, etc.
drakonis has joined #nixos
<clever> eacameron: it has to be ran in a checkout of not-os
<eacameron> clever: Oh I thought the point was to not need that
coot has quit [Quit: coot]
<clever> eacameron: its to lock in the nixpkgs rev
<clever> eacameron: some things in nixpkgs changed recently that break not-os easily
<eacameron> Oh, I see. I misread that
<clever> eacameron: but i could improve it to do what you thought
<eacameron> clever: I don't particularly need that TBH but thought it was neat for testing
<infinisil> __monty__: Yeah I also have one for every (machine, user)
<infinisil> pair
<infinisil> And a bunch more
<infinisil> Like 15 in total
<infinisil> Only know the public key for certain though, some are not used anymore, so not sure if I could still get the private part
nisstyre has quit [Quit: WeeChat 2.1]
nisstyre has joined #nixos
<clever> __monty__: i tend to have one pair per machine
<__monty__> clever: So you're not worried about compromise? Do you rotate the pair frequently?
emmanuelrosa has left #nixos [#nixos]
<clever> __monty__: i tend to keep things pretty secure, so havent had any issues like that
<eacameron> clever: Hmm, this nix-build is saying it needs x86_64-linux and I'm on darwin.
<clever> eacameron: yeah, thats a limitation it has right now, you need a linux slave to bootstrap it
<symphorien> regarding remote builders, what is the speed factor of the local machine ? when is the local machine used ?
<eacameron> clever: Ahh I see. To bootstrap the script itself.
<clever> eacameron: yeah
<clever> eacameron: i suspect i can improve that with Sonarpulse's cross-compile stuff
<eacameron> clever: This could still work if I can bring the script with me somehow.
<__monty__> nn peoples
__monty__ has quit [Quit: leaving]
stepcut has joined #nixos
<eacameron> clever: I don't actually care about the ssh keys being secure. It's a local build.
GamingKitten[m] has left #nixos ["User left"]
<clever> eacameron: testing the cross-compile stuff now...
palo has quit [Ping timeout: 252 seconds]
Guanin has joined #nixos
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
fragamus has joined #nixos
newhoggy has quit [Remote host closed the connection]
<PolarIntersect> hii
newhoggy has joined #nixos
<PolarIntersect> Does anyone have an example of a simple default.nix I can use with nix-shell? I keep trying to write them and getting errors that don't seem to be too helpful
<eacameron> clever: Running your script now. Amazing!
<eacameron> `rm rootdisk.img` fails unless it's there. probably want to check if exists or || true or something
<PolarIntersect> " But it sayserror: cannot auto-call a function that has an argument without a default value (‘stdenv’) "
<PolarIntersect> LnL: That won't work w/ nix-build too though, right?
<infinisil> ,callPackage
<{^_^}> If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<LnL> no, mkShell is nix-shell only
<infinisil> PolarIntersect: ^^
<PolarIntersect> oh so it's the way I'm starting the file that's breaking things?
<sqzlh> fetchgitPrivate needs ssh-config-file on nixPath. However, even when setting nixPath accordingly, it wont be set on the first build. Is there a clean solution for this
<clever> eacameron: you can now `ssh root@localhost -p 2222`
<eacameron> clever: Huh, I can! But it asks for password?
<clever> eacameron: did you give it a pub or priv key with --arg?, it needs to be the pub one
<eacameron> I saw the couldn't mount ext3
griff_ has joined #nixos
<eacameron> clever: Almost certain I used pub but I could have botched that
<eacameron> I bootstrapped with docker :P
griff_ has quit [Client Quit]
<clever> eacameron: check the bash history to see what cmd you used
<nur0n0> PolarIntersect: how's this: https://pastebin.com/H1fhcRrd ?
<nur0n0> PolarIntersect: followed by `nix-build` in whatever directory the default.nix is
<eacameron> clever: Yes the pub
<nur0n0> I'm a noob to nix, so maybe not the best style, but it worked for me..
lanelet has quit [Quit: lanelet]
<eacameron> it's ssh-ed25519
<PolarIntersect> nur0n0: Oooh, that one mostly works! Except now it thinks libX11 doesn't exist :o
<PolarIntersect> thanks :D :D :D
<clever> eacameron: try adding -vvvv to the ssh
<eacameron> clever: Oh geez I know what it is.
<clever> eacameron: ?
<eacameron> Sorry. This is not my default key
<clever> ah
worldofpeace has joined #nixos
<nur0n0> PolarIntersect: no problem!
<eacameron> clever: Sorry dumb mistake. So this is likely working
<clever> eacameron: you can also --arg sshKeyFile ~/.ssh/authorized_keys
<clever> eacameron: then any key that works for the local machine, also wors for the vm
<eacameron> clever: Nice!
<eacameron> How would I carry this pre-bootstrapped around?
<eacameron> Is it a normal nix closure?
<clever> eacameron: yep, just nix-copy-closure it about
<PolarIntersect> nur0n0: hmm, I don't think that syntax gives me access to libX11 :(
* PolarIntersect scratches her head
<eacameron> Very cool. If I could get this onto a our public nix cache then we could completely remove docker dep
<clever> eacameron: cross-compiling would also allow that
<eacameron> clever: Why, yes it would.
<eacameron> But does it work?
<clever> eacameron: its currently building...
jasongrossman has joined #nixos
<eacameron> clever: What are you building?
<clever> eacameron: all of not-os, cross-built from x86 to arm
jasongrossman has quit [Remote host closed the connection]
<eacameron> clever: I'd need to cross build from darwin to linux
<clever> eacameron: that should be equaly simple, once this works
<eacameron> I wouldn't even need virtualization at all if I could just cross compile the original app
<eacameron> for deployment
Sonarpulse has quit [Ping timeout: 265 seconds]
<clever> eacameron: oh, hmmm
<eacameron> It's a haskell app
<eacameron> But it needs to be deployed to linux
thc202 has quit [Ping timeout: 252 seconds]
<clever> eacameron: haskell might be harder, thats in angerman's territory
<nur0n0> PolarIntersect: have you tried replacing nixpkgs with nixos at the top?
<eacameron> Ah right that's what I thought...that it wasn't ready yet
Guanin has quit [Remote host closed the connection]
<nur0n0> PolarIntersect: I don't think libx11 is available on the nixpkgs channel, but I could be wrong
Guanin has joined #nixos
<clever> > xorg.libX11
<{^_^}> "«derivation /nix/store/q01qra29nimk7ac3ssnzn0sijl34y9y3-libX11-1.6.5.drv»"
<nur0n0> PolarIntersect: also the identifier might be xorg.libx11
<nur0n0> what clever said..
<PolarIntersect> nur0n0: It's def in there because some things like DWM use it
<PolarIntersect> clever: oooh thanks! :o
<PolarIntersect> IT WORKED
* PolarIntersect cries
<eacameron> clever: Btw yes I can ssh in just fine
<clever> eacameron: then you can now also set it up as a build slave using the right priv key
jasongrossman has joined #nixos
<eacameron> clever: That makes sense. So at this point it's the same integration as docker but without docker!
<nur0n0> it worked? sweet!
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos
<clever> eacameron: yep
<nur0n0> PolarIntersect: also, for future reference, I use https://nixos.org/nixos/packages.html to look up identifier names
<PolarIntersect> oooh thanks :) :)
<PolarIntersect> forgot about htat -.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> nix-repl> :b (import <nixpkgs> { crossSystem = { arch = "x86_64"; config = "x86_64-unknown-linux-gnu"; }; }).hello
<clever> eacameron: i think this is cross-compiling hello-world from darwin->linux
<worldofpeace> Hi can anyone help figure out where would this program belong in the nixpkgs tree? https://github.com/castwide/solargraph . I've been helplessly asking for days :(
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/97e376bf9ca (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
blankhart has joined #nixos
globin has quit [Quit: o/]
globin has joined #nixos
<infinisil> worldofpeace: Just put it wherever it makes remotely sense, nobody cares where they are
jasongrossman has quit [Remote host closed the connection]