<pumpy>
euank in electron-builder during yarn package, first error i see is cannot execute cause=fork/exec /home.../node_modules/7zip-bin/linux/x64/7za: no such file or dir, but i can ls and see it exists!
<pumpy>
so it errors then with error #1 enoent <that path>
<pumpy>
then error #2 err_electron_builder_cannot_execute
<pumpy>
know how i can fix? fwiw i'm just running from cmd line, not into the shell container thing
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTsFO
<euank>
pumpy: you might want to try yarn2nix for capturing those dependencies properly
inkbottle has joined #nixos
<pumpy>
man that seems complex. weird that i can't just build some software in my user account
<euank>
Precompuled binaries npm/yarn download won't work on nix typically (due to the dynamic linker being in a different place)
zebrag has quit [Ping timeout: 256 seconds]
<euank>
you can patchelf em by hand with the instructions in https://nixos.wiki/wiki/Packaging/Binaries if you want, though it's probably better to try and avoid npm downloading precompiled stuff from the internet
sigmundv has quit [Ping timeout: 256 seconds]
gustavderdrache has joined #nixos
<pumpy>
would it be easier to use the appImage distro of this program?
<euank>
Using appimage-run, if it works, will probably be easier. You could try `nix-shell -p appimage-run` and in that shell, do appimage-run $file.AppImage
<euank>
But if it doesn't work, I dunno, that's out of my depth. I don't know what you're actually trying to run or how complicated it'd be to package.
<pumpy>
do i have to run appimage-run with nix-shell? can i just run it directly?
<euank>
you can run it directly if you installed it in some other way
<euank>
I just like using nix-shell if I'm trying something I may not want to install permanently; shouldn't make any difference though
<spease>
Hmm. This sounds useful but it's a bit more complicated. I'm building Halide, which provides a HALIDE_SHARED_LIBRARY cmake define which toggles whether a shared or static library is built. When they make a release, they package both, and the API exposed in cmake (halide is an image processing compiler itself) seems to depend on both, depending on which function is used.
<spease>
Ideally I'd either like it to build both, or maybe let you do 'halide' and/or 'halide.static' depending on whether you only need the shared library, the static library, or both
<euank>
spease: you may be able to use pkgs.pkgsStatic.halide
<euank>
But that only works if the project builds in a normal enough way the builder "just works" (i.e. cflags=-static or whatever does the right thing), or if the project specifically checks for 'stdenv.targetPlatform.isStatic' and does the right thing based on that
<euank>
that being said, it works for quite a few things out of the box, it's worth trying at least
<spease>
euank: I have a checked-out version of nixpkgs that exposes the parameter
<euank>
okay, and how are you verifying that it doesn't actually set it when you override?
<spease>
I may have sort of figured it out, I made the entire generator a function that takes true or false. If false, it has a 'static' attribute that is set to the function with a 'true' argument. The argument is also used to toggle whether the library is static or not
<spease>
euank: it's a dependency for something else which complains about the static lib missing, and it hasn't triggered a rebuild
ericsagnes has quit [Ping timeout: 260 seconds]
amfl_ has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
amfl has quit [Ping timeout: 246 seconds]
amfl_ is now known as amfl
Heirlung- has joined #nixos
tsmanner has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.eve: 1.1.2 -> 1.1.3 »: https://git.io/JTGzg
<euank>
hugolgst: you can add your own module by adding it to `imports`, and if you need to avoid conflicting with an existing module, you can use `disabledModules = [ "system/boot/luksroot.nix" ];`
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.azure-mgmt-keyvault: 7.0.0 -> 8.0.0 »: https://git.io/JTGz6
<euank>
Untested, and potentially there's some subtle reasons it'll break for that specific module. I've used the above to effectively override simpler service modules before htough.
<{^_^}>
[nixpkgs] @maralorn pushed to haskell-updates « haskellPackages.pandoc: Fix eval again »: https://git.io/JTGSe
maxdevjs has joined #nixos
sbetrium has joined #nixos
vidbina has joined #nixos
sss2 has joined #nixos
<noonien>
hello folks
Steelwire has joined #nixos
<noonien>
i want to setup a postgresql container on my nixos machine, and want to be able to do peer authentication from another container. is it possible to sync the users somehow?
<jmercouris>
ok so I added "openssl" to my environment.systemPackages
<jmercouris>
and it installed
<jmercouris>
now where is this shared library located?
<srhb>
,libraries jmercouris
<{^_^}>
jmercouris: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable failing builds to fix evaluation »: https://git.io/JTZvo
<jmercouris>
srhb: I want this to be available for development that I am doing, not to install a package
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTZvP
<rasmusm>
FRidh: i am trying to dedide if i should spend the weekend finising up my homemade pining of pacages + extention of nixos-rebuild or just reconfig it with flakes
<srhb>
jmercouris: Yes, that is what the wiki page is about :)
<jmercouris>
srhb: OK, will read, thank you!
<srhb>
jmercouris: You're welcome.
<rasmusm>
but i hould probaly wait fot the flake talk
<FRidh>
rasmusm: in my experience nixUnstable with flakes is stable enough
spudly has joined #nixos
<rasmusm>
FRidh: cool then i sould upgrate my self to tester ;)
<{^_^}>
[nixpkgs] @primeos pushed commit from @DieGoldeneEnte to master « llvmPackages_11.compiler-rt: enable support for i486 i586 i686 »: https://git.io/JTZIQ
<{^_^}>
[nixpkgs] @primeos merged pull request #100587 → llvmPackages_11.compiler-rt: enable support for i486 i586 i686 → https://git.io/JT3aZ
<{^_^}>
#6206 (by jasom, 5 years ago, closed): sbcl as installed cannot dynamically load libraries without modifying environment
lsix has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 3 commits to release-20.03: https://git.io/JTZIp
kirelagin has quit [Read error: Connection reset by peer]
<jmercouris>
yeah, the thing is konqueror lied to me, I said "copy url" to a specific message, but it did not copy the URL
<jmercouris>
and so it tried to paste the contents of my clipboard
<dutchie>
:(
kirelagin has joined #nixos
sbetrium has quit [Quit: sbetrium]
kenran has joined #nixos
Sanchayan has quit [Quit: leaving]
kenran has quit [Ping timeout: 240 seconds]
whatisRT has joined #nixos
MmeQuignon has quit [Ping timeout: 244 seconds]
Rusty1 has joined #nixos
<theduke>
Is there a good way to load `nvidia` drivers without enabling xserver? (`services.xserver.videoDrivers = [ "nvidia" ];`)
MmeQuignon has joined #nixos
<theduke>
(this is for a server, so no xserver desired)
<illustris>
I'm using nixops to deploy changes to an LXC, but the changes appear to be reverting to the initial state of the LXC template when I reboot it. Does anyone know what's going on?
<{^_^}>
[nixpkgs] @primeos merged pull request #99984 → llvmPackages_11: 11.0.0rc5 -> 11.0.0, enable on Darwin → https://git.io/JUhTx
<{^_^}>
[nixpkgs] @primeos pushed commit from @oxalica to master « tdesktop: 2.3.0 -> 2.4.3 and enable webrtc (#100450) »: https://git.io/JTZGq
<simpson>
No, your homedir is still usable for normal activity.
<pickfire>
pumpy: You can.
<pickfire>
But if a file was managed by home-manager, you can't touch that file.
<pickfire>
Shouldn't, not can't. You can but that will mess things up.
<pumpy>
ok great ty
<pumpy>
simpson++
<{^_^}>
simpson's karma got increased to 37
<pickfire>
Not as in things get broken, but at least you change stuff manually and you might forget.
<pumpy>
pickfire++
<{^_^}>
pickfire's karma got increased to 2
<pickfire>
pumpy: Thanks. \o/
<pumpy>
no ty!
<pickfire>
pumpy: Are you trying out home-manager in your current distro?
meh` has quit [Ping timeout: 260 seconds]
srhm has joined #nixos
<evanjs>
Is there a tracking issue for xmonad-like builds during nixos-rebuild?
spudly has joined #nixos
<evanjs>
I have no idea how to properly phrase that lol
sbetrium has joined #nixos
<gchristensen>
what is the issue?
<evanjs>
like xmonad --recompile but during nixos-rebuild
<evanjs>
can't remember what the current status is
<pumpy>
anyone run keybase-gui? i added it to systempackages and when i run it it says keybase servie doesn't seem to be running even tho i have services.keybase.enable = true too
<pickfire>
pumpy: Are you using home-manager on nixos or other places?
<pumpy>
oh you're setting everything up nixos systemwide then moving some to home manager after?
<pickfire>
Bu tthat was 3 years ago.
<pickfire>
pumpy: Kinda.
<pickfire>
I setup little stuff then try to move home user configurations to home-manager later.
<pickfire>
At least stuff enough to get me do bootstrapping, like having an editor, a better shell or some basic tools that I always use, later I put them in home.nix
spudly has quit [Ping timeout: 258 seconds]
<ZipR>
is flakes still the future? I find very little about it ...
<pumpy>
it says you might need to run keybase service and that works but how can i add it to configuration.nix so it's default?
<pickfire>
ZipR: It is in unstable but I find it pretty stable, just I found some issues with nixpkgs on lxqt.
FRidh has joined #nixos
<ZipR>
I redefined my system with flake.nix and it works find, but I can't seem to find out how I can build the iso version of it ...
<pickfire>
pumpy: I found services.kbfs.enable in configuration.nix
<pickfire>
Maybe that is what you need?
<pickfire>
ZipR: The last video just now talked a bit about how to use nix flake.
<pickfire>
There is not much documentation too but some stuff is documented.
<ZipR>
yeah
whatisRT has quit [Read error: Connection reset by peer]
<ZipR>
the strict ways in which the outputs are divided
<ZipR>
when building an iso I build a nixos system as a derivation somehow. but flakes wants a nixosConfiguration output or package, no way to say: -A -A config.system.build.isoImage
<pickfire>
But that is for china iso, probably need some tweak.
<pickfire>
ZipR: You could also look at the acknowledgements to learn more.
alp has quit [Ping timeout: 272 seconds]
<pickfire>
pumpy: Maybe you could try `man configuration.nix` if you don't know about it? I found kbfs there, it could be related.
spudly has joined #nixos
urkk has joined #nixos
<urkk>
is possible to use something like substituteInPlace to expand @fig.trees.large@ to "${fig.trees.large}" in a latex file?
<pumpy>
pickfire ty. i read that but i don't know which of those options i need. what i usually find in the wiki
<pickfire>
pumpy: You can try using /services\. to search.
<pumpy>
i start keybase service then i'm told to run kbfsfuse then keybase login. i want to put as much of that into my configuration.nix
<pumpy>
well i already enabled keybase and kbfs services
<pickfire>
Or maybe find the wiki, but I rarely go check the wiki, it isn't as good as arch wiki for me.
<pumpy>
there's no wiki for keybase :(
<pumpy>
keybase-gui i should say
<pickfire>
pumpy: Maybe try read the part that covers services.kbfs?
Core8749 has joined #nixos
<pickfire>
And also services.keybase.
<pickfire>
Ah, services.keybase have no options?
<numkem>
I'm looking into a way to create en environment based on a derivation (like you'd do in configuration.nix) minus everything related to systemd/kernel/boot. Essentially a chroot. I know nixos containers exists but I don't want the extra network interface and cgroup
<pickfire>
pumpy: Did you see "You might need to run: keybase service"?
<FRidh>
ZipR: add to modules in your flake `(builtins.toPath "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")` and now you should have e.g. $ nix build .#nixosConfigurations.fr-desktop.config.system.build.isoImage
<FRidh>
do note you should exclude the parts that are typically in hardware-configuration.nix
<pumpy>
pickfire ya but i want that to run automatically
<maxsc>
Now I tried setting `webroot = null;`, but this conflicts with it being set to true in the nginx module... What do I need to change here to make this work?
<maxsc>
However, this configuration by itself doesn't work, as I get an assertion error: - Options `security.acme.certs.example.com.dnsProvider` and `security.acme.certs.example.com.webroot` are mutually exclusive.
<pumpy>
to use keybase-gui, do i also have to add kbfs and keybase to systempackages in my configuration.nix?
halfbit has quit [Ping timeout: 260 seconds]
meh` has quit [Ping timeout: 272 seconds]
Chiliparrot has joined #nixos
bahamas has quit [Quit: leaving]
halfbit has joined #nixos
adamt has joined #nixos
<{^_^}>
[nixpkgs] @expipiplus1 opened pull request #100732 → haskell-lib: Create flipped version of haskell-lib → https://git.io/JTZ0s
<mbrgm>
What's the best start for enabling cross-compilation builds? I am stuck at `a 'armv71-linux' with features... is required to build ..., but I am a 'x86_64-linux' ...`?
<Dandellion>
is there some way to define a "weak" default in a module?
<Raito_Bezarius>
mkOverride $somePriority ?
<Raito_Bezarius>
or mkDefault ?
<Dandellion>
like mkForce would be applied by default, so values aren't merged
<Dandellion>
like passing in attrsets wholesale without merging
<lordcirth>
rycee, how come the bqv-flakes branch says it's deprecated in favor of master, but master doesn't work as a flake? It tries to use <nixpkgs>
trevorriles is now known as visi0n
visi0n is now known as trevorriles
kenran has joined #nixos
endformationage has joined #nixos
addcninblue has quit [Ping timeout: 258 seconds]
<lordcirth>
(Relevant because bqv-flakes fails on manual-combined if I update nixos to 20.09)
addcninblue has joined #nixos
<Dandellion>
Raito_Bezarius: that still merges the set value with the module default right?
mmohammadi981266 has joined #nixos
<Raito_Bezarius>
I'm not that familiar with the NixOS modules details (and also following the conf), I believe it ought to be, but the code might give the real answer
<Raito_Bezarius>
If I was you, I'd just test in a repl
<notgne2>
lordcirth (chat.freenode.net): it works fine in a flake for me
<notgne2>
where does it use <nixpkgs>?
<lordcirth>
notgne2, home-manager master branch? What nixos version?
<notgne2>
nixos-unstable
<lordcirth>
"at: (214:11) in file: /nix/store/mq8gnrwsq9blsjlrd4mx9a0sljb7sah0-source/modules/modules.nix"
tv has quit [Ping timeout: 260 seconds]
cole-h has joined #nixos
spudly has joined #nixos
<lordcirth>
It's in the definition of pkgsModule
noudle has joined #nixos
spudly has quit [Client Quit]
<lordcirth>
Ah, so it's branching on config.home.stateVersion, that's probably why it works for you and not me
<notgne2>
lordcirth (chat.freenode.net): I don't recall how the Nix module system handles this, but if you overwrite it at a higher priority would it even evaluate the lower priority?
<lordcirth>
notgne2, you mean overriding stateVersion?
<notgne2>
so maybe setting `_module.args.pkgsPath = lib.mkForce pkgs.path;` would fix it
<{^_^}>
nix#1360 (by matthewbauer, 3 years ago, open): --arg doesn't work for functions with ...
<KarlJoad>
I've been having some strange issues with WiFi that I cannot figure out on my own. On my personal WiFi, I have no issues, but when I use my university's WiFi, I have plenty of connection issues. The relevant system's config is here: https://github.com/KarlJoad/NixOS_Dotfiles/blob/master/hosts/thinkpad-T460S.nix
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.django-filter: 2.3.0 -> 2.4.0 »: https://git.io/JTZQL
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 272 seconds]
<jasom>
Is there a general tool in nix for making enviroments with symlinks like the way .nix-profile works?
<jasom>
I'd like to turn a list of packages into a subdirectory with e.g. bin/ lib/ and include/ symlinks from all of the packages
<clever>
jasom: buildEnv
<jasom>
clever: well ask a silly question...
<KarlJoad>
lordcirth: I have it there because it hasn't caused problems in the past. I don't know why that option would only affect my experience on my university's WiFi.
<lordcirth>
KarlJoad, I don't know why it hasn't caused problems elsewhere, but it will conflict with NM
refnil has quit [Remote host closed the connection]
mudrii has quit [Remote host closed the connection]
cantaloupe has joined #nixos
mudrii has joined #nixos
<jasom>
clever: thanks, I'm thinking that would be a better way to do lisp dev (a question that came up while I was sleeping) because restaring your lisp process just to load a library you didn't know you needed when you started things up is annoying, but having a deterministic enviroment is a Good Thing (or you wouldn't be using nix)
<KarlJoad>
Ok. I'll try that. I really don't understand the difference between using NM and have the per-interface DHCP options then, I guess. lordcirth, could you perhaps shine a light on that?
sbetrium has quit [Quit: sbetrium]
jul1u5 has quit [Remote host closed the connection]
<gchristensen>
yeah... I am hopeful I won't need to use GPG in 2021
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<puck>
why use either when you can use libfido with ssh! :p
<fzakaria>
Interesting; i'm curious how it differs then PKCS11
__monty__ has joined #nixos
<fzakaria>
I see it's just another interface.
<puck>
u2f means that keys are sorta "ephemeral" -- as in, the only way to retrieve a certain u2f key is by its keyhandle
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
<puck>
so you can generate near-infinite SSH keys from one yubikey, without being able to tell that they are all on the same key, and all usable simultenously
<tobiasBora>
Hello, I'm packaging a project, but the unpacking takes lot's of time cause it's unpacking two times a 2Gb file. Is there a way to cache the unpacking step?
<tobiasBora>
(at least while "debugging" my installation script, because I'll likely need lot's of try and fail)
<g-w1>
ill ask around in my project's community, thanks anyways
<infinisil>
No worries :)
<LnL>
g-w1: it might be trying to detect where the libs are based on the location of clang itself, in that case you'd have to add some kind of -DCLANG_LIB=${clang_11.cc.lib}/lib cmake flag to point it at the right location
<{^_^}>
[nixpkgs] @Ma27 merged pull request #100507 → php: Update some third party packages and extensions → https://git.io/JTYDH
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTneo
<tobiasBora>
Also, in the package I'm trying to configure, it seems that there are some default configuration file. Should I paste them just in $out/share, or is there some better places to put them?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackag2nix: constrain fourmulu and refinery to older versions »: https://git.io/JTne9
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTne5
spudly has quit [Ping timeout: 246 seconds]
<tobiasBora>
Grr, I don't understand why, I added two hook wrapQtAppsHook and autoPatchelfHook, but when I start the exec file, I get an error This application failed to start because it could not find or load the Qt platform plugin "xcb"
<tobiasBora>
in "".
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
shibboleth has quit [Remote host closed the connection]
berberman_ has quit [Ping timeout: 272 seconds]
berberman has joined #nixos
shibboleth has joined #nixos
<{^_^}>
[nixpkgs] @siraben opened pull request #100748 → tinycc: fix build on darwin → https://git.io/JTnvc
sbetrium has joined #nixos
kenran has joined #nixos
mallox_ has quit [Quit: WeeChat 2.9]
mallox has joined #nixos
mallox has quit [Client Quit]
vldn has quit [Ping timeout: 272 seconds]
kenran has quit [Ping timeout: 265 seconds]
vldn has joined #nixos
kenran has joined #nixos
sbetrium_ has joined #nixos
<betaboon>
joko: did you ever find a solution to declaratively starting systemd-units based on service-templates (aka "myservice@") ?
sbetrium has quit [Ping timeout: 260 seconds]
zakame has quit [Ping timeout: 265 seconds]
ninjin_ has quit [Remote host closed the connection]
KarlJoad has quit [Quit: ERC (IRC client for Emacs 26.3)]
rasmusm has quit [Ping timeout: 256 seconds]
<Ke>
warning: ignoring #pragma omp parallel [-Wunknown-pragmas] <- do I need to do something special in nixos to get openmp
ninjin_ has joined #nixos
mudrii has joined #nixos
rasmusm has joined #nixos
vldn has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « stack: override pantry to the latest version to fix the build »: https://git.io/JTnUn
vldn has joined #nixos
seku has joined #nixos
zakame has joined #nixos
<Ke>
apparently I just did not save enough the file
<{^_^}>
[nixpkgs] @Ma27 opened pull request #100756 → nixos/nix: allow specifying a protocol for a remote-builder when using `pkgs.nixUnstable` → https://git.io/JTnqf
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #100757 → itk: remove -march=corei7 and -mtune=native flags from cmake build files → https://git.io/JTnqt
knupfer1 has joined #nixos
kapil_ has joined #nixos
<tobiasBora>
I'd like to know, is there a way to refer to the unpack source directory of a derivation?
<tobiasBora>
I'd like to run steam-run from the unpack source of a package, and I find it stupid to move everything to a .out folder
<tobiasBora>
and ${myderivation.src} gives me the original .zip file
knupfer1 is now known as knupfer
<{^_^}>
[nixpkgs] @peti merged pull request #100716 → Update Haskell package set to LTS 16.18 (plus other fixes) → https://git.io/JTZeh
Darkmatter66_ has quit [Ping timeout: 256 seconds]
alp_ has quit [Ping timeout: 272 seconds]
<pinpox>
Just got my first image build that works! This works nicely on hosters like netcup https://github.com/pinpox/nixos-images , just run ./build.sh and upload the image
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #100758 → git-delete-merged-branches: init at 6.0.5 → https://git.io/JTnmh
<tobiasBora>
infinisil: I do run an unpackPhase, but then how do I refer to it later? there is no myderiv.unpack?
<pinpox>
Just a question: When I log into a server instance based on the resulting image, I see in my /etc/configuration.nix only "imports [ <./machin-config.nix> ];"
<pinpox>
where is that file located on the server?
<infinisil>
tobiasBora: No idea what you mean, gotta be more descriptive
noudle has quit []
gluonix has quit [Remote host closed the connection]
<pinpox>
infinisil: sorry not sure how to google/phrase this: paths in the config with braces like "<./machine-config.nix>", where are those files actually?
<infinisil>
pinpox: It looks up these files in NIX_PATH
<infinisil>
Run `nix repl`, then enter `<./machine-config.nix>` to see what it evaluates to
<{^_^}>
[nixpkgs] @primeos merged pull request #93794 → nixos/chromium: update link in docs → https://git.io/JJ4HK
<{^_^}>
[nixpkgs] @primeos pushed commit from @tnias to master « nixos/chromium: update link in docs (#93794) »: https://git.io/JTnOP
<infinisil>
That's in your own code
<tobiasBora>
infinisil: so basically I .zip file. This .zip contains an exec file. I want to refer to that exec in a writeScriptBin. So my unpackPhase unzip the .zip, but then how do I link to the output exec file from writeScriptBin?
erasmas has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @primeos pushed commit from @tnias to release-20.09 « nixos/chromium: update link in docs (#93794) »: https://git.io/JTnOx
<{^_^}>
halide/Halide#5367 (by spease, 15 hours ago, open): Undefined symbols trying to build with nix (mainly OS X)
<infinisil>
tobiasBora: Oh and it should probably be `cp myBin $out/libexec/bin/yourBin` instead, because the unpacked source ends up in the current directory
<infinisil>
Oh and `passAsFile = [ "myScript" ]` is also needed
<infinisil>
Any attributes given in `passAsFile` will be turned to a filepath like `$myScriptPath`
<pinpox>
infinisil: nope, ${...} doesnt work either. It puts a path to the nix store in the file, but the file does not exist on the system
Acou_Bass has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
halfbit has quit [Ping timeout: 260 seconds]
<tobiasBora>
infinisil: whoo, there is some dark magic here. I need to leave right now, but I'll read it when I'm done, thanks a lot!
evernite has quit [Quit: leaving]
halfbit has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
seku has quit [Quit: Connection closed]
Darkmatter66 has joined #nixos
<laerling>
Good evening. Am I the only one still having problems with nix-env? Earlier I ran `nix-env -iA nixos.binutils` and now when I run `nix-env -e binutils` it doesn't print anything, but the binaries of the binutils derivation are still there.
sbetrium has quit [Quit: sbetrium]
<laerling>
(In ~/.nix-profile/bin)
<immae>
laerling: can you check in the output of nix-env -q --installed if it is actually named binutils?
Tenzer has joined #nixos
<immae>
nix-env -iA nixos.binutils targets a specific element of the big nixos attrset, while -e binutils is more fuzzy
<immae>
so that could explain why you were able to install it but not uninstall it
<infinisil>
pinpox: Well it should exist at that /nix/store path
<laerling>
immae: It is apparently called binutils-wrapper. Running `nix-env -e binutils-wrapper` works. Thank you!
<laerling>
Although I don't understand, what you mean by 'specific element' or rather, why -e binutils should be more fuzzy...
justanotheruser has quit [Ping timeout: 272 seconds]
eskytthe has joined #nixos
<immae>
when you say nix-env -iA nixos.foo, it will look into the "nixos" object (which is expected to be an attrset) and search the attribute "foo" in there
<laerling>
Makes sense, yes
Ridout has joined #nixos
<immae>
this attribute is usually a derivation, which could have a `name = "bar";`. And that name is what is important when you do nix-env -e
<immae>
so you have a difference between what you give to -iA nixos.foo and what you give to -e bar
slack1256 has joined #nixos
<immae>
difference as in "they don’t come from the same location" (they’re usually similar or identical, but it’s not guaranteed)
<laerling>
Right, I remember that from the nix pills. Also, when running `find /nix/store -maxdepth 1 -type d | grep binutils` I can see that there is indeed a derivation called binutils and one called binutils-wrapper.
<immae>
if you want to have a consistent behavior I believe you would have to drop the -A and use something like nix-env -i binutils-wrapper
<immae>
but usually I’m content with just checking what I do so don’t take my word on that last sentence
<laerling>
Ok. Gotta go. Thanks for the help :)
<immae>
you’re welcome
whatisRT has joined #nixos
<pinpox>
infinisil: I got it. This solution is pretty simple and works perfectly:https://github.com/pinpox/nixos-images/blob/d29c1b31a500cb61267f87a478a5f5a00bf547de/build-qcow2.nix#L18
<pinpox>
specifying a path is enough, the contents get copied to /etc/nixos/configuration.nix on the image
cjpbirkbeck has joined #nixos
rtjure has joined #nixos
bhipple has quit [Remote host closed the connection]
rtjure has quit [Remote host closed the connection]
rtjure2 has joined #nixos
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Darkmatter66 has joined #nixos
Core8749 has quit [Ping timeout: 272 seconds]
sangoma has quit [Quit: WeeChat 2.9]
__monty__ has quit [Quit: leaving]
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
<jkt>
hmm, so what exactly goes into my overlay when I want to add a script to mpv? I'm on unstable, and https://nixos.wiki/wiki/MPV doesn't really produce any autolaoded scripts
maddo has quit [Remote host closed the connection]
<jkt>
lukebfox[m]: https://pastebin.com/HUdjAKff is what I've tried so far, but it either doesn't produce any shellscript, or the shellscript doesn't list any scripts
gustavderdrache has quit [Quit: Leaving.]
meh` has joined #nixos
Ridout has joined #nixos
rtjure has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<lukebfox[m]>
the second one looks ok to me, although try setting it as mpv = .... instead of mpv-with-scripts = ..., and then check you've added the right one in your installed packages
<lukebfox[m]>
are you not nixos?
<jkt>
lukebfox[m]: I'm within a nixos
<jkt>
lukebfox[m]: the second one produces `mpv` in my $PATH which is a binary, not a shell wrapper
<jkt>
hmm, if I rename the name of the derivation that I'm trying to create to something like "mpv_jkt", then `nix-env --install mpv_jkt` says: error: selector 'mpv_jkt' matches no derivations
<lukebfox[m]>
i believe this is intended behaviour? the wrapper produces includes a --script argument for the mpris script
fendor has quit [Remote host closed the connection]
<jkt>
lukebfox[m]: huh? I either do *not* get any wrapper, or I get a wrapper which does *not* include any --script option
<lukebfox[m]>
1 sec
<jkt>
depending on what I try to do
cfinch has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eskytthe has quit [Ping timeout: 272 seconds]
cfinch has quit [Client Quit]
cfinch has joined #nixos
zupo has joined #nixos
<jkt>
do I have to register these overlays somehow? I thought that placing them in ~/.config/nixpkgs/overlays/extra-packages/default.nix is enough
zupo has quit [Client Quit]
srhm has quit [Read error: Connection reset by peer]
<lukebfox[m]>
so with the second one, the output of $ cat $(which mpv) shows no --script argument added?
wnklmnn has joined #nixos
<__red__>
Can someone please remind me how to get the bot to tell me which package contains a certain binary?
<jasom>
I'm transitioning a (mostly headless) server from not-nixos to nixos; I'd like to minimize downtime. Anyone have a checklist I can crib from?
<__red__>
I'm looking for pdftosrc
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<jasom>
__red__: install nixpkgs.nix-index and run "nix-locate"
aw has joined #nixos
<evalexpr>
,locate pdftosrc
<{^_^}>
Found in packages: texlive.combined.scheme-full, texlive.combined.scheme-basic, texlive.combined.scheme-small, texlive.combined.scheme-medium, texlive.combined.scheme-minimal
<jkt>
lukebfox[m]: if I do: mpv_with_scripts = super.mpv-with-scripts.override { scripts = [ self.mpvScripts.mpris ]; };, then I get a message saying warning: there are multiple derivations named 'mpv-with-scripts-0.32.0'; using the first one
<jkt>
lukebfox[m]: and the resulting thing doesn't have any script in that shell wrapper
<{^_^}>
#100771 (by jktjkt, 25 seconds ago, open): mpv-with-scripts and wrapMpv are confusing
* jkt
is a nix beginner
<pumpy>
ok. when you start keybase-gui do you just run it or do you have to do other stuff too? when i try to run it, with keybase and kbfs enable set true, it says i have to start keybase service
<pumpy>
then i do that and it says i have to start kbfs service. and THEN i can run keybase-gui
<{^_^}>
[nixpkgs] @NeQuissimus pushed to release-20.09 « Merge pull request #100769 from andersk/linux-hardened »: https://git.io/JTnBk
<pumpy>
ryantm well it's like i said, i run keybase-gui and it says keybase service isn't running and that i need to run it. but for you, it doesn't ask that
Guest97080 has quit [Remote host closed the connection]
<bqv>
i started looking at nix#3920 cause i thought why the hell not, but it turns out it'll take way more time than i anticipated and there's a massive chance it'll just get ignored like both my other PRs so feck