<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLS2M
Thra11 has quit [Quit: WeeChat 3.0]
<noonien>
what is the easiest way to get nixos running on a rpi3? from what i can tell on https://nixos.wiki/wiki/NixOS_on_ARM#NixOS_installation_.26_configuration i need either hdmi/keyboard, or a serial access. can i build a sd-card image with the user and wifi credentials i need?
ransom has quit [Read error: Connection reset by peer]
<pushqrdx>
they are located in almost every package under the Pantheon desktop expressions
<simpson>
pushqrdx: `passthru` is a name which any derivation can use to re-export arbitrary Nix values. The idea is that these values are "passed through" from the derivation to its users.
<energizer>
Does anyone know, is it possible to use impermanence for user home without home-manager? The regular nixos module makes everything owned by root so my user can't write it.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JLSwZ
<energizer>
lovesegfault: you manually fix the perms every time you reboot?
<{^_^}>
[nix-mode] @matthewbauer pushed to derived-nix-drv-mode « Make nix-drv-mode a derived-mode of javascript-mode »: https://git.io/JLSw5
<lovesegfault>
No, if the folders already exist in your state dir the perms don't need fixing
<{^_^}>
[nix-mode] @matthewbauer opened pull request #119 → Make nix-drv-mode a derived-mode of javascript-mode → https://git.io/JLSwd
<lovesegfault>
it only creates them with root ownership if they don't already exist
<energizer>
but they don't exist, they got wiped at boot
ob7 has joined #nixos
<lovesegfault>
They will exist in your state dir
OCCASVS has quit [Quit: Connection closed for inactivity]
<ob7>
anyone here know how to get cuda working in nixos?
<{^_^}>
[nix-mode] @matthewbauer pushed to master « Replace javascript-mode with js-mode »: https://git.io/JLSrv
<ob7>
im trying to get blender 2.9 to render using gpus... ive got amd cards working using the guide here: https://nixos.wiki/wiki/AMD_GPU
<energizer>
sure, /persist/home/energizer/projects exists. but /home/energizer doesn't exist
<ob7>
but im having trouble getting nvidia cards to register
<{^_^}>
[nix-mode] @matthewbauer pushed 2 commits to derived-nix-drv-mode: https://git.io/JLSrk
<ob7>
any help appreciated
<lovesegfault>
energizer: Yes, so if /persist/home/foo exists with the right perms it will be bind-mounted to /home/foo and those will have identical perms b/c that's what a bindmount does
<lovesegfault>
check the permissions in /persist/ is what I'm saying, make sure they're right
<energizer>
lovesegfault: i checked the permissions of /persist/home/energizer, they are correct. on reboot /home/energizer is created and owned by root
<pushqrdx>
meson is complaining about this: src/meson.build:51:0: ERROR: C shared or static library 'libgnomekbdui' not found
<pushqrdx>
however i can't find that anywhere
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JLSrl
<pushqrdx>
apparently libgnomekbdui is a different thing, idk
<lovesegfault>
energizer: that's... really odd
<lovesegfault>
is your cfg public?
erictapen has quit [Ping timeout: 264 seconds]
<energizer>
lovesegfault: im noticing that /home/energizer and /home/energizer/.config get created owned by root, but /home/energizer/.config/cachix gets owned by energizer
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<Gaelan>
,locate vcgencmd
<{^_^}>
Couldn't find in any packages
<tpw_rules>
ob7: i assume you see the gpu in nvidia-smi?
<tpw_rules>
on nixos?
<lovesegfault>
Gaelan: raspberrypi-tools
<Gaelan>
"raspberrypi-tools has been removed in favor of identical 'libraspberrypi'"
<lovesegfault>
Well, guess that's what it's called now :P
<KarlJoad>
Is there a way to use a ${variable} nix expansion for FontPath and ModulePath in the xserver.conf file?
<boxofrox>
aterius: that wiki page is a good start, and would have solved my issue. That page wasn't a result in my google search, so I was messing with `LOCAL_ARCHIVE="$(nix-build --no-out-link '<nixpkgs>' -A glibcLocales)/lib/locale/locale-archive" and the like, but my nix apps still complained of missing locales or unable to set locales.
<boxofrox>
aterius: your recommendation to use the host system archive worked. wish i'd found that sooner :)
<energizer>
lovesegfault: i got rid of my /home subvolume and now everything works. thanks.
<boxofrox>
fzakaria: I think I tried something similar to that. I just recently started using home-manager, and it didn't work. I'm not sure what I messed up in the configuration, but home-manager isn't setting that env var in my [non-nix] zsh shell, and my nix apps still weren't happy with glibcLocales. *shrug*
<lovesegfault>
energizer: Not sure I did much to help there, but I'm glad you figured it out :D
<boxofrox>
aterius: no. at the time I tried it last week or so (both with home-manager and manually exporting in the shell), using `nix-build --no-out-link '<nixpkgs>' -A glibcLocals..blah` did not work for me. I compared my nix binary with the nix glibc version (using ldd), and both were the latest used by nixpkgs-unstable.
<aterius>
Got it, I didn't think so. I just wanted to be sure.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLSiK
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<KarlJoad>
veleiro: That can still be dangerous since the Nix store is world-readable.
aw has joined #nixos
spacefrogg has joined #nixos
<KarlJoad>
I am having issues where X says it cannot open the nvidia module, but I can see the nvidia-x11-455.38 module in the xserver.conf file. Anyone have any clues?
acarrico has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #68115 → perlPackages.GlibObjectIntrospection: needs cairo to build test libs → https://git.io/fjhd9
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JLSiP
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLSPv
<fzakaria>
simpson: thanks.
<fzakaria>
Another question what's the best builder to add a new directory to an already created derivation?
<fzakaria>
linkFarm ?
<fzakaria>
ah i think symlinkJoin
<KarlJoad>
veleiro: Gotcha. Wasn't sure what you were doing.
edwtjo has quit [Ping timeout: 240 seconds]
gustavderdrache has quit [Quit: Leaving.]
<KarlJoad>
So, I have narrowed down my nvidia/X11 problem down to the fact that X can't seem to find the nvidia_drv.so file, even though it has the ModulePath for it. Anyone seen anything similar?
CMCDragonkai2 has quit [Ping timeout: 240 seconds]
<fzakaria>
here is what i came up with; seems like a lot to achieve something simple
<{^_^}>
[nixpkgs] @vbgl pushed commit from @freezeboy to master « ocamlPackages.camlzip: 1.07 -> 1.10 »: https://git.io/JLSdo
kevinjmc has joined #nixos
Dr8128 has joined #nixos
davidv7_ has joined #nixos
gianarb has joined #nixos
davidv7 has quit [Ping timeout: 272 seconds]
<gianarb>
Hello! newbie question, I would like to install a go program in nix-shell, but there is not derivation for it https://github.com/matryer/moq how can I solve this problem without having to push a new derivation to a repo? I can create a moq.nix file somewhere in my repo and import it from there for now?
<energizer>
i dont know about go, there's probably a nixpkgs guide for it. also you can look at the logs for this channel (/topic) i think someone said the answer within the last few days. it's something like "buildGoModule" or "buildGoPackage" i forget
<ronny>
anyone aware of a way to choose a module name via a config options/system environment variable i have a directorytree with nix modules for my computers, and i want to be able to easyly crossbuild the configurations of a different computer
m0rphism has joined #nixos
puffnfresh has joined #nixos
<siraben>
I have a bunch of projects that I can build with Nix, but all the build scripts are in the "master" project with niv to pin nixpkgs, how do I split up the expressions to the other projects and keep their pins synced?
dminuoso has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
fendor has joined #nixos
haritz has quit [Ping timeout: 246 seconds]
haritz has joined #nixos
haritz has joined #nixos
haritz has quit [Changing host]
s1341 has quit [Quit: Connection closed for inactivity]
patagonicus has joined #nixos
gianarb has joined #nixos
<pingiun>
is there a way to update all flakes before building with hydra?
<pingiun>
I think it would be useful to build the specified flake inputs alongside a version where everything is updated
<pingiun>
the version where everything is updated is possible with the legacy jobset specification of course, by setting all inputs to master branches
<Nickli>
having an issue with mpc and ncmpc... using some random port connecting to mpd even if i set it in config or -p, anyone know how i could fix this?
respawn_ has quit [Quit: Leaving]
berberman_ has joined #nixos
berberman has quit [Ping timeout: 268 seconds]
berberman_ has quit [Max SendQ exceeded]
<{^_^}>
[nixpkgs] @fabaff opened pull request #107876 → wad: init at 0.4.6 → https://git.io/JLSxh
<{^_^}>
nix#885 (by copumpkin, 4 years ago, open): Deprecate builtins.filterSource in favor of something that takes a a few regexes (perhaps different regexes for files/symlinks/directories)
<sphalerite>
siraben: then the subdirectories are getting excluded because their basename isn't in your allow-list :)
<sphalerite>
siraben: maybe nix-gitignore (already in nixpkgs) will work better for you?
<siraben>
Yeah I'm looking at that, but I haven't been able to negate the pattern
<siraben>
' doesn't represent an absolute path, at /nix/store/ci64cgncp3py4mkz12b1ynnds9pqc00x-nixpkgs-src/pkgs/build-support/nix-gitignore/default.nix:173:29
<V>
oh, this is a nix path. probably no way to do that, then
<srk>
bqv: probably not, possibly by email if there's a need. I don't see it as a deadlock but the coordiantion required is not ideal. imalsogreg is active and we've managed to release both last month
<siraben>
sphalerite: hm, i'm looking around and checking other examples but no one seems to be using !
<siraben>
surely there has to be examples in nixpkgs
<{^_^}>
[nixpkgs] @SuperSandro2000 closed pull request #107866 → python3Packages.paperspace: mark as broken → https://git.io/JLSyU
<siraben>
alternatively I could just create a folder and write unpackPhase myself
acarrico has joined #nixos
<sphalerite>
siraben: I created a directory named test, containing a and b; then ran nix-build -E 'with import <nixpkgs> {}; lib.traceVal (nix-gitignore.gitignoreSourcePure ["*" "!a"] ./test)' and checked that the resulting store dir does indeed contain a but not b
<sphalerite>
so negation clearly works, there's just something wrong with your rules
<bqv>
srk: fair enough. I'm just observing that it's been at least about two weeks since anton's been piping up about needing a new release and nothing has moved, and derivationStrict seems to be dependent on that for some reason
MrCoffee has joined #nixos
orcus has joined #nixos
scheibenkleister has joined #nixos
<viric>
cd
jonringer has joined #nixos
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed commit from @grahamc to master « rfc39: invite 50 at a time »: https://git.io/JL9rC
carthia_mr has quit [Quit: carthia_mr]
gianarb1 has quit [Ping timeout: 258 seconds]
Luk50065 has joined #nixos
<MichaelRaskin>
viric: you want to imply you do not feel at home here?
ransom has joined #nixos
<viric>
:D
<bqv>
ha
<viric>
damn ffmpeg - I can't get audio
<viric>
audio+video low latency
Luk50065 has quit [Remote host closed the connection]
gianarb1 has joined #nixos
MrCoffee has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed commit from @edolstra to master « Update mac1 hardware config »: https://git.io/JL9oq
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-20.09: https://git.io/JL9oV
gianarb1 has quit [Quit: WeeChat 3.0]
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
padraic has joined #nixos
MrCoffee has joined #nixos
arinov_ has quit [Ping timeout: 260 seconds]
veleiro has joined #nixos
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed 2 commits to master: https://git.io/JL9o9
hrnz has joined #nixos
fendor_ has joined #nixos
grobi2 has joined #nixos
fendor has quit [Ping timeout: 260 seconds]
grobi2 has quit [Client Quit]
malook has joined #nixos
<padraic>
Hey, picked up NixOS through the winter break and have done a couple of installs. Trying to get the installation done as automatically as possible but have come across a hitch as I'm installing the OS on a luks encrypted filesystem. The issue I'm facing is that I must manually update `boot.initrd.luks.devices.<encrypted vol>.device` to the uuid of
<padraic>
the encrypted partition. Is it possible to inline some bash script that can read this info manually?
<{^_^}>
[nixpkgs] @nagy opened pull request #107885 → lua5_4: add readline support → https://git.io/JL9ox
<bqv>
(and secp256k1 doesn't build on 2003 even if you mark it unbroken)
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed commit from @edolstra to master « Override macosGuest.network.externalInterface for mac1 »: https://git.io/JL9ik
<pushqrdx>
can someone help me with this error i am getting, it seems to be something nix related as i can't find any traces of it anywhere
<pushqrdx>
ERROR: C shared or static library 'libgnomekbdui' not found
<pushqrdx>
the libgnomekbdui is something different from libgnomekbd for somereason
<pushqrdx>
and i can't find it
<ghasshee>
bqv: eacameron: simpson: Hmm, thanks. I should migrate if I would not dive into nixos deeply.
<simpson>
ghasshee: FWIW we don't arbitrarily mark Haskell packages as broken; usually they are *published* broken, thanks to Haskell's hilariously overly-restrictive package versioning.
<pushqrdx>
i just updated to the latest master revision
<pushqrdx>
and in it's meson.build it looks for libgnomekbdui, and fails
philr_ has quit [Ping timeout: 246 seconds]
<simpson>
pushqrdx: I just built `pantheon.switchboard-plug-keyboard`, mostly from cache, getting /nix/store/bcqn46dbhc2sky4j3p0sv9v1097rwpnz-switchboard-plug-keyboard-2.4.1
<ghasshee>
simpson: Is it easy to use another package manager e.g. cabal on NixOS now ?
<pushqrdx>
simpson i am not building the nix version as is, i updated the derivation to the latest master revision
<simpson>
I had to figure out that libhandy comes in a v0 and v1 API (we package both), but otherwise it was straightforward. Does this make sense?
<ghasshee>
Just chatting, do Haskellers use compcert compiler rather than gcc now ? Recently I often see COQC working in building some dependencies.
<pushqrdx>
simpson yeah makes sense, i was just thinking it has to be something more twisted lol
<ghasshee>
Is it already main stream to use that compiler ? I have just installed few days ago ..
orivej_ has quit [Ping timeout: 246 seconds]
<pushqrdx>
simpson yup seems to have went past that package, thanks :D
<pushqrdx>
i am upgrading the whole desktop to latest, and will be keeping it up to date, once they release elementary 6.0 it would be easy to update the nix packages
<{^_^}>
[nixpkgs] @cpcloud opened pull request #107890 → nixos/prometheus: update relabel_action list → https://git.io/JL9DI
<simpson>
pushqrdx: Have you considered talking to the package maintainers about that?
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed 7 commits to master: https://git.io/JL9Dn
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed 2 commits to master: https://git.io/JL9Dc
<pushqrdx>
simpson tbh i forgot, but i will do, i wonder if they're here on irc
<{^_^}>
[nixos-org-configurations] @rbvermaa pushed 0 commits to remove-status-nixos-org: https://git.io/JL9DW
<ghasshee>
( .. I have been confused and using ccomp compiler does not seem to call COQC . )
nature has quit [Ping timeout: 256 seconds]
ransom has quit [Ping timeout: 260 seconds]
<ghasshee>
( and I see now that actually `cabal-install secp256k1` is building compcert . )
nature has joined #nixos
c4rc4s has joined #nixos
<pushqrdx>
i am pretty sure i saw in some derivation that there's a way to make a buildInput available (as) another name
maddo has joined #nixos
<maddo>
\o/
<pushqrdx>
so for instance, for some reason a package want wingpanel-2.0, and even though i have a build input of wingpanel, which is > 2.0 it is failing
kapil_ has quit [Ping timeout: 256 seconds]
ransom has joined #nixos
nek0 has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #107859 → python3Packages.shapely: fix build on darwin → https://git.io/JLSKA
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL9Dd
<ghasshee>
( Perhaps, I might have said wrong story .. I do not know at which level compcert was compiled. )
oxalica has quit [Remote host closed the connection]
orivej has joined #nixos
<bqv>
infinisil: what's your future plan for nixus? do you envision having enough bandwidth to expand it and maybe even give it a flake-native wrapper?
<bqv>
cause I'm on the edge of finally starting to use multimods in my config
jmeredith has joined #nixos
KarlJoad has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<infinisil>
Well I do have lots of ideas I want to implement eventually, and I expect to get around to those over time. A flake-native wrapper sounds doable relatively easily, and I'd probably do that once I get into flakes
<infinisil>
(though I don't feel inclined to start using flakes since they're still experimental)
<bqv>
a lot of people still say that, but i think they're pretty solid now and have been for a few months...
<bqv>
anyway, cool
<bqv>
i might revert my "fork" to a git subtree so i can keep track of your updates
meh` has quit [Ping timeout: 240 seconds]
kapil_ has joined #nixos
<infinisil>
Yeah many people seem to use flakes already as well
<bqv>
i'm moving onto nix-ipfs as my new experimental venture ;)
<infinisil>
Neat
aswanson has joined #nixos
pinkieval has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #107813 → bash-completion: fix build on darwin (#107768) → https://git.io/JLSLm
<{^_^}>
[nixpkgs] @jonringer pushed commit from @rb2k to staging « bash-completion: fix build on darwin (#107768) »: https://git.io/JL9yy
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to release-20.09: https://git.io/JL9SM
<bqv>
nature: based on the fact that so many issues with nixpkgs are centered around caching and the nixos hydra, this seems like a real damn smart move because it'll relieve a lot of pressure from hydra. but as always politics will get in the way
<apples_man>
Googling the issue seems to show I need to add the `nixpkgs.system.localSystem = "x86_64-linux"` somewhere but I'm not sure how
<bqv>
the only issue is that updating to this version of nix will irreversibly change your store's schema, but there's the NIX_REMOTE=local trick in that tutorial that mitigates that
<apples_man>
infinisil yes I am
<bqv>
and i'm actually using it for my server's main store
<bqv>
because that store's less critical for me
<infinisil>
apples_man: Yeah then you can't build linux stuff
<bqv>
and all my systems have ipfs/-cluster running by default anyway
<infinisil>
Unless you have a remote builder or so
ece has quit [Ping timeout: 260 seconds]
oxalica has quit [Remote host closed the connection]
<nature>
bqv: Thanks!
tgamblin-llnl has joined #nixos
<apples_man>
infinisil oh well :(
<apples_man>
infinisil thanks anyway
<bqv>
nature: oh and, if you want me to build any packages for you over ipfs, i'm happy to :p
Qubasa has quit [Quit: WeeChat 2.9]
<codingkoi>
Is there a simple way to add custom .desktop entries? Been looking through docs and nixpkgs but can't find anything obvious.
Qubasa has joined #nixos
<nature>
bqv: oh very good to know! :D
<simpson>
bqv: You've hit upon one of the problems that's not yet solved, trust; the other issue is speed. IPFS is well-known as not exactly speedy. Does it perform comparably to the community builder's caches for you?
gustavderdrache has joined #nixos
<bqv>
simpson: speedwise, hard to test, because i'm the only person i know that's using it as yet. also hard to judge from just a handful of people, because of the nature of ipfs connectivity. the only speed issue is latency however, and nix builds aren't exactly speedy themselves, so with massive parallelism i don't forsee that being an issue
<pushqrdx>
worldofpeace did you start fiddling around with the latest Pantheon desktop now that it is getting closer to release?
<bqv>
simpson: trust is something Ericson2314 is actively working on, iirc
<bqv>
simpson: w.r.t trust or speed? i can understand apprehension on trust, i don't know how that problem {has been/is being} solved, but i wouldn't reserve interest purely because "it might be slow"
<bqv>
especially since it's defined behaviour that ipfs gets faster with adoption, so in a sense by considering that a problem, you're making it more of a problem
<simpson>
bqv: The caches are, for most packages, an optional accelerator which trades bandwidth for local CPU time. So I'd say that speed is a primary design concern for caches.
dyazz has joined #nixos
<simpson>
Sorry, but I *don't believe* that just based on design choices. I'd need to see metrics.
teto has quit [Ping timeout: 260 seconds]
mconnolly has quit [Quit: WeeChat 2.9]
<simpson>
Trust is always hard, and the existing caches have trust issues too, so I can understand that indeed that's a political issue.
<bqv>
fair enough :p maybe eric can calm your mind, when he's around
SomeoneSerge has quit [Ping timeout: 256 seconds]
<nature>
Also completely different (noob) question, what is the prefered way to handle multiple nixos machine, I had a raspberry pi running nixos and was deploying with nixops, but after updating my laptop to nixos 21.03 and using flakes I was unable to deploy anythin with nixops anymore?
respawn_ has quit [Quit: Leaving]
<bqv>
nixops should support flakes fine, maybe someone can help fix it for you
<bqv>
alternatives might be deploy-rs, which also has native flake support, or nixus, which is possible to use with flakes
carthia has joined #nixos
<DigitalKiwi>
Morph is a thing too but don't know about flakes with it either way
<nature>
Okay thanks, yeah won't be able to fix it any
riksteri has quit [Quit: riksteri]
<nature>
*any time soon, lost access to the server and need to physically go to the place to fix it
<simpson>
bqv: Oh, I'm not looking for mind-calming experiences. IPFS has other design flaws, IMO; https://github.com/ipfs-inactive/faq/issues/47 is a good example of a showstopping set of design choices.
<{^_^}>
ipfs-inactive/faq#47 (by jbenet, 5 years ago, closed): Replication on IPFS -- Or, the Backing-Up Content Model
dyazz has quit [Client Quit]
dyazz has joined #nixos
<bqv>
simpson: eh. i agree with why that was closed, i use ipfs-cluster, i consider it a reasonable solution
<nature>
I was just wondering if I was doing things really wrong and didn't understand enough and messed it up or if there was some instability involved in playing with nixops between different architectures and nixos versions
<{^_^}>
[nixpkgs] @JamieMagee opened pull request #107894 → pythonPackages.advantage_air: init at 0.2.1 → https://git.io/JL9Hz
<DigitalKiwi>
There's a #nixops channel too that might be useful
schweby has quit [Quit: Das ist möglich, also tun wir es. Später.]
<nature>
DigitalKiwi: Thanks I'll drop by once I regain access :)
<simpson>
bqv: Sure. I expect something more like NDN which is more censorship-resistant overall, though; as currently designed, IPFS could be censored by ISP-like middlemen and not just by last-mile services. Folks are not incentivized to try to improve access, but rather to funnel access to a minimal hot set of files, ala AOL.
cole-h has joined #nixos
dyazz has quit [Client Quit]
apples_man has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Lassulus merged pull request #107127 → Fix: nixos-container does not always apply extraVeth ips → https://git.io/JL8lk
<bqv>
well i definitely like censorship resistance as a model, but i don't see it being all that useful for this purpose, and since IPFS both is actually relatively popular and has expressed interest in helping from their dev side, i do think it's the best choice
<{^_^}>
[nixpkgs] @mmahut opened pull request #107896 → terraform-provider-vercel: init at 2.1.0 → https://git.io/JL9Hd
<bqv>
i'd worry about creating vaporware otherwise. with all projects like this (nix, ipfs, all other file networks) adoption and critical mass is important, and the more "rare" you get with your projects, the less you'll get, no? e.g. just mentioning ipfs just now got someone interested, whereas despite actively being interested in these kind of decentralized networks i don't even know what NDN is
grobi2 has quit [Quit: WeeChat 2.9]
grobi has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
<bbigras>
anyone tried the new ipfs thing for nix? I'm pushing my stuff to it, and it's taking forever.
<simpson>
Aha! We'll have to agree to disagree; I think that being popular is not necessarily worth the sacrifices that must be made. (Also I can't take that argument seriously when Bittorrent exists and is way larger and more bandwidth-efficient already.)
zebrag has joined #nixos
<bqv>
believe me i'm the first to make noise about good design choice, but i'm also realistic and terribly jaded with the number of "perfect design" projects that i've seen die out because design isn't all that matters.
<bqv>
bbigras: the bottleneck is make-content-addressed (obviously, because nothing is actually being "pushed" over network there)
<bqv>
unless you're trying to add a crazy amount of data, in which case it could be disk IO
<bbigras>
bqv: what do you mean?
<bqv>
your ipfs store is also on your disk, the data's not going anywhere :p
<bbigras>
I'm just trying to use it with my nix-config. It took all the evening last night for it.
nDuff has joined #nixos
<bbigras>
I updated my flakes today and tried to publish again and it's taking hours again.
<bbigras>
You tried it yet?
<bqv>
yeah, if it's your entire config then i'm guessing that's several gigabytes, you're doing the analogue of trying to create several gigs of derivations without a cache (because nobody else is using ipfs yet)
<bqv>
not gonna answer that last question because you're either being intentionally facetious or you've clearly not been paying attention to the conversation literally happening
<nDuff>
Howdy -- I'm trying to port a package from using buildGoPackage to buildGoModule, but the tests are failing -- it smells like the test data included in the source tree can't be accessed by the builder. I could continue to trace through pkgs/development/go-packages/geneci/default.nix... hints on where to start?
<bbigras>
okay...
Dr8128 has joined #nixos
carthia has quit [Remote host closed the connection]
carthia has joined #nixos
aither has quit [Remote host closed the connection]
<ghasshee>
the migration story to IPFS is so interesting, since there might be a lot of tools for trust in decentralized manner like using ENS on web3.
snajpa has quit [Max SendQ exceeded]
<ghasshee>
or ethereum contracts directly.
<gchristensen>
it might be ambitious to call it a migration to IPFS, support for IPFS is being worked on
davidv7_ has quit [Read error: Connection reset by peer]
davidv7 has joined #nixos
<ghasshee>
:D that sounds sense.
o1lo01ol1o has joined #nixos
attila_lendvai has joined #nixos
<bbigras>
I'm trying cachipfs since last night, and it doesn't seem very efficient yet. The cache should already have stuff from yesterday and my current publish is still taking hours.
<gchristensen>
last I checked (a couple years ago now), it looked like it would be hard to publish to IPFS quickly enough (a few MB/s sustained), and also I remember concerns around how quickly IPFS can issue 404's
<bbigras>
the tool seems to copy stuff to ~/.four-shells, then run `ipfs add` to many files, and then annouce them to CachIPFS service. all 3 stages seem slow.
<gchristensen>
not sure what four-shells or cacheipfs is :/
attila_lendvai has quit [Ping timeout: 260 seconds]
<gchristensen>
yeah I like this a lot: Nix itself doesn't need to know about IPFS, since the substituter protocol is really simple and implementable in a separate daemon, this looks great
<bbigras>
I if it would help if I ran `4s cachipfs daemon`. Maybe it's taking longer since the tool is not using my cache or something.
<bbigras>
I wonder if*
<simpson>
The linked docs totally fail for me even with JS enabled, unfortunately; are there static docs?
LilleCarl has quit [Read error: Connection reset by peer]
<pushqrdx>
before i attempt the least inspired/lazy solution, and for the sake of learning, is there a way to install the newer version of Pantheon desktop (from my derivation) side by side with my current stable version
teto has joined #nixos
donofrio has quit [Ping timeout: 272 seconds]
<colemickens>
"4s cachipfs", why is it behind "4s"? Why does the landing page want me to login? what is this taste in my mouth
<colemickens>
idk, I'll come back in some months "In order to start using CachIPFS we'll need an account"
<simpson>
bbigras: It means that they'll try to make money from the community if their tools ever get popular. At most charitable, it means that they'll expect business users to pay some sort of licensing fee. https://en.wikipedia.org/wiki/Open-core_model
<simpson>
pushqrdx: Usually, yes; the only thing nix-env does is try to prevent you from accidentally doing this, but you can create custom environments (say, with nix-shell) to do this.
<simpson>
...But for desktop stuff in particular, maybe that won't work. I don't know anything about Pantheon.
<sphalerite>
colemickens: is the taste vaguely reminiscent of the last meal you ate?
<bbigras>
simpson: charging money if a bit weird with something like ipfs where people are providing the hosting.
<simpson>
Er, by "accidentally doing this" I mean accidentally shadowing one version of a package with another, where they have the same name.
bitmapper has quit [Quit: Connection closed for inactivity]
<bbigras>
is a bit*
bdju has quit [Quit: restarting irssi]
bdju has joined #nixos
<pushqrdx>
simpson yeah trying to install the desktop using nix-env -if ./default.nix complains about package priority, because obviously it's clashing with my system install
<pushqrdx>
i still find the services.desktop-* stuff kinda voodoo tbh
<pushqrdx>
how can i add one more to these?
<pushqrdx>
or make it use my local one instead
<{^_^}>
[nixpkgs] @grahamc merged pull request #107443 → zchunk: 1.1.6-> 1.1.8 & Add darwin support → https://git.io/JL9dE
<immae>
Are there methods to ensure an increasing version number for git sources without tags? (for instance something that calls git describe behind the hoods)
pushqrdx has quit [Remote host closed the connection]
ghasshee has quit [Ping timeout: 260 seconds]
pushqrdx has joined #nixos
pushqrdx has quit [Client Quit]
xelxebar has quit [Ping timeout: 240 seconds]
luxemboye has quit [Ping timeout: 240 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
est31 has quit [Quit: No Ping reply in 180 seconds.]
carthia has quit [Ping timeout: 240 seconds]
jb55 has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
oida has quit [Ping timeout: 240 seconds]
est31 has joined #nixos
cantstanya has joined #nixos
nicoo has quit [Ping timeout: 240 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
carthia has joined #nixos
aveltras has joined #nixos
luxemboye has joined #nixos
gxt has joined #nixos
b1nch0[m] has joined #nixos
mconnolly has joined #nixos
kalbasit_ has joined #nixos
kalbasit has quit [Ping timeout: 256 seconds]
<aveltras>
Im trying to use node2nix to package a nestjs app but with no success. The build fails with the following error message :
<aveltras>
seems the problem arises from having some node dependency trying to install something, is there a way to access the log indicated from the error message ?
shibboleth has quit [Read error: Connection reset by peer]
srk has joined #nixos
xelxebar has joined #nixos
oida has joined #nixos
schweby has joined #nixos
pushqrdx has joined #nixos
WilliButz has quit [Remote host closed the connection]
jb55 has joined #nixos
madalu has joined #nixos
<pushqrdx>
i fucked up lol, i thought if i removed the desktopManager then i'd be able to install my local version of Pantheon using nix-env -if
<pushqrdx>
however that didn't quite cut it
<pushqrdx>
now i wonder how can i add it properly inside my configuration.nix
<pushqrdx>
so that i can use desktopManager.pantheon.enable = true, but use the one i have locally
schweby has quit [Client Quit]
WilliButz has joined #nixos
nicoo has joined #nixos
schweby has joined #nixos
pushqrdx has quit [Client Quit]
pushqrdx has joined #nixos
<colemickens>
I don't think that's going to work.
shibboleth has joined #nixos
<pushqrdx>
what should i do then
<colemickens>
You'd pretty much need to overlay just the pantheon packages, or the panethon module would've need to have been written to support swapping out the package.
<colemickens>
imo for a full desktop environment like that, I'd use the version from my nixos channel.
<pushqrdx>
i downloaded the whole Pantheon desktop derivation and updated all the packages in it
<pushqrdx>
so i want to the easiest most hackish way to shove it in and use it as a dekstopManager
_0x7c_ has joined #nixos
<colemickens>
The easiest, most hackiest way would be to overlay your stable channel's pantheon packages so they're replaced by the unstable channel. But that also sounds like it's asking for trouble.
<colemickens>
maybe it will go fine though :)
seku has joined #nixos
<pushqrdx>
oh i think you got something wrong, i am on nixos-unstable channel
<pushqrdx>
what i meant by stable vs my own is that the version inside nixos-unstable of pantheon vs my local one that is upgraded to the latest upstream rev
<_0x7c_>
Hi there, is this a support channel for NixOS?
<pushqrdx>
which is a big update all the packages are changed, and have new dependencies etc, (for elementary os 6.0)
<energizer>
_0x7c_: yes
<colemickens>
well, same thing
davidv7 has quit [Remote host closed the connection]
<colemickens>
can someone else chime in, when you import a module from a different channel, does it use the packages fro mthe other channel too?
<colemickens>
maybe pushqrdx could just disable the pantheon module from nixos-unstable, and then instead use the pantheon module and updated pantheon pacakge from their own fork?
<colemickens>
I'm not sure, someone else might need to chime in.
davidv7 has joined #nixos
<_0x7c_>
Alright, so I have a question about NixOS: I'm new to NixOS, but I'm wondering if there's a way to compile all the packages from source, including the base packages needed for an install? So a fresh install would be fully from source and future packages as well.
<pushqrdx>
colemickens i can't believe there's no way to specify or import default.nix of my local pantheon fork and make it use that, it has a lib.makeScope couldn't that be used in some way
<tpw_rules>
_0x7c_: one of the big points of nix is there's no need to do that
<energizer>
_0x7c_: all packages are from source (except binary blobs)
<colemickens>
pushqrdx: the pantheon module expects to load the pantheon package from its same nixpkgs.
<colemickens>
idk what to tell you, other modules have a way to let their package be overridden for this exact reason
dyazz has joined #nixos
<colemickens>
the other way of doing so is overlaying the packages like I keep hinting at ;)
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JL9Ng
<pushqrdx>
colemickens overlaying all of this will be so goddamn tedious, i just spent more than 5 hours upgrading them lol
<_0x7c_>
energizer All the packages are compiled from source on the client then?
<tpw_rules>
_0x7c_: you are (barring bugs) guaranteed to get the same result compiling a particular package as is in the downloaded archive. there's no point to compiling if there is a binary available
<colemickens>
pushqrdx: The other option is just rebuilding your system from your fork?
<colemickens>
pushqrdx: maybe I should've started there...
<pushqrdx>
colemickens my fork isn't a fork of the whole nixpkgs repo, it's just the Pantheon module
vsiddharth has joined #nixos
<energizer>
_0x7c_: it would be yes except there is a cache you can download from so you don't have to compile it on the client
<energizer>
_0x7c_: but the result is the same
<pushqrdx>
so what you're saying is that i fork nixpkgs, apply changes there and build from it?>
<colemickens>
pushqrdx: yeah, that's the workflow that is going to mirror what most nixpkgs contributors are doing, and what I do when I'm making large changes to nixpkgs, etc.
<_0x7c_>
tpw_rules energizer Got it, thanks for the info.
<colemickens>
pushqrdx: this kind of touches on the question I was throwing out earlier.
<{^_^}>
[nixpkgs] @hamburger1984 closed pull request #104684 → fetch-kde-qt.sh: support current layout of download.kde.org → https://git.io/Jki4D
<colemickens>
pushqrdx: it IS possible to pull in external nixos modules, so it might be possible to do what you're asking for, but _I_ don't have experience with it and don't want to tell you the wrong thing.
_0x7c_ has quit [Remote host closed the connection]
<colemickens>
pushqrdx: for what it's worth, some (many?) of us carry our own nixpkgs forks. I have enough changes on nixpkgs that are constantly WIP or under review that I have `cmpkgs` which is always 2-30 commits ahead of `nixos-unstable-small`.
codezero has quit [Quit: Ping timeout (120 seconds)]
codezero has joined #nixos
<pushqrdx>
yeah i wish someone can help with that, i just wanna plug in my local edited version of the Pantheon desktop and use it, firstly i was even greedy thinking i can somehow run it in parallel
<{^_^}>
[nixpkgs] @mdlayher opened pull request #107900 → nixos/corerad: use pkgs.formats.toml to generate TOML configuration → https://git.io/JL9NA
<pushqrdx>
where can i find the cached version of nixpkgs that my system uses, so i don't have to clone the whole thing all over again
<colemickens>
pushqrdx: not really, both modules are going to configure the exact same-named systemd units, define the same nixos module config options, etc.
<colemickens>
there's just no way with the current nixos module systems that they can live side-by-side in a single nixos configuration.
<colemickens>
however, you can have multiple nixos configs in a single generation and switch between them, but that's a separate topic ;)
<pushqrdx>
colemickens yeah this is what i found out, they simply clash during the build, and it makes sense as they aren't isolated from each other and end up building the same system
kalbasit has joined #nixos
<colemickens>
pushqrdx: if you're using flakes, flakes.lock will have recordded the nixpkgs rev you built with. Otherwise you might have a hard time. You can do `readlink -f /run/current-system` and see if there's a piece of git commit rev in the version suffix at the end.
_julian_ has joined #nixos
<pushqrdx>
what should be doable though is without fiddling with nixpkgs, just maybe import? ./default.nix of the local Pantheon folder i have
<colemickens>
what's that going to do though?
<colemickens>
If the default.nix is the default.nix that came from a nixos module, just importing it like that is just going to leave you with a nix expression.
<colemickens>
And I think you found out what happens if you try to add it to imports = [].
<colemickens>
Best case, you can try that AFTER disabling the built in one.
<pushqrdx>
ok let's take a step back, where does nix discover that desktopManager.pantheon is a thing?
<pushqrdx>
is just based on that it's located under the desktops folder?
<colemickens>
you can try disabling the builtin pantheon and then try to get it to load in your module.
<colemickens>
pushqrdx: Uh, basically it's listed explicitly in a modules-list.nix somewhere that gets pulled in during your system evaluation.
_julian_ has joined #nixos
<colemickens>
pushqrdx: during eval all nixos modules are loaded in so that their options are "available" in a sense. (ignore my handwaving over technical bits /terminology)
<pushqrdx>
can i override that modules-list? if so this might actually be where i can even plug in new stuff
<pushqrdx>
or new desktops
<colemickens>
yeah, look at that section of the manual, the postgres example is similar to what you're trying to do.
<pushqrdx>
ok i have to reboot into a working generation because i am in a broken tty now :D
grobi has quit [Ping timeout: 272 seconds]
<colemickens>
So the other thing is, when you put the NEW module into imports... it's still going to wind up getting the wrong "pkgs" fed into it.
<colemickens>
but then again, I don't actually know what your new little directory structure looks like. Maybe you directly reference your new derivations, so it's not a problem?
<colemickens>
Might help to advise more if I can see the dir that has the default.nix that you mentioned.
<pushqrdx>
ops, yeah this is pretty much what would happen since default.nix (from pantheon module) imports pkgs, so it will end up getting pkgs from the nixos-unstable channel inseaf of the local ones
<colemickens>
yeah...
codingkoi has joined #nixos
<pushqrdx>
colemickens it is exactly the same structure as the Pantheon module from nixpkgs under desktops
<pushqrdx>
just with updated dependencies and revisions
<pushqrdx>
to make them compile
<pushqrdx>
with a default.nix at the root that has a lib.makeScope pkgs.newScope (self: with self; { ...
evernite has joined #nixos
<colemickens>
idk what that stuff does tbh, never used it.
<pushqrdx>
and basically lists all the submodules it has with callPackage
kalbasit has quit [Ping timeout: 240 seconds]
kalbasit has joined #nixos
<pushqrdx>
yeah.. feels like too much voodoo for me too, but if i end up figuring it out it will light up so many dark corners for me
<colemickens>
okay, I got sucked in and need to run, but I think you got some useful bits, maybe... selfishly, I hope you end up just rebasing your changes on nixos-unstable and then rebuild from that, and then send all your changes upstream :) we shall turn you into a nixpkgs contributor yet.
<colemickens>
good luck pushqrdx sorry to leave you now
<pushqrdx>
colemickens nah, very glad for your time
pushqrdx has quit [Read error: Connection reset by peer]
h0m1 has quit [Quit: WeeChat 3.0]
_julian_ has left #nixos ["Leaving"]
h0m1 has joined #nixos
peelz has joined #nixos
andreas303 has joined #nixos
<vsiddharth>
Does anyone know how to enable pam authentication for swaylock from home-manager's sway
<vsiddharth>
Or is this something that needs to be done at a system level
<Ericson2314>
simpson: there's no silver bullet for trust, but content-addressed derivations give us the ability for caches to make narrow unchecked claims
sangoma has joined #nixos
<Ericson2314>
which makes auditing less expensive and error prone
<Ericson2314>
the benefits work with or without something like IPFS
<Ericson2314>
but certainly the conjunction is nice
hnOsmium0001 has joined #nixos
neiluj has joined #nixos
neiluj has joined #nixos
bn_work has joined #nixos
kalbasit_ has joined #nixos
<sephi[m]>
I’m currently writing a derivation for a website (not a static one, one with Python and webpack stuff), and I was thinking about how a website is different than a normal package in the sense that you could have multiple instances of a website installed (eg. to have a staging instance, prod, etc). For example I’d like to have a binary that would allow me to run "management commands" on my website (similar to invoking
<sephi[m]>
`./manage.py` if you know Django), but having only one command to do that would only work with a single instance of the website.
<sephi[m]>
I know I could use something like NixOS containers or Docker to have each website isolated, but I was wondering if there are already best practices or examples on how to solve this problem?
kalbasit has quit [Ping timeout: 240 seconds]
codingkoi has quit [Quit: WeeChat 2.9]
<tpw_rules>
could you not just run each website from its own nix-shell?
<tpw_rules>
or maybe call all your binaries "${pname}_manage" etc?
<simpson>
Ericson2314: I figured that trust would be somewhat orthogonal to content-addressing, yeah. My main concern is that IPFS has issues where third parties get included into the trust model and there's suddenly a real chance of Sybil supply-chain attacks which wasn't there before.
<Ericson2314>
simpson: I don't think so?
<Ericson2314>
all the data we get is content addressed
<Ericson2314>
and the root content address being out of band
<sephi[m]>
<tpw_rules "or maybe call all your binaries "> `pname` would be different when deploying two different websites, but let’s say I need two instances of the same website (& same version)
<peelz>
vsiddharth: I'm not sure what you mean by "enable PAM authentication". If you look at sway/lock.nix, you'll see that it gets compiled with `-Dpam=enabled`.
<energizer>
https://nixos.wiki/wiki/Yubikey allows using yubikey for sudo. but it automatically authorizes sudo when yubikey is present, it doesn't require touch. can i make it require touch?
<Ericson2314>
there isn't the "chain with max length" type stuff with blockchains that are more amendable to sibyl attacks
sangoma has quit [Quit: WeeChat 2.9]
neiluj has quit [Remote host closed the connection]
<tpw_rules>
sephi[m]: then wouldn't those be the same store path?
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
<tpw_rules>
sephi[m]: like it would be all the same binaries you just point them at a different config file. in which case you would have to point the manage command to the config file of the instance you want to modify
<sephi[m]>
tpw_rules: yes, they would (but not always, if for example the "staging" instance is a new version of the website). The only difference, I guess, would be different environment variables.
<vsiddharth>
peelz: I had this problem that whenever I lock my computer I couldn't open it, even with the right password. I searched it up and it had something to do with PAM as swaylock couldn't access unix_chkpwd
<vsiddharth>
It might just be that I'm installing sway through home-manager
<simpson>
Ericson2314: DoS is a concern for decentralized networks, since the responsibility to maintain data availability is diffused. IPFS compounds this by making it possible for a region to locally deny service, e.g. for an unfree source package to be removed from nodes by legal threats.
<simpson>
100% agreed with you that integrity isn't a problem.
<Ericson2314>
Yeah for DoS I say treat IPFS as more of a CDN that's just that to make the happy path happier
belt has joined #nixos
<Ericson2314>
for the sad path, well at least you can pay multiple independent pinning services and they are interoperable
<Ericson2314>
clients can get around issues with the routing table by manually connecting to a node with a well known "real world" address
<Ericson2314>
that sad path is hardly seamless mirroring, but the interoperability is still nice
nikivi has quit [Read error: Connection reset by peer]
dstzd has quit [Read error: Connection reset by peer]
Nikita has joined #nixos
dstzd_ has joined #nixos
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107907 → ocamlPackages.dns*: add missing related packages → https://git.io/JL9h7
Nikita is now known as Guest48324
Guest48324 is now known as nikivi
dstzd_ is now known as dstzd
neiluj has quit [Ping timeout: 264 seconds]
neiluj has joined #nixos
<dyazz>
Hmm, does it work better if you disable opengl ?
<peelz>
KarlJoad: looks like you're hardcoding an impure path to the nvidia driver on line 71. Even if that's not the problem right now, it will eventually break when the nvidia driver derivation changes.
<KarlJoad>
peelz: I know that. I was testing a theory I had, which was wrong. I will eventually remove it.
<aveltras>
can anyone point me to examples of nodejs packages packages as nixos modules i could get inspiration from ?
robmyers has quit [Ping timeout: 260 seconds]
acertain has quit [Ping timeout: 246 seconds]
lvrp16 has quit [Ping timeout: 260 seconds]
gluegadget has quit [Ping timeout: 264 seconds]
scoates has quit [Read error: Connection reset by peer]
dmj` has quit [Ping timeout: 272 seconds]
hamishmack has quit [Ping timeout: 246 seconds]
steveeJ has quit [Ping timeout: 258 seconds]
<KarlJoad>
dyazz: That didn't change anything. The xserver.conf file wasn't rewritten either.
davidtwco has quit [Read error: Connection reset by peer]
davidtwco_ has joined #nixos
SanchayanMaity has quit [Ping timeout: 272 seconds]
gluegadget has joined #nixos
scoates has joined #nixos
steveeJ has joined #nixos
<dyazz>
Sorry, i'm out of ideas
acertain has joined #nixos
hamishmack has joined #nixos
raboof has quit [Ping timeout: 260 seconds]
<peelz>
KarlJoad: did you check how the xorg config gets generated in nixos/modules/services/x11/xserver.nix? It looks like you might be missing ModulePath directives at the top.
robmyers has joined #nixos
h0m1 has quit [Quit: WeeChat 3.0]
dmj` has joined #nixos
<KarlJoad>
peelz: In the generated xserver.conf file that is used, there are a bunch of FontPath and ModulePath directives listed, which *includes* the X/nvidia nvidia_drv.so path.
h0m1 has joined #nixos
raboof has joined #nixos
SanchayanMaity has joined #nixos
<KarlJoad>
peelz: I was testing a theory that perhaps the wrong path was being specified, which is why I hardcoded that impure path.
<peelz>
KarlJoad: yeah I get that, but it looks like you're missing a bunch of other ModulePath directives. This is how the generated config looks like on my machine: https://0x0.st/-rLZ.txt
<peelz>
can you try w/o overriding `services.xserver.config`?
mconnolly has quit [Quit: WeeChat 2.9]
<KarlJoad>
peelz: Those paths *are* present in my xserver.conf file already.
<KarlJoad>
Yes. I just opened the xserver.conf file that X tried to load, and those are present at the top. The exact same ordering as yours (different hashes though).
<peelz>
Ah gotcha. I was under the impression services.xserver.config would override the entire thing.
<peelz>
KarlJoad: hmm the only thing I can see is maybe Xorg doesn't like having two "Files" sections?
<peelz>
I'm guessing you've already tried without your files section
h0m1 has quit [Quit: WeeChat 3.0]
donofrio has quit [Ping timeout: 264 seconds]
<peelz>
If you delete your "Files" section, does the error change?
michiel__ has joined #nixos
h0m1 has joined #nixos
<bqv>
anyone around that would know, is it possible to hide a value from a scope in nix?
<KarlJoad>
peelz: I did try without the "Files" section at first, but not without nouveau. I'll try that real quick.
grobi has quit [Read error: Connection reset by peer]
<KarlJoad>
peelz: That seems to have done something. TTY7 is now a different screen, and the X logs indicate everything is working. I need to do a full reboot to find out.
<peelz>
nice!
grobi has joined #nixos
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<peelz>
fingers crossed
neiluj has quit [Ping timeout: 264 seconds]
<peelz>
bqv: wdym?
<bqv>
reverse of with/let
<peelz>
oof don't think that's possible unfortunately
<bqv>
thought not but wanted to be sure
KarlJoad has joined #nixos
<{^_^}>
[nixpkgs] @fabaff opened pull request #107912 → aiodnsbrute: init at 0.3.2 → https://git.io/JLHeC
<peelz>
it kinda annoys me that the xserver.nix generates a "Device" section for each driver. What about multiple GPUs using the same driver? >_>
<peelz>
also it doesn't let you specify directives on a per-device basis. It's either the extra directives end up on all "Device" sections or none.
<KarlJoad>
peelz: That was my issue too, so I have to force my config the way I have.
<peelz>
yeah... xserver.nix could use some work :P
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107914 → ocamlPackages.mirage: fix build by adding missing deps → https://git.io/JLHeE
<KarlJoad>
peelz: So, there was progress. I get through everything just fine, until the very last part of the graphical phase.
<KarlJoad>
After Name Service Cache Daemon loads, I get nothing after that. The cursor just sits right after that.
neiluj has joined #nixos
lordcirth__ has quit [Ping timeout: 260 seconds]
<peelz>
KarlJoad: doesn't look like you have a valid xsession. Have you enabled a DE?
leo60228 has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<KarlJoad>
peelz: Yes. services.xserver.desktopManager.plasma5.enable = true is in a separate file.
<KarlJoad>
I also have the lightdm display manager enabled.
pushqrdx has joined #nixos
<peelz>
KarlJoad: what do you see if you run `nix repl '<nixpkgs/nixos>'` and type `:p config.services.xserver.displayManager.session` ?
halfbit has quit [Ping timeout: 265 seconds]
meh` has joined #nixos
lordcirth has joined #nixos
o1lo01ol1o has joined #nixos
<KarlJoad>
peelz: A very long list of attribute sets. `[ { manager = "window"; name = "none"; start = "" } ... ]`
<worldofpeace>
pushqrdx: I'm currently running an unstable gala and have been tracking the changes closely.
<worldofpeace>
there's a bit of new software to be packaged for Pantheon, also. They changed a lot so I'll have to audit it very closely since there's very subtle things that could be broken
shibboleth has quit [Quit: shibboleth]
<ronny>
hi, anyone aware of a howto for writing tests for nixos modules i want to step up my game for my multi machine nix specs
<peelz>
KarlJoad: can you upload the result of the command somewhere?
<bbigras>
Ronny: there's examples in nixos/tests if you didn't see them already
<sss2>
hi all, services.xserver.displayManager.sddm.settings not in documentation on search.nixos.org yet ....
<pushqrdx>
worldofpeace i have been trying really hard for the past day to port the pantheon module to the latest upstream, i got all packages to build using nix-build, (minus few hiccups with elementary files package) but i am having some real trouble installing it
<peelz>
KarlJoad: each entry in that list corresponds to an xsession .desktop file that LightDM uses to enumerate potential DEs/WMs. You should see one for plasma5
grobi has quit [Quit: WeeChat 2.9]
neiluj has quit [Quit: leaving]
<pushqrdx>
worldofpeace what do you do in order to port the newest stuff without breaking your existing desktop?, i just now failed after attempting a hack to shove in my local pantheon module after disabling the main one but it didn't work (it installed but most of the packages bleeded from the original ones)
o1lo01ol1o has quit [Remote host closed the connection]
<KarlJoad>
peelz: I have no easy way to upload this computer's version of config.services.xserver.desktopManager.session, unless you know a way to write the output of a `nix repl` to a file/stdout.
<bbigras>
Ronny: oh nice. I never ran tests with X.
<immae>
Hey! I’m trying to build a collection of flakes, but it seems like there is no way to have a single repository with a bunch of flakes (with inter-dependencies), in the sense that I cannot target a subdirectory of a git repository in the "inputs". That would mean that I need to provide a single git repository for each of my flakes? Did I miss something in the documentations?
orivej has quit [Ping timeout: 258 seconds]
<worldofpeace>
pushqrdx: building a vm
<worldofpeace>
pushqrdx: you actually can start nixos test interactively
<worldofpeace>
pushqrdx: nix-build nixos/tests/pantheon.nix -A driver
<worldofpeace>
pushqrdx: ./result/bin/run-nixos-vm -- the password for the alice user is foobar
<KarlJoad>
peelz: That's actually a super cool way to do these code uploads, especially when I don't have graphical going.
<peelz>
KarlJoad: when you get to the part where your cursor shows up, can you switch to a TTY and check what processes are running under your user?
<pushqrdx>
worldofpeace hmm where is nixos/tests? or did you mean that as an example to where my local version of the Pantheon module is located?
<peelz>
KarlJoad: and yeah it is. I love 0x0.st :D
<peelz>
KarlJoad: looks like LightDM isn't dropping you into the intended xsession
<worldofpeace>
pushqrdx: Thank you for porting to the newest, but I would mention that doing this when there's an active maintainer isn't best courtesy. For example, and thanks for asking in that case, you could've duplicated their work (and in a minor way you have). A good idea would be to then open an issue with a link to your branch on GitHub, and I will try to integrate that into my work and open a PR. That way people can see the
<worldofpeace>
issue and not do the same thing. We do similarly with GNOME. -- nixos/tests is within the nixpkgs tree.
<KarlJoad>
peelz: Agreed. lightdm isn't even showing up with I do `ps aux`
<peelz>
KarlJoad: have you restarted?
<KarlJoad>
peelz: After the nvidia switch? Yes. But, I can restart again. Give me a second.
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<pushqrdx>
worldofpeace i never was going to port and submit this without asking you, so i am really sorry if it felt like i am over stepping
<pushqrdx>
worldofpeace i am just doing this because i want to try the latest changes
<worldofpeace>
pushqrdx: Ah no, I just thought I should mention this. Actually, I'm on vacation so this actually is for everyone's benefit 😸 Thanks, this would save all of us a lot of time, truly
KarlJoad has joined #nixos
<{^_^}>
[nixpkgs] @MetaDark opened pull request #107918 → gcc10: use gcc 9 patch of mcfgthread.patch to fix MinGW build → https://git.io/JLHJe
<KarlJoad>
peelz: I did get a small flash for a second, but then back to the journalctl print-out again.
<worldofpeace>
I'm not sure all the latest changes will work smoothly if they've integrated using their own settings-daemon
<peelz>
KarlJoad: flash? journalctl print-out?
<pushqrdx>
worldofpeace this is why i am eager to test out whether it even works
<pushqrdx>
worldofpeace still though i am having trouble replacing the original one with my local copy :D
<KarlJoad>
peelz: Yes. There was a small gray flash, as if lightdm were about to start, then it didn't. It then jumped back to the list of starting services, stopping at "Starting Name Service Cache Daemon".
<peelz>
KarlJoad: have you enabled a greeter?
<worldofpeace>
pushqrdx: it doesn't seem odin is tagged to have the settings-daemon
<peelz>
KarlJoad: I think lightdm.greeters.gtk should be enabled by default though... so I'm not sure
Thra11 has joined #nixos
<worldofpeace>
pushqrdx: so you mean you've copy pasted the module into your own configuration, or did you operate on like a nixpkgs checkout?
<pushqrdx>
worldofpeace yeah i think the port will be smooth at least for odin
<pushqrdx>
worldofpeace no i don't have a nixpkgs checkout, i just have a copy of the module locally that i upgraded (didn't wanna checkout the whoe nixpkgs)
<KarlJoad>
peelz: Yeah, that one's `.enable` option defaults to true (I just checked the manual).
<pushqrdx>
and can build by using nix-build ./default.nix and install using nix-env -if ./default.nix
<worldofpeace>
pushqrdx: oh, I see you linked nixpkgs pkgs/desktop/pantheon. that's the pkgs tree. So I'd think you'd have to use an overlay to replace the packages in nixpkgs with your one's
<pushqrdx>
worldofpeace yeah exactly, i keep trying to find a shorter way though, i want to somehow have copy x11/desktop-managers/pantheon.nix and shove it in and make my configuration.nix services.desktopmanagers use that that in turn uses my local version instead
<pushqrdx>
i tried to do this btw, and i painfully changed all the packages to callPackage but it ended up flopping :LD
<worldofpeace>
pushqrdx: yeah, using an overlay will simply one to one replace the attributes with your versions, meaning you can just use the module in nixpkgs
<peelz>
KarlJoad: can you check what `systemctl status display-manager` says?
<pushqrdx>
worldofpeace welp, can i trouble you for an example then :D
__monty__ has quit [Quit: leaving]
<KarlJoad>
peelz: It says "Failed to start X11 server". Checking /var/log/X.0.log, I see nothing out of the ordinary. I'll send a link for that in a sec.
<worldofpeace>
so if that file is in a directory that is the same structure as what's in nixpkgs, since you copied that, I'd remove the `default.nix` in that directory and replace it with this. And then you need to load the overlay into your configuration
<peelz>
KarlJoad: I feel like Xorg is failing to run much earlier on
<KarlJoad>
peelz: Probably. I'll try to find the correct log file.
<peelz>
I don't think it's creating a log file though
<pushqrdx>
worldofpeace never fiddle with that before, was it nixpkgs.overlays = [ "path/to/the-one.nix" ]; ?
<pushqrdx>
or just add this in imports?
<pushqrdx>
i mean fiddled with system overlays
<worldofpeace>
like this `nixpkgs.overlays = [ (import ./overlays/pantheon) ];`
<peelz>
KarlJoad: check what xserver-command and session-wrapper are set to in /etc/lightdm.conf ?
fendor_ has quit [Remote host closed the connection]
<worldofpeace>
not going speak on how I can't find a helpful section on this in the nixos manual... (and the nixpkgs manual is a purely technical reference)
erasmas has quit [Quit: leaving]
lordcirth has quit [Remote host closed the connection]
<peelz>
KarlJoad: see if you can execute the xserver-command manually (or if any errors show up)
lordcirth has joined #nixos
<pushqrdx>
why is it complaining about gnome3 missing lol
<peelz>
KarlJoad: I think the wrapper script expects some args from lightdm though. Perhaps `/path/to/xserver-wrapper :0` or something like that?
<peelz>
KarlJoad: those errors should show up in journalctl though
<{^_^}>
[nixpkgs] @fabaff opened pull request #107921 → evillimiter: init at 1.5.0 → https://git.io/JLHU6
<KarlJoad>
peelz: So, running the command given for xserver-command `sudo /nix/store/hash-xserver-wrapper` did something.
justanotheruser has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107922 → ocamlPackages.tcpip: init at 6.0.0 (plus init required dependencies. → https://git.io/JLHUM
<KarlJoad>
peelz: It's running under root, yes. `-logfile /var/log/X.0.log` (so what I sent you was correct).
<KarlJoad>
peelz: I get further now. Both monitors light up, but nothing beyond that.
Acou_Bas- has joined #nixos
<peelz>
KarlJoad: what you sent me was an older log file (unless your system clock is desynced)
Acou_Bass has quit [Ping timeout: 258 seconds]
<peelz>
KarlJoad: what if you run `DISPLAY=:0 xterm`? (replace xterm with whatever graphical program)
<pushqrdx>
worldofpeace i don't know why i am really struggling with passing gnome3 into that overlay :D
h0m1 has quit [Quit: WeeChat 3.0]
h0m1 has joined #nixos
<KarlJoad>
peelz: Even after starting the server manually using xserver-command, that log file's date remains the same. There was another `-logfile /dev/null` in the wrapped command.
<worldofpeace>
pushqrdx: you mean pantheon probably. I didn't test it so I don't know if it works exactly, but I'm pretty certain that is the way to do it. If you have any issues feel free to gist it or something
<KarlJoad>
peelz: I tried the `DISPLAY` thing, and it segfaulted, and made the X server go down.
<peelz>
KarlJoad: interesting. what program?
<pushqrdx>
worldofpeace no not pantheon, i mean gnome3 there're multiple inherit (gnome3) in the-one.nix
<pushqrdx>
but apparently it can't find gnome3
<worldofpeace>
that's because the overlay doesn't have the arg gnome3
<KarlJoad>
peelz: xterm.
<worldofpeace>
you should replace those with prev.gnome3, and actually that should go to anything that uses the previous package set
<peelz>
KarlJoad: how are you running the xserver wrapper?
<peelz>
Try passing it :0 as an arg
<worldofpeace>
but not callPackage, I already replaced that in the example as `final`
<peelz>
KarlJoad: yeah that's what I just saw in the wrapper script... uhh kill the old X instance, delete /var/log/X.0.log then try again?
<worldofpeace>
hmm, it seems my example has the new syntax that's enforced in unstable nix. pushqrdx self: super: can actually be called anything, they're just the arguments the function takes
fuzzypixelz has joined #nixos
<worldofpeace>
so it shouldn't be an issue, an final prev makes more sense anyways
<pushqrdx>
worldofpeace yeah i did try prev.gnome3 but i forgot to replace one of them lol :D
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JLHTR
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #107924 → Fix duti on macOS Big Sur → https://git.io/JLHT0
<pushqrdx>
worldofpeace did you face that chicken or the egg problem with wingpanel before, it seems like they are requiring wingpanel-2.0 in meson.build files
<pushqrdx>
and even though i am passing in wingpanel which is > 2.0 meson now complains again (even though i fixed it and it builds with nix-build)
<peelz>
KarlJoad: see if the logfile gets created again
<fuzzypixelz>
hello, today I enabled KDE/disabled GNOME, then I tried to login but sddm froze right after I typed my password, then I tried another user, this time to find out that the only interface the network setting of plasma recognize is lo, even though my wifi and ethernet are perfectly visible in `ip link`
bohan[m] is now known as Toilette[m]
maddo has quit [Read error: Connection reset by peer]
philr_ has joined #nixos
<KarlJoad>
peelz: Moved the old log file (one gets created with the same name as before), removed the tmp lockfile, `kill`ed the X instance. Ran the xserver-command with :0 arg, and I get the same results. Want the logfile?
<worldofpeace>
pushqrdx: hmm, could you show me an example? I know there's a circular dependency that I've resolved with wingpanel-with-indicators
Dr8128 has quit [Ping timeout: 264 seconds]
<peelz>
KarlJoad: what does `DISPLAY=:0 xrandr -q` say?
<{^_^}>
[mobile-nixos] @samueldr merged pull request #262 → stage-0: Add ability to boot in generation kernel+initrd → https://git.io/JLyOF
<{^_^}>
[mobile-nixos] @samueldr pushed 37 commits to master: https://git.io/JLHTS
<KarlJoad>
peelz: "RandR extension missing"
fuzzypixelz has quit [Remote host closed the connection]
<peelz>
wtf
<pushqrdx>
worldofpeace yeah i think in my attempt to quickly get nix-build to succeed i fucked up the fix you had for instance this is the wingpanel-indicator-bluetooh derivation http://ix.io/2KfR and this is the error that nixos-rebuild is throwing now http://ix.io/2KfS
<KarlJoad>
peelz: So, that gets me to a graphical session, and I can log in using lightdm. However, now I can't use my second monitor plugged into the other GPU.
<pushqrdx>
worldofpeace this is the content of wingpanel-3.0.pc http://ix.io/2KfZ
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JLHkI
Acou_Bass has joined #nixos
<peelz>
KarlJoad: can you upload /nix/store/gzzax614nkp5vn8xviy74lkmbfqchd2m-xserver.conf ?
<worldofpeace>
pushqrdx: yeah, since there's no wingpanel-2.0.pc it doesn't work
<worldofpeace>
I don't get why they haven't bumped this...
<pushqrdx>
worldofpeace i just checked their wingpanel master is at v3.0 while most of their master branch packages are requiring -2.0 so how are they even working with this
<KarlJoad>
peelz: I can, but that has the mkForce config added.
<peelz>
KarlJoad: yup, I just wanna compare your non-working X config with mine
veleiro` has quit [Ping timeout: 272 seconds]
<pushqrdx>
i remember now how i hacked around this to successfully build with nix-build, i replaced wingpanel with pantheon.wingpanel which used 2.0 from nixpkgs, but now it doesn't work because it's using wingpanel from master
<KarlJoad>
peelz: Just so you know, I have 2 GPUs and 2 monitors that I want to behave as a single desktop.
<worldofpeace>
pushqrdx: Yeah, I'm not sure either. Even in normal linux land it wouldn't work. The only explanation is that they don't use wingpanel-3.0
justanotheruser has joined #nixos
<peelz>
KarlJoad: yeah I gathered... unfortunately there doesn't seem to be any way to do that without forcing a config (which is what you're doing)
<pushqrdx>
worldofpeace a quick search over the whole elementary organization there's no wingpanel-3.0 anywhere in there
<pushqrdx>
worldofpeace i guess i will just downgrade to an older version before that 3.0 stuff
<pushqrdx>
worldofpeace nvm that, it's not the same with other indicators, they are using 2.0 which is super weird, as wingpanel has migrated from that i think 6mo ago
<worldofpeace>
pushqrdx: I don't think that makes it accept wingpanel-3.0, though. If it were dependency("wingpanel", >= 2.0.0) then I think it would
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pushqrdx>
worldofpeace yeah i was wrong about that, 3.0 is their on master wingpanel for a while, and for some reason everywhere else they are using 2.0
<peelz>
KarlJoad: I'm not quite sure how to combine multiple devices into the same screen. Could you try using this as your `xserver.config`: https://0x0.st/-r9m.txt ?
pushqrdx has quit [Remote host closed the connection]
<KarlJoad>
peelz: I just used what nvidia-settings generated, rather than writing it myself.
lord| has joined #nixos
pushqrdx has joined #nixos
<peelz>
KarlJoad: right... although I suspect something in there is not playing nice. Last time (many many years ago) I tried using a generated X config, I had similar issues. Not sure why.
<KarlJoad>
I just regenerated and restarted display-manager.service with your config, and nothing changed. Let me reboot real quick.
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<pushqrdx>
worldofpeace well at the very least i booted, gala is working, wingpanel and indicators are working, most apps are working and picking up the theme, but some of them have broken themes, like music/video apps
<pushqrdx>
time to start debugging this crap
<pushqrdx>
all switchboard plugins are working except the desktop one
KarlJoad has joined #nixos
<KarlJoad>
peelz: Just rebooted, and no monitor changes happened.
<peelz>
KarlJoad: do you see lightdm though?
<peelz>
on your GTX1080
<KarlJoad>
I see lightdm, and was able to log in. However, _everything_ is running off of the GTX1080.
<KarlJoad>
The monitor connected to the GTX 980Ti is still off.
<peelz>
Right. That's exactly what is specified in the config I sent you.
<peelz>
At least you have a working base config now :P
<KarlJoad>
Now I just need to figure out how to do the multiple monitors.
<energizer>
lovesegfault: how much ram does your root tmpfs take up?
<peelz>
KarlJoad: I had to fight with mine just to get two monitors to work on the same GPU: https://0x0.st/-r9e.txt
<worldofpeace>
pushqrdx: that one needs the settings-daemon I think
<worldofpeace>
I have tha packaged locally etc.
<KarlJoad>
peelz: Strange, because I didn't have to do anything for 2 monitors to work on the same GPU.
<worldofpeace>
pushqrdx: do you mean music/videos don't have the theme?
<pushqrdx>
worldofpeace yeah it's throwing GLib-GIO-ERROR **: 01:48:42.761: Settings schema 'io.elementary.settings-daemon.prefers-color-scheme' is not installed
<peelz>
KarlJoad: well I was trying to get both monitors to run at 120hz with the left monitor in portrait mode
astylian has joined #nixos
donofrio has joined #nixos
<peelz>
KarlJoad: turns out the secret sauce is in the "metamodes" option
<pushqrdx>
worldofpeace just video appears to be running in light mode even though i have settings.ini prefer dark theme
<KarlJoad>
peelz: Ahh.. that'd do it.
<pushqrdx>
worldofpeace but no it's picking the theme correctly i think as it has the rounded corners
<pushqrdx>
worldofpeace but yeah everything appears to be working correctly to my surprise, except that settings-daemon schema error for the desktop switchboard plugin
KarlJoad has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 260 seconds]
<astylian>
hi, I want to install docker, but I don't want to have it always enabled. Following this guide https://nixos.wiki/wiki/Docker I don't see how to do it. Any ideas?
<bbigras>
astylian: you can use the thing to start it on demand