<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.
<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.
<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?
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>
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]
<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>
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 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?
<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…]
<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]
<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
<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.
<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]
<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
<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.
<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?
<{^_^}>
→ 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?
<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
<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
<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.
<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?
<__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
<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
<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 ?
<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.
<{^_^}>
[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
<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]
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?
<{^_^}>
→ 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
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 :-(
<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?
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
<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
<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
<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.
<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: 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
<{^_^}>
→ 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!
<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.
<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]
<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: 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>
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
<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
<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?
<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
<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>
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]
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!
<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
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
<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]
<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!
<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
<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 :(