<yaymukund>
what's the point of putting stuff in programs.sway.extraPackages as opposed to directly in environment.systemPackages?
<yaymukund>
Is the point to define sway-related packages near the rest of the sway options?
atkh8 is now known as atkh
kfiz has joined #nixos
<sterni>
yaymukund: I think just limiting the scope, extraPackages will only be available inside a sway session and not part of the *global* environment
Qwerky has quit [Remote host closed the connection]
<yaymukund>
(caveat: It's my second or third day trying nix so it's very likely I have no clue)
criptonauta__ has joined #nixos
criptonauta_ has quit [Remote host closed the connection]
Guest18063 is now known as benley
rj has joined #nixos
benley has quit [Quit: WeeChat 2.9]
<tejing>
it's probably to make the programs.sway attrset into a more modular component, so you could copy just that part to another configuration and have it all function properly
benley has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yaymukund>
cool, that makes sense
<yaymukund>
ty
<redmp_>
is there anyone available who might be able to help me debug a flake+overlay issue?
<supersandro2000>
figgyc: Do you know what path they would be on debian?
<pie_>
redmp_: i dont know, but it might helpfinding someone if you can either paste the code and describe the issue, and/or try to post some sort of minimal repro (yay nix)
bennofs_ has quit [Ping timeout: 264 seconds]
<supersandro2000>
figgyc: there is a package called hyphen
<figgyc>
yeah i just looked in debian and it's /usr/share/hyphen/hyph_en_GB.dic so probably the hyphen package
kfiz has joined #nixos
<supersandro2000>
I think hyph_en_GB.dic is only available as part of some other packages which vendored them in
<figgyc>
yeah i just tried nix-shell -p hyphen and the error still came up so the dictionaries must be stored seperately
<redmp_>
the problem is this: i have two overlays in a flake, and i'm importing them to another flake, but while their effect is observed in the first, it seems lost in the second.. here's a description of the problem with links: https://termbin.com/p6th .. i am currently working to narrow down the problem in a minimal repro
mcornick has quit [Quit: leaving]
<tpw_rules>
i think you would have to make your first flake have an overlays output that is the concatenation of the two overlays you want and then include that as an overlay in the second flake. you don't just get the overlays automatically
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<redmp_>
tpw_rules: yes, i'm explicitly applying the overlays from the dependency...
<redmp_>
tpw_rules: would exporting a concatenation of the two overlays be better than exporting a list of them? or more following conventions?
m3thos has joined #nixos
<tpw_rules>
oh okay that is what you are doing. i was a little confused
<m3thos>
hey there, I'm in desperate need for help. I was using without issues podman container defined in configuration.nix and it ran fine, I've since then tinkered with my configuration and I no longer can get it to work
<tpw_rules>
i meant concatenation as in make sure you don't end up with lists of lists
<m3thos>
I've tried switching to the config where it worked the last time, but it still doesn't and I didn't make any change related to that container neither..
<m3thos>
anyone else had problems recently with running podman containers ?
<m3thos>
running the container w/ podman manually works fine.. but not through the nixos systemd generated files
mcornick has joined #nixos
kfiz has joined #nixos
<supersandro2000>
m3thos: in Docker I copied the failing start line and started it manually which yielded the same error. Maybe that helps you finding the issue.
<exarkun>
How do I configure Apache's ServerName? I turned on services.limesurvey and it generated and httpd.conf with a `ServerName` directive with no value...
<redmp_>
tpw_rules: ah yeah, i'm doing something like `import inputs.nixpkgs { overlays = inputs.foo.overlays ++ self.overlays; }` .. did you see anything wrong with what i was doing?
<redmp>
Ke: no, i've just been asking for a lot of help while other people are actually doing important stuff lol
veegee has quit [Quit: veegee]
<redmp>
and here's a fix.. https://termbin.com/g8p4 it's gross though, so if anybody with experience overriding haskell packages has a better solution, please let me know!
<Miyu-saki>
redmp: I woduln't call that hacky, but I think you're using the wrong overriding mechanism.
<redmp>
Miyu-saki: `nix repl ./fix.nix` doesn't print the result.. i wanted to test what packages were present by running at the shell over and over
<Miyu-saki>
Oh. Fair enough. I often just rely on the metadata
<redmp>
Miyu-saki: ah! extend! .. hmm i have avoided using that until now because i think after doing an .extend i can no longer do an .override, which is important if I want to change all-cabal-hashes
nhs has quit [Ping timeout: 245 seconds]
<Miyu-saki>
FWIW, I think `.override foo` is equivalent to `.extend (_: _: foo)`
<Miyu-saki>
(If foo's a raw attrset)
ahmed_elgabri has joined #nixos
<Miyu-saki>
Seems like using `nix repl` is actually the only way to do that with Nix 2 lol
<Miyu-saki>
`nix eval` doesn't seem to work with derivations idk why
<l-as>
Using overrideAttrs with allowSubstitutes on pkgs.fetchurl doesn't seem to have any effect; how do I prevent it from checking cache.nixos.org? My problem is specifically that I have around a thousand or so derivations for fetching some URLs that are not on cache.nixos.org, and just querying whether they are present on cache.nixos.org takes a lot of time.
<yaymukund>
actually, I think this is easy enough for me to test out and stumble through
graf_blutwurst has quit [Read error: Connection reset by peer]
avaq_ has joined #nixos
werner291 has joined #nixos
fendor has joined #nixos
griff_ has quit [Ping timeout: 246 seconds]
griff__ is now known as griff_
avaq_ has quit [Read error: Connection reset by peer]
nhs has quit [Ping timeout: 256 seconds]
avaq has joined #nixos
graf_blutwurst has joined #nixos
<hauleth>
yaymukund: as NeoVim isn't compatible with Vi, that could be harmful
stree has quit [Ping timeout: 264 seconds]
dbmikus has joined #nixos
makergrl has quit [Ping timeout: 260 seconds]
<yaymukund>
hauleth: any more harmful than doing `alias vim='neovim'` in my zshrc?
<hauleth>
If you do that on your own, then you are fully aware of the consequences.
<hauleth>
Additionally it is only shell alias, I do not know how Nix aliases, but if it is symlink, then the behaviour of shell alias and symlink is different
<FreeVariable>
Hello, is there a workable Plasma Wayland session available from NixOS?
<FreeVariable>
I'd be very interested in testing.
<yaymukund>
oo, that makes sense. i might stick to the alias as I have in my dotfiles then
poscat has quit [Ping timeout: 256 seconds]
Sigyn has quit [*.net *.split]
poscat1 has joined #nixos
<yaymukund>
thank you hauleth
graf_blutwurst has quit [Read error: Connection reset by peer]
nhs has quit [Ping timeout: 256 seconds]
jimmiehansson has joined #nixos
zupo has joined #nixos
<FreeVariable>
Hello, is there a workable Plasma Wayland session available from NixOS?
stree has joined #nixos
malook has joined #nixos
dbmikus has joined #nixos
kaliumxyz has quit [Ping timeout: 264 seconds]
dsrt^ has joined #nixos
<cole-h>
Just FYI, it's generally considered rude to repeat the same question over the span of a handful of minutes. It's typically slow around this time, so you probably won't get any immediate answers, and asking more frequently won't change that.
<FreeVariable>
<cole-h "that said, you may be interested"> Alright, so it's still in the pipe and not really commended
<FreeVariable>
not even official supported, in fact.
<FreeVariable>
* not even officially supported, in fact.
evanjs has joined #nixos
cole-h has quit [Ping timeout: 245 seconds]
vrinek has joined #nixos
<aforemny>
There is a new release for a Haskell package that I use. I originally wanted to make a PR updating it, but having realized that Haskell packages are updated regularly and in bulk, I think I should just wait. Or is there anything sensible for me to do? (I already updated locally.)
jybs has joined #nixos
<yaymukund>
I keep getting "the option programs.neovim defined in configuration.nix does not exist". Does this mean I've misconfigured something?
<yaymukund>
well, I mean obviously I have haha. but I have defined programs.neovim.enable = true; in my config file.
<Miyu-saki>
Seems like you might have an outdated NixOS, since that exists for me.
<Taneb>
gnome3.pomodoro seems to freeze after a few seconds for me... is this a me problem or a package problem
werner291 has quit [Ping timeout: 265 seconds]
werner292 is now known as werner291
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #115998 → lilypond-unstable: drop because lilypond is newer and it does not build → https://github.com/NixOS/nixpkgs/pull/115998
<viric>
if a project has flake.nix does it make it easier to make it part of nixpkgs?
<aforemny>
I have confirmed a few packages to compile on aarch64 that do not have aarch64-linux yet in their platform attributes. Should I open aone PR for each package, or should I open one PR for that batch of <10 packages?
graf_blutwurst has quit [Remote host closed the connection]
<sterni>
viric: nope, you can't reuse nix expressions from source distributions in nixpkgs
Sigyn has joined #nixos
<viric>
I see
nf has joined #nixos
<l-as>
What is the standard way to build a derivation on a remote machine and only store it on that remote machine? Currently I'm evaluating the derivation locally, copying it with `nix copy --derivation`, then just running `nix build` on the remote machine, but this doesn't work very well. `nix build` some times just stalls on the build (which doesn't happen if I evaluate the derivation remotely, but I don't want to/can't do this).
Qwerky has quit [Remote host closed the connection]
nhs has joined #nixos
hyper_ch has quit [Read error: Connection reset by peer]
<supersandro2000>
l-as: you could use the machine as a remote builder and forbid local builds but that would still copy the drv to the local machine
<l-as>
well that's fine
<l-as>
how do I forbid local builds?
respawn_ has joined #nixos
nhs has quit [Ping timeout: 264 seconds]
fuiltilt has quit [Ping timeout: 264 seconds]
fuiltilt has joined #nixos
<sterni>
viric: it would require ifd currently, with flakes it could be possible in the future I guess, but the overhead would probably be too great for nixpkgs and maintenance would also be harder since we wouldn't control the expression
<viric>
sterni: but a flake can use another package's flake, right?
nhs has joined #nixos
<l-as>
why would you make external flakes part of nixpkgs?
stree has quit [Ping timeout: 256 seconds]
<sterni>
viric: flakes can always pull in other flakes if that's what you mean
<viric>
yes, ok
<sterni>
not sure how cyclical depencies work out with flakes though
<sterni>
probably they can't be evaluated lazily so having packages from other flakes in nixpkgs and exposing them would not work if the third party flake depends on nixpkgs
<supersandro2000>
superherointj: Will do today. Didn't check github notifications the last days
<superherointj>
supersandro2000, thanks.
nhs has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
<genevino>
tazjin: ty again!
<genevino>
superherointj: ty2!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Qwerky has joined #nixos
avaq has quit [Ping timeout: 245 seconds]
jimstutt has joined #nixos
<jimstutt>
hi, I haven't used xmonad for the past year or so and the manual now says install it as per user with nix-env. Has global install via configuration.nix been deprecated as not best practice?
<exarkun>
I tried to deploy nixos on a t3.micro w/ the usual <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> and `aws.hvm = true`. But it failed to compute the grub device correctly! :(
<peterstorm[m]>
My nixos installation all of a sudden cannot start my wifi interface, it just hangs starting it for 90 seconds and then proceeds into an emergency shell of some sort. I have only changed my videocard...
rosariopulella[m has quit [Quit: Idle for 30+ days]
chip[m]1 has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
chr0ma[m] has quit [Quit: Idle for 30+ days]
printfn[m] has quit [Quit: Idle for 30+ days]
gustavderdrache has joined #nixos
endformationage has joined #nixos
<mpickering>
Anyone seen this nixops error before.. substitute(): ERROR: file '/nix/store/nyhj75af3xraa9h1f3i0s2pami1b6bgr-cloud-utils-0.32/bin/.growpart-wrapped' does not exist
<simpson>
qbit: I think that you want `pkgsCross.musl64` for amd64. There's also musl32, muslpi, and musl-power, which I'm guessing are x86, aarch64, and ppc64 respectively.
Qwerky has quit [Remote host closed the connection]
<sterni>
you can also use just pkgsMusl
<sterni>
some things are probably broken though
<qbit>
mk, ty
<kaletaa_>
how can i add the library version of openssl to my deps? if i simply do `openssl` it only pulls in the binary
kaletaa_ is now known as kaletaa
xelxebar has quit [Ping timeout: 268 seconds]
pbb has joined #nixos
<sterni>
kaletaa: what kind of deps?
zupo has joined #nixos
<sterni>
buildInputs should work
<kaletaa>
i'm trying to build something, just tinkering with it rn
<kaletaa>
if i add it to buildInputs i only get an executable
<kaletaa>
the derivation doesn't have the libs
<cole-h>
ambroisie: You probably want to do something like `lib = lib // { my = { ... }; };`
<ambroisie>
cole-h: that is what I am doing
<simpson>
qbit: sterni++ is right. Tested building and running `hello` from both. The `pkgsMusl` version is almost certainly what you want for doing local musl.
<{^_^}>
sterni's karma got increased to 6
<cole-h>
Do you have your config posted somewhere?
<ambroisie>
Well I'm doing `lib.extend` instead of using `//` but same difference
<sterni>
kaletaa: the derivation has multiple outputs, openssl.lib has the libs and openssl.dev the headers
<kaletaa>
i see, thanks
<ambroisie>
cole-h: yeah I posted a link to the MR, it's that gitea link a few messages up
<ambroisie>
s/MR/branch
<kaletaa>
where are those defined btw, just so i can find this out myself
rj has quit [Ping timeout: 268 seconds]
<sterni>
kaletaa: you need to evaluate openssl.outputs
<kaletaa>
thanks
<sterni>
kaletaa: its a list of outputs for everyderivatino
<cole-h>
ambroisie: I'd hazard a guess it's because you've extended lib twice
<sterni>
kaletaa: (also correction the libs are in openssl.out)
davidv7 has quit [Remote host closed the connection]
<shla>
i know that grub lists all available configuration. is there a way for me to list it within the booted OS?
<joedevivo>
Does anyone have an example of cross compiling darwin -> linux? I'm having a hard time wrapping my head around all the dependency categorization
<matthewcroughan_>
supersandro2000: ++
<matthewcroughan_>
D:
<matthewcroughan_>
Wait.. Why do I have an underscore on my name
<matthewcroughan_>
QUASSEL!!
<matthewcroughan_>
what bouncer do you use supersandro2000?
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
Thra11 has joined #nixos
<matthewcroughan_>
supersandro2000: also, what does the label ofborg-internal-error mean on github?
<cole-h>
shla: /nix/var/nix/profiles/ -- `system-######-link` is the generation IIRC
<matthewcroughan_>
is the internal error due to my commit? Or is it an issue with ofborg itself?
yegortimoshenko has joined #nixos
yegortimoshenko has left #nixos [#nixos]
yegortimoshenko has joined #nixos
<shla>
cole-h, thanks
yegortimoshenko has left #nixos [#nixos]
<shla>
cole-h, if I was to specific name in the nixos-rebuild, it will appear there?
<shla>
instead if incremental number
<cole-h>
shla: You should read the manpage and search for `--profile-name`: `man nixos-rebuild`
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JqCI1
werner292 has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<supersandro2000>
matthewcroughan_: my bridge adds when it reconnects and my bouncer keeps adding numbers. So I ghost and nick myself three times each to make sure
<supersandro2000>
thelounge. It is a web client and bouncer
stree has quit [Ping timeout: 245 seconds]
<supersandro2000>
matthewcroughan_: ofborg internal errors is some error cole-h cares about. just ignore it and if the eval did not succeed restart it
<afics>
exarkun: git pull in my nixos-unstable repo; I didn't change my config
<afics>
I can revert of course
orivej has quit [Ping timeout: 276 seconds]
<exarkun>
afics: Your `git pull` didn't fail with that error though
rj has quit [Ping timeout: 268 seconds]
<exarkun>
... did it?
<afics>
exarkun: well nixos-rebuild after that did
<exarkun>
Okay. So your system config pulls in something that depends on it.
<exarkun>
You're not sure which part of the system though, right?
<adisbladis>
afics: Look at the dependencies of your current system and find out what's pulling it in there
stree has joined #nixos
<avaq>
Hi there. Is there an easy way to (declaratively) install a package such that the executable is available under a different name than the one it comes as by default?
<avaq>
Specifically, the original executable should not also be available.
<adisbladis>
avaq: You can just symlink it under a diferent name?
<yaymukund>
When opening firefox, I get "XULStore.js" "Error: Can't find profile directory." Does it look familiar to anyone else? I'm *not* using home-manager, fwiw.
<yaymukund>
Oh, I am using `firefox-wayland` pkg, if that matters.
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JqCYT
<ajs124>
what happens if you run firefox -ProfileManager
<yaymukund>
I think it may be because I have installed it systemwide x_x
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JqCYI
<yaymukund>
ajs124: to answer your question, it shows the same error, but also promopts me to create a new profile etc
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
crenfrow has quit [Remote host closed the connection]
<sterni>
matthewcroughan_: seems like it was internal :)
teasea has quit [Quit: teasea]
teasea has joined #nixos
fendor_ has joined #nixos
m3thos has joined #nixos
supersandro2000 has quit [Ping timeout: 245 seconds]
wadii has quit [Ping timeout: 264 seconds]
fendor has quit [Ping timeout: 246 seconds]
werner291 has quit [Ping timeout: 272 seconds]
rj has quit [Ping timeout: 268 seconds]
<matthewcroughan_>
cole-h: does kalbasit[m] have to review my PR before it gets merged? Or is this just an optional automatic review that he as been assigned to because he made the buildGoModule function?
zupo has joined #nixos
redmp has joined #nixos
rj has joined #nixos
zupo_ has joined #nixos
crenfrow` has joined #nixos
crenfrow` has quit [Remote host closed the connection]
zupo has quit [Ping timeout: 256 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
erasmas has quit [Quit: leaving]
m3thos has quit [Ping timeout: 246 seconds]
riksteri has quit [Quit: riksteri]
rj has quit [Remote host closed the connection]
rj has joined #nixos
<redmp>
can i specify an arbitrary string as a flake input?
<redmp>
or can i specify an attrpath in nixpkgs as a flake input?
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<s-ol>
hey, i've searched a lot but I'm still not quite sure: what is the correct way to make a derivation export an environment variable for all its dependencies?
<s-ol>
I'm packaging an OpenXR implementation, which is usually found via a standard location in (/usr)/share, but since it won't be found there I want to export the override (XR_RUNTIME_JSON=$out/share/...)
<s-ol>
do I create a shellscript in nix-support that just does that export?
<s-ol>
i see some stuff in $XDG_DATA_DIRS on my system, how does that end up there?
<notgne2[m]>
s-ol: you could create a NixOS module which sets that via `environment.variables`
<notgne2[m]>
but I think to an extent that's undesirable, since it would be hard to make any updates apply
<notgne2[m]>
I think ideally it should somewhere in `/run/current-system/sw`, `environment.systemPackages` links there I think, so that might work
vidbina has joined #nixos
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
redmp has quit [Ping timeout: 246 seconds]
bahamas has quit [Ping timeout: 256 seconds]
<cole-h>
s-ol: You can also wrap the binary (if there is one) with that env var
<notgne2[m]>
^ that sounds like the best solution if applicable, but I assume this is a runtime you want available globally so you can run applications which utilize OpenXR, though I might be completely misunderstanding how this works
<notgne2[m]>
but then again, NixOS isn't exactly friendly towards that kind of thing anyway (and for good reasons)
<notgne2[m]>
which is why you need to use `steam-run` or `patchelf` etc to run external bins
<s-ol>
notgne2[m]: no, you're right, there is no binary there
<s-ol>
im packaging two things: monado, the runtime, which is a library implementing the OpenXR standard. implementations are discovered via files in $XDG_CONFIG_DIRS
<s-ol>
and then I am also packaging an application, for ease of development. I can hardcode the env only in the application, but I wanted to follow best practices so that the monado package would be comfortably usable for other applications
<notgne2[m]>
NixOS/nixpkgs I think don't like things being "discovered" as it can lead to unpredictability/impurity, so the method that will most likely get upstreamed is making it a dependency of any packages in nixpkgs which can use OpenXR (including future packages), and making `steam-run` set it as an environment variable so it works there out of the box too
philr_ has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
gustavderdrache has joined #nixos
<s-ol>
right. that's also a half-solution since in theory there could be multiple OpenXR implementations that the user might want to choose, rather than this being a choice the app-packager makes, but I see how its somwhat incompatible with the Nix idea
<s-ol>
this is not going to be upstreamed any time soon so I'll just leave it hard-coded in that case. It already does what I want anyway
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
m3thos has joined #nixos
<artturin>
Hey, I was wondering where to put squeekboard (the virtual kb) in the tree, I was thinking either pkgs/applications/misc or pkgs/applications/accessibility
<mog>
hi im building emacs on my machine like this ((pkgs.emacsPackagesGen pkgs.emacsPgtkGcc).emacsWithPackages (epkgs: ([epkgs.vterm]))) I would like it to use the unstable version of nixpkgs as its source for packages rather than the stable channel i have set. how would i do this?
chagweyh has joined #nixos
<mog>
the unstable gtk has broadway support where as 20.09 is still on a version with out it
emmanuel_erc has quit [Read error: Connection reset by peer]