worldofpeace__ has quit [Ping timeout: 255 seconds]
<slabity[m]>
Is it possible to dump the running system's NixOS configuration? I accidentally deleted my `hardware-configuration.nix` and I had some changes that I'd like to get back
stepcut_ has joined #nixos
dbmikus has joined #nixos
<elvishjerricco>
slabity[m]: You can't recover the nix expression used to generate a nixos system, no
<{^_^}>
[nixpkgs] @ryantm closed pull request #42771 → fetchFromGitHub: make owner and repo accessible → https://git.io/f4NKF
<elvishjerricco>
You can regenerate hardware-configuration.nix, but yea if you had changes those are gone
<slabity[m]>
Darn
<elvishjerricco>
Unless you remember what they had to do with; in which case you may be able to inspect the system to figure out what they were
pie_ has quit [Remote host closed the connection]
<slabity[m]>
I'd like to figure out what my `boot.kernelModules` variable was set to. But I don't think I can figure that out if I can't regenerate it
<elvishjerricco>
slabity[m]: Oh, that's probably in a config file somewhere in `/run/current-system`
pie_ has joined #nixos
pie__ has joined #nixos
<elvishjerricco>
Not sure where to find it though
stepcut has quit [Ping timeout: 268 seconds]
pie__ has quit [Remote host closed the connection]
andreabedini has joined #nixos
<arahael>
I notice that python is still on 2.7 and 3.6 in nix (at least, on darwin). What's the best way for me to get the most up to date python?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tnks>
sometimes I get heads-down in how I'm doing something, I forget to survey what others have done. Now that cabal new-build is out and support for multi-package projects is become more the norm, is anyone else building environments that merge dependencies for multiple projects?
<tnks>
I don't think there's such a function in nixpkgs still, and I've been using a hand-rolled one for some time.
<tnks>
(I only do this for development with nix-shell).
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
leat has quit [Remote host closed the connection]
leat has joined #nixos
markus1189 has joined #nixos
Sonarpulse has quit [Ping timeout: 256 seconds]
markus1199 has quit [Ping timeout: 240 seconds]
andymandias has quit [Ping timeout: 256 seconds]
ericsagnes has joined #nixos
fragamus has joined #nixos
<dtz>
hmm is there a idiomatic/good way to .. use libsForQt5.callPackage but for multiple things, basically what libsForQt5.callPackages would do if it existed? O:)
<infinisil>
fragamus: Since you're back, I'm pretty sure there's some environment variable NIX_CC or something that contains all the arguments for the library inclusions, derived from buildInputs
<fragamus>
ok
<fragamus>
so i just need to put it in build inputs?
sir_guy_carleton has joined #nixos
<infinisil>
Most likely
zearen has quit [Ping timeout: 264 seconds]
sbdchd has joined #nixos
<fragamus>
thank you
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
worldofpeace is now known as worldofpeace[m]
worldofpeace[m] has left #nixos ["User left"]
worldofpeace_ is now known as worldofpeace
sbdchd has quit [Ping timeout: 245 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
andreabedini has quit [Client Quit]
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<{^_^}>
[cabal2nix] @peti pushed to master « Fix some typos. »: https://git.io/fbxae
liori has joined #nixos
leat has quit [Remote host closed the connection]
<winem_>
good morning. I have 2 servers with nix 2.0.4 and copied a derivation file from one server to the other one (did it twice, first I got the file from the nix store, then I created it with nix instantiate on the nix file). but whenever I try to install something from that drv file on the target server, I get a syntax error "error: syntax error, unexpected ',', expecting ')', at /home/agent/chdrv/qjh23rgcqsk4syw89panvlcraxmsayan-clickhouse-1.1.54385.drv:1:15"
<winem_>
how can this happen? I would like to find a clean nix way and not modify the drv file itself
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fragamus has joined #nixos
sigmundv has joined #nixos
Biappi has joined #nixos
Maxdaman1us is now known as Maxdamantus
knupfer has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
andreabedini has joined #nixos
andymandias has joined #nixos
jperras has joined #nixos
<winem_>
clever: thx, will try it!
<infinisil>
,pr fragamus
<{^_^}>
fragamus: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
chreekat has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 248 seconds]
vaninwagen_ has quit [Ping timeout: 264 seconds]
<infinisil>
Also, to complain about a PR not being merged after a day is a bit too early.. there's good PR which didn't get a review for weeks
<infinisil>
PR's*
chreekat has joined #nixos
ThatDocsLady has quit [Ping timeout: 265 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has joined #nixos
simukis has joined #nixos
timon37 has joined #nixos
fragamus has joined #nixos
<clever>
infinisil: on the other hand, ive had PR's merged within 15 minutes, then i notice a typo :P
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @angerman to release-18.03 « ghc: fix dylib load command limits in compiler version 8.x »: https://git.io/fbxPU
<bkchr[m]>
Does someone know how to run pulseaudio without x11?
<clever>
bkchr[m]: this script delt with starting pulseaudio and teamspeak without any X11
timon37 has quit [Remote host closed the connection]
<bkchr[m]>
clever: thanks
timon37 has joined #nixos
<bkchr[m]>
then I just need to integrate that into nixos somehow :D
ericsagnes has quit [Ping timeout: 264 seconds]
Izorkin has quit [Read error: No route to host]
Izorkin has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
jensens has quit [Ping timeout: 268 seconds]
ajs124 has joined #nixos
griff_ has quit [Quit: griff_]
arjen-jonathan has joined #nixos
Coyin has joined #nixos
Coyin has quit [Client Quit]
Izorkin has quit [Read error: Connection reset by peer]
Izorkin has joined #nixos
phdoerfler has quit [Quit: Leaving.]
asuryawanshi has joined #nixos
init_6 has joined #nixos
Havvy has quit [Remote host closed the connection]
`_ has joined #nixos
<`_>
I'm getting the error error: Nix database directory ???/nix/var/nix/db??? is not writable: Permission denied when attempting to run nix-repl
Havvy has joined #nixos
<`_>
I've seen after a rudimentary search that a shell that doesn't acknowledge /etc/profile could be the issue, however I almost exclusively use bash, and am in bash when attempting to run nix-repl.
<gchristensen>
try `nix repl` `_
<`_>
ok that fixed it
<`_>
lol
<clever>
`_: `nix-repl` links to nix1, and cant auto-detect $NIX_REMOTE
<`_>
Ok
<`_>
Not entirely sure what that means but after a bit more exploration I'll likely figure it out lol
<`_>
Thanks gchristensen and clever
<LnL>
`_: if you want to use the 1.11 nix-repl use NIX_REMOTE=daemon nix-repl
<`_>
Yeah I noticed that
<`_>
So is nix-repl simply outdated/deprectated in favor of nix repl?
<clever>
yeah
<infinisil>
,nix-repl
<{^_^}>
To use nix-repl with Nix 2.0, either use the new `nix repl` or `NIX_REMOTE=daemon nix-repl`. Just using `nix-repl` gives an error because it is linked to Nix 1.x which requires NIX-REMOTE to be set correctly, while Nix 2.0 doesn't (and unfortunately it wasn't kept for backwards compatibility)
<clever>
but i still like the ui of nix-repl often
orivej has joined #nixos
<clever>
nix repl has messed up tab-completion, and appends a space every time you up-arrow
<clever>
but nix repl also saves all history
<`_>
I couldn't tell you the differences so I don't have a horse in that race
timon37 has quit [Ping timeout: 260 seconds]
<`_>
But I'm an adamant opponent of trailing whitespace in any case, I will say that.
<keks_>
hi, currently stepping through my first nix installtion. want to install on encrypted zfs. https://nixos.wiki/wiki/NixOS_on_ZFS#Encrypted_ZFS says that this is supported as of 18.03, but zpool create ... -O encryption fails with "invalid property". is that a bug in the docs?
<infinisil>
keks_: You need zfsUnstable, encryption isn't in stable
tusj has quit [Remote host closed the connection]
`_ has quit [Quit: WeeChat 2.1]
<keks_>
infinisil: so it is a bug in the docs, thanks! how do I install zfsUnstable?
<infinisil>
Well it mentions it?
<infinisil>
"In the unstable channel at the moment it is necessary to set boot.zfs.enableUnstable = true; to get zfs version based on master branch as zfsStable does not yet have this feature. "
tusj has joined #nixos
<infinisil>
It's in the very top of the section you linked
<__monty__>
PEBKAC ; )
<keks_>
infinisil: ahh, I misread that as "it will be in 18.03 stable", sorry
<keks_>
thank you. my ssd died today so I'm panicking a bit :)
<infinisil>
I see ;)
<gchristensen>
maybe don't use ZFS encryption if you care about your data
<gchristensen>
or do, but keep really really good backups
* infinisil
has been using it for a while and hasn't had any data loss
<infinisil>
It is unstable though
<keks_>
infinisil: i.e.? kernel panics?
<gchristensen>
might lose your data?
tzemanovic has joined #nixos
hamishmack has joined #nixos
<infinisil>
While stable doesn't *guarantee* no data loss and panics, they can still occur, but the chances are much slimmer as it's been well tested (especially new features)
freeman42x]NixOS has joined #nixos
<gchristensen>
yeah, I mean, you should be fully aware of the risks using an _unstable_ version of a filesystem
<gchristensen>
especially if you're in the position of "my ssd died today so I'm panicking a bit :)"
<gchristensen>
not trying to scare you, it is just the reality of an unstable fs should probably mean you have an amazing backup strategy, or data you're not really fussed if you lose
logzet has quit [Ping timeout: 265 seconds]
hamishmack has quit [Client Quit]
<tilpner>
Being a little scared might be the right motivator
<adisbladis[m]>
It had an on-disk format change a while back
<keks_>
I have an external hdd with zfs where I send my snapshots to
<gchristensen>
using an unstable FS, you may want to use a different FS for your target backup
<gchristensen>
* this is generally good advice, but extra important here *
roberth has joined #nixos
<infinisil>
I think ZFS supports backing up to an older version of itself
Ridout has joined #nixos
<fragamus>
infinisil what does it mean ... the build bot says attempted
keks_ has quit [Quit: Page closed]
asuryawanshi has quit [Ping timeout: 265 seconds]
<infinisil>
fragamus: Did you click the "Partial log (click to expand)"?
<fragamus>
oh yeah
<fragamus>
i see
<{^_^}>
[nixpkgs] @orivej opened pull request #43014 → wcc: init unstable at 2018-04-05 → https://git.io/fbxDs
<fragamus>
thanks so am I all good now
keks_ has joined #nixos
<infinisil>
fragamus: Is unzip needed in nativeBuildInputs?
<infinisil>
I wondered about that, am not sure
<fragamus>
yes
<fragamus>
i tried without it
Izorkin has quit [Read error: No route to host]
Izorkin has joined #nixos
<keks_>
I guess I'll just LUKS the pool then
coot has quit [Quit: coot]
tzemanovic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to revert-41420-haskell-strict-deps « Revert "haskell generic-builder: Use strictDeps always" »: https://git.io/fbxyJ
tzemanovic has joined #nixos
<infinisil>
fragamus: Oh one more thing: Change the commit message to "bliss: init at 0.73", that's somewhat of a convention
ericsagnes has joined #nixos
<{^_^}>
[nixpkgs] @peti opened pull request #43016 → Revert "haskell generic-builder: Use strictDeps always" → https://git.io/fbxyc
graphene has quit [Read error: Connection reset by peer]
iyzsong has joined #nixos
graphene has joined #nixos
patrl has joined #nixos
asuryawanshi has quit [Ping timeout: 245 seconds]
asuryawanshi has joined #nixos
<roberth>
adisbladis[m]: thank you for the dev ff pointer
<roberth>
u2f works perfectly for me now; ditching chrome again. The future is now ;)
work_ has joined #nixos
coot has joined #nixos
mariatsji has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 260 seconds]
jperras has joined #nixos
Thra11 has quit [Ping timeout: 260 seconds]
logzet_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 0 commits to revert-41420-haskell-strict-deps: https://git.io/fbxdl
Thra11 has joined #nixos
oahong has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
oahong has joined #nixos
arjen-jonathan has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
dejanr has quit [Ping timeout: 264 seconds]
ericsagnes has quit [Ping timeout: 245 seconds]
blankhart has joined #nixos
timon37 has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
stepcut has joined #nixos
Thra11 has joined #nixos
ericsagnes has joined #nixos
periklis` has joined #nixos
blankhart has quit [Ping timeout: 260 seconds]
dejanr has joined #nixos
<worldofpeace>
bkchr[m]: I just noticed that when I switch an activity in KDE that it just brings all the current running applications from the other activity with it.
hyper_ch2 has quit [Quit: Page closed]
rardiol1 has joined #nixos
logzet has joined #nixos
blankhart has joined #nixos
asuryawanshi has joined #nixos
adisbladis has joined #nixos
dejanr has quit [Ping timeout: 256 seconds]
<adisbladis[m]>
roberth: Cool :) This future is pretty awesome
<sir_guy_carleton>
so i've been using nix-shell recently, i've noticed my repeated downloading the same packages over and over
<pushcx>
I'm trying to run nix-shell to debug my first package. How do I get it to run the src/fetchUrl step? Is there a doc somewhere for nix-shell? The man page doesn't have it.
patrl has quit [Ping timeout: 260 seconds]
<sir_guy_carleton>
is it because i'm auto-garbage collecting and those packages aren't linked to any profile?
<samueldr>
sure, except each machine often have different kernel configs which will need a build
<manveru>
that's my implementation (in crystal)
* samueldr
doesn't want to build a kernel on the intel atom tablet
periklis` has quit [Remote host closed the connection]
<Lisanna>
adisbladis the import/export actually sounds like a neat idea.
<Lisanna>
adisbladis do you have to do anything else other than the import/export? like delete the current deployments before importing?
jtojnar has joined #nixos
<manveru>
just nuke the nixops db before importing i guess?
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<samueldr>
I'm also curious, haven't looked since my early beginnings with nixos, how are substituters doing with machines that travel, when substituting from locally-networked machines?
phreedom has joined #nixos
periklis has joined #nixos
<manveru>
my only issue is that it still uploads my nixpkgs checkout to the remote, which takes forever...
<samueldr>
I also would then prefer building locally since my upload speed is abysmal, VPN isn't the right choice in my particular case :/
<Lisanna>
manveru you mean using a remote machine as the build host?
<infinisil>
It could automatically generate scripts that get you an as-fast-as-possible connection between 2 hosts. Then you could use that script via ssh (ProxyCommand)
<worldofpeace>
So nix-shell needs the bash-interactive-dev(another output path from bashInteractive) why isn't there already?
<manveru>
Lisanna: yeah, because it's faster than downloading on my DSL machine and uploading again
<Lisanna>
manveru I wonder if the --build-host flag is using the same mechanism that the --store flag of nix-build uses if you pass it an SSH store
<Lisanna>
because I also notice that it seems to need to upload EVERYTHING to the remote every time I use an SSH store with --store on nix-build
<manveru>
most likely
<Lisanna>
manveru a nixpkgs checkout itself shouldn't be *that* big though... is it also uploading the .git directory or something if your NIX_PATH points to a git checkout?
civodul has joined #nixos
asuryawanshi has quit [Ping timeout: 264 seconds]
<infinisil>
A nixpkgs checkout is currently over 800MB...
ajs124 has left #nixos [#nixos]
<manveru>
well nixpkgs is about 14MB compressed, which takes about 2 minutes on my connection
<infinisil>
Ah
<manveru>
not the git repo, just the channel
ajs124 has joined #nixos
<manveru>
i'm sure the channel is also on hydra, but for some reason it's not loaded from there
<Lisanna>
damn, nixpkgs uncompressed is 90MB
<Lisanna>
without .git
<Lisanna>
nevermind then...
<infinisil>
The full 800MB is pretty big though, I think I remember it being about 500MB last year or so
lhart has quit [Quit: lhart]
<manveru>
isn't there a repo size limit on github?
<manveru>
like 1gb or something
<Lisanna>
--store really needs to dump thsoe files into the remote store's /nix/store and hash it so that if it doesn't change then it doesn't have to reopload it again
<Lisanna>
using remote stores from my laptop with my home network's upload speeds sucks
<infinisil>
How can I find out the size of the closure of the dependencies of a derivation?
<infinisil>
The question is "I'm doing a --check, how much free space do I need?"
asuryawanshi has quit [Ping timeout: 248 seconds]
<manveru>
hmm
<manveru>
`nix path-info -rS` maybe?
dbmikus has joined #nixos
<manveru>
`nix path-info --json -rS /nix/store/zzkvjwrg8bl4dalh5xj81mhy1jkn1ff9-nano-2.9.8 | jq 'map(.closureSize) | add'` like that
<infinisil>
manveru: That just gets the resulting output dependencies, not the build time ones
<manveru>
ah, right
<infinisil>
I guess nix-store -q --references of a .drv to get the immediate dependencies
<infinisil>
Then nix path-info -S on each of those
andymandias has joined #nixos
<infinisil>
Wait but that could count dependencies twice
<samueldr>
better safe than sorry?
<samueldr>
you'd have a ballpark estimate
<manveru>
double that amount, just to be safe :)
<infinisil>
Oh, how about `nix-store -qR` on each of those immediate dependencies, then uniq that list
rcshm has joined #nixos
asuryawanshi has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
<bkchr[m]>
Someone here who knows what is responsible for calling setfacl on `/dev/snd`?
jperras has joined #nixos
<worldofpeace>
How can I check the 'liveness' of a nix store path?
<clever>
worldofpeace: nix-store --query --roots
<infinisil>
manveru: This is what I got, not sure if correct though: du -b $(nix-store -q --references $(nix-instantiate -A arandr) | xargs nix-store -qR) | cut -f1 | paste -sd+ | bc
<qyliss^work>
`git gc --aggressive --prune-now` reduced by nixpkgs checkout from 1.2 GB to 318 MB
<bkchr[m]>
yeah
<bkchr[m]>
I thought that would also be available per ssh
<samueldr>
they make the distinction of a console being a physical "feature"
<samueldr>
e.g. keyboard/mouse on VT/X
<samueldr>
[citation needed]
<infinisil>
,profiling = Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<{^_^}>
profiling defined
<infinisil>
clever: :D
<bkchr[m]>
ahh okay
__monty__ has quit [Quit: leaving]
<tenten8401>
Just thought I'd ask even though I probably know the answer, but is NixOS getting 5.13 in it's lifecycle, or will that be held off for NixOS 18.09?
<bkchr[m]>
Yeah, then I stick to adding my user to the group
griff_ has joined #nixos
<samueldr>
IIRC it's what they call a "seat"
<tenten8401>
Plasma 5.13, my bad
<samueldr>
definitely
asuryawanshi has quit [Ping timeout: 260 seconds]
<tenten8401>
NixOS 18.03 is getting Plasma 5.13?
<leotaku>
I am trying to build a rust package using "buildRustCrate", however cargo complains about not finding the correct version. Running cargo manually however correctly builds the package. What could be the cause of this?
<samueldr>
tenten8401: version ugprades generally don't reach stable channels
<tenten8401>
alright, figured that might be the case
<samueldr>
only for software where security is important, e.g. browsers
asuryawanshi has joined #nixos
arjen-jonathan has quit [Ping timeout: 276 seconds]
tff^ has joined #nixos
<tenten8401>
fair enough
<tenten8401>
I assume it'll be getting the 5.12 LTS bugfix releases hopefully
<samueldr>
maybe not after the release of 18.09, as updates and development winds down on last-stable, but I'd hope so currently
<bkchr[m]>
tenten8401: hmm, good point. I should make a pull request adding the bugfix release
arjen-jonathan has joined #nixos
asuryawanshi has quit [Ping timeout: 265 seconds]
ixxie has quit [Ping timeout: 240 seconds]
zearen has joined #nixos
<samueldr>
I was just checking who was maintaining and then if it looks like 18.03 got updates :)
<rcshm>
hi iam using stack and nix integration for my project setup.
<bkchr[m]>
I'm already downloading 5.12.6
<bkchr[m]>
:D
<rcshm>
how do i bring down github code into nix store and reference it in stack-nix? appreciate your help.
<tenten8401>
I've been trying to download 5.13 on unstable for a while but every time I do something fails to build
dbmikus has quit [Ping timeout: 256 seconds]
<worldofpeace>
bkchr[m]: Should wayland be working in plasma 5.13? (in nixos)
knupfer has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
knupfer has joined #nixos
<tenten8401>
bkchr[m]: While you're at it, would you mind PRing the Plasma 5.13.2 bugfix release for June into unstable as well? I'm pretty sure it only has 5.13.0 at the moment. https://www.kde.org/announcements/plasma-5.13.2.php
<tenten8401>
I can if it's something simple like a version number change
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
rardiol1 has quit [Remote host closed the connection]
<bkchr[m]>
worldofpeace: yeah that is a good question and that is what we need to find out
griff_ has quit [Quit: griff_]
<infinisil>
It would be awesome to have a page about Wayland on NixOS in the wiki
<gchristensen>
+1
<bkchr[m]>
yeah
theo has joined #nixos
<theo>
hi team
<theo>
I was here the other day asking about packaging a window manager I'm writing
asuryawanshi has quit [Ping timeout: 260 seconds]
<theo>
I was told to use overlays to package it for my system but I've researched it and can't understand how to apply it to my system
<theo>
The end goal is to have a local package recognised by configuration.nix and a windowManager.<my_wm>.enable = true; setting within it
<theo>
any ideas?
<infinisil>
theo: You need a module (to declare the new options and have some behaviour depending on those), and a Nix package (the actual window manager). The former will use the latter
ryanartecona has joined #nixos
<infinisil>
Overlays aren't really needed
<theo>
infinisil: I've written a module and a nix package (copying the style from 2bwm) but the problem I'm having is fitting them in with my system and getting a work configuration.nix out of them
<infinisil>
theo: How does your module look?
<infinisil>
A gist would be appreciated
ThatDocsLady has quit [Ping timeout: 245 seconds]
<theo>
it's dead simple, literally just the 2bwm one but replacing 2bwm with the name of my wm
<theo>
I've used the same build system as well in the package
<theo>
*same build system as 2bwm
disasm has joined #nixos
<infinisil>
I see, then you should be able to just include that module by adding `imports = [ /path/to/module.nix ];` to your configuration.nix
<theo>
the issue is that it doesn't know what ${pkgs.mywindowmanager} is
<theo>
and I don't know how to make my package visible to it
Neo-- has quit [Ping timeout: 240 seconds]
<infinisil>
Ah yeah, the best way to get this is to add `mywindowmanager = pkgs.callPackages ...;` to the `let in` at the start and use `"${mywindowmanager}/bin/mywindowmanager`
<infinisil>
Or however you call your package definition
<theo>
right I'll give that a try, thanks
<theo>
one thing though
<theo>
how would I let my /etc/nixos/configuration.nix see mywindowmanager as a package?
<theo>
the same thing?
<infinisil>
Define "see as a package"
<theo>
i.e. I can put environment.systemPackages = [ mywindowmanager ]; in configuration.nix
<worldofpeace>
According to the wiki entry in kde, all you have to do is this for to start wayland session in tty (this changed since 5.13) -> https://hastebin.com/raw/igovoremac
ajs124 has joined #nixos
<infinisil>
theo: you mean to have it available as `pkgs.mywindowmanager`? That would be done using overlays: `nixpkgs.overlays = [(self: super: { mywindowmanager = super.callPackage ./... {}; })];`
<theo>
and then in theory I'll be able to use windowManager.mywindowmanager.enable = true; and it'll boot up to my window manager
grp has joined #nixos
<infinisil>
You still need to import the module (unless you make a PR for nixpkgs to include it by default). Adding a package can't change options. It should be the other way around: enabling the option adds the package
<infinisil>
As is done in the 2bwm module in line 33
<theo>
oh interesting, I didn't realise it was that way round
<theo>
so if I add the pkgs.callPackages... line to my custom module, the option should be available?
<theo>
i.e. I won't need to manually package it with an overlay?
<infinisil>
Yeah, well an overlay isn't hard, see the message with the overlay i sent.
moet has joined #nixos
<infinisil>
Using the mywindowmanager = callPackage in the `let in` doesn't need an overlay, if you don't intend to use the package outside of the module
<infinisil>
let in is a local package definition, while overlays can be used to get a "global" package (available in all nixos modules)
<theo>
ugh I'm getting in a muddle again, sorry
hotfuzz_ is now known as hotfuzz
<theo>
how can my module use pkgs.callPackages without having my window manager already available as a package?
<infinisil>
Just put mywindowmanager = pkgs.callPackage ./path/to/wm {}; in the `let in` and replace `pkgs._2bwm` with `mywindowmanager`
<theo>
right that's what I needed, I'll try that
<theo>
is the path to the window manager the .nix expression or the actual binary?
<infinisil>
Packages aren't things you need to register, you can just assign them to a variable and use them like that
<infinisil>
theo: The nix expression
<infinisil>
Use ${mywindowmanager}/bin/wm to get the binary path
<theo>
and that'd be the default.nix
<theo>
alright sweet thanks for the help, I'll give it a shot
<infinisil>
Yup probably, whatever you need to build your package
<infinisil>
(Will be gone for a bit)
<theo>
alright no problem, thanks again :)
asuryawanshi has joined #nixos
theo has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 268 seconds]
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
drakonis has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
keks has joined #nixos
mariatsji has joined #nixos
xy3_ has joined #nixos
<keks>
hey, me again. I'm trying to build a nodejs electron app, and it needs the X11/X.h header file. I have an FHS env, and /usr/include/X11 exists and contains a bunch of files - but not X.h. Similar to https://unix.stackexchange.com/questions/302694/nixos-x11-header-files-not-found - except that for me ~/.nix-profile/ does not contain any `include`. can anyone help me out here?
worldofpeace has quit [Ping timeout: 265 seconds]
<keks>
(only installed nix today, so my terminology might not be spot on - sorry about that!)
alex`` has quit [Ping timeout: 256 seconds]
mariatsji has quit [Remote host closed the connection]
<lfish>
Hello. I'm trying to modify a derivation in nixpkgs to use as a shell.nix. It lists texLive among nativeBuildInputs, and texLive isn't a derivation from nixpkgs. Where should I fetch it from?
<gchristensen>
so add a new device, it de-auths the old one
<gchristensen>
(iirc)
alexteves has joined #nixos
SeinfeldS07E22 has quit [Ping timeout: 276 seconds]
<samueldr>
the last paragraph makes me think that it may incurr a longer time if sms/voice auth has been disabled for the account (24h recovery process)
<samueldr>
still good though
sigmundv has joined #nixos
alex`` has joined #nixos
ThatDocsLady has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
dbmikus has joined #nixos
dbmikus has quit [Ping timeout: 256 seconds]
lfish has quit [Quit: Page closed]
<keks>
infinisil, {^_^}: thank you! what does that mean when you prefix something with "," (as you did in ",locate")?
<gchristensen>
{^_^} is an IRC bot :)
mariatsj_ has joined #nixos
blankhart has quit [Ping timeout: 240 seconds]
<keks>
... thank you :)
coot has joined #nixos
<keks>
,locate X11/extensions/XKBstr.h
<{^_^}>
Found in packages: emscripten, xlibs.kbproto
<gchristensen>
WOW!
<keks>
:D
<LnL>
I think he added that recently
<LnL>
or I just didn't know about it until yesterday :)
<gchristensen>
infinisil += 1000
<infinisil>
^.^
<infinisil>
Yeah I added that yesterday :)
mariatsji has quit [Ping timeout: 260 seconds]
mariatsj_ has quit [Ping timeout: 260 seconds]
<LnL>
would be really cool if we could get that on nixos.org somehow
<gchristensen>
yea
<keks>
is there I way I can do that without spamming the IRC? :)
tbone has quit [Ping timeout: 260 seconds]
<keks>
,locate X11/extensions/XKBrules.h
<{^_^}>
Found in packages: xlibs.libxkbfile.dev
<gchristensen>
nix-locate
<LnL>
In general nix-locate /bin/$query is more useful as the packages query IMHO
<LnL>
so like making the packages page lookup both by name and binary
<infinisil>
keks: You can private message the bot
tbone has joined #nixos
<infinisil>
nix-locate will be faster though, once you have a db at least
<infinisil>
,locate bin gcc
<{^_^}>
Found in packages: gcc, gcj, gccgo, gfortran, gcc_debug, ccacheWrapper, gcc-unwrapped, and 2 more
<infinisil>
bin as a second argument is about the same as ,locate bin/gcc
<infinisil>
,locate man exit
<{^_^}>
Found in packages: manpages
aristid has quit [Ping timeout: 268 seconds]
<keks>
building the index now. will I have to rebuild it manually on a regular bases?
asuryawanshi has joined #nixos
<LnL>
mine is pretty outdated, doesn't really matter for most usecases in my experience
<tnks>
clever: I did some timing, and still thinking about what much I can do.
<tnks>
I noticed, though, that nix-instantiate is not actually annoyingly slow.
thblt has joined #nixos
<tnks>
but nix-shell is taking around 4.5 seconds to go into.
<tnks>
nix-instantiate a couple of seconds less.
<clever>
tnks: and if you run nix-shell on the .drv file instantiate gave?
<LnL>
tnks: what platform?
mariatsji has joined #nixos
<thblt>
On my laptop (XPS 9560), powerManagement.powertop.enable breaks bumblebee: optirun complains it can't activate the discrete graphics card. Is someone else experiencing this?
<thblt>
(Running Nixos unstable)
blankhart has joined #nixos
<thblt>
The issue seems to be at boot, since setting all powertop "tunables" to Bad doesn't fix optirun
<tnks>
also curious if this amount of time to get into a nix-shell is normal, or dubious. It's a medium-sized personal project with a few dependencies.
<gchristensen>
usually takes me a couple seconds tops
<{^_^}>
[nixpkgs] @oyren opened pull request #43044 → write_stylus: init at 209 → https://git.io/fbplD
<{^_^}>
[nixpkgs] @oyren closed pull request #42574 → Write: init at 2.0.9 from Styluslabs → https://git.io/f4HIq
Neo-- has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<Profpatsch>
gchristensen: It reached you? oO
hph^ has joined #nixos
<Profpatsch>
How did you hear?
<gchristensen>
Profpatsch: I pay attention to things ... :)
<Profpatsch>
gchristensen: If you mean the police raid, yeah.
<gchristensen>
yea
<Profpatsch>
haha, cool
<Profpatsch>
These guys did very good word. We weren’t sure two days ago it would even be picked up by German media.
<Profpatsch>
Fanstastic.
<Profpatsch>
I was grinning the whole day.
<gchristensen>
:)
<Profpatsch>
gchristensen: Since I am on the board of OpenLab, I was interrogated by police for three and a half hours about a week ago.
<Profpatsch>
But nothing got taken from me personally.
<Profpatsch>
Wait, I guess it’s been two weeks by now.
<Profpatsch>
Time runs.
<gchristensen>
:o wow
<Profpatsch>
s/runs/flies/ i guess
xy2_ has quit [Quit: WeeChat 2.0]
<Profpatsch>
WHOA, press coverage has gone through the roof
<joepie91>
Profpatsch: did you get the impression that they were there because that's what they were told to do, or that they had a genuine suspicion that you might have something to do with the claimed purpose of the investigation?
<joepie91>
and yep
<joepie91>
came at me from all sides this morning
<Profpatsch>
Offline for a few hours, drinking bear on the Seine, suddenly world recognition. :Ä
<Lisanna>
Alright, I've got a good multi-user nixops workflow worked out. You end up sharing the nixops statefile between users, and pass it in on the command-line with the -s flag. How you share the statefile is up to you, but it could be e.g. on an NFS. Before you deploy, if someone else has deployed using the statefile, use nixops modify to change the nixExprs to your copy/checkout of the nix files.
<gchristensen>
nice, Profpatsch
clever has quit [Ping timeout: 240 seconds]
<joepie91>
Profpatsch: I had a similarly bizarre experience after I got raided; I notified a bunch of people in what I thought was a fairly small and not-super-public IRC channel... a few hours later, the raid was reported in Dutch news
<Profpatsch>
joepie91: Uh, I don’t even know. Police sending mixed signals of competence. :)
<joepie91>
heh
adam-6520493 has joined #nixos
<joepie91>
I hope things work out...
<kalbasit>
I recently purchased the new XPS 15, i9, with discrete Nvidia GPU. This is my first Optimus hardware and so far it's been a headache. I'm still within the return period and I'm considering to return for this particular reason. Anyone here has a 6 cores laptop with 32+GB RAM that isn't having a touch time with it? I heard the XPS 15 2-in-1 has AMD instead of Nvidia but unsure of the support.
<joepie91>
this kind of thing can be super stressful depending on circumstances
<Profpatsch>
The demonstrations were completely peaceful btw. not a single soul got arrested.
clever has joined #nixos
clever has quit [Changing host]
clever has joined #nixos
phdoerfler has joined #nixos
<clever>
tnks: sounds like the problem is at the bash/stdenv layer, not the nix layer
<Profpatsch>
Except for one person that got a “precautionary” arrest, which apparently is a thing now in Bavaria/Germany.
<gchristensen>
O.o
<joepie91>
ah yes, precrime
drakonis has joined #nixos
<clever>
joepie91: thats what happens when you let CERN help out with enforcing laws
jD91mZM2 has quit [Quit: WeeChat 2.0]
<tobiasBora>
Hello, I'd like to compile Fluid Designer for Linux, which is based on an old blender version (blender 2.78) with some additionnal code modification, and the problem is that some new libraries are too recent for this build. How should I deal with the fact that I need an older version? Should I copy/paste the old files used to compile blender 2.78 and the associated libs?
crmlt has quit [Remote host closed the connection]
<tobiasBora>
and then should I create a custom name for them?
<tobiasBora>
(I suspect that openimageio is too recent)
tbone has quit [Read error: Connection reset by peer]
<spacefrogg>
tobiasBora: First, of course, you might want to notify upstream of Fluid Designer about this issue. Then you can create a package for an older version if that version is still actively maintained. Otherwise you could easily create an overlay and host the deviating libraries yourself.
arjen-jonathan has quit [Ping timeout: 265 seconds]
lord| has quit [Ping timeout: 240 seconds]
<fragamus>
hi I have submitted two packages and they have become part of NixOS:master my question is when and where will they appear in a channel so I can install them not using my local copy of nixPkgs? What commands are needed? I thought I knew but it isn't working.
lord| has joined #nixos
<manveru>
fragamus: you mean when it's in a channel?
<{^_^}>
[nixpkgs] @Nadrieril opened pull request #43048 → passff-host: init at 1.0.2 → https://git.io/fbp00
crmlt has joined #nixos
toonn has joined #nixos
<toonn>
Which vim do I want? Don't care about GUI.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora>
spacefrogg: fluid designer has not been updated in the last 10 months, so I don't know if they plan to update it anymore. After I'm not sure I'll do a PR for it, but at least I would like a working derivation for me, and I'm not sure how to deal with multiple versions
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « xrdp: 0.9.5 -> 0.9.7 (#43041) »: https://git.io/fbpEU
wchresta has quit [Remote host closed the connection]
timon37 has quit []
Ariakenom has quit [Quit: Leaving]
graphene has joined #nixos
<alexteves>
a bot opened a PR on nixpkgs with an auto-update to some package I added, it still builds but fails at runtime due to a missing import - do I open a new PR and reference this one? do I PR against the bot's fork?
<gchristensen>
PR against nixpkgs you can reference that PR if you awnt
<samueldr>
infinisil: you do know, as software developer, it is now crucially important that you document all the features in a digestible format with the source code :)
<long-tail-ext4>
Hello! I'm trying to get Python set up on my machine. I just want `python3` with support for package installations. I'm following this page on the Wiki: https://nixos.wiki/wiki/Python
<long-tail-ext4>
There's a code block that looks like exactly what I want. But I don't know where to put it so that my `configuration.nix` executes it.
<long-tail-ext4>
Once I get it working I can put up a clarification PR to the Wiki. Just to help the next person.
<rotaerk>
Ralith, you there?
<Ralith>
rotaerk: \o
<rotaerk>
hey, I noticed you checked in some changes to the vulkan derivations
<{^_^}>
[nixpkgs] @Baughn opened pull request #43057 → dwarf-fortress: Run legends-browser with a suitable working directory → https://git.io/fbpz3
<Ralith>
is there a problem with them?
<rotaerk>
a while back, before you split them up into vulkan-loader, vulkan-headers, vulkan-validation-layers, I submitted a PR (which got merged into staging) to fix the placement of the validation layer files
<rotaerk>
both in the old vulkan-loader (before my fix) and in your new vulkan-validation-layers, the files end up under the share directory
<rotaerk>
but as my PR mentioned, vulkan itself appears to search for them in etc
<infinisil>
long-tail-ext4: The one in the first section?
<rotaerk>
Ralith, yeah; I'm now just trying to get the layers to work
<Ralith>
the loader searches the share subdir of each of $XDG_DATA_DIRS
<rotaerk>
I'll tinker with it a bit more, for now
thc202 has quit [Ping timeout: 248 seconds]
<long-tail-ext4>
infinisil: That's right. I know it's probably a dumb question. I'm new to Nix and haven't created a custom package before.
<Ralith>
in nix-shell you'll need to add ${vulkan-validation-layers} to $XDG_DATA_DIRS yourself
<Ralith>
perhaps nix-shell should do this automatically
<rotaerk>
oh
<Ralith>
in my shells, I have ``shellHook = ''export XDG_DATA_DIRS="$XDG_DATA_DIRS:${vulkan-validation-layers}"'';`
<long-tail-ext4>
I figured that `in ...` should continue to something with `environment.systemPackages`.
<long-tail-ext4>
But I don't know where it sits in a module.
<rotaerk>
I see; thanks
<infinisil>
long-tail-ext4: You can put it into configuration.nix like this: `{ pkgs, ...}: let mypython = pkgs.python3.withPackages (p: with p; [ pandas requests ]); in { ...; environment.systemPackages = [ mypython ]; ...; }`
<long-tail-ext4>
infinisil: Thank you!!
<infinisil>
I shortened some variable names and made it a bit tighter
<Baughn>
long-tail-ext4: ^, but it's usually recommended you use nix-shell configurations instead of a single global python. That's the Nix equivalent of virtualenv.
<long-tail-ext4>
Baughn: Ohhhh, interesting. Thank you! I will look into that.
<Baughn>
long-tail-ext4: Given you can only have *one* python3 binary on your PATH otherwise.
grp has quit [Quit: box shutting down...]
<long-tail-ext4>
Ahhh, I see. I appreciate the warning. I'm glad that there's a Nixy replacement for virtualenv. I usually have trouble keeping python envs straight; I let them take over my system.
<Baughn>
long-tail-ext4: It's possible to create custom "python3" wrappers with different names and configurations, but that's both a bit more advanced, and not as convenient to put on github. For instance...
<Baughn>
Well, you can also use virtualenv. It usually works. :P
jluttine has quit [Ping timeout: 256 seconds]
<Baughn>
(It may fail for packages that have C modules.)
<Baughn>
By checking it into github, it makes it trivial for other people to get that. In theory, anyway; I'm the only Nix-using dev on the project atm.
<long-tail-ext4>
Sorry, this is an example of what, exactly?
<infinisil>
I bet the manual somewhere has an example of a python shell.nix
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « rednotebook: fix build »: https://git.io/fbpzV
<Baughn>
long-tail-ext4: nix-shell, executed without parameters, reads shell.nix (if it exists) or default nix (otherwise) and uses them to create setup a bash shell.
<long-tail-ext4>
Ah!
<long-tail-ext4>
I see, that's cool.
<Ralith>
rotaerk: feel free to ping me directly if you have any other issues, might save time
<Baughn>
long-tail-ext4: Specifically, a bash shell with everything needed to compile whatever you've defined in the .nix file. ...although in my case, that's "nothing".
<Baughn>
I just list a bunch of libraries.
<Baughn>
You *need* nix-shell for that, because putting a *library* in environment.systemPackages does precisely nothing. Only binaries get propagated that way.
<rotaerk>
Ralith, k; thanks
<Baughn>
(Ditto, you can't "install" a library with nix-env.)
<rotaerk>
Ralith, I don't know if there is any way to do it with nix, but it just seems like making the layers available (i.e. adding them to that XDG_DATA_DIRS) should be part of the vulkan-validation-layers drv
<long-tail-ext4>
infinisil: Thank you! I don't know why it didn't occur to me to check the primary manual.
<rotaerk>
rather than requiring the consumer of it to do it as a follow-up step
<infinisil>
Well there's actually 3 manuals, and they're pretty big, no blame there ;P
<long-tail-ext4>
Haha, thanks.
<Ralith>
rotaerk: I agree broadly, but I think this is a more general problem of nix-shell failing to do for $XDG_DATA_DIRS the same thing it does for $PATH
<rotaerk>
ah
<rotaerk>
makes sense
<Ralith>
you could work around the problem with a build hook but it would probably be best to solve the general case; not sure where that would be done, though
* Ralith
knows more about vulkan than the guts of nix
<Ralith>
er, a setup hook
<rotaerk>
it's okay; you know more about *both* than me :P