<PrinceMachiavell>
The main issue is that DynamicUser implies ProtectSystem= which makes the entire system read only. It looks like if StateDirectory is set then a RW directory will be created. I'll see if that works.
moet has quit [Quit: leaving]
moet has joined #nixos
sleepydog has quit [Ping timeout: 272 seconds]
<PrinceMachiavell>
That did work. Guess I just didn't notice the StateDirectory option before. Thanks.
abathur has quit [Quit: abathur]
moet has quit [Ping timeout: 258 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
ixxie has quit [Ping timeout: 260 seconds]
slack1256 has joined #nixos
juliosueiras has joined #nixos
<juliosueiras>
question, what is the most stable+feature complete parser for nix right now?(Go, Rust, etc)
abathur has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJ3l4
user_0x58 has joined #nixos
camsbury has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
slack1256 has quit [Remote host closed the connection]
ottidmes has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
slack1256 has joined #nixos
ottidmes has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
lassulus has joined #nixos
sleepydog has joined #nixos
camsbury has quit [Remote host closed the connection]
sleepydog has quit [Quit: leaving]
simukis__ has quit [Ping timeout: 264 seconds]
kmplsv has quit [Quit: weeeeeeeeeeeeeeeeeeee.]
kmplsv has joined #nixos
cr4y1 has quit [Ping timeout: 260 seconds]
h0m1 has quit [Ping timeout: 272 seconds]
h0m1 has joined #nixos
<Graypup_>
juliosueiras, there is rnix. I have not looked into others.
<Graypup_>
it was good enough to write an LSP on
<juliosueiras>
k, in that case then I will build upon rnix then(since I did build terraform-lsp, so have experience in LSP), since right now rnix-lsp doesn't give me nixos options as completion
<infinisil>
juliosueiras: Well to be pedantic, the most stable and featurecomplete Nix parser is the one from Nix itself
<Graypup_>
lol
<juliosueiras>
to be honest, I am legit thinking of just piping arguments (like services.mysql, etc) to nixos-options and return the result
<infinisil>
juliosueiras: Another parser is https://github.com/haskell-nix/hnix though, which has been around for longer than rnix at least, but I can't speak about how they compare in features
<juliosueiras>
(in the background of the lsp itself)
<infinisil>
Piping into nixos-option would be pretty bad tbh
<infinisil>
nixos-option is really fragile and slow
<bkv>
and also wouldn't work on flakes
<juliosueiras>
true, k, I will look into rnix-lsp to build upon that then
<juliosueiras>
and hnix
<juliosueiras>
(since the latest commit for that one is pretty recent)
proofofkeags has quit [Remote host closed the connection]
<cole-h>
emmanuel`: Are you maybe misreading the hash mismatch message? It is saying that it wanted `1cd....` (your provided hash), but the hash it got was `0qj....`. Indeed, replacing it with the "got" hash, it works fine.
ErikaKuykendall has joined #nixos
<emmanuel`>
cole-h: No it isn't saying that all.
<emmanuel`>
the hash it gets is the same as the one it wanted on my machine
<cole-h>
Hash should be "1xxyxnyc8wzliddfqwhj83k44pnhg74a03ii7a9r96rnfwyd9sam" -- try that. (I don't know why that's happening. What if you slap a lot of `-v`s on it? Anything interesting, to you?)
<zeta_0>
hello there, does anyone here understand the lorri tool well, i need help setting something up?
<zeta_0>
so i built ghc using nix, but i am not sure how to set it up with my (lorri+direnv+emacs-direnv) setup? https://github.com/alpmestan/ghc.nix
kalbasit has joined #nixos
<zeta_0>
now that i can build it without any problems, i want to be able to set it up with lorri, that way i can easily get ghcid/ghcide working on ghc
pjt_014 has joined #nixos
<cole-h>
It's no different from adding any other package to your environment. Get a derivation and add it to your shell.nix's `buildInputs`.
ErikaKuykendall has quit [Remote host closed the connection]
alp has quit [Remote host closed the connection]
alp has joined #nixos
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
proofofkeags has quit [Read error: Connection reset by peer]
Jago_KI has joined #nixos
proofofkeags has joined #nixos
simukis_ has joined #nixos
<zeta_0>
cole-h: so if i understand correctly, all i need to do is copy the entire code snippet from ghc.nix's default.nix file and paste it into the buildInputs section of the shell.nix file initialized using lorri? https://github.com/alpmestan/ghc.nix/blob/master/default.nix
waleee-cl has quit [Quit: Connection closed for inactivity]
moet has joined #nixos
<zeta_0>
cole-h: thanks for the explanation, i'll try this out, and see if i can get it working
capt_zap_ has quit [Read error: Connection reset by peer]
<zeta_0>
ok so i wrapped the nix snippet in parenthesis and placed it in buildInputs, but it's throwing that cannnot coerce type error? https://dpaste.org/EQ54
<evax>
I'm using a flake to define a set of python and R packages for data science. I'm trying to add tensorflow_2 which is currently marked as broken if `!(xlaSupport -> cudaSupport) || !isPy3k`
<evax>
I'm on python37, but even if I override the package and set cudaSupport and xlaSupport to false, nix still complains about the `broken` state
<Graypup_>
can I disable haddock for one haskell package? there's a bug in it that causes it to crash while making the docs for that package and I don't want to update my ghc to a non buggy version yet
arkaebee has quit [Remote host closed the connection]
CMCDragonkai has quit [Remote host closed the connection]
arkaebee has joined #nixos
CMCDragonkai has joined #nixos
adamse has quit [Ping timeout: 244 seconds]
thc202 has joined #nixos
sphalerite has quit [Quit: WeeChat 2.6]
dmj` has quit [Ping timeout: 244 seconds]
adamse has joined #nixos
sphalerite has joined #nixos
dmj` has joined #nixos
sangoma has quit [Ping timeout: 246 seconds]
<lejonet>
Anyone here know why nixos-generators refuse to find the init in nix-store, tho its very clearly there? Error log: http://dpaste.com/1BN7B8M, base-configuration.nix: http://dpaste.com/2K5PEGQ
<gthm>
I can't use delve to debug go programs on my NixOS setup. I've installed delve and govia users.users.foo.packages. When I try to run `dlv debug main.go` for any go file, I get a two-level stack trace that doesn't touch any go code
never_released has quit [Ping timeout: 256 seconds]
<gthm>
any ideas?
astrofog has joined #nixos
<gthm>
oh, nevermind, the problem was that it was too long since I'd used delve and I'd forgotten how it works
domogled has joined #nixos
sigmundv has joined #nixos
<yurb>
if I'm in nix-shell already (invoked by `nixpks-review pr`), is it possible to add another package to the shell's environment?
ogroendal has quit [Remote host closed the connection]
mniip has quit [Quit: This page is intentionally left blank.]
CMCDragonkai has quit [Remote host closed the connection]
o1lo01ol_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
cosimone has joined #nixos
Gaelan has joined #nixos
lstanley has quit [Ping timeout: 244 seconds]
lukego has quit [Ping timeout: 244 seconds]
NemesisD has quit [Ping timeout: 244 seconds]
domogled has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
c_wraith has quit [Ping timeout: 256 seconds]
NemesisD has joined #nixos
Gaelan_ has quit [Read error: Connection reset by peer]
wpcarro has quit [Ping timeout: 244 seconds]
<sephii>
I noticed there's a "firehol" package, but there are no options to configure it. Should I write a service myself? How do you usually manage firewall rules on NixOS systems? I know about networking.firewall.allowedTCPPorts, but I'd like finer control (to specify authorized IPs) but I'd like to avoid using networking.firewall.extraCommands
georgyo has quit [Ping timeout: 244 seconds]
jeaye has quit [Ping timeout: 256 seconds]
arahael1 has quit [Ping timeout: 256 seconds]
vojta001[m] has quit [Ping timeout: 260 seconds]
lstanley has joined #nixos
lukego has joined #nixos
georgyo has joined #nixos
vojta001[m] has joined #nixos
yusdacra[m]1 has quit [Ping timeout: 260 seconds]
vtest[m] has quit [Ping timeout: 260 seconds]
delroth[m] has quit [Ping timeout: 260 seconds]
jjwatt[m] has quit [Ping timeout: 260 seconds]
lalala56756[m] has quit [Ping timeout: 260 seconds]
dammndot[m] has quit [Ping timeout: 260 seconds]
mdlayher1 has quit [Ping timeout: 260 seconds]
tskc[m]1 has quit [Ping timeout: 260 seconds]
sputny[m] has quit [Ping timeout: 260 seconds]
therivercass[m] has quit [Ping timeout: 260 seconds]
regnat has quit [Ping timeout: 260 seconds]
philipp[m] has quit [Ping timeout: 260 seconds]
quiet_laika[m] has quit [Ping timeout: 260 seconds]
eadwu[m] has quit [Ping timeout: 260 seconds]
wpcarro has joined #nixos
eadwu[m] has joined #nixos
yusdacra[m]1 has joined #nixos
sputny[m] has joined #nixos
therivercass[m] has joined #nixos
jb55 has joined #nixos
vtest[m] has joined #nixos
lalala56756[m] has joined #nixos
mdlayher1 has joined #nixos
jjwatt[m] has joined #nixos
dammndot[m] has joined #nixos
regnat has joined #nixos
quiet_laika[m] has joined #nixos
delroth[m] has joined #nixos
tskc[m]1 has joined #nixos
philipp[m] has joined #nixos
c_wraith has joined #nixos
CMCDragonkai has joined #nixos
troydm has quit [Ping timeout: 256 seconds]
mniip has joined #nixos
troydm has joined #nixos
<{^_^}>
[nixpkgs] @ardumont opened pull request #93101 → fmt: Open enableShared option → https://git.io/JJ31K
CMCDragonkai has quit [Remote host closed the connection]
CMCDragonkai has joined #nixos
rizary has quit [Ping timeout: 244 seconds]
elvishjerricco has quit [Ping timeout: 244 seconds]
<adisbladis>
Someone correct me if I'm wrong, but I don't think we have any abstractions to manage IP based filtering
<{^_^}>
nix#3471 (by samueldr, 14 weeks ago, closed): Possible regression/behaviour change in master ⇒ path '/nix/store/...' is not in the Nix store
danderson has joined #nixos
buggymcbugfix has joined #nixos
enteee has joined #nixos
kaychaks_riot1 has quit [Ping timeout: 260 seconds]
nicolas[m]1 has quit [Ping timeout: 260 seconds]
alexfmpe has quit [Ping timeout: 260 seconds]
solomon[m] has quit [Ping timeout: 260 seconds]
pitch has quit [Ping timeout: 260 seconds]
jameshjacksonjr4 has quit [Ping timeout: 260 seconds]
rnhmjoj has quit [Ping timeout: 260 seconds]
phirsch has quit [Ping timeout: 260 seconds]
Elorm[m] has quit [Ping timeout: 260 seconds]
nilsirl[m] has quit [Ping timeout: 260 seconds]
higherorder has quit [Ping timeout: 244 seconds]
globin has joined #nixos
raboof has joined #nixos
kreyren has joined #nixos
pitch has joined #nixos
Elorm[m] has joined #nixos
kaychaks_riot1 has joined #nixos
phirsch has joined #nixos
nicolas[m]1 has joined #nixos
coot has quit [Ping timeout: 244 seconds]
nilsirl[m] has joined #nixos
visl has quit [Ping timeout: 244 seconds]
d3c[m] has joined #nixos
khassanov[m] has joined #nixos
alj[m] has joined #nixos
solomon[m] has joined #nixos
srxl has joined #nixos
alexfmpe has joined #nixos
jameshjacksonjr4 has joined #nixos
rnhmjoj has joined #nixos
higherorder has joined #nixos
coot has joined #nixos
visl has joined #nixos
vk3wtf has joined #nixos
jeaye has joined #nixos
arahael1 has joined #nixos
oxa has joined #nixos
<LambdaDuck>
When trying to build 64 bit wine on mac (Catalina) i get the error
<LambdaDuck>
Package ‘libpciaccess-0.16’ in /nix/store/93bd1w8m24bxl9g6rxn934671yk17mj4-nixpkgs-20.09pre233849.1d801806827/nixpkgs/pkgs/servers/x11/xorg/default.nix:1135 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<LambdaDuck>
but it says: meta.platforms = stdenv.lib.platforms.unix; so it should be allowed. What am I missing?
<{^_^}>
[mobile-nixos] @s1ng0c opened pull request #184 → device: pinephone: Rebase to kernel 5.6.y to fix issue related to pkg… → https://git.io/JJ3DR
knupfer has quit [Read error: Connection reset by peer]
<{^_^}>
[mobile-nixos] @s1ng0c closed pull request #184 → device: pinephone: Rebase to kernel 5.6.y to fix issue related to pkg… → https://git.io/JJ3DR
<LambdaDuck>
adisbladis: After adding NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 and NIXPKGS_ALLOW_INSECURE=1 for openssl-1.0.2u I get the error "attribute 'mesa.osmesa' missing", so I can't run that command.
<bkv>
My shell got garbage collected :(
alp has quit [Ping timeout: 256 seconds]
<LambdaDuck>
bkv: Do you have another one?
<bkv>
Luckily, yes
<LambdaDuck>
bkv: Why is your shell not in a garbage collection root?
kreyren has quit [Remote host closed the connection]
kreyren_ has joined #nixos
zupo has joined #nixos
<LambdaDuck>
Did you install it with nix-shell or nix run or something like that?
<bkv>
it seems the flavour of direnv I'm using doesn't pin drvs
<LambdaDuck>
Ah, right. I don't think direnv adds garbage collection roots by default
<adisbladis>
direnv doesn't do any magic or anything with gc roots
<LambdaDuck>
bkv: Have you tried lorri?
nory has joined #nixos
<adisbladis>
LambdaDuck: Whine wine attribute are you trying to build ?
nikita_ is now known as nikita`
nory has quit [Client Quit]
<bkv>
LambdaDuck: flakes
<bkv>
adisbladis: my flavour does, it seems
<bkv>
Not sure why it failed here
<sephii>
adisbladis: I was just wondering what's the expected use of the firehol package (except from using it as a base for a new derivation) if you can't set any configuration options
werner291 has joined #nixos
<LambdaDuck>
adisbladis: nixpkgs.wine with `wine = { build = "wine64"; };` in nixpkgs config. Not sure if that is the correct one to use
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<LambdaDuck>
Oh, it's an alias for winePackages.full. Maybe I'll try minimal and see if that builds
asymptotically has joined #nixos
alp has joined #nixos
PrinceMachiavell has quit [Remote host closed the connection]
kreyren_ is now known as kreyren
<LambdaDuck>
Yes. winePackages.minimal seems to work (currently compiling. I'll see when it's done)
<o1lo01ol1o>
I have a large postgres job I'm trying to nixify; what's the best way to run a bunch of sql commands against a local postgres from nix? I basically need to run the copy command from a bunch of files and set indexes.
asymptotically has quit [Ping timeout: 240 seconds]
waleee-cl has joined #nixos
philr_ has quit [Ping timeout: 240 seconds]
<Raito_Bezarius>
i'm not sure you can, except if you know the output to be fixed
<Raito_Bezarius>
except if you meant to perform it from a nix-shell
<{^_^}>
[nixpkgs] @avdv opened pull request #93107 → python-modules.opt-einsum: Fix broken build since upgrading numpy → https://git.io/JJ39J
jakob53 has joined #nixos
iceypoi has joined #nixos
<lhurttila>
Hi everybody. I'm new to nixos and linux in general and I'm trying to install an unfree package as user. The problem is that it installing unfree packages with nix-env command requires { allowUnfree = true; } in ~/.config/nixpkgs/config.nix. but I don't have that nixpkgs folder to begin with. Could someone explain why this is the case and how to
dingenskirchen has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #93114 → [20.03] Gnome 3.34 updates (the sequel) → https://git.io/JJ3H5
Rusty1 has joined #nixos
bkv is now known as bqv
<worldofpeace>
love all of yall 💖
<timokau[m]>
<3 worldofpeace
<{^_^}>
worldofpeace's karma got increased to 176
Izorkin has joined #nixos
<gchristensen>
<3
itorres has joined #nixos
<adisbladis>
worldofpeace: I really need your positivity today <3
<gchristensen>
me too
<lihram>
Wow, this is a very friendly chatroom
dingenskirchen has joined #nixos
<lihram>
It's always nice to see when people get along 😄
sajo has quit [Remote host closed the connection]
<worldofpeace>
like every 1532 and counting of u, like even the bots and robots. we'll teach them love too ❣️ It really is isn't it Hilmar Gústafsson 😸
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meh` has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @symphorien opened pull request #93118 → kcollectd: init at 0.11.99.0 → https://git.io/JJ35y
Henson has joined #nixos
<Henson>
hi everyone, I'm planning on contributing some of my own derivations to nixpkgs, but I've never done it before. I read Chapter IV (Contributing to Nixpkgs) of the nixpkgs users and contributor's guide. I need to add myself to the maintainer's list. Should I do that as a separate PR? If I roll it into a PR with a software package, that PR could be rejected
<Henson>
infinisil: I've got several packages I'd like to commit. Should I do them all as separate PRs, or bundle them all together?
<infinisil>
Are they related in any way?
<Henson>
infinisil: no. I guess that would violate the "Make commits of logical units" rule.
<Henson>
infinisil: some of them are for quite old software packges that I used all the time in Debian/Ubuntu, but have since been removed (rpncalc, pcal). Is it okay to put old software in nixpkgs, or should that be avoided?
<Henson>
infinisil: rpncalc I think is abandonware. It took me a quite to track down the original source, and is so old it didn't work with libc. Somebody on github forked it and updated it. The other other RPN calculator in nixpkgs is orpie, which uses ncurses and requires a minimum screen size.
<Henson>
infinisil: should I perhaps just keep some of these packages to myself? I don't want to contribute noise to the already large number of nixpkgs PRs
<camsbury>
hey guys - made a simple derivation to download graalvm-ce-java11-linux-amd64-20.1.0.tar.gz and extract to $out, but the executable didn't work right away, so I used `ldd` to find I needed `libz.so.1`, so I've been trying various ways of getting `zlib` in scope for running the executable. Any tips for dynamically linked executables in nix?
<evanjs>
Alright guys, I am having a _wonderful_ time trying to get SimpleHelp (which uses JWrapper) to work on NixOS.... /s
<evanjs>
I was wondering
<evanjs>
Does anybody have experience/knowledge of any sort of management/administrative software for RDP? Maybe even some solutions that are available on NixOS?
<evanjs>
(This is for a current business requirement, not for my own usage :D)
<evanjs>
Really, this extends to any sort of remote access/management software
<evanjs>
I only brought up rdp because there xrdp is already an option in NixOS, which I use on all of my Nix devices and find very convenient/performant
NeoCron has quit [Ping timeout: 272 seconds]
ckauhaus has quit [Quit: WeeChat 2.7.1]
cfricke has quit [Quit: WeeChat 2.8]
<nbathum>
the problem with SimpleHelp is that it does a few things. it is a "remote administration/monitoring" tool. used to call them RATs back in the day
ddellacosta has joined #nixos
<nbathum>
so it "solves" many issues relating to networking, by having the host server call out to another server on the internet, to get around silly things like firewalls and enterprise routing
<evanjs>
A similar approach to e.g. TeamViewer?
knupfer has quit [Read error: Connection reset by peer]
<simonpe^^>
I've created a nix-shell environment for a yocto build that I can use to interactively build a binary for my project. The yocto build is very impure and does all the fetching itself. Now I want to automate building images
<simonpe^^>
with nix-build
<simonpe^^>
a session looks something like `nix-shell` then `bitbake my-image` then `cp build/tmp/deploy/my-image.tar.gz /deploy/location`
<simonpe^^>
So I guess my question to you experienced nix people is, what would you do in this situation?
turlando has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixops] @adisbladis pushed to master « Bump version number to 2.0.0 »: https://git.io/JJ3pO
<simonpe^^>
It uses docker in the background because the build tool is pretty picky with environments
<WilhelmVonWeiner>
so yesterday I performed a series of commands from the shell, what is it called to write a file that runs those commands on a `nixos-rebuild`?
<WilhelmVonWeiner>
they culminate in installing a nix package
<infinisil>
WilhelmVonWeiner: What are the commands for? There's different solutions depending on this
<atemu12[m]>
WilhelmVonWeiner: Do you mean hooks?
zaeph has joined #nixos
erasmas has joined #nixos
markus1189 has quit [Ping timeout: 258 seconds]
<WilhelmVonWeiner>
I echo some json to a file, then run `nix-env -f '<nixpkgs>' -iA nodePackages.node2nix` to install node2nix, then run that on the json, and then run `nix-env -f default.nix -iA tiddlywiki`
markus1189 has joined #nixos
<WilhelmVonWeiner>
I don't know what I mean, the terminology is... somewhat confusing
<atemu12[m]>
WilhelmVonWeiner: I smell an XY problem, what are you actually trying to achieve?
shibboleth has joined #nixos
<evanjs>
gah. so close to getting a script with fetchurl implemented. but now I'm getting /build/.attr-0: line 1: /nix/store/dllal5h9pbwdqfvb56fcc2zbqcd9373v-winbox64.exe: Permission denied (from a runCommand)
<evanjs>
will share script, plz hold
<WilhelmVonWeiner>
atemu12[m]: those steps; node2nix is for deploying NPM packages by generating Nix expressions
<infinisil>
WilhelmVonWeiner: Can you run node2nix beforehand, e.g. by always keeping an up-to-date node2nix-generated default.nix in the project repo?
<atemu12[m]>
WilhelmVonWeiner: I'd just put that package in my system closure
<infinisil>
That's usually how this is done
<infinisil>
WilhelmVonWeiner: If you then have your project somewhere, say /home/paul/src/tiddlywiki, you can install it for NixOS with e.g. `let tiddlywiki = (import /home/paul/src/tiddlywiki {}).tiddlywiki; in { environment.systemPackages = [ tiddlywiki ]; }`
<infinisil>
That's in configuration.nix
domogled has quit [Quit: domogled]
domogled has joined #nixos
<WilhelmVonWeiner>
that sounds like exactly what I mean to do
<WilhelmVonWeiner>
thanks atemu12[m] and infinisil
<sauyon[m]>
Heya, I'm using nix (home-manager) on non-nix and it's clobbering my LIBGL_LIBRARY_PATH and causing programs using libva to crash. Is that a home-manager issue?
<sauyon[m]>
Some programs are also resolving nix libgl libraries as well as the native ones and causing other programs to crash or otherwise behave strangely.
<sauyon[m]>
I'm running Arch Linux, for what that's worth.
qyliss has joined #nixos
codygman has joined #nixos
avaq has quit [Ping timeout: 240 seconds]
<evanjs>
atemu12[m]: got a bit further after finding I wasn't following the post too closely. now it's trying to write to homeless-shelter lol
fresheyeball has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
cr4y1 has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
confus has joined #nixos
<evanjs>
Oh, man. Starting to realize why wine-run expressions aren't, well, a thing in tree :P
fresheyeball has joined #nixos
<bqv>
fetching 35GBs of derivations from substituters
proofofkeags has quit [Remote host closed the connection]
<bqv>
oof
<confus>
what is a good way on nixos to find out what the default terminal emulator is? I want to patch a hardcoded path to /usr/bin/gnome-terminal with what ever was configured in the nixos configuration
<__monty__>
Shouldn't I be able to run nix-collect-garbage without root on a single-user install? I'm getting a permission denied when unlinking a .pyc file in a gdb version.
sangoma has joined #nixos
<__monty__>
sauyon[m]: Are you using nixGL? On non-NixOS there's GL issues without that afaik. (And with it but far less ; )
cr4y1 has joined #nixos
<__monty__>
confus: Don't think there is a way. Guessing based on TERM is the best you can do (and it's pretty terrible).
user_0x58 has quit [Quit: Leaving]
<simpson>
confus: I bet that there's an XDG knob for it. Gotta go look it up.
cosimone_ has quit [Quit: Quit.]
<__monty__>
Not afaik. Debian-likes often have an xdg-terminal-emulator link.
<bqv>
cause i'll be ancient by the time someone does something about it, but i also don't want to have to build a kernel every time i rebuild
waleee-cl has joined #nixos
<__monty__>
Yep, a TUI file manager.
<bqv>
ah, heh
knupfer has joined #nixos
<cole-h>
worldofpeace++ Hopefully, we can figure out what's going on in that flaky test now :) Thanks for merging. (And thanks jtojnar++ for PRing that)
<benny>
can I create a package that depends on either X or Y or is this antithetical to nix?
<cole-h>
What do you mean?
<benny>
there is firefox and firefox-bin, how do I make a package that depends on either firefox or firefox-bin being present? with a preference from the source version
<benny>
firefox and firefox-bin were just randomly chosen, but they are the same from a user perspective but are different packages
hspak has quit [Ping timeout: 240 seconds]
<cole-h>
I don't think there's a way to check if a user has a certain package installed. You could just make a toggle, though: `{ ...., useMozilla ? false, useSource ? true }:` and assert that only one is true
<NobbZ[m]>
Depend on one by default and use DI the let the user choose.
<cole-h>
*there isn't any way to check
<cole-h>
Because that would violate the build sandbox, in any implementation I can think of.
<benny>
"use DI"? what is DI?
<armin>
hi, i have a samba server that's serving well to both linux and windows hosts, but the windows hosts can't "find" that thing via the network neighbours (entering \\IP in the explorer's location bar works). any suggestions what i could try?
<colemickens>
I'm not even sure what that would mean.
<NobbZ[m]>
Dependency injection
<colemickens>
What would it even mean for a package to assert that another package is installed at build time?
<colemickens>
That doesn't guarantee it's available at runtime later, unless it's a buildInput, which prevents the problem in the first place.
<colemickens>
Or it would just be a runtime check.
<benny>
babashka depends on graalvm higher than version 20, the graalvm in nixos is version 19 and is built from source since february. this however doesn't work since version 20, because the build process is impossible and the contributor that tried it is exhausted
<DigitalKiwi>
worldofpeace: get gchristensen to stream with the wall piece with the colors ;D
<bqv>
cole-h: the only difference there is NotifyAccess=all, which everywhere i look doesn't look like it has any effect whatsoever without Type=notify
<benny>
now I would like to have babashka depend on graalvm-bin but also be able to use graalvm-src (the normal package) if and when it becomes available
<nicolas[m]1>
DI: dependency injection
davidv7 has joined #nixos
<bqv>
also, if it was a notify timeout, it would be SIGABRT, not SIGTERM
<cole-h>
benny: Not worth it IMO. Just make it graalvm-bin and change it when graalvm-src v20 becomes available.
<benny>
cole-h: thanks for the guidance, that seems the most pragmatic
<tlater[m]>
How could I declaratively set up a directory to exist when the system starts?
cr4y1 has quit [Ping timeout: 256 seconds]
<bqv>
with mkdir, probably
<puck>
tlater[m]: systemd-tmpfiles is basically designed for this purpose i'd say
<tlater[m]>
"puck" (https://matrix.to/#/@freenode_puck:matrix.org) That sounds... temporary. I'd like the directory on the host to stay there
<tlater[m]>
Or is that what they do?
<bqv>
hey, systemd has been gentle for the last half an hour, maybe it's cooled off
<puck>
no, they stay there, i'd assume, otherwise we'd have quite a lot of trouble, as /home and /srv are created using this mechanim :p
<cole-h>
tlater[m]: If you want it to stay, `mkdir -p`
<qyliss>
They do stay there
<qyliss>
tmpfiles is a misnomer
<tlater[m]>
That's one confusing name! Thanks, I'll take a look :)
jb55 has quit [Remote host closed the connection]
<tlater[m]>
"cole-h" (https://matrix.to/#/@freenode_cole-h:matrix.org) That's true. Except my system will not work unless I manually log in. I'd rather not have to do that.
<tlater[m]>
Hence "declarative" - purely with configuration.nix
jb55 has joined #nixos
<cole-h>
I missed that (^: Sorry
red[evilred] has joined #nixos
<red[evilred]>
Does the NixOS calendar still exist for streamed events?
<davidv7>
im on unstable, is there any way to tell when a certain package will be updated
<davidv7>
specifically wondering about KDE
<worldofpeace>
DigitalKiwi: I'd love that
<cole-h>
If it's updated in master, it'll be updated when the nixos-unstable job succeeds.
<{^_^}>
[hydra] @domenkozar merged pull request #791 → Bump cachix/install-nix-action from v8 to v10 → https://git.io/JJfyC
<{^_^}>
[hydra] @domenkozar pushed commit from @dependabot[bot] to master « Bump cachix/install-nix-action from v8 to v10 (#791) »: https://git.io/JJsLq
<{^_^}>
[hydra] @dependabot[bot] pushed 0 commits to dependabot/github_actions/cachix/install-nix-action-v10: https://git.io/JJsLm
quinn has quit [Ping timeout: 256 seconds]
quinn has joined #nixos
alexherbo20 has joined #nixos
<fionera>
how can I extend the $PATH with home manager?
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo20 is now known as alexherbo2
fendor has quit [Remote host closed the connection]
<gueorgui>
Hi, I have a kernel hackery question. I need to patch my kernel to support some esoteric hardware. The patches are available in a fork of the linux kernel on github, in a separate branch. The branch is based on the 5.7-rc6 kernel, and since there doesn't seem to be any plans to merge those patches into the mainline kernel so far, I want to set up a derivation that would compile a stable kernel (let's say 5.7
<gueorgui>
release) with the patches from this branch applied. What would be a good strategy to do this?
<{^_^}>
[nixpkgs] @bennyandresen opened pull request #93139 → graalvm{8,11}-ce: init at 20.1.0 → https://git.io/JJstj
<{^_^}>
[nix] @Ma27 opened pull request #3814 → Add `allRefs = true` argument to `fetchGit` to explicitly perform a full checkout → https://git.io/JJsqZ
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.azure-core: 1.6.0 -> 1.7.0 »: https://git.io/JJsmm
<cap_sensitive>
Hi, how'd I drop into a build shell? I tried: nix-shell -E "with import <nixpkgs> {}; callPackage /path/to/package.nix {}" but I got error: error: expression does not evaluate to a derivation (or a set or list of those)
confus has quit [Ping timeout: 245 seconds]
<gchristensen>
cap_sensitive: nix-shell -A thepackage
<clever>
cap_sensitive: what are the contents of package.nix? is it part of nixpkgs or outside?
<cap_sensitive>
clever: outside
<clever>
cap_sensitive: contents of package.nix?
o1lo01ol1o has quit [Remote host closed the connection]
sangoma has quit [Read error: Connection reset by peer]
<cap_sensitive>
clever: Actually, I just copied the default.nix to my pwd, and it drops me into a shell. I guess there must be some fuckery on the path to the derivation
<cap_sensitive>
clever: Feels REALLY DUMB
<benny>
DigitalKiwi: yeah, it's been a long time ;-)
<cole-h>
gchristensen: You seem to be doing a lot of fun stuff recently... I hope, some day, a blog post emerges from running systemd in a non-default netns
<gchristensen>
me too!
<cole-h>
gchristensen: Only complaint is that it would have been nice to see an inline example for `systemdExecutable`
<cole-h>
(e.g. how you would make the wrapper script with your example)
<{^_^}>
[nixpkgs] @maralorn opened pull request #93146 → ghc.withPackages: Wrap hls with package lookup env → https://git.io/JJsOP
FRidh has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
noudle has joined #nixos
qsef has joined #nixos
<qsef>
Is there a way to experiment with a nix config in a VM? I know that there is "nixos-rebuild build-vm", but this uses my current system configuration instead.
<timokau[m]>
Does anyone have a PR that is ready for review? I could use some help testing the latest deploy of marvin. I'll review the first PR that is set to needs_reviewer (https://github.com/apps/marvin-mk2)
<nature>
Hi, I just discovered nixos recently, I am currently an arch user and nixos seems really nice, I am gonna give it a try in a VM first and then see from there on if I want to replace the system on my laptop
<nature>
I just had a question, I read somewhere that you should use nix run instead of nix-env to try package temporarily, what is the logic behind that ?
<bkv>
holy fuck
<bkv>
you've got to me
<bkv>
why has nix done a cartesian product on my flake
<bkv>
this is insanity
<bkv>
i have 70 thousand derivations
<bkv>
all of them are my flake, with various files missing
<infinisil>
nature: Don't use `nix run` yet, the `nix` command is still experimental
domogled has quit [Ping timeout: 240 seconds]
<infinisil>
nature: But you can use `nix-shell -p <package> <package>` instead
<ma27[m]>
nature: `nix run` opens up a shell which has the package you want to test in its `PATH`.
<nature>
ooh ok, so nothing is actually being installed ?
<ma27[m]>
`nix-env` installs it into `~/.nix-profile` which means that you have to remove it if you want to stop using it (as soon as you close the shell from `nix run` though, the package will be removed as soon as you run `nix-collect-garbage`)
<DigitalKiwi>
benny: there are dozens of us! dozens!
<nature>
I am brand new to nixos, sorry if my questions seems dumb
<ma27[m]>
but infinisil is right, you probably want to use `nix-shell -p` instead (it's basically doing the same) since the `nix` command is marked as experimental due to a lot of ongoing changes.
<ma27[m]>
nature: well, the stuff is downloaded, but when running `nix-collect-garbage` it will be removed
<ma27[m]>
(when using `nix run` or `nix-shell -p`)
<nature>
oh okok, thank you for the thorough explanation :)
<tpw_rules>
is there a better place to ask questions about how to put together packages than here?
bqv has joined #nixos
<{^_^}>
[nixpkgs] @Lassulus opened pull request #93154 → tor-browser: disable hardening by default → https://git.io/JJsGr
bkv has quit [Ping timeout: 260 seconds]
capt_zap has quit [Read error: Connection reset by peer]
capt_zap has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<bqv>
bad things are happening
<ma27[m]>
bqv: would you mind sharing the expression in question with us? :)
<bqv>
expression? there's no expression
<bqv>
my nix store has comprehensively shat itself
alp has joined #nixos
<bqv>
literally all i did was try and upgrade nix
<ma27[m]>
oh, sorry I meant bkv
<bqv>
i am bkv
<ma27[m]>
but they left it seems
<bqv>
yes because my machine fucking crashed because everything is broken
<ma27[m]>
> why has nix done a cartesian product on my flake
<infinisil>
tpw_rules: Here or #nixos-dev is fine
<{^_^}>
undefined variable 'why' at (string):318:1
<bqv>
i don't even understand how this has happened
<bqv>
apart from that "Doh" commit on nix
<bqv>
because this is absurd even for shit that i get up to
acarrico has joined #nixos
<tpw_rules>
infinisil: i've asked a couple times and i'm not sure if the right person is around to catch it
<nature>
Another question, where would you advise me to start, I was thinking of booting nixos in a VM and then try to read the docs in order to arrive to something close as to what I would like. Will I survive by just using the official doc ? Should I start to learn nix and nixpkgs before or is it fine to dive in nixos directly ?
<bqv>
holy crap
<bqv>
i'm done
<bqv>
i'm gonna have to delete my entire nix store
<ma27[m]>
nature: from my personal experience it's indeed a good idea to learn the basics in a vm. The official docs are unfortunately rather hard to understand, I additionally recommend https://nixos.wiki/, https://nix.dev/ and asking on IRC and discourse (discourse.nixos.org)
<nature>
thanks ma27[m] :) This IRC is fine to ask newbie questions ?
<ma27[m]>
yes IMHO :)
cosimone has joined #nixos
chrmb has quit [Remote host closed the connection]
<samueldr>
at worst you'll get a canned response that will be helpful
<bqv>
whatever the level frick happened between commit 291ff6a and sometime last month, is straight up cursed.
<cole-h>
bqv: Time to bisect? ;)
* bqv
screams
<{^_^}>
[nixpkgs] @veprbl pushed to master « ujson: version 3.0.0 requires python 3.5+ »: https://git.io/JJsZ5
<bqv>
no, i'm just not going to upgrade nix until i absolutely have no choice
<tpw_rules>
erm, why does libjpeg not have the actual libraries in its dev output?
dermetfan has quit [Ping timeout: 272 seconds]
<samueldr>
> libjpeg.outputs
<{^_^}>
[ "bin" "dev" "out" "man" "doc" ]
<samueldr>
because the default output would be libjpeg.bin
<samueldr>
you may want libjpeg.dev
<tpw_rules>
they're in out. bin is some command line tools
<tpw_rules>
dev only has the headers (and pkgconfig definitions) but out doesn't
<tpw_rules>
it just has the .so files
<samueldr>
ah, if you use .dev in e.g. buildInputs transitively .out would be used
<samueldr>
I figure you're in a nix-shell?
<tpw_rules>
yes, i'm trying to write a derivation for another package
<samueldr>
things sometimes differ in a nix-shell due to assumptions
<tpw_rules>
and i'm getting piles of linker errors for those libjpeg .so files
Henson has quit [Ping timeout: 258 seconds]
<tpw_rules>
hm, it should find them i guess. the libdir in the pkgconfig file is correct
grumble has quit [Quit: WASHINGTON, DC—In a move designed to make the United States seem more "bad-assed and scary in a quasi-heavy-metal manner," Congress officially changed the nation's name to the Ünited Stätes of Ämerica Monday. "Much like Mötley Crüe and Motörhead,]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<cole-h>
zrsk[m]: You can update it yourself. I believe r-ryantm uses a cron script to check for updates from GitHub, and then some time later it sends those PRs (I think).
<ryantm>
zrsk: You can look at https://r.ryantm.com/log/ and see if the update is failing for some reason, but it can take it a while to get to new updates, depending on how it finds them
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
capt_zap has quit [Read error: Connection reset by peer]
proofofkeags has joined #nixos
<ryantm>
You defintely don't need to wait.
capt_zap has joined #nixos
orivej has joined #nixos
tazjin is now known as edefdef
<cole-h>
Oh wow, that's cool. I didn't nkow that existed.
capt_zap has quit [Read error: Connection reset by peer]
capt_zap has joined #nixos
edefdef is now known as tazjin
oida has joined #nixos
capt_zap has quit [Read error: Connection reset by peer]
capt_zap_ has joined #nixos
Gorzoid has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rawkode opened pull request #93155 → gnomeExtensions.emoji-selector: init at v19 → https://git.io/JJscv
capt_zap_ has quit [Read error: Connection reset by peer]