<tazjin>
instead of checking in the docs, this adds the function doc generation to the manual build process
<tazjin>
as `nixdoc` is in nixpkgs this was relatively trivial
<infinisil>
tazjin: Ohh neat, so we don't need the generated files in git even?
<tazjin>
yep
<tazjin>
gonna open an alternative PR for this
<tazjin>
are you at 35C3?
alex`` has joined #nixos
<infinisil>
I'm personally not sure what's the point of having them in git anyways. You can't render them directly, they need to go through a render process anyways
<infinisil>
I'm not
Notkea has quit [Read error: Connection reset by peer]
Notkea has joined #nixos
<tazjin>
gonna open an alternative PR
<tazjin>
oh I already said that
<tazjin>
😌
<infinisil>
tazjin: (The spacing in installPhase needs some >>'s)
<{^_^}>
[nixpkgs] @tazjin opened pull request #53055 → Add automatic generation of library function documentation → https://git.io/fhLqP
<infinisil>
Oh, you're an emacs user, um, *Needs some <whatever the action is to indent strings to the right in emacs>'s
<tazjin>
done :)
alex`` has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos
<infinisil>
tazjin++
<{^_^}>
tazjin's karma got increased to 1
pie_ has quit [Ping timeout: 244 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
<ghostyy>
how do i use an unstable package in a declarative nixos container?
<ghostyy>
steam is working in the latest git but my container is on the stable branch
<m15k>
Hi. I guess I got a noob question: When I configure "services.httpd.enable = true;" is apache httpd installed after a rebuild or is it already present?
<ghostyy>
you gotta nixos-rebuild switch
<ghostyy>
then itll start it after the switch
<m15k>
But it apache httpd already installed?
<m15k>
Or does the configuration trigger the installation.
<{^_^}>
[nixos-homepage] @Anton-Latukha closed pull request #162 → Add link to Matrix room → https://git.io/fhLmO
<ghostyy>
when you do the switch itll fetch apache and then start it, you wont have it in the store until you rebuild
<ghostyy>
just changing the configuration.nix doesnt change anything until you do a rebuild
<selfsymmetric-mu>
Hi! How can I clean my `nix-shell` after removing `buildInputs`?
dermetfan1 has quit [Ping timeout: 244 seconds]
<selfsymmetric-mu>
Let's say I have `pipenv` in my `shell.nix`'s `buildInputs` declaration. Then I remove it. I now would like future invocations of `nix-shell shell.nix` to NOT have `pipenv`.
<ldlework>
Has anyone heard of nxvida-xrun?
vidbina has quit [Ping timeout: 268 seconds]
<the-kenny>
selfsymmetric-mu: They won't. You're likely nesting shells, try opening a completely new terminal emulator or exiting the current shell by typing `exit` or Ctrl-D :)
<samueldr>
it might be possible, too, that it's a propagated dependency
<selfsymmetric-mu>
Confirmed. Second hard problem: cache invalidation. Thank you!
<selfsymmetric-mu>
I think eshell isn't respecting my `exit`s for some reason.
<ghostyy>
you might like multi-term, thats what i use
<selfsymmetric-mu>
Opening an external shell behaved as expected, with pipenv no longer being available.
<iqubic>
I am wondering if could get some help figuring out how to link nix, emacs, and haskell.
<iqubic>
I have this issue where I'm finding it nearly impossible to get emacs to find the haskell libraries I have installed via nix.
iyzsong has joined #nixos
<ghostyy>
do any of you have any tips on running multiple xorg instances? (or, running xorg via startx)
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
pie_ has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
init_6 has joined #nixos
<iqubic>
Anyone able to help me with my issues?
<iqubic>
johnw: Are you around?
pie_ has joined #nixos
Church_ has joined #nixos
<Ankhers>
I've just transfered my deployments.nixops file to a new computer and I need to make some adjustments to the file paths. What are my options to doing this?
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @tex to master « sweethome3d: 5.4 -> 6.0 (#52783) »: https://git.io/fhLY3
<Ankhers>
I'm moving from mac to nixos. Mac uses /Users/<username> and linux users /home/<username>. The rest of the structure is the same.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhLYZ
<{^_^}>
[nixpkgs] @KAction opened pull request #53058 → ###### Things done → https://git.io/fhLYn
<infinisil>
And what has this to do with nixops?
<pie_>
clever, avn, do you have any ideas?: I have an overlayfs and I can create files in it but i cant modify any files that already exist, they have write permissions according to ls
<clever>
dont know about that
<pie_>
ummm
<pie_>
actually i think i just got it to work but weird things are still happening
m15k has quit [Ping timeout: 256 seconds]
<pie_>
for some reason nano was saying "file is not writeable" but when i actually try to save it, it works
<Ankhers>
infinisil: nixops no longer knows how to find the files because of the incorrect paths.
<pie_>
^thisis after chmoding the "work" directory 777 as a horrible hack because i read something somewhere that permissions on that might cause problems
<ghostyy>
how do i override a setting? i want to override something defined in a package: error: The unique option `services.xserver.displayManager.job.execCmd' is defined multiple times, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/display-managers/slim.nix' and `/etc/nixos/configuration.nix'.
<pie_>
man this is messy. i should try unionfs, cant be any worse than this :p
<elvishjerricco>
Ankhers: Can't you just use nixops modify to fix the paths manually?
<infinisil>
Ohh I see, you meant that
<infinisil>
Ankhers: Always post the error when you have one and are asking for advice on how to fix it..
<Ankhers>
I didn't have an error. I hadn't tried to deploy it because I knew it would not work.
<Ankhers>
elvishjerricco: Trying now.
<{^_^}>
[nix] @0mp opened pull request #2607 → Remove some bashisms from configure.ac → https://git.io/fhLYB
<samueldr>
iqubic: let's try something: can you tell me what's the type of the nix expression `(import ./.)` (so without .env) in your shell.nix?
<iqubic>
No.
<iqubic>
I don't know the type of that.
<iqubic>
Do you know what's wrong here? Are you just trying to teach me so I don't make these sorts of mistakes again?
<samueldr>
I'm not sure what you're trying to achieve, but I know what's wrong
<samueldr>
okay, (import file) will be the expression in the file imported, so if you have a file with `1` in it, it's going to be a number, the value 1.
<samueldr>
importing a folder appends `default.nix` to the path; and here `import ./.` imports the folder relative to the file shell.nix
<samueldr>
so the type of (import ./.) is whatever is in default.nix
<samueldr>
in your default.nix, you have a callPackage-style derivation defined; they are functions
<iqubic>
I want to be able to bea able to call nix-build and nix-shell, and have them both work, without having to maintain the same file twice.
<iqubic>
samueldr: My default.nix was created by cabal2nix, just now.
eadwu has quit [Quit: WeeChat 2.3]
<samueldr>
in the error message you get "value is a function while a set was expected" "function" is the value to the left of the dot; a dot is an operator to select attributes in attrsets
<iqubic>
Huh???
<iqubic>
I think the issue here is that cabal2nix just failed to work properly.
<iqubic>
samueldr: Do you know what I should do here?
<psy3497>
I feel that it's awkward to remove it from my NixOS configurtion then switch to it then garbage collect, just to get rid of it in the store so that I can test building it in a sandbox.
<iqubic>
I'm not sure how easy it will be to convert my *.nix files to the format used in example-nix.
<DigitalKiwi>
i tear out all of the extra stuff like docker and stack
<iqubic>
Yeah, I'll be doing that too.
<DigitalKiwi>
iqubic: that's what i was using too
<iqubic>
Oh. But now you do something else?
Church_ has joined #nixos
<DigitalKiwi>
i use the thing i linked
<iqubic>
Can you help me convert my set-up to one that will work with those tools?
<DigitalKiwi>
i've tried lots of things
<iqubic>
And that seems to work well for you?
<srk>
I would test if mine works with stack but it wants to download ghc :P
<iqubic>
But I'm not sure how to get emacs integration when using those two files.
worldofpeace_ has joined #nixos
orivej has joined #nixos
<iqubic>
DigitalKiwi: Can you help me?
<DigitalKiwi>
i'm not very good at anything
worldofpeace has quit [Quit: worldofpeace]
<iqubic>
But you managed to get emacs integration with what you use. So you must be able to do that.
<DigitalKiwi>
i read the readmes ;p
<iqubic>
Blerg... example-nix tells me to use dante.
<iqubic>
I spent the past 2 days trying to get dante to work for me, and it just didn't.
<DigitalKiwi>
i use dante
<DigitalKiwi>
that's why i use this setup, it works with dante
<DigitalKiwi>
everything else didn't
<iqubic>
And does it correctly find the libraries installed via nix?
<psy3497>
worldofpeace: thanks I used that, seems to be fine. (I'm surprised I could not find --check in the nix-build man page...)
<iqubic>
My main issue is that I'd load up a haskell file, dante would kick in, and I'd get red lines under my imports telling me that those imports were invalid.
<iqubic>
Despite them being picked up if I launch nix-shell and then run ghci in nix-shell.
<iqubic>
DigitalKiwi: Do you use projectile?
<iqubic>
Is that how the project root is found for you?
<DigitalKiwi>
idk
<iqubic>
DigitalKiwi: One question at a time then. Do you use Projectile?
<DigitalKiwi>
idk
nDuff has joined #nixos
<iqubic>
Alright then. I'm really not sure how you got dante to work for you.
<DigitalKiwi>
i added the emacs config from the readme, so probably?
<iqubic>
Do you have a link to the stuff you added?
<iqubic>
I'm not able to find the emacs config.
ddellacosta has quit [Remote host closed the connection]
<iqubic>
You added exactly that, with no modifications at all?
socksy has joined #nixos
<DigitalKiwi>
man i'm not the one that doesn't have working stuff why am i answering questions
<nDuff>
If I want to be able to use a file within the output from another derivation anywhere I'd use a derivation, is there any nixpkgs standard-library tooling or builtin that's appropriate? I'm thinking of something like fileFrom: source: path: runCommand (baseNameOf path) { inherit source path; } 'ln "${source}/${path}" "$out", but that seems awfully silly, plus it doesn't actually work unless I can strip the context off of (baseNameOf path).
<iqubic>
DigitalKiwi: Your system works and mine doesn't. We're using mostly the same set-up, so it should *just work* for me. I'm mostly trying to figure out where our set-ups differ.
<iqubic>
So, because that doesn't give you any errors I am forced to assume you are using projectile.
shibboleth has quit [Quit: shibboleth]
eadwu has quit [Quit: WeeChat 2.3]
sir_guy_carleton has joined #nixos
eadwu has joined #nixos
<iqubic>
DigitalKiwi: One last question, and then I will stop berating you. Do you have to run emacs through a nix-shell in order to get this stuff to work?
* nDuff
discovers that builtins.unsafeDiscardStringContext is a thing that exists.
<gchristensen>
nDuff: oh dear :)
<DigitalKiwi>
on the projects i use that setup for i run it from nix-shell yes
<DigitalKiwi>
that's the whole point of it
<iqubic>
Right... Well I really don't want to do that.
<DigitalKiwi>
ok
<iqubic>
I don't like running my editor from inside a nix-shell
<iqubic>
I need a .envrc in each and every directory I want direnv to work in?
<iqubic>
Can't I just put the file into my $HOME dir and then let all my projects inherit from there?
nDuff has quit [Quit: zzz]
<psy3497>
Anyone knows what is the difference between, say `nixpkgs` repo's `release-18.09` branch and `nixpkgs-channels` repo's `nixos-18.09` branch?
lassulus_ has joined #nixos
<wedens>
iqubic: .envrc in $HOME defeats the purpose of direnv. you create `shell.nix` per-project, and `envrc` is used the same way
<samueldr>
psy3497: release-18.09 is akin to a work branch, this is where the maintainers push updates to be built by hydra, then when hydra finishes a build, the channel scripts updates the nixpkgs-channels repo to point to that updated revision
<samueldr>
(roughly simplified)
<psy3497>
samueldr: I see. So if getting nixpkgs for my NixOS configuration I should use `nixpkgs-channels` repo, but when doing PRs I should work on `nixpkgs` repo
<psy3497>
samueldr: Thanks!
<samueldr>
yeah, nixpkgs-channels is a read-only representation of the channels
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #53012 → Couple of media conteiner descriptions → https://git.io/fhIYE
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fhLsU
eadwu has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<siraben>
is it possible to do continuous integration with Nix?
<siraben>
Perhaps through Travis
Rusty1 has quit [Quit: Konversation terminated!]
worldofpeace_ has quit [Ping timeout: 244 seconds]
<simpson>
siraben: Travis integration is straightforward. There's also Hydra, ofborg, Cachix, and others, depending on the features you need from a CI solution.
<wedens>
is it possible to modify some configuration file without copy/pasting it and modifying? e.g. in ansible or shellscript I'd just run `sed`. what's the nixos way?
<simpson>
wedens: Usually, find what generated the configuration, and modify *that* and then nixos-rebuild or similar. Sometimes it may indeed come down to calling sed or similar in a derivation. What are you working on?
<siraben>
simpson: ah, no. Thanks for the link
ddellaco_ has joined #nixos
<simpson>
siraben: No worries. The biggest problem on Travis that's not well-documented is timeouts due to large builds. Nix can't help get around Travis's build timers.
<wedens>
simpson: I'd like to disable some pulseaudio modules in /etc/pulse/default.pa. not just unload, but completely avoid loading them
<wedens>
simpson: there is `hardware.pulseaudio.configFile` option that provides the file. it uses the file from the package by default which I'd like to modify
ddellacosta has quit [Ping timeout: 244 seconds]
<simpson>
Ah, I see. And the problem's not in the Nix part of the config, but in that upstream-provided config.
<wedens>
yeah. basically, I'd like to patch pulseaudio without rebuilding
eadwu has quit [Ping timeout: 252 seconds]
hellrazor has quit [Quit: WeeChat 2.3]
<wedens>
should I create a derivation that depends on pulseaudio, does the patching, and use my derivation in `hardware.pulseaudio.package`?
<siraben>
simpson: now I gotta figure out how to get my emulator signal that the tests have failed
<wedens>
or is there some more ad-hoc way to do that?
<siraben>
I could attempt to read a memory location that stores the test status, hehe
<simpson>
wedens: The idea is that you'd use this for your `hardware.pulseaudio.configFile`. The `runCommand` utility will run sed for us, and we'll feed it the original default.pa from the upstream tarball.
<wedens>
simpson: got it. thanks
<siraben>
Maybe clever will find a clever way to make GUI tests possible
ftxqxd has joined #nixos
ftxqxd has quit [Quit: leaving]
LysergicDreams has quit [Ping timeout: 250 seconds]
ddellaco_ has quit [Remote host closed the connection]
LysergicDreams has joined #nixos
Church_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #53064 → WIP: EDK2, OVMF.fd: fixes for cross-compilation + dependencies + armv7l → https://git.io/fhLsx
LysergicDreams has quit [Ping timeout: 244 seconds]
ddellacosta has joined #nixos
LysergicDreams has joined #nixos
ddellaco_ has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
ddellaco_ has quit [Ping timeout: 250 seconds]
tdbgamer has joined #nixos
<siraben>
simpson: works like a charm right now, will figure out how to get the tests running
<siraben>
Maybe this is the bad line: /nix/store/6abyjgibafsbhlc7v7lab50mb3dj81jg-bash-4.4-p23/bin/bash: ../generate-tables.sh: /bin/bash: bad interpreter: No such file or directory
<siraben>
How do I tell Nix to patch these files?
<wedens>
patchShebangs
<wedens>
I think it's `patchPhase = "patchShebangs generate-tables.sh"`
tzemanovic has joined #nixos
<wedens>
btw, mkDerivation already does archive and you can use `cmakeFlags` for cmake flags
<wedens>
* archive unpacking
<wedens>
you probably don't need to specify `buildPhase` manually
<wedens>
just add `cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];`
<wedens>
you'll need to disable hardening, I think
palo1 has joined #nixos
<wedens>
or patch sources
<wedens>
try adding `hardeningDisable = [ "format" ];` to the derivation
<siraben>
Amazing, it works!
<siraben>
What's hardening do?
<siraben>
So now I want to compile https://github.com/KnightOS/z80e which uses scas as a dependency, how should I update my nix build file to reflect this?
<siraben>
The compile steps for z80e are just cmake . and make
<wedens>
just put `scas` in `buildInputs`: `buildInputs = [ scas ];`
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<siraben>
And how to make it run "cmake ." then "make" for z80e?
<iqubic>
I assume you can write your own code to run during the compile stage
<wedens>
siraben: the same way as with scas
<wedens>
no manual cmake/make invocation needed
<siraben>
Ok now it works, how do I run the result?
<iqubic>
do you have a result symlink?
<iqubic>
I think the bin is put into result/bin
<siraben>
Yep it's ./result-2/bin/z80e-tui
<iqubic>
cool.
<iqubic>
Not sure why it's result-2, but that should work.
<siraben>
Yeah, for some reason it's complaining about flash page 0x41 not existing, must be my ROM's fault or something, but it has worked on at least two other emulators
<siraben>
Hm.
LysergicDreams has quit [Ping timeout: 250 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LysergicDreams has joined #nixos
psy3497 has left #nixos ["WeeChat 1.9.1"]
jasongrossman has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<wedens>
do services defined in home-manager work fine on non-nix os hosts? e.g. on Arch?
Dagger has quit [Excess Flood]
hamishmack has joined #nixos
Dagger has joined #nixos
<jasongrossman>
wedens: I believe the answer is not all of them.
endformationage has quit [Ping timeout: 272 seconds]
<pie_>
i ran into a problem i didnt think i would have: how do i reference a store path in a derivation
<wedens>
pie_: by referencing derivation that provides the output in the store
<wedens>
is it possible to run opengl apps in systemd-nspawn container? will they correctly detect a driver?
<jomik>
Uuuh. Can you not use `import` in a file that is being loaded with the `imports` attribute?
<jomik>
I am importing `../utils.nix` and it tries to then access `/nix/store/utils.nix`...
cyphase has joined #nixos
<jomik>
I guess, for some reason, my folder is put in its own nix-store folder, why?
<ottidmes>
jomik: of course you can import in a file that is being imported via the imports attribute, you are probably doing something that cause the file you passed to imports to be copied over to the store, hence the working directory for it changed to /nix/store
<jomik>
Doesn't that just generate a list of paths relative to my current dir?
<jomik>
How can I load all files in a subdir then? :o
<ottidmes>
you would want to do: ./modules + "/${name}" instead to get a path, or "${toString ./modules}/${name}" to get a string
<jomik>
Ooh, really?
<jomik>
You are right.. O.o Why XD
<jomik>
I mean, in my head, those are the same.
<Myrl-saki>
No, it generates a string, with the directory being loaded into the /nix/store, and interpolated as a path to said /nix/store directory.
<wedens>
unquoted path is a path in a nix store
<ottidmes>
jomik: the thing is, the default toString behavior for paths is not toString as you might expect, but rather to copy the file to the Nix store and return that path
<jomik>
Oh
<jomik>
Lol, okay! Thank you. That makes sense then.
<clever>
and path + string == path
<clever>
so if you do ./. + "/foo", its the same as ./foo, and only foo gets copied to the store
<clever>
but, let var = ./.; in "${var}/foo" copies ./. to the store, and then gives you /nix/store/hash-something/foo
<clever>
which copies a lot more
<wedens>
is it in the doc? sounds tricky to get right
<clever>
not sure
<clever>
in general, i try to keep paths as the path type as long as possible
<clever>
so use +, rather the "${var}"
<ottidmes>
its something to keep in mind when handling security sensitive files, like files containing passwords, you generally do not want to have them end up in the store, so you would have to make sure to explicitly call toString on those paths
LysergicDreams has quit [Ping timeout: 272 seconds]
LysergicDreams has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
dermetfan1 has joined #nixos
hoijui has joined #nixos
<hoijui>
how can I disable the use of nonfree firmware? reading on https://nixos.org/nixos/manual/options.html , I see nonfree mentioned only once, and it is an option to optionally enable it, but I see it being installed by default, without enabling this option
<hoijui>
I know htat my system does not need nonfree
dermetfan1 has quit [Client Quit]
dermetfan has joined #nixos
<jomik>
Uh, if something unfree is being installed without allowUnfree being true, then you should probably create an issue.
<jomik>
Or PR a fix.
<jomik>
Or both.
<jomik>
hoijui ^
<hoijui>
ahhh...
<hoijui>
thanks jomik... so by default it should not do that?
<hoijui>
the only config option I changed from the generated config file was the boot loader partition for grub
<hoijui>
and one of hte first things I saw being installed was firmware-linux-nonfree
<hoijui>
ok...
<m15k>
Hi. I downloaded the virtualbox image. I tried `nix-channl --list` which returns nothing. I'm a little curios why that happens.
<jomik>
From my understanding it shouldn't. That's why we have a config option to allow unfree stuff being installed. hoijui
<jomik>
I am sure someone clever person will correct me if I am wrong :P
<jomik>
And I probably just pinged clever... Lol, sorry. xD
zarel has joined #nixos
periklis has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]>
Ohai.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]>
Following problem: I'm currently packaging new programs. For these, I add myself as a maintainer.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<schmittlauch[m]>
For the first PR I had to add myself to the maintainers list. That commit is now part of my first packaging PR. But how to proceed with the next PRs as long as my nick isn't in the maintainers file? Is including the maintainerlist-adding commit into each PR ok?
tzemanovic has quit [Remote host closed the connection]
<ivan>
schmittlauch[m]: yes
<ivan>
I did that and the PRs merged just fine
<schmittlauch[m]>
good to know
ddellacosta has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
<jomik>
Are imports loaded with callPackage? I had an import with `args@{ lib, config, ... }:`, and was passing `args` onto a function that required `pkgs`, but `pkgs` weren't in args, now that I added `pkgs` to the signature of the caller, it is passed in... Weird..
tzemanovic has quit [Ping timeout: 252 seconds]
<Myrl-saki>
jomik: I don't know about the details of your code, but `args.pkgs` won't work if pkgs is not provided by the caller, even if there's a default set for it.
<jomik>
I am asking what `imports` are called with. The attribute that nixpkgs use to merge modules.
<Myrl-saki>
jomik: Do you know what fixed point is?
<{^_^}>
[nixpkgs] @ma9e opened pull request #53072 → fuse-overlayfs: init at 0.2 → https://git.io/fhL87
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @justinwoo opened pull request #53073 → fix fetchFromGitLab to use repository archive downloads → https://git.io/fhL8b
<jomik>
Yah?
<Myrl-saki>
jomik: That's pretty much it. I don't know the details that much, but the output is basically a fixedpoint of the imports.
<jomik>
the output?
<Myrl-saki>
So, what's passed to the imports is "the whole configuration"
<jomik>
Hmm.
<jomik>
I am not really sure that makes sense in regards to why it isn't being passed `pkgs` though?
<jomik>
It is somehow reading the signature of the function IIUC.
<Myrl-saki>
You'll have to ask someone more knowledgeable with the module-loading code, but I'll give it a quick read right now.
<jomik>
I had to add `pkgs` to the second line, even though I don't actually need it in the code right here.
<Myrl-saki>
jomik: Even if you used ...?
<hoijui>
I installed the nvim package with nix-env -i neovim
<jomik>
Yeah, `...` is and was there.
<Myrl-saki>
Hm.
<hoijui>
I suspected that this is now somehow represented in my configuration.nix
<Myrl-saki>
That is indeed weird.
<hoijui>
but it is not.
<jomik>
hoijui: No, nix-env is impure/imperative.
<jomik>
And nix-env is also usually run by the user, not root, so shouldn't modify /etc/configuration.nix
<hoijui>
ah.... so there is a way to install packages so they end up in the configuration?
<jomik>
/etc/nixos/configuration.nix
<Myrl-saki>
A bit more technically, nix-env is impure in the sense of the state monad, IIRC.
<jomik>
You can write them in your configuration.nix and then nixos-rebuild :D
<hoijui>
ahhhh ok! thanks!
pie_ has quit [Remote host closed the connection]
pie__ has joined #nixos
pie__ has quit [Remote host closed the connection]
<Myrl-saki>
jomik: I might not have the answer to this. :P
<Myrl-saki>
jomik: What was the error without `pkgs`?
<hoijui>
jomik, looking for nonfree on my system with find, I only found two files in /nix/store/
<hoijui>
i dont know what that store is
<hoijui>
is it just some kind of repo, or is it really installed?
<hoijui>
does it just meanI can install it without internet access?
<jomik>
anonymous function at /home/jomik/.config/nixpkgs/programs/emacs/modules/theme.nix:1:32 called without required argument 'pkgs', at /home/jomik/.config/nixpkgs/programs/emacs/builder.nix:5:12
<jomik>
Myrl-saki: ^
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
freeman42x[nix] has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<jomik>
hoijui: It contains a lib folder, right? It's probably "installed" as a dependency of something.
<jomik>
I am not sure.
<hoijui>
jomik, no lib folder, no (and it are 3 files, not 2.. failed at counting before ;-) )
<hoijui>
ok....
<hoijui>
I will try to explicitly define allowUnfree = false now
pie_ has quit [Excess Flood]
<Myrl-saki>
jomik: I'll probably know why soon.
<Myrl-saki>
No, no I don't.
<Myrl-saki>
jomik: That's actually an interesting find.
arjen-jonathan has joined #nixos
<Myrl-saki>
jomik: OTOH, you should be using submodules or the like.
<jomik>
Why? :o
<jomik>
Or do you mean that I should make an attribute on programs.emacs that is a list of submodules?
<jomik>
But, I'd like to be able to check stuff like programs.emacs.evil.enable in other submodules.
<hoijui>
is this too long: "A simple XFCE panel plugin that lets the user run an alarm at a specified time or at the end of a specified countdown period"
<jomik>
IIRC there is also an attribute called `longDescription`. But that description isn't long, from what I have seen.
imdoor has quit [Quit: imdoor]
<ottidmes>
hoijui: it seems good to me, as long as it is one sentence and follow the following rules: Be capitalized. Not start with the package name. Not have a period at the end.
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @FRidh to master « Remove composableDerivation, closes #18763 »: https://git.io/fhLBV
<steveeJ>
it tries to create a profile symlink locally: `error: creating symlink from '/nix/var/nix/profiles/system-36-link.tmp-8313-35053946' to '/nix/store/s1ibs0qfxwbbmi39vk0jaxng5h9hplnv-nixos-system-contabo1-18.09pre-git': Permission denied`
<wedens>
I'm having a difficulty in finding definition of `melpaBuild` function
<steveeJ>
passing `root@a.b.c.d` makes it work. I'm a bit confused about how sudo helps with omitting that
<arianvp>
I put secrets in a ramfs on /run/secrets
<arianvp>
And configure my NixOS services to read them from there
<Seb[m]>
Hey there! Are the slides from yesterdays cross-compilation workshop at 35c3 available somewhere? I think there was also an attempt to record the session?
<arianvp>
Not all NixOS modules yet support this yet though
<arianvp>
Mic92: ^
eadwu has joined #nixos
bagus has joined #nixos
rprije has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 240 seconds]
tyang has joined #nixos
sigmundv_ has joined #nixos
miaoski_tw has quit [Quit: Connection closed for inactivity]
<siraben>
Not sure where else to ask this but does anyone know of a good GUI testing application?
<siraben>
I'm trying to run some tests and there isn't a CLI to report test status
<siraben>
It's a GUI emulator
worldofpeace has joined #nixos
<MichaelRaskin>
Last time I was trying to change the state of GUI testing in Nixpkgs, I picked fMBT
<siraben>
I'll send an image. If you look at that highlighted row you'll see a byte that says "69" (as hex) and that tells me the number of tests succeeded. Not sure how to automate this
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhLEk
<MichaelRaskin>
Then xmacrorec (or xdotool or whatever) would allow you to click your way through, then ImageMagick to get the necessary part of the screen, then either tesseract or (the font is stable, right?) a short list of known shapes
<siraben>
The font is stable, yes.
bagus has quit [Ping timeout: 250 seconds]
<siraben>
Cool. I'll take a look at xdotool
<MichaelRaskin>
Note: xdotool and xdo are different commands, xmacrorec is yet different
<{^_^}>
[nixpkgs] @timokau pushed commit from @rvolosatovs to master « vimPlugins: Fix update.py, update (#53081) »: https://git.io/fhLVo
orivej has quit [Ping timeout: 240 seconds]
dermetfan has quit [Quit: WeeChat 2.3]
dermetfan has joined #nixos
<develCuy>
Is there a way to find which package (not installed yet) has an specific binary/file?
<samueldr>
nix-locate from nix-index can help
<samueldr>
it's what powere ,locate here
<samueldr>
,locate bin hello
<{^_^}>
Found in packages: hello, mbedtls, perkeep.bin, gitlab-runner.bin, haskellPackages.hello
<samueldr>
though one caveat: it will only do this for packages built by hydra
<develCuy>
,locate xelatex
<{^_^}>
Found in packages: dblatex, dblatexFull, texlive.combined.scheme-small, texlive.combined.scheme-small, texlive.combined.scheme-medium, texlive.combined.scheme-medium
tzemanovic has quit [Remote host closed the connection]
<develCuy>
,locate dvipng
<{^_^}>
Found in packages: tetex, texlive.combined.scheme-medium
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<develCuy>
,locate dvisvgm
<{^_^}>
Found in packages: texlive.combined.scheme-medium
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
cyounkins has joined #nixos
tzemanovic has joined #nixos
nDuff has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<nDuff>
Mic92, ...random aside: using set -e inside a shell function intended to be used interactively (https://github.com/direnv/direnv/wiki/Nix#persistent-cached-shell) is maybe not a great idea -- the user probably doesn't want to have their shell exit the next time they run (( i++ )), or any other command that happens to return a value of false.
<tilpner>
wedens: I have NixOS on Hetzner servers, if you need any assistance with that
<tilpner>
develCuy: The bot also replies in PMs or #bottest
<makefu>
tilpner: what issue do you have? and is it hetzner cloud or hetzner bare metal?
countingsort has joined #nixos
<tilpner>
makefu: No NixOS issues, currently :)
wucke13 has quit [Quit: WeeChat 2.2]
<makefu>
ah i misread :)
<countingsort>
good evening, im trying to get a rust -sys crate (wlroots-sys) to work, but bindgen cant find stdbool.h, so the build fails. does anybody know how to tell bindgen where the headers are?
eadwu has joined #nixos
<wedens>
tilpner: thanks. I'll keep it in mind. seems like it's pretty easy to set up with nixops, right?
<tilpner>
countingsort: On phone right now, so I can't check, but I think I made my build.rs read a NIX_ env var and add that to the bindgen include path
<nDuff>
Hmm. I was under the impression that metadata for Nix store items included a checksum even for non-fixed-output derivations, but I don't see it in path-info --json; where would I look for that?
<{^_^}>
nixops#696 (by elitak, 1 year ago, open): StrictHostKeyChecking=no is insecure
<wedens>
chris|: is it changeable?
<nDuff>
...ahh, nix-store -q --hash is what I was looking for.
<chris|>
wedens: only if you are not affraid of digging around in the source code
<countingsort>
tilpner: that doesnt sound like i can easily do it without modifying the project, which would be favorable, since its a dependency in something else im doing
<tilpner>
If nothing else works, your derivation can patch its way around (though I agree it's ugly and that you should prefet potential alternatives)
<countingsort>
how would i even go about pathing a dependency of a crate i depend on without including both as a submodule (new to rust and nix)?
fendor has joined #nixos
<tilpner>
Not sure myself, but I would start with trying to patch a Cargo.lock to get the crate source from a patched store location instead of from git
<tilpner>
Oh wait, do you control the project you're trying to package?
<countingsort>
yes
<countingsort>
im not even trying to package i just wanna compile it for now
Lingjian has joined #nixos
<countingsort>
so somewhat ugly is ok
<countingsort>
id prefer it if i dont need to make any changes to it that are nix specific, or as little as possible
<tilpner>
Then you could vendor a patched version of that dependency until upstream accepts your patch, and use cargos official source replacement methods to replace the nested dep with your checkout
<countingsort>
cargo has source replacement methods <.<
<tilpner>
You don't need to make it nix specific. Just call the env var something like BINDGEN_EXTRA_INCLUDE_PATH instead of NIX_
eadwu has quit [Ping timeout: 252 seconds]
<tilpner>
On phone right now, you'll have to search for those yourself
<countingsort>
yeah, i found it. neat
eadwu has joined #nixos
Lingjian has quit [Ping timeout: 250 seconds]
_deepfire has joined #nixos
<_deepfire>
Is there a way to make a gcc-wrapper derivation with some C packages already in search paths?
<_deepfire>
akin to ghcWithPackages
orivej has joined #nixos
<pbb>
I wonder: How does `services.<service>.enable = true` lead to a derivation being built and installed?
Lingjian has joined #nixos
<infinisil>
pbb: See the documentation, it should link you to the file where the option is defined
<infinisil>
(`man configuration.nix` or ttps://nixos.org/nixos/options.html#)
<infinisil>
pbb: Once you find the file (something starting with nixpkgs/nixos/modules/...), you can find your path to that file by running `nix-instantiate --find-file nixpkgs/nixos/modules/...`
<pbb>
so basically this leads to the nginx derivation being built?
<infinisil>
Yeah in a way
ottidmes has quit [Quit: WeeChat 2.2]
<pbb>
because cfg.enable is not used anywhere else
<infinisil>
Yup
Makaveli7 has joined #nixos
<infinisil>
Well there's lots of different parts that work together for something being built in the end, the enable option is only one part of this
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to staging-next: https://git.io/fhLoQ
boredom101 has joined #nixos
<pbb>
it's still a bit confusing to me, but in general I should be able to add a module nix file and the pkg nix file to my configuration (import them) and set services.x.enable = true and the pkg will be built?
kisonecat has quit [Ping timeout: 268 seconds]
Makaveli7 has quit [Remote host closed the connection]
<pbb>
(I want to define a derivation in my configuration)
<pbb>
or is it registered somewhere, so that my custom pkg will not be built?
<infinisil>
pbb: The first thing you need for that is to have a working nix build for the package, do you have that?
<pbb>
yes
tzemanovic has joined #nixos
<infinisil>
Hold on, brb
kisonecat has joined #nixos
<infinisil>
pbb: Pretty much all you need then is a simple systemd service: `systemd.services.foo = { serviceConfig.ExecStart = "${import ./path/to/your/package/default.nix}/bin/foo --bar"; }`
the-kenny has quit [Ping timeout: 246 seconds]
boredom101 has quit [Ping timeout: 256 seconds]
<pbb>
ah, and by importing it in the service, it will be built?
<pbb>
I'll try that
<infinisil>
You can define such a service right in your configuration.nix
<infinisil>
But you can also put it into a separate file and use `imports = [ path/to/file ];` if you wish
<{^_^}>
[nixpkgs] @bennofs pushed commit from @r-ryantm to master « python37Packages.intervaltree: 2.1.0 -> 3.0.2 (#52803) »: https://git.io/fhLK8
tzemanovic has quit [Ping timeout: 250 seconds]
hotfuzz_ has quit [Ping timeout: 268 seconds]
agander_ has joined #nixos
agander has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
tzemanovic has joined #nixos
agander_ has quit [Ping timeout: 246 seconds]
<Baughn>
Is it possible to get the path of the nixpkgs repository being built, from inside configuration.nix?
<samueldr>
Baughn: yes, what do you want to use it for? (there may be other solutions to your problem)
<samueldr>
> pkgs.path
<{^_^}>
/var/lib/nixbot/nixpkgs/master/repo
<Baughn>
Evaluate some of the NixOS tests as part of the system build.
Lingjian has quit [Ping timeout: 252 seconds]
sir_guy_carleton has joined #nixos
<samueldr>
if you're on unstable, pkgs.nixosTests might be usable too
Lingjian has joined #nixos
philippD has joined #nixos
Lingjian has quit [Read error: Connection reset by peer]
<Baughn>
I'm not.
<Baughn>
Nixops doesn't work on unstable, last I checked.
gagbo has joined #nixos
blumenkranz has joined #nixos
Lingjian has joined #nixos
<gagbo>
Hello, is there a quick tips section somewhere about configuration ? I don't know if I'm supposed to create users in the /etc/conf.nix or within root session with useradd, nor do I know if I should put all packages in /etc/conf.nix vs having user packages in ~/.conf/nixpkgs... I have a lot of smaller questions about NixOS after my first try to install it in a VM
<gagbo>
most notably, I failed at setting zsh as my login shell for the normal user
<blumenkranz>
Hello. I am having some trouble attempting to install addons in both Firefox and Firefox ESR. It says it can not download the addon, and that I should check my connection. Is anyone else experiencing a similar issue?
agander has joined #nixos
<etu>
gagbo: /etc/nixos/configuration.nix if you're on nixos
<etu>
gagbo: In that file you should have examples
<blumenkranz>
When visiting the download link manually, it says "(null) could not be downloaded because Firefox can not modify the needed file"
arjen-jonathan has quit [Ping timeout: 252 seconds]
vidbina has joined #nixos
<blumenkranz>
I can confirm Firefox is running as my user, and the .mozilla folder is fully owned by me
<jomik>
gagbo I am pretty certain that you should use /etc/nixos/configuration.nix :O
<gagbo>
Oh, so I guess my stuff did not work because I somehow thought it should be users.extraUsers.<nick>
<gagbo>
I'll try this next time then, thanks
<nDuff>
gagbo, ...extraUsers *is* permitted, albeit as legacy syntax.
kisonecat has quit [Ping timeout: 250 seconds]
kisonecat has joined #nixos
<Baughn>
gagbo: We can't tell you how you *should* do this, but I'd encourage you to use declarative configuration as much as possible.
<Baughn>
And while it's possible to make your user configuration at least semi-declarative with relative ease, it's also perfectly fine to put everything in configuration.nix.
<Baughn>
I suspect this approach is perfectly fine. But if you have ideas, I'll certainly be thankful.
<gagbo>
So you end up with huge package lists I guess. What I wanted to do was to put as few system packages as possible, and try to put my "personal" packages in ~/.config/nixpkgs.
Church_ has quit [Quit: WeeChat 2.2]
<gagbo>
But I'm not sure if this failed because it's probably a bad idea, or if it just fialed for a lot of other reasons :) thanks for the advice anyway
<nDuff>
It's certainly something you *can* do.
Church_ has joined #nixos
<Baughn>
You can do that, but I find that even if I do have multiple users, I end up regretting not having all my usual packages available.
Lingjian has quit [Read error: Connection reset by peer]
<Baughn>
If you want to try it anyway, I'll recommend using home-manager.
* nDuff
was about to suggest the same.
Lingjian has joined #nixos
<Baughn>
gagbo: NixOS configurations admittedly do tend to grow. And grow. And grow.
<gagbo>
But when you start editing latex files, the count grows pretty quickly
<gagbo>
At least that's when it started to really grow on my current machine
<blumenkranz>
Has anybody been able to install Firefox addons in NixOS?
<samueldr>
from within firefox, yeah, haven't had issues
<infinisil>
blumenkranz: Works just fine from the web store for me
<blumenkranz>
I can't for the life of me figure why it is not letting me
<Baughn>
gagbo: Oh. I do that using per-project `shell.nix` files.
<blumenkranz>
It just says the download failed.
<Baughn>
nix-repl is worth its weight in gold.
Church_ has quit [Ping timeout: 250 seconds]
<Baughn>
Er. Nix-shell.
<Baughn>
...both, really.
<infinisil>
blumenkranz: Not sure, maybe update everything first, check existing issues, make sure your internet is working and your DNS doesn't botch some requests or so
<blumenkranz>
I think it may be DNS, but the AMO and the download link have the same domain, so I don't know
<blumenkranz>
I am updating right now again, but I don't think that's the issue
<samueldr>
blumenkranz: there could be logs in the "Browser Console" (ctrl+shift+J)
<samueldr>
I'm still unsure what logs and what doesn't log in that console
<blumenkranz>
I have found something interesting, but I can not read it
<jomik>
infinisil: My brain is still going on about that emacs config xD
<jomik>
I am pondering if I can make an attribute set that represents "use-package", and then expose that to my modules. So that a keybind module could set stuff in, say, evil's use-package ... xD
<blumenkranz>
1546200323246 addons.xpi WARN Failed to start download for addon https://addons.mozilla.org/firefox/downloads/file/1193322/umatrix-1.3.16-an+fx.xpi?src=dp-btn-primary: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.createUnique]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: resource://gre/modules/addons/XPIInstall.jsm ::
<blumenkranz>
getTemporaryFile :: line 976" data: no]
<blumenkranz>
It says that. Apparently, an exception in addons.xpi
sigmundv_ has quit [Ping timeout: 245 seconds]
<blumenkranz>
It also just spewed some more errors about addon update.
<blumenkranz>
1546200404436 addons.update-checker WARN onUpdateCheckComplete failed to parse update manifest: [Exception... "Update manifest is missing a required addons property." nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/addons/AddonUpdateChecker.jsm :: getRequiredProperty :: line 461" data: no]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<jomik>
Odd, my firefox has addons (vimium), didn't do anything specific tho.
<countingsort>
how do i get the include path for standard c headers in nix? the gcc thing seems to take me to a gcc wrapper
freeman42x[nix] has quit [Ping timeout: 250 seconds]
jchw has joined #nixos
dermetfan has joined #nixos
ddellacosta has quit [Remote host closed the connection]
Church_ has joined #nixos
lawlesseel has joined #nixos
<samueldr>
,libraries countingsort
<{^_^}>
countingsort: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<samueldr>
or, for a one-liner explanation: when using nix-shell, the gcc wrappers know how to resolve those
tzemano__ has quit [Remote host closed the connection]
orivej has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
aanderse has quit [Ping timeout: 250 seconds]
vidbina has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<{^_^}>
[nix-pills] @kalbasit pushed commit from @elben to master « Fix darwin hello.nix. (#103) »: https://git.io/fhLXF
<countingsort>
the original issue is that bindgen cant find stdboo.h and similar, so i patched the tool to take an extra include path via an env var, but i now need to give it the path somehow
cnidario has joined #nixos
<countingsort>
and surely hardcoding `/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0/include` is bad (and doesnt even resolve all of it)
cnidario has quit [Remote host closed the connection]
<symphorien>
all the flags you need should be in $NIX_CXXSTDLIB_COMPILE and $NIX_CFLAGS_COMPILE
<{^_^}>
[nix-pills] @kalbasit merged pull request #99 → Fix reference to outdated coreutils version → https://git.io/fhUgc
<{^_^}>
[nix-pills] @kalbasit pushed commit from @workflow to master « Fix reference to outdated coreutils version (#99) »: https://git.io/fhL13
tzemanovic has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
__monty__ has quit [Quit: Mic drop]
Travankor_ has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
<jchw>
is there a canonical way to test a nix expression on a different architecture? i wanted to test if my new package will build properly on other architectures before submitting a PR to nixpkgs. i'd be okay with setting up a qemu VM, but there's no obvious place to get a root image or installation medium for other architectures? (only seeing AMD64)
<nDuff>
Does build-support/vm not support foreign targets? Gotta admit I'd assumed that it did, though I'm only using it for a use case that doesn't require that.
Lingjian has quit [Ping timeout: 252 seconds]
<samueldr>
you will need an appropriate "bios" for qemu, which is also built by hydra, using nix-store --realise you could get the output ending with `-fd` (though that's not optimal_ https://hydra.nixos.org/search?query=OVMF.aarch64
<samueldr>
there's also the possibility of cross-compiling, but it could fail due to dependencies not being ready to cross-compile
hedning has joined #nixos
<samueldr>
jchw: do note that qemu-system is... pretty slow :/
cyphase has quit [Ping timeout: 272 seconds]
shabius has quit [Remote host closed the connection]
<samueldr>
(and all that doesn't cover darwin)
shabius has joined #nixos
Lingjian has joined #nixos
<jchw>
yeah, i realize that :(
<samueldr>
jchw: I would open the PR, and let ofborg build it for aarch64; it'll probably be quicker to at least know whether it builds or fail; though it's not to be (ab)used to twiddle knobs until it works
kisonecat has quit [Ping timeout: 268 seconds]
<jchw>
got it. I would suppose this will most likely just build, but I wanted to know for future reference.
<jchw>
I suppose it would probably be wise to just setup nix on some ARM hardware sometime. I might have something that can run it.
<jchw>
well, i have an rpi3, but i imagine build times on the rpi3 might give qemu-system a run for its money in terms of slow build times
<samueldr>
I think you'd be surprised
<samueldr>
unless you have really top-of-the-line hardware to run qemu on
<jchw>
qemu user didn't seem too bad... is the difference big between user and system
<samueldr>
yes
<jchw>
ah, got it.
<samueldr>
all the time spent in the kernel is not emulated with qemu-user
<jchw>
thanks in any case. will consider the raspberry pi 3 setup. also got a pine64 somewhere around here. For now, I think I'll just go send the PR, since I am pretty sure this one will be fine.
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @bgamari to master « nextpnr: 2018.10.17 -> 2018.12.29 »: https://git.io/fhLMs
nDuff has quit [Quit: zzz]
<shazow>
when installing nixos from another linux distro, can anyone imagine a problem with using the nix aur on arch instead of using the curl-bash installer?
das_j has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 268 seconds]
Lingjian has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @jchv opened pull request #53087 → lxqt-archiver: init at 0.0.96 → https://git.io/fhLMu
shabius has quit [Quit: Leaving]
<demize>
shazow: Only thing is really that you need to remember to update nix by rebuilding the package
<shazow>
demize: (sorry just getting started with nixos) how do i do that?
<blumenkranz>
Hello. Do you happen to know how does the firejail module work? I managed to get it to wrap the binaries, but they are not being put in the global path.
<ldlework>
lol well you should be!!!
Lears has joined #nixos
<ldlework>
gchristensen: are you gonna do video at all, or just write about it
<gchristensen>
I'm not sure how I'd do a video
<blumenkranz>
I wrapped firefox, but whenever I execute firefox, I am executing the regular binary
alex`` has quit [Quit: WeeChat 2.3]
hoijui has quit [Ping timeout: 250 seconds]
<gchristensen>
ldlework: how would you do it?
<ldlework>
in my head, i'd probably use a phone to be like "here's what my workstation looks like, see here's emacs and weechat and my browser." then I'd cut to "okay, here's the dd command *hits enter* no turning back!"
<ldlework>
And then when starting the reinstall, then like "hey look emacs works again! yay!"
<ldlework>
something like that
<iqubic>
emas is greate.
<ldlework>
some semablance of "proof" basically heh
<iqubic>
emacs is great.
<adisbladis>
The browser would slow that down a lot for me
<ldlework>
you're great.
<adisbladis>
I don't know how to reproduce my browser setup nicely
<gchristensen>
FF Sync does it mostly I think
<iqubic>
adisbladis: What browser are you doing?
<iqubic>
gchristensen: Yeah. I love FF sync
<ldlework>
adisbladis: qutebrowser is easier since it is configured with python
hpoussin has quit [Quit: Konversation terminated!]
<adisbladis>
gchristensen: I've done some pretty heavy customizations to my firefox which the sync would not take care of
<iqubic>
qutebrowser is awesome.
<ldlework>
you're awesome.
<MichaelRaskin>
There is also no turning back when you go exchange your HDD under warranty…
<iqubic>
adisbladis: What sort of custimzation are you talking about?
<adisbladis>
Like custom stylesheets
<MichaelRaskin>
(I have done it, with reinstallation from backups)
<adisbladis>
Removing the address bar for example
<smrtak>
hello. I installed box, but it's not booting up most probably due to incorrect value I provided in boot.initrd.luks.devices [uuid of the other partition]. I hope it's now fixed [in config] but would like to avoid re-running nixos-install as I have pretty slow link here. Do you have any cmd/trick how to perform only "rebuild"? Please :)
<adisbladis>
Disabling tabs completely
<iqubic>
adisbladis: Why did you do this?
<adisbladis>
Lots of little things in about:config
<adisbladis>
iqubic: So I can use my window manager to manage browser "tabs" too
<iqubic>
Why have you done this? How the heck do you use firefox if you can't type urls into the address bar?
<gchristensen>
nice
<ldlework>
neat
<adisbladis>
iqubic: I can get it back by pressing C-l
<iqubic>
Oh, you must have done a lot of customizations.
<MichaelRaskin>
Wait, can you hide address bar without an extension?
<iqubic>
smrtak: run "nixos-rebuild switch"
<adisbladis>
MichaelRaskin: userChrome.css
<blumenkranz>
Do you happen to know how would I prevent an installed package in the nix store from appearing in /run, so the firejail binary actually comes up on top?
<MichaelRaskin>
I never managed to get it back with Ctrl-l
<gchristensen>
ldlework: there are NixOS users whose ~s are nix store paths, or tmpfs's and... they get a nixos challenge just about every boot
<smrtak>
iqubic: I thought this cmd is to be run from installed system. I'm in rescue shell now.
<adisbladis>
Leaves me with a pretty bare looking firefox
dermetfan has quit [Ping timeout: 250 seconds]
<gchristensen>
adisbladis: screen shot?
<MichaelRaskin>
ARGH
<MichaelRaskin>
:focus-within
<MichaelRaskin>
Point taken
<MichaelRaskin>
Thanks
<ldlework>
gchristensen: i think we should try to promote more writing down and describing these "esoteric" use-cases as they can help distinguish nixos from normal linux distros
<samueldr>
smrtak: if you re-run nixos-install, it will not re-download if it's already in the system
<gchristensen>
ldlework: I think that is a great idea
<gchristensen>
ldlework: while it isn't NixOS really (but based on Nixpkgs) MichaelRaskin has nearly given talks at on his very interesting, and esoteric, OS.
<gchristensen>
adisbladis: I'm not sure what I expected :P
<MichaelRaskin>
Well, lightning talks did happen
<iqubic>
MichaelRaskin: what OS are you running?
<adisbladis>
gchristensen: Not really much to take a screenshot of :)
Makaveli7 has joined #nixos
<MichaelRaskin>
Well, Nixpkgs-based with custom boot scripts and a Common Lisp daemon managing stuff
eadwu has joined #nixos
<ldlework>
Do you use it to make continuous offerings to god in the form of randomly generated hymns?
<iqubic>
So is it like nixos + guixsd?
<iqubic>
MichaelRaskin: ^^^
<MichaelRaskin>
Not really, I use some small pieces of NixOS, and nothing of Guix
<{^_^}>
[nixpkgs] @jnsaff opened pull request #53094 → chevron: init at 0.13.1 → https://git.io/fhLy0
<iqubic>
Have you released this OS online?
ddellacosta has quit [Remote host closed the connection]
<MichaelRaskin>
Well, the code is available
<adisbladis>
Hmm... I guess firefox policies could be abused to manage at least the bootstrapping of the browser
<schopp0r>
rnhmjoj: I see you are a maintainer of PaleMoon. Hm. The version in the package tree is very outdated. Do you still maintain it? (otherwise I might just submit a patch in the next days, not sure when I have enough bandwidth, though)
<blumenkranz>
Any suggestions on how to give a wrapped bin higher priority than the original binary?
Makaveli7 has quit [Quit: Leaving]
<rnhmjoj>
schopp0r: sorry, i stopped using pale moon and I haven't maintained it for a while. if you update it you could remove me as a maintainer
<blumenkranz>
I can't wrap (pun intended) my mind around how to make the Firejail-wrapped Firefox override the original one in /run/current-system/sw/bin
<schopp0r>
rnhmjoj: ok. maybe I should contact the other maintainer as well.
buckley310 has quit [Quit: Bye]
<samueldr>
blumenkranz: don't install the non-wrapped firefox?
<samueldr>
(I mean, as a systemPackage)
<schopp0r>
ah, how is the security update policy of nixos, btw? I think palemoon only has security updates in new releases. but a new release cannot always get into "stable" I think
<rnhmjoj>
you may be interested in pr #52728, i just saw it today
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):214:10
<Profpatsch>
error: getting status of '/home/philip/import "${<nixpkgs>}/lib"': No such file or directory
<Profpatsch>
The heck
<blumenkranz>
samueldr: will Nix be able to tell firefox is a dependency of the wrapper, when it's just used as a variable?
<Profpatsch>
I really don’t understand the nix 2 tools.
<blumenkranz>
adisbladis: sadly, whenever I execute firefox, I get the original one, no the wrapped one.
<blumenkranz>
The $PATH is right, tho
<samueldr>
schopp0r: in other words: browser updates *should* get backported, if the contributor doesn't do it, ask for it in the PR, either the nixpkgs committer doing the PR will do it, or ask for the right contirbutor which will do it
<blumenkranz>
adisbladis: I have firejail in /run/wrappers, but not firefox itself.
<gchristensen>
Profpatsch: unrelated to your question, you can do import <nixpkgs/lib>
eadwu has quit [Ping timeout: 252 seconds]
<Profpatsch>
gchristensen: Not in my case. ;)
<gchristensen>
what...uh...is your case? :o
<schopp0r>
samueldr: PR?
<samueldr>
schopp0r: pull request
<Profpatsch>
gchristensen: { nixpkgs ? <nixpkgs> }: let pkgs = import nixpkgs {}; lib = import "${toString nixpkgs}/lib"; in …
<schopp0r>
samueldr: ah ok.
<schopp0r>
samueldr: thx
<Profpatsch>
To save on having to go through all the nixpkgs init code just for the lib.
<adisbladis>
Profpatsch: Umm.. I can't say I understand what's going on here but '(import "${<nixpkgs>}/lib")' does the trick
<Profpatsch>
adisbladis: Yes, but it’s going to import <nixpkgs> into your store first.
<Profpatsch>
Because it’s effectively doing "${/some/path}"
<Profpatsch>
If you add toString, it won’t import the path into your store.
<{^_^}>
[nixpkgs] @jnsaff opened pull request #53095 → serverlessrepo: init at 0.1.6 → https://git.io/fhLy5
<Profpatsch>
It’s a bit arcane. :)
<adisbladis>
I was pointing out that adding parens to the expression does not trigger this: "Profpatsch: error: getting status of '/home/philip/import "${<nixpkgs>}/lib"': No such file or directory"
boredom101 has quit [Quit: Page closed]
<Profpatsch>
adisbladis: Oooooooooh.
<Profpatsch>
You are right. And I know I hit this in the past.
<Profpatsch>
One reason I still use the old tools. :)
<Profpatsch>
I think it’s not acceptable.
<blumenkranz>
samueldr: Oh, it did work. Didn't imagine Nix would be smart enough to determine it needed Firefox just from a path variable reference in another place.
<gchristensen>
that is the special sauce which makes Nix so good
<adisbladis>
Profpatsch: Yeah that's not the behaviour I'd expect from eval..
<gchristensen>
Profpatsch: they're still beta for sure... :)
<Profpatsch>
Yeah, they are.
<adisbladis>
nix eval '1'
<adisbladis>
error: don't know what to do with argument '1'
<adisbladis>
Strangeness
<samueldr>
> "Store path to firefox: ${pkgs.firefox}" # blumenkranz
<Profpatsch>
We hit another bug with nixos-install that I’m pretty sure is because of the switch from `nix-build` to `nix build` in the script.
<{^_^}>
"Store path to firefox: /nix/store/r55knryshbnxp4ggcldrqzlc82q681f3-firefox-64.0"
<samueldr>
that's whatever firefox version the bot's current checkout would be
<Profpatsch>
Though it was not on my system, so I didn’t open a bug.
<samueldr>
the wrapper, when it uses ${firefox} adds a dependency to the thing also existing
waif has joined #nixos
<blumenkranz>
Damn, now I feel bad the package manager is more intelligent than me.