<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @bignaux to master « pentobi: init at 17.3 »: https://git.io/JvqK7
ng0 has joined #nixos
ng0 has joined #nixos
ng0 has quit [Changing host]
<sondr3>
I feel very silly, I have nix expression that I've done `builtins.toJSON` on, how do I write to a file in the build/install phase? With `pkgs.writeText` I can't figure out how to copy it to `$out`
<infinisil>
writeTextFile { name = "foo; text = builtins.toJSON ...; destination = "/pkgs.json"; }
<infinisil>
sondr3: This is probably the easiest ^
<infinisil>
Though untested
<sondr3>
... I just realized it was failing because I forgot `mkdir -p $out`, whelp
<sondr3>
infinisil: thanks a ton though
<sondr3>
infinisil:++
<sondr3>
infinisil++
<{^_^}>
infinisil's karma got increased to 198
<infinisil>
:D
<sondr3>
should've read the error message... `cp: cannot create regular file '/nix/store/mi1zrqp478vw9azg5mdg73mqz8crw7hm-site/pkgs.json': No such file or directory`
<sondr3>
I thought it meant the file, but it was really the directory
<sondr3>
doh
<sondr3>
now I can finally start working on what I wanted to start on ~six hours ago, lol
qubasa has joined #nixos
ng0 has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvq6L
<bhipple>
sondr3: not all packages in the nix store have to be directories. If you wanted to, you could make your json file just == $out at the top-level, e.g. something like /nix/store/<hash>-pkgs.json
<bhipple>
just set name to pkgs.json for your builder and then writeFile to $out
<NoctisLabs>
Something odd happened, I rebooted my PC and my left audio channel was decreased to 18%, I thought my headphones were broken for a moment there :P
<{^_^}>
[nixpkgs] @bhipple opened pull request #78495 → fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir → https://git.io/Jvqil
<zfnmxt>
Has anyone had anything break with the renaming of the 'console.font' option? Now my terminal looks like this: https://i.imgur.com/qc0PI5F.png .
rogue_koder has joined #nixos
<zfnmxt>
But only in termite and not in urxvt. Fonts elsewhere are also broken (some in Firefox, Rofi, etc.).
<{^_^}>
[nixpkgs] @bhipple closed pull request #78495 → fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir → https://git.io/Jvqil
<infinisil>
zfnmxt: You confirmed that that renaming caused this?
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @petercommand to master « xmousepasteblock: init at 1.0 »: https://git.io/JvqiA
<zfnmxt>
infinisil: No, definitely not. It's just the only change I made to my configuration.nix that I'm aware of.
<infinisil>
zfnmxt: Oh well then it's got nothing really to do with that. When you update nixpkgs a lot of things change, and only a tiny fraction of those are renames like that. This is almost certainly not related
<Profpatsch>
infinisil: hah!
<Profpatsch>
I thought you wanted to go to bed :)
<infinisil>
Profpatsch: Oh did I say that? If I did I didn't mean it xD
<Profpatsch>
Ah, yeah, maybe you didn’t
<zfnmxt>
Yeah, makes sense. On further inspection it seems to be happening for any fonts I've installed via 'fonts.fonts'. Any inklings?
<sondr3>
is there a way to carry over environment variables from the host to the builder in `installPhase`? I can't access some secrets using GitHub Actions with them
felixfoertsch has quit [Ping timeout: 272 seconds]
<xavierzwirtz[m]>
how do you run commands as root in buildLayeredImage?
fusion809 has joined #nixos
<dongcarl>
Anyone got a good example of a working nextcloud/mysql setup? I know that nextcloud can be specific about how it wants mysql to be set up
<xavierzwirtz[m]>
I think I am asking the wrong question about root, the real question is how do I add a new user in buildLayeredImage
<clever>
xavierzwirtz[m]: add a derivation that has a etc/passwd, etc/group, and etc/shadow
<xavierzwirtz[m]>
will try
ddellacosta has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @bhipple opened pull request #78501 → fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dir → https://git.io/JvqX8
<xavierzwirtz[m]>
infinisil: writing passwd and group file via contents is working
<thomashoneyman>
clever: thanks!
<thomashoneyman>
...apparently the sha256 ain't right :(
Rusty1 has quit [Quit: Konversation terminated!]
<xavierzwirtz[m]>
What is the right way to create python2 derivation with the mercurial package loaded into it? I am trying to do `(pkgs.python2.withPackages (ps : [pkgs.mercurial]))` but I cant `import mercurial` afterwards
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
chagra has joined #nixos
bgamari_ has quit [Remote host closed the connection]
bgamari_ has joined #nixos
aiverson has joined #nixos
<aiverson>
I'm writing a nix derivation to package the Simula VR window manager. The build is failing to find GLES3/gl3.h during the compilation. I've got pkgs.libglvnd.dev in the buildInputs. I've tried using pkgs.libglvnd, pkgs.mesa, and pkgs.mesa.dev. Other things in buildInputs are working, and entering the build environment with a shell and inspecting the environment variables does show the appropriate -isystem flag point
<aiverson>
ing to the include directory of libglvnd.dev which does have GLES3/gl3.h in it in the compiler configuration. What else should I check or try to fix it?
fusion809 has quit [Remote host closed the connection]
chagra has quit [Read error: Connection reset by peer]
Heirlung has quit [Ping timeout: 240 seconds]
chagra has joined #nixos
<NemesisD>
is `propagatedBuildInputs` appropriate for runtime dependencies? i'm trying to write a derivation for a java thing and that needs java to run
<chagra_>
I doubt this would work but is it possible to somehow use the value of another variable to define a new user. For example set the value user = "chagra" and then do users.users.${user}.isNormalUser=true; ?
<tilpner>
Yes, it's possible
<chagra_>
oh wow, do I put it just like that or should I do put in quotations like so users.users."${user}"?
<exarkun>
do nixops-managed generations encompass nixops configuration changes (eg nixPath values)? Can I roll-back to a previous nixPath setting if I have nixops rollbacks enabled and I re-deploy with a modified value?
<exarkun>
hm `nixops modify -I` docs say *append*
justanotheruser has joined #nixos
elux has joined #nixos
<elux>
hi there
<elux>
my system has 2 graphics cards of which are both amdgpu. id like to use one for the host os and one with vfio-pci. everything is working except when i boot my computer, when the amdgpu driver loads, it'll sometimes load as the host graphics output, the wrong gpu. So i've been trying to play with nixos stage-1 and ensure that my guest graphics card goes into vfio-pci mode before i load the amdgpu.. but this
<elux>
has been proving to be super challenging
<elux>
any suggestions?
<{^_^}>
[nixpkgs] @thalesmg opened pull request #78551 → Update ATS2 version to 0.4.0 → https://git.io/Jvq5W
<tilpner>
But if you don't have a line similar to that, that's probably something you want to try
v88m has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
chagra has joined #nixos
knupfer has joined #nixos
chloekek has quit [Ping timeout: 265 seconds]
<elux>
tilpner: did you never get vfio working at all?
<elux>
or the modprobeconfig things?
<elux>
ive got it working with kernelParams = ["iommu=pt" "amd_iommu=on" "pcie_aspm=off" "vfio_pci.ids=1002:731f,1002:ab38,1b73:1100"]
<elux>
vfio works great then. except when i boot, seems like its random which gpu is selected for the boot gpu, and this is when i run into issues having to reboot a bunch to get the right host card.. so im trying to force-config this by getting vfio binding to happen early on etc
<{^_^}>
[nixpkgs] @fgaz opened pull request #78558 → mindustry,mindustry-server: make it possible to choose what to build (server and/or client) → https://git.io/JvqdM
<thblt>
I'm using NixOS unstable with zsh and command-not-found.enable = true; For some reason, when I call a non-existing command in zsh, the error code is 0 (all good). This doesn't happen with bash, where $? == 127. Is this worth a bug report?
<thblt>
when I directly call command-not-found whatever from the zsh prompt, I get $? == 127. The problem seems to be with zsh integration.
<NemesisD>
how do you all test a derivation that you're working on? i want to make sure the program runs in a pure shell with no external dependencies
<evanjs>
`nix-shell --pure --eval -E `with import <nixpkgs> {}; callPackage ./default.nix {}'` I cant imagine that's correct though
<NemesisD>
evanjs: so my default.nix is `{ pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./derivation.nix {}`, but this just drops me in the build environment for the derivation right?
<evanjs>
wait what. your default.nix has the package definition, right?
<fresheyeball>
so I got the helm synth with nix-env -iA nixos.helm
<fresheyeball>
and I got musnix working
<fresheyeball>
but I can't save anything
opthomasprime has joined #nixos
ayerhart has quit [Quit: ayerhart]
<fresheyeball>
does anyone know why the basic save and load functionality in helm doesn't work on nixos?
ayerhart has joined #nixos
knupfer has joined #nixos
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
<evanjs>
fresheyeball: probably unrelated, but when you say musnix, do you mean musnix w/realtime enabled?
<fresheyeball>
evanjs: if I add the realtime = true; flag it fails to compile the kernel
<fresheyeball>
but I did specify the _rt version of the kernel
<{^_^}>
musnix/musnix#100 (by digitalsignalperson, 33 weeks ago, open): nixos unstable build error: option not set correctly: PREEMPT
<NemesisD>
evanjs: i have a derivation.nix with the derivation, default.nix has the callpackage to instantiate it. i'm not married to that pattern if there's another way
<evanjs>
Assuming this is unrelated, though 😃
<evanjs>
NemesisD: yeah I'd put the derivation in a default.nix
<fresheyeball>
evanjs: I hadn't. but yeah, unrelated to current question
<evanjs>
fresheyeball: alright, thanks. I figured as much. can't imagine the program would require a realtime kernel
<evanjs>
NemesisD: hold on lemme get my script for this
<fresheyeball>
it makes cool noises!
<fresheyeball>
but I can't save or load patches
<NemesisD>
evanjs: i'm sort of getting that nix-shell puts you in the build environment. i assume i'm supposed to run all the phases in order, but for some reason when i do `type installPhase` it does not resemble the `installPhase` in my derivation
<evanjs>
I just put that in `~/bin/nbuild` and run `nbuild` whenever I need to test a derivation in the same directory 😝
<evanjs>
NemesisD: yeah, nix-shell does just that. if you run nix-build like the above, it will test to make sure it compiles and etc while ignoring the stuff specified in the derivation
<NemesisD>
evanjs: thanks that seems like it actually tries to build! what does the 1-default.nix part do?
<evanjs>
that simply takes the first argument, else if it's unspecified it will use default.nix
<evanjs>
so if the derivation is called `drv.abc`, i would run `nbuild drv.abc`
<NemesisD>
ideally i'd like it to build and then drop me into an environment with that derivation enabled
<evanjs>
Yes, please hold, there's a wiki page for this... i think
<evanjs>
bah you're right though. that won't build it. I know `genericBuild` will run all the phases for you but i don't think that's what you want atm
<fresheyeball>
evanjs: I just updated my musnix channel and am seeing if it wont compile now
<fresheyeball>
evanjs: what music software do you use?
<evanjs>
fresheyeball: none but we've been looking at musnix for a while at work due to a need for real-time kernels. hoping to use musnix or similar eventually 😝
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<wat>
Hey! I'm trying to set the verbosity on nix-build, but it just tries to load the level as a file. "nix-build -v 5" gives me "5: no such file or directory"
<bhipple>
Try `nix-build -vvvvv`
<wat>
arrrgh
<bhipple>
:)
<evanjs>
NemesisD: if it was me, I would act as if I'm trying to add the package to nixpkgs, and after it in pkgs/ and all-packages, I would run `nix-env -f . -iA package` in the nixpkgs root. Man this can't be the best way though
erictapen has quit [Ping timeout: 260 seconds]
<bhipple>
Another trick: inside the derivation itself, add the attribute `NIX_DEBUG = 6`. This will turn on set -x in the stdenv builder for that one package. The top-level -v arguments tend to give you a lot more verbosity about the nix infra (grabbing/releasing store lockfiles, etc.), rather than debug info about the build itself
<wat>
sounds good. Is there a way to bump up the NIX_DEBUG in all the derivations? Like if there's a derivation that calls another derivation in a let statement, would you have to set NIX_DEBUG invidually in all the derivations?
<evanjs>
NemesisD: ah i found it
<evanjs>
omg. reading the wiki page again. `--nix-env`
<evanjs>
Just tack that onto your `nix-build` invocation!
magnetophon has joined #nixos
<evanjs>
Doesn't look like it puts it into the PATH but you will end up with a result symlink containing your derivation build result and the proper environment AFAICT
<evanjs>
😕 too bad `--run-env` isn't in the auto-completions. hrm...
<bhipple>
wat: generally that's what the top-level -vvvvvv will do, more or less.
<NemesisD>
evanjs: is --nix-env a new flagon nix-build? it isn't available in my version of nix-build
<gchristensen>
evanjs: eh? this sounds like a bug?
<gchristensen>
evanjs: or misdocumented?
<evanjs>
gchristensen: *shrugs* all I know is that it doesn't show up when I tab tab
<gchristensen>
nix-build doesn't have a --nix-env
dm9 has quit [Quit: WeeChat 2.7]
<gchristensen>
(and if it "does", it is probably a bug)
<evanjs>
--run-env
<evanjs>
oops
<evanjs>
that was on me lol
<evanjs>
still doesn't show up in the manpages/auto completion though!
<evanjs>
X logs also often provide good info. Or your display-manager’s unit via `journalctl -u`
chagra has joined #nixos
o1lo01ol1o has joined #nixos
<oborot>
Thanks, what sort of message might be display related?
<oborot>
Should I just grep for "display"?
kraem has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<evanjs>
For units it depends on your setup. For my it’s like `gdm-x-session` I think. `display-manager` is the base. In dmesg, hrm. Maybe video, display, etc
<tomberek>
is there a way to obtain the attribute names of everything in a system closure (or in a local nix store)?
erictapen has joined #nixos
<evanjs>
lspci might provide some insight too
<tomberek>
I'm trying to script up a tool that gets all open PRs from github, and joins that with a list of your own system. Just as a way for people to quickly get a list of PRs they may be interested in because the already have the relevant packages installed.
<fresheyeball>
evanjs: The NVIDIA driver does not support real-time kernels. If you
<fresheyeball>
that appears to be my issue now
<evanjs>
Ahhhh. Yeah not surprising to say the least. What about nouveau?
thblt has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<fresheyeball>
evanjs: I am just more focused on trying to get helm to save things
<fresheyeball>
it's frustrating making some art you like and then you can't save it
<tomberek>
gchristensen: the idea might work as a subcommand to nixpkgs-review. "suggest-pr" or something that shows you a list of PR titles that match things you have on your local system or profile.
<LouisDK>
I've Plasma Desktop installed on NixOS with "i18n = { defaultLocale = "da_DK.UTF-8"; };
<LouisDK>
- configured in configuration.nix - does anyone know if all langs packages are installed for my plasma apps or just Danish (as specified) besides English?
<mananamenos>
hi, what does services.sshd.enable = true actually provide? Having services.openssh.enable = true; lets me login to external to server, sshd is not necessary.
alex`` has joined #nixos
<lovesegfault>
mananamenos: man configuration.nix
<lovesegfault>
"Alias of services.openssh.enable."
gustavderdrache has joined #nixos
gustavderdrache has quit [Client Quit]
emacsomancer has quit [Quit: WeeChat 2.6]
<mananamenos>
thank you
Synthetica has quit [Quit: Connection closed for inactivity]
mananamenos has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
LouisDK has quit [Remote host closed the connection]
<elux>
i have a desktop with two graphics cards. one is in pci0 slot, the other pci1 slot. i'm trying to at boot use the card in pci1, but it seems to just always load in pci0 as its the first card... im using systemd boot, any tips?
__monty__ has quit [Quit: leaving]
sigmundv has quit [Remote host closed the connection]
ixxie has joined #nixos
sigmundv has joined #nixos
growpotkin has joined #nixos
kenjis1 has quit [Ping timeout: 260 seconds]
erictapen has quit [Ping timeout: 268 seconds]
rajivr___ has quit [Quit: Connection closed for inactivity]