<Rusty1>
bqv weeding email in mutt in another window and the mouse curser drifted over here - clumsy happens
<bqv>
heh, mouse follows focus
ixxie has quit [Ping timeout: 258 seconds]
<cole-h>
jtojnar / worldofpeace: Do either of you know why the gnome3 "Open Gnome Terminal" test is so flaky? It feels like every time nixos-unstable fails to advance is because it fails the "Open Gnome Terminal" test, yet it doesn't fail locally on my machine. (c.f. https://hydra.nixos.org/build/123609119)
red[evilred] has joined #nixos
<red[evilred]>
I confess - I really miss NixOS Office Hours :-/
<bqv>
this channel is likely more efficient
<bqv>
most questions asked here will be answered
marusich has joined #nixos
<red[evilred]>
The reason I miss it is because I se random things in the presenter's workflow that's gem-like
<KarlJoad>
On the NixOS wiki, it says that Raspberry Pi 3/3B+ need to have /extlinux/extlinux.conf and some GPIO pins set. Is that really needed, if you don't play on using the UART outputs?
<Guest18299>
hi dears. any chance somebody can help me with graphics and sound on my t495? I am getting really bummed after a few days of no luck. videos play v slow with no sound.
emilsp has joined #nixos
seanparsons has joined #nixos
Guest18299 has quit [Remote host closed the connection]
user_0x58 has quit [Ping timeout: 244 seconds]
nixbitcoin has quit [Ping timeout: 240 seconds]
knerten2 has joined #nixos
nixbitcoin_ has joined #nixos
<matias_>
Guest18299: i have an X1 carbon and t450s and had some problems in nixos-unstable
<matias_>
what I did to improve it is use intel video drivers and uxa acceleration method
<pjt_tmp>
On my HDD machine it does make a notable diff since my cpu io is waaaaaaayy higher than my disk io. It should still make a notable difference with an ssd.
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « libsForQt5.qwt: 6.1.4 -> 6.1.5 »: https://git.io/JJLpT
alexherbo2 has joined #nixos
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
<bahamas>
I have a service that needs a file from a package to be available in its runtime directory (directory where it writes stuff). how can I handle this?
<srhb>
bahamas: Symlink in a prestart script?
michiel__ has joined #nixos
cfricke has joined #nixos
user_0x58 has joined #nixos
michiel_ has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 260 seconds]
<bahamas>
srhb: I'll try that. speaking of, do you know what's the difference between services.<name>.preStart and serviceConfig.ExecStartPre?
<zanc>
can anyone explain the `lib.fix` function ? `let fix = f: let x = f x; in x; f = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; }; in fix f`
<zanc>
what I don't understand is the `x` variable inside `fix` function, what does `x` contain?
sangoma has joined #nixos
<bahamas>
srhb: that worked. thank you. however, for some reason, tmpfiles doesn't change the ownership of /var/lib/my-dir to my user. I tried journalct -u systemd-tmpfiles-setup but didn't see any relevant output. do you have any idea where I can see the output I need?
lord| has quit [Read error: Connection reset by peer]
sangoma has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
<mariatsji>
Hello nixers, using osx I am building a docker image using pkgs.dockerTools.buildLayeredImage and putting 'hello' inside it, but it seems to put a osx binary inside the docker image, because running it states "exec format error" - any idea how to correctly do this?
<clever>
mariatsji: you need to `import <nixpkgs> { system = "x86-64-linux"; }` and get hello from that
<clever>
maybe get the dockerTools from it too
numkem has quit [Ping timeout: 240 seconds]
<mariatsji>
ty!
numkem has joined #nixos
alp has joined #nixos
<pjt_tmp>
anyone here have access to the aarch server? I'm trying to build something for raspi that requires rustc and I can't tell if it's ever going to finish.
<pjt_tmp>
I just need to build it once so I can throw it up on cachix or something
<pjt_tmp>
also I *may have found a bug: trying to compile with a single core machine yields absolutely no progress even after hours
<hexo>
launing ipython3 gives me ModuleNotFoundError: No module named 'pyqtgraph'
<hexo>
launching python3 imports normally
<hexo>
w h y?
<hexo>
why this inconsisence
fendor has joined #nixos
<hexo>
its getting very hellish
<pjt_tmp>
yet my slightly less powerfull multicore machine makes *some* degree of progress
smatting has joined #nixos
<hexo>
collision between `/nix/store/850l0ycgj894vkq3p9qr87dxswf2my0c-python3.7-sip-4.19.18/lib/python3.7/site-packages/sipconfig.py' and `/nix/store/1r1pss3j5561jpgv42w0ihnjk4z2dzba-python3.7-PyQt5.sip-4.19.18/lib/python3.7/site-packages/sipconfig.py'
<clever>
hexo: further down, it should tell you what derivation failed to build
orivej has joined #nixos
<hexo>
builder for '/nix/store/n4g06d8fmvpigddx970waiaqm2rifsj5-python3-3.7.5-env.drv' failed with exit code 25
<hexo>
error: build of '/nix/store/ngx5psvdn9fwh53yx7x3mnjnwjdnzw9f-nixos-system-prickachu-19.09.2520.289466dd6a1.drv' failed
<hexo>
cannot build derivation '/nix/store/ngx5psvdn9fwh53yx7x3mnjnwjdnzw9f-nixos-system-prickachu-19.09.2520.289466dd6a1.drv': 1 dependencies couldn't be built
<hexo>
cannot build derivation '/nix/store/sjvxip0vhz4b12079k4n0i27750fx1wd-system-path.drv': 1 dependencies couldn't be built
<hexo>
that python is exactly what i neet
<hexo>
need
<hexo>
i need to use pyqt5 and pyqtgraph
<hexo>
from both, python3 and ipython3
<hexo>
at the same time
<hexo>
i'm doing devel and i'm sharing code between windows, nix, and debian
<clever>
hexo: builder for '/nix/store/n4g06d8fmvpigddx970waiaqm2rifsj5-python3-3.7.5-env.drv'` this line here
asymptotically has joined #nixos
<clever>
`python3-3.7.5-env` is likely the result of calling pkgs.buildEnv, and you gave it 2 conflicting versions of sip
<hexo>
let me comment out one forgotten leftover
<colemickens>
bqv: I'm actually close to having a nixpkgs-mozilla flake thing going
<hexo>
ok, i give up
<colemickens>
I keep butting heads with needing "current system pkgs" in places. Do I reach for builtins.currentSystem? is that even available?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<colemickens>
and maybe fix it so that it does the same process for hte all of the firefox-overlay attrs.
<colemickens>
I'd definitely love any feedbakc.
user_0x58 has quit [Quit: Leaving]
<bqv>
Hmm
<bqv>
I feel like currentSystem has a gotcha somewhere
<bqv>
Can't remember where
<bqv>
I thought it was that it doesn't work in pure mode
<colemickens>
it doesn't work with --pure, but it doesn't need to since the only places its used are fundamentally unsafe.
<colemickens>
(I just pushed a commit with some comments that clarify this)
<bqv>
Oh, ok
<bqv>
Fair enough
<colemickens>
See update.sh
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<bqv>
404..?!
<colemickens>
yeah, it's been bouncing in and out really oddly
<hexo>
energizer: epic, thanks!
<hexo>
ill try
alp has quit [Remote host closed the connection]
alp_ has joined #nixos
<bqv>
colemickens: can I suggest latest.json instead of .nix, and filtered through jq to prettify?
lhurttila has joined #nixos
<colemickens>
I'd be happier to split the difference and do formatted nix if thats possible.
<bqv>
Nixfmt would do that
<bqv>
I think json is nicer though
<bqv>
Makes it clear it's generated, and follows precedent
<bqv>
Also, it is actually technically json
<colemickens>
wat
<bqv>
That's what --json does :p
<hexo>
energizer: how shold i use it please?
<bqv>
Oh, you didn't use --json, nevermind
<bqv>
I feel like you should have, but I dunno why…
<pjt_tmp>
makes it clearer at least
alp_ is now known as alp
<bqv>
Yeah
mananamenos has joined #nixos
<colemickens>
so I have to --json, add jq, then convert back from jq... I dunno. I'm not convinced.
<colemickens>
> nixpkgs-fmt latest.nix
<colemickens>
0 / 1 have been reformatted
<{^_^}>
attempt to call something which is not a function but a set, at (string):318:1
<colemickens>
well, at this rate... lol maybe jq is easier
<colemickens>
that's... not helpful output
<bqv>
nix has builtins.fromJSON, and `--json | jq` is pretty simple
<bqv>
fiddling raw nix sounds like a hairier time any way you slice it
<colemickens>
How is piping nix to a file and directly importing it more fiddling than that? Like, it's a trivial difference nad I'm half tempted to implement both and have it switch based on the day of week or something, lol
<colemickens>
but my dumb... self can't figure out how to run nixpkgs-fmt so what do I know, 🙃
ixxie has joined #nixos
* colemickens
hopes this is coming across as tired/goofy and not hostile or anything.
<bqv>
Its stable vs unstable, without --json I'm not even sure that output format is standardised, nor whether its consistent
<bqv>
And fundamentally you're dealing with data, not nix, at that point. it seems cleaner to me, and its what emacs-overlay, nur, etc, do
<noeleon>
Neo4j is running but when I try to create a dump via neo4j-admin dump --database=graph.db it's telling me that no such database exists
<noeleon>
I saw that NEO4J_HOME isn't set for my user
<noeleon>
So I set that but then I run into
<noeleon>
neo4j-adminWARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4jmanual.Error: Could not find or load main class org.neo4j.commandline.admin.AdminTool
<colemickens>
when I nixFlakes eval my system config I get this bizarre error.. error: --- TypeError ----------------------------------------------------------------------------------------------------------------------- nix
<colemickens>
anonymous function at /nix/store/zrcdlwv0vyv5da90lb6kxr2xwrn8gawz-source/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash'
<colemickens>
in file: /nix/store/zrcdlwv0vyv5da90lb6kxr2xwrn8gawz-source/pkgs/development/interpreters/python/fetchpypi.nix (26:6)
work_ has joined #nixos
<typetetris>
When I am inside a `nix-shell` that should not influence a `nix-build` at all, shouldn't it?
noeleon has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
<clever>
typetetris: the value of lib.inNixShell changes when your in nix-shell, even if its in an expr being evaled by nix-build
<FRidh>
colemickens: which nixpkgs revision is that? Bootstrapping packages are not supposed to use fetchpypi
<clever>
typetetris: some poorly made scripts will use that to change how they behave, causing surprises
<colemickens>
FRidh: It's from nixos-unstable with a few of my own hopefully unrelated commits
<colemickens>
this same derivation builds just fine though? I am wondering if it's a flakes bug
<colemickens>
(I can nix-instantiate the same derivation too)
da_dada has quit [Quit: WeeChat 2.7.1]
<FRidh>
this is during bootstrapping which are like overlays. So maybe flakes evaluates something a bit more eagerly
dadada_ has joined #nixos
<immae>
Speaking of flakes, do you have some suggestions/guidelines to get started? I have a big repository of overlays, new packages and modules done "the old way" that defines my configuration, and I would like to incrementally migrate to flakes (not "everything at once", that would be too big to change)
lhurttila has joined #nixos
<colemickens>
immae: my nixcfg supports building with both. I use overlays and have my own overlay in my nixcfg :) you might find it useful
<niksnut>
colemickens: hm I've seen that error before
<immae>
colemickens: I could start there indeed, do you have something to share?
<colemickens>
immae: `nixup flakes` builds from my flake, `nixup flakes local` builds from my flake but with local overrides for when I'm working on my inputs
<colemickens>
`nixup legacy` and `nixup legacy local` does similar, but with my old school pinning system, and plain nix-build
<colemickens>
and then inside my configs I do a check for `lib.getFlake` and then import accordingly.
<colemickens>
`nixup compare` proves that legacy + flakes builds the same output :)
<colemickens>
niksnut: it just doesn't seem right that I can `nix build, nix-build, nix-instantiate` but not `nix eval` this one thing.
<niksnut>
oh right, it was nix eval
<niksnut>
I think 'nix eval' does a deep evaluation so it will eventually hit some attributes that don't evaluate
<niksnut>
nix eval --json does work (but it only shows an output path)
matthewcroughan has joined #nixos
<lhurttila>
I'm trying to install Nixos for the first time (on an emty ssd, goal is to make a dual boot with windows 10 ) and i'm not really familiar with linux in general. Booting from an old 2gb USB stick with the 20.03 ISO opens up the installer choices but after choosing the installer I get a few lines running before the systems seems to freeze with a
<lhurttila>
black screen and an _ in the upper corner. I never get anywhere from that unless i reboot. copytoram and debug installers freeze at the same spot. The same iso works just fine in VirtualBox. I'm running an old i5-3570k with a rtx 2070 and someone mentioned this might be a graphics driver issue but a friend of mine had no problems with the same iso
<lhurttila>
and a 2080 so I don't know what to think. Any ideas or pointers would be welcome
mvnetbiz_ has joined #nixos
<reactormonk>
This should work in place of the regular pkgs.foo pkgs.foo.overrideAttrs (oldAttrs: { src = /home/user/foo; }) ? I'm getting a cannot coerce a function to a string
<niksnut>
maybe 'nix eval' should use NixRepl::printValue()
<gchristensen>
yeah, there was some server maintenance going on apparently :)
<stephank>
I noticed there's an EC2 image for aarch64 (ami-0a4c46dfdfe921aab) from the same owner as other official(?) images. Seems to work well, but I can't find a mention of it anywhere? Is it an experimental thing? Is it okay to simply trust any image from that owner? 🙂
Doraemon has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
<gchristensen>
stephank: I don't think we publish aarch64 images. here is an official list: https://nixos.org/download.html does the onwer match the owner of these AMIs?
<LambdaDuck>
How do I debug why nix is trying to build cabal-install from source? I'm on nixpkgs-unstable for darwin.
<{^_^}>
[nixpkgs] @shlevy pushed to release-20.03 « setupcfg2nix: Bump to 2.0.1. »: https://git.io/JJtZX
dongcarl has joined #nixos
<stephank>
gchristensen: Yup, the owner matches! (080433136561)
<gchristensen>
interesting, I'll see if someone on the infra team knows about it
<{^_^}>
[nixpkgs] @TethysSvensson opened pull request #92581 → busybox: Add a default udhcpc dispatcher script → https://git.io/JJtWL
<stephank>
gchristensen: Simply searched in the AWS console, curiosity really. You can go to AMIs, then in the search bar switch to 'public images', and search for 'Owner: 080433136561'.
gustavderdrache has joined #nixos
<gchristensen>
cool, thanks stephank
<stephank>
The AMI I mentioned was in eu-west-1, but it appears it's also in other regions (different ID, of course)
<gchristensen>
yeah
<{^_^}>
[nixpkgs] @truh opened pull request #92582 → plantuml-server: init at 1.2020.15 → https://git.io/JJtW0
<gchristensen>
it turned out to be an experiment towards making aarch64 amis and should be good to go. we'd like to do it on an ongoing basis, but we haven't added it to the automation yet
red[evilred] has joined #nixos
<red[evilred]>
gchristensen (IRC): any chance that NixOS Office Hours may return? I may be a fan ;-)
Thra11 has joined #nixos
<evanjs>
alright, coming back to this issue today: anybody have any clue what's going on with "path /build should have permissions 755, but had permissions 700. Consider running 'chmod o+rx /build'"?
<gchristensen>
is this during a VM build or something?
<evanjs>
it is indeed
<evanjs>
it does not happen with nixos-generate _raw_
<gchristensen>
I saw something like this on nixpkgs unstable with a VM inside a build
<evanjs>
but it does in my expression that utilizes it via callpackage
<evanjs>
ahhhh
<evanjs>
im on nixos-unstable
<evanjs>
and have had other weird things happen
<evanjs>
though it didn't seem to happen the other week. tried using niv on the repo in question, but you can only do so much, especially with nixos-generators
<{^_^}>
[nixpkgs] @dotlambda opened pull request #92583 → python.pkgs.check-manifest: mark as unbroken → https://git.io/JJtW9
<raghavsood>
Anyone know why llvm-objcopy would say that `-I` is an unknown argument? It's defined as the short version of `--input-target`
<evanjs>
I really just need to get that esxi stuff upstreamed somehow lol
<evanjs>
it's really just virtualbox-image with some dumb hacks
<evanjs>
i mean, it works, though *shrugs*
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos
<{^_^}>
[nixpkgs] @benley merged pull request #92463 → insync: fix warning due to missing LD_LIBRARY_PATH → https://git.io/JJLZf
<{^_^}>
[nixpkgs] @benley pushed commit from @marius851000 to master « insync: use autoPatchelfHook to fix warning (#92463) »: https://git.io/JJtlw
<evanjs>
lassulus: any clue what the "path /build should have permissions 755, but had permissions 700. Consider running 'chmod o+rx /build'" error might be about?
<raghavsood>
Does `patchShebangs` cover `/usr/bin/env perl` style commands that occur in a CMakeLists.txt body? Or does it literally only apply to shebangs?
<pax-12>
infinisil, this fork has extra features that I need
jumper149 has joined #nixos
<pax-12>
infinisil, this package does not have those features
stteevveen has joined #nixos
mallox has joined #nixos
mallox has quit [Client Quit]
Jackneill has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<stteevveen>
Hi! How to escape sequence in nix ? I have a bash expression ${myList[@]} that resides inside a bigger string that represents bash code. It is a snippet that is part of my vimrc nix configuration. I don't want nix to interpolate anything in this string. Unfortunately nix really wants to interpolate my ${myList[@]} . How do you escape this in
<stteevveen>
multi line strings ni nix ?
ixxie has joined #nixos
user_0x58 has joined #nixos
maier has quit [Ping timeout: 258 seconds]
justanotheruser has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.transitions: 0.8.1 -> 0.8.2 »: https://git.io/JJt20
mariatsji has joined #nixos
<mariatsji>
Hi, when a .nix file starts with arguments such as '{ ghc }: ...', how can I provide this argument to e.g. a nix-build command? 'nix-build my.nix nixpkgs.ghc' does not seem to work..
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « libebml: 1.3.10 -> 1.4.0 »: https://git.io/JJtww
<raghavsood>
cole-h: It's hit 4+ hours on my i5 10th gen laptop, although a Ryzen 5 3600 seems to have made the same amount of progress in about 30 minutes, so I'm hopeful ofborg and hydra run some beefy machines
<gchristensen>
ofborg has a 1h limit, but fairly beefy box. hydra has a 12h limit I think, and also beefy boxes
<raghavsood>
gchristensen: Thanks! I guess people running clickhouse are probably not running it on random machines, so will likely be able to self compile anyways if the binary cache is empty
<gchristensen>
aye
ingenieroariel_ has quit [Remote host closed the connection]
<raghavsood>
`[7783/7954] Failed` So close, yet so far
<{^_^}>
[nixpkgs] @pacien opened pull request #92619 → gscan2pdf: add scanimage to PATH in wrapper → https://git.io/JJt6z
camsbury has joined #nixos
<kaligule>
Hello, I am very new to nix/nixos and would like to install waybar with pulseSupport. I tried to write an overlay ( https://pastebin.com/tWAvLphC ), but it into /home/kaligule/.config/nixpkgs/overlays/waybar.nix and added that path to my imports in etc/nixos/configuration.nix. Yet when I try to build the configuration I get an error: error: syntax error, unexpected $end, at ]
<kaligule>
OCCASVS has joined #nixos
<kaligule>
(and then the path of my overlay)
asymptotically has quit [Quit: Leaving]
<kaligule>
Can someone tell me what I am doing wrong?
sangoma has joined #nixos
<gustavderdrache>
you don't need the "let wayland_with_pulseSupport =" part
<gustavderdrache>
nix is complaining because let needs an in:
<gustavderdrache>
> let x = 1;
<{^_^}>
error: syntax error, unexpected ')', at (string):319:1
<gustavderdrache>
> let x = 1; in x
<{^_^}>
1
<kaligule>
Interesting. I removed that part and nix complained about the last ;. When I removed that I get: error: value is a function while a set was expected
<kaligule>
gustavderdrache:(thank you by the way. This is still new teritory for me and having help from the community is really cool)
sigmundv has quit [Read error: Connection reset by peer]
<gustavderdrache>
we do what we can to help :)
sigmundv has joined #nixos
<kaligule>
so, is the "self: super: {...}" thing a function? How would I make it a set that can be importet to my configuration.nix?
<gustavderdrache>
oh, are you using imports = [ ./waybar.nix ] ?
<infinisil>
kaligule: You need to assign the overlay to the `nixpgks.overlays` option. Like `nixpkgs.overlays = [(self: super: { ... })];`
<infinisil>
In configuration.nix
<gustavderdrache>
since it's a file, you can write [ import ./wyabar.nix ]
<kaligule>
The overlay is not causing the waybar package to be recompiled with that option as I had expected. But at least I have now a setup with overlays working :)
<kaligule>
Thanks again, gustavderdrache and infinisil
user_0x58 has quit [Ping timeout: 260 seconds]
notgne3 has joined #nixos
notgne2 has quit [Remote host closed the connection]
notgne2 has joined #nixos
meh` has quit [Ping timeout: 240 seconds]
notgne2 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @MetaDark opened pull request #92622 → nixos/xpadneo: init at 0.7.5 → https://git.io/JJtix
<grfn>
does anyone have any recommended approach for running test suites inside derivation that are... what I would refer to as "pathologically impure"
<grfn>
eg that depend irrevocably on a running postgres database
ixxie_ has joined #nixos
<infinisil>
grfn: You can run a full NixOS system within a derivation with the NixOS testing infra
<grfn>
oh hmm
<grfn>
is that very slow?
<infinisil>
See the nixos/tests directory in nixpkgs
<infinisil>
It's decently fast I'd say
<grfn>
I seem to remember that depending on qemu
<infinisil>
Takes only a couple seconds to start the VMs
<infinisil>
Yeah it uses qemu
<grfn>
hmmm
<duairc>
Is there such a thing as a NixOS module that doesn't provide any options or config, but just adds some library functions to lib?
<grfn>
I wonder if there's a similar escape hatch to do something similar with docker
<infinisil>
duairc: Not possible
<infinisil>
grfn: Docker for what?
<grfn>
infinisil: to run tests in
<grfn>
or even like... docker-compose
<infinisil>
Why not qemu?
knupfer has joined #nixos
knupfer has quit [Client Quit]
<grfn>
speed
knupfer has joined #nixos
<grfn>
but also *potentially* portability
<grfn>
I'm not sure how easy it is to start a qemu VM from inside a kubernetes pod
<grfn>
it seems... not
<grfn>
and that's where my CI is running
<duairc>
infinisil: Cool, so I guess the next best thing is just to import a plain old nix file that defines the functions I want (which themselves takes lib as an argument). Are there any particular patterns or conventions for structuring that kind of thing?
<infinisil>
Has nothing to do with the standard `lib` though
<duairc>
Is that the same thing?
<infinisil>
duairc: Nah NUR has nothing to do with this
pamplemousse has joined #nixos
<duairc>
infinisil: I meant specifically the "providing library functions" section of the README
<infinisil>
duairc: Yeah has nothing to do with this
<infinisil>
That's just a convention for how NUR repos should define lib functions in their attributes
<infinisil>
But this isn't a NixOS option, and you can't use them in NixOS automatically
<duairc>
Ah okay. So with the lib module I linked, I just reference the defined functions from other modules with config.lib.myFunction?
<infinisil>
Almost yeah, you'll have to define it as `lib.myModule.myFunction = ...`, then access it with config.lib.myModule.myFunction
<duairc>
Okay, cool, that seems manageable
<duairc>
Thanks, for this, I appreciate your help
<infinisil>
:)
jlv1 has joined #nixos
<jlv1>
I just accidentally branched from 'release-20.03' while cleaning up a pull request (made new branch, and `git merge --squash to squash commits`), and the bot requested reviews from 23 people because of the extra release 20.03 commits XD I fixed the pull request right away, but it's still requesting 23 reviewers. I don't think I can un-request them
<jlv>
I just accidentally branched from 'release-20.03' while cleaning up a pull request (made new branch, and `git merge --squash` to squash commits), and the bot requested reviews from 23 people because of the extra release 20.03 commits XD I fixed the pull request right away, but it's still requesting 23 reviewers. I don't think I can un-request them myself. https://github.com/NixOS/nixpkgs/pull/67541
<buffet>
hey, i wanna setup a CI/CD thingie for a server on a nixos machine, and i feel like i want that to be part of the config. i kinda started looking into hydra/hail, but i dont really see how i could configure a service with it (and just from `man configuration.nix` it looks like i can only setup one thing with it?). are there any resources you could
<buffet>
point me to?
<ixxie_>
buffet: you probably wanna look into NixOps
<buffet>
ixxie_, i cant find anything that uses nixops for CD
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #92610 → [20.03] nixos/plasma5: Noto Mono -> Noto Sans Mono → https://git.io/JJtrg
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JJtyR
<ixxie_>
buffet: well, say you have a CI/CD pipeline running in some linux box, you make sure your runner has Nix and NixOps, and then you can run your NixOps commands there
<ixxie_>
buffet: said build/deploy agents can also be NixOS machines that are themselves declaratively configured, of course, but can also be some random Ubuntu box or whatever
<ixxie_>
buffet: now all you need to do is setup your pipeline to run `nixops deploy`
<ixxie_>
okay, probably some other stuff like ensure secrets are there and pulling the configs, but you get the picture
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JJtyo
<CRTified[m]>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<ixxie_>
buffet: I think that approach is better because your build agents will start caching build results for you; however, a hackier way which doesn't require Nix on the agent is to simply push the config from the agent and rebuild on the server itself, like so: https://github.com/clusterplay/cloudcraft/blob/master/.github/workflows/deploy.yml
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJtSv
<ixxie_>
buffet: FYI I think some people advocate using NixOps to deploy the very machine in which NixOps runs as well, so you might even be able to use the same approach on that agent as well :D
<ixxie_>
buffet: no worries :) one more headsup - the NixOps core devs are pushing hard to release NixOps 2.0 atm. This changes the API for plugins, which means NixOps plugin devs need some time to also upgrade their stuff
<ixxie_>
buffet: I'm not sure this should have implications for you, but it might
<gueorgui>
Hi, I've paired a bluetooth headset with my machine and connected to it/trusted it, but no pulseaudio sink/source appear for it. I'm using the pulseaudioFull package, and I can see the bluetooth pulseaudio plugins. Any ideas what could go wrong? I'm not using a DE and using bluetoothctl and the blueman applet.
<buffet>
ill see. this is just for playing around anyways, so it shouldnt matter if stuff breaks
<ixxie_>
buffet: I would discuss the matter in #nixops if you get stuck
OCCASVS has quit [Quit: New Gold Dream (34-38-82-06)]
raghavsood has quit [Ping timeout: 245 seconds]
<{^_^}>
[mobile-nixos] @samueldr opened pull request #180 → doc: Workaround new failure on unstable → https://git.io/JJt9s
<CRTified[m]>
Hi, I've packaged cc-tool (https://github.com/dashesy/cc-tool ) which is a cli tool to interface with a TI Debugger, e.g. to flash a firmware onto Zigbee-devices. (See also here: https://www.zigbee2mqtt.io/getting_started/flashing_the_cc2531.html ). Two questions: Should I open a pull request for that, and what version should I use? The last actual release was 0.26 in 2013, but since then there were some PRs and other
<CRTified[m]>
changes to the repository that would probably make sense to include.
mananamenos has joined #nixos
cosimone has quit [Remote host closed the connection]
<mananamenos>
CRTified[m], I want to read the documentation/manual entry of read as is in https://man7.org/linux/man-pages/man2/read.2.html Can I do it directly in nixos? `read` or some other syscall let's say
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #92651 → python3Packages.nmigen: from unstable-2020-02-08 to unstable-2020-04-02 → https://git.io/JJtQs
justache has quit [Remote host closed the connection]
<{^_^}>
value is a set while a string was expected, at (string):294:40
<robodojo>
"by default, all processes are in the top-level cgroup, so any service or session can exhaust all available memory" any way to reduce that like how systemd.services.httpd.serviceConfig.CPUShares can be set? i'd want to limit any process to no more than 1/2 of my mem
<infinisil>
> showSrc pkgs "manpages"
<{^_^}>
value is null while a set was expected, at (string):294:114
<infinisil>
Damnit
<infinisil>
Well `manpages = man-pages`
<mananamenos>
:) thank you infinisil!
justanotheruser has joined #nixos
<infinisil>
:)
krey has quit [Ping timeout: 240 seconds]
confus has joined #nixos
<confus>
hi, I'd like to modify the permissions of /sys/class/backlight/*/brightness in my nixos config, so that all users can write to it. How do I go about that?
<confus>
would appreciate some pointers to an appropriate option
user_0x58 has joined #nixos
<growpotkin>
I'm not sure what I screwed up, but I keep getting "Failed to reload <DRIVE-NAME>.mount: Unit <DRIVE-NAME>.mount is masked" when trying to `nixos-rebuild`. Any idea why that might happen?
<gchristensen>
confus: do you know how it would be done on other distros?
<confus>
sudo chmod a+w /sys/class/backlight/*/brightness, it's just a file gchristensen
__monty__ has quit [Quit: leaving]
<growpotkin>
confus: I've got you, just a sec
jumper149 has joined #nixos
gustavderdrache has joined #nixos
<confus>
I tried environment.extraInit = "chmod a+w /sys/...." but that doesn't run as root apparently
<growpotkin>
in configuration.nix: `services.udev.extraRules = ''
<growpotkin>
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
<growpotkin>
confus: yeah I have a ton of udev rules for random hardware, gamepads, ATMega, and stuff like that behaved wonky be default
<confus>
mostly for the learning experinece
Guest7 has joined #nixos
<infinisil>
bqv: Should yeah, but very much not recommended
<{^_^}>
[nixpkgs] @kalbasit opened pull request #92653 → mellowplayer: init at 3.6.4 → https://git.io/JJtQS
<growpotkin>
confus: yeah I think that's a good exercise, I would warn that NixOS might have you pulling your hair out if you try to do a lot the "ol' fashioned way" though.
<confus>
btw. gchristensen, I've been watching the nixos office hours and marketing team videos - I miss those
<confus>
as an absolute newbie the gave me a nice impression on how to contribute and descision making works in the nix community
<Guest7>
Hello; I have what hopefully should be a simple question. There's a few packages that I need to 'nix-shell -p' into quite often, but these packages are built from source and get deleted every time I run nix-collect-garabge. I tried adding the packages to environment.systemPackages to no avail. How do I add these packages as a gcroot?
<infinisil>
bqv: Because it makes packages impure
cosimone has quit [Quit: Quit.]
<infinisil>
E.g. just nix-build'ing the package and trying to run `result/bin/foo` won't work with that
<infinisil>
Because that won't be able to install stuff into the user environment
<bqv>
ah, yes
<confus>
growpotkin regarding doing a lot the old-fashioned way: so far it's been all in all a better experience with nixos
<confus>
mainly because it's all in one place
<bqv>
i mean i was mostly trying to hack something into my config temporarily
<growpotkin>
Does anyone know if labeling the drive "nixos" is necessary during install?
orivej has quit [Ping timeout: 258 seconds]
<growpotkin>
I am installing a second NixOS on another drive on my system, so I don't want to label 2 partitions "nixos"
orivej has joined #nixos
<bqv>
almost certainly not
johnny101m has quit [Quit: -a- Connection Timed Out]
<growpotkin>
I figured it didn't matter but thought I'd check
<CRTified[m]>
It is not, as long as the generated hardware-configuration points to an identifiable block device :)
<growpotkin>
I know it was necessary a few years ago with the old USB installer
<growpotkin>
just checking to make sure it's been relaxed
<CRTified[m]>
Do you really want a second nixOS, or is it possible that VMs may help you a bit more (because they e.g. share the store)?
cr4y1 has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<confus>
just for the record, I ended up with: services.udev.extraRules = '' ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="acpi_video0", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness" '';
codygman has quit [Read error: Connection reset by peer]
<confus>
but I'm open for other solutions
nlofaro has quit [Ping timeout: 246 seconds]
betawaffle has quit [Ping timeout: 240 seconds]
techtangents has quit [Ping timeout: 240 seconds]
d10n-work has quit [Ping timeout: 246 seconds]
emilazy has quit [Ping timeout: 240 seconds]
alunduil has quit [Ping timeout: 246 seconds]
coot has quit [Ping timeout: 246 seconds]
higherorder has quit [Ping timeout: 240 seconds]
chessai has quit [Ping timeout: 240 seconds]
georgyo has quit [Ping timeout: 246 seconds]
jlpeters has quit [Ping timeout: 240 seconds]
adamse has quit [Ping timeout: 246 seconds]
digitalgrease has quit [Ping timeout: 246 seconds]
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JJt72
feepo has quit [Ping timeout: 244 seconds]
codygman has quit [Ping timeout: 258 seconds]
higherorder has quit [Ping timeout: 244 seconds]
CustosLimen has quit [Ping timeout: 244 seconds]
chessai has quit [Ping timeout: 244 seconds]
nlofaro has quit [Ping timeout: 244 seconds]
confus has quit [Remote host closed the connection]
peel has quit [Ping timeout: 272 seconds]
chrisaw has quit [Ping timeout: 272 seconds]
prusnak has quit [Ping timeout: 272 seconds]
diamondman has quit [Ping timeout: 246 seconds]
valwal_ has quit [Ping timeout: 246 seconds]
davetapley has quit [Ping timeout: 246 seconds]
gleber has quit [Ping timeout: 246 seconds]
omnigoat has quit [Ping timeout: 260 seconds]
hoek has quit [Ping timeout: 260 seconds]
pingveno has quit [Ping timeout: 260 seconds]
tazjin has quit [Ping timeout: 260 seconds]
jbetz has quit [Ping timeout: 260 seconds]
ryjm has quit [Ping timeout: 260 seconds]
Tritlo has quit [Ping timeout: 260 seconds]
pkral has quit [Ping timeout: 260 seconds]
NemesisD has quit [Ping timeout: 260 seconds]
mpickering has quit [Ping timeout: 240 seconds]
eacameron has quit [Ping timeout: 240 seconds]
ocharles has quit [Ping timeout: 240 seconds]
heatm1s3r has quit [Ping timeout: 256 seconds]
joedevivo has quit [Ping timeout: 244 seconds]
srhb has quit [Ping timeout: 244 seconds]
midchildan has quit [Ping timeout: 260 seconds]
taktoa[c] has quit [Ping timeout: 260 seconds]
eddyb[legacy] has quit [Ping timeout: 244 seconds]
d1rewolf has quit [Ping timeout: 246 seconds]
lally has quit [Ping timeout: 244 seconds]
jared-w has quit [Ping timeout: 244 seconds]
victorbjelkholm_ has quit [Ping timeout: 240 seconds]
parseval has quit [Ping timeout: 260 seconds]
philipcristiano has quit [Ping timeout: 260 seconds]
kozowu has quit [Ping timeout: 258 seconds]
alunduil has quit [Ping timeout: 272 seconds]
betawaffle has quit [Ping timeout: 272 seconds]
hamishmack has quit [Ping timeout: 272 seconds]
sam_w has quit [Ping timeout: 272 seconds]
zimbatm has quit [Ping timeout: 272 seconds]
thoughtpolice has quit [Ping timeout: 272 seconds]
jackdk has quit [Ping timeout: 272 seconds]
englishm has quit [Ping timeout: 272 seconds]
alanz_ has quit [Ping timeout: 272 seconds]
terrorjack has quit [Ping timeout: 246 seconds]
pointfree has quit [Ping timeout: 246 seconds]
cbarrett has quit [Ping timeout: 244 seconds]
elvishjerricco has quit [Ping timeout: 240 seconds]
grfn has quit [Ping timeout: 240 seconds]
mitsuhiko has quit [Ping timeout: 240 seconds]
dgpratt has quit [Ping timeout: 240 seconds]
teozkr_ has quit [Ping timeout: 260 seconds]
nz has quit [Ping timeout: 260 seconds]
buggymcbugfix has quit [Ping timeout: 246 seconds]
r0bby has quit [Ping timeout: 260 seconds]
davidtwco has quit [Ping timeout: 260 seconds]
lstanley has quit [Ping timeout: 244 seconds]
chpatrick has quit [Ping timeout: 244 seconds]
jfhbrook has quit [Ping timeout: 244 seconds]
sorear has quit [Ping timeout: 244 seconds]
manveru has quit [Ping timeout: 272 seconds]
joshmeredith has quit [Ping timeout: 272 seconds]
johanot has quit [Ping timeout: 246 seconds]
sneakweb has quit [Ping timeout: 246 seconds]
tnks has quit [Ping timeout: 240 seconds]
bgupta has quit [Ping timeout: 240 seconds]
waleee-cl has quit [Ping timeout: 260 seconds]
jeregrine has quit [Ping timeout: 260 seconds]
mitchellh has quit [Ping timeout: 260 seconds]
aristid has quit [Ping timeout: 260 seconds]
techtangents has quit [Ping timeout: 244 seconds]
teej_ has quit [Ping timeout: 244 seconds]
marcinkuzminski has quit [Ping timeout: 260 seconds]
typetetris has quit [Ping timeout: 260 seconds]
gausby has quit [Ping timeout: 240 seconds]
codygman has joined #nixos
murmr has quit [Ping timeout: 244 seconds]
carter has quit [Ping timeout: 244 seconds]
johs has quit [Ping timeout: 244 seconds]
wpcarro has quit [Ping timeout: 244 seconds]
ghuntley has quit [Ping timeout: 244 seconds]
mankyKitty has quit [Ping timeout: 244 seconds]
georgyo has quit [Ping timeout: 244 seconds]
s1341 has quit [Ping timeout: 272 seconds]
ynotperez has quit [Ping timeout: 272 seconds]
evck_ has quit [Ping timeout: 272 seconds]
cvlad- has quit [Ping timeout: 272 seconds]
dvim has quit [Ping timeout: 272 seconds]
etrepum has quit [Ping timeout: 272 seconds]
vdemeester has quit [Ping timeout: 272 seconds]
emilazy has quit [Ping timeout: 244 seconds]
NekomimiScience has quit [Ping timeout: 244 seconds]
aria has quit [Ping timeout: 244 seconds]
jlpeters has quit [Ping timeout: 260 seconds]
agander_m has quit [Ping timeout: 260 seconds]
ctp has quit [Ping timeout: 256 seconds]
d10n-work has quit [Ping timeout: 256 seconds]
dani- has quit [Ping timeout: 258 seconds]
sdier has quit [Ping timeout: 265 seconds]
c00w has quit [Ping timeout: 265 seconds]
<Guest7>
Does anyone know how to add some packages as gcroots? I need to 'nix-shell -p' these packages quite a lot but they are deleted every time I run the garbage collector. Adding the packages to system.environmentPackages does not seem to keep them around.
coot has quit [Ping timeout: 272 seconds]
pasukon has quit [Ping timeout: 272 seconds]
claudiii_ has quit [Ping timeout: 272 seconds]
blackriversoftwa has quit [Ping timeout: 272 seconds]
<Guest7>
I think that the packages were indeed removed because they were considered as build-time deps and not runtime
<Guest7>
It's kind of a hack but in default.nix I am using the expression builder = __toFile "builder.sh" '' source $stdenv/setup echo "$buildInputs" >$out'';
<Guest7>
After running nix-collect-garbage -d the packages are not deleted as expected
<clever>
Guest7: that wont get nativeBuildInputs, you may want just `env > $out` to get everything
<Guest7>
Alright
pamplemousse has joined #nixos
<Guest7>
I'm not sure what nativeBuildInputs is per se but in my case its empty
<Guest7>
As a side note, is it good practice to use __<name of builtin> or builtins.<name of builtin>? I can't tell if the double underscore is for convenience or if its internal
<clever>
it comes up when cross compiling
<clever>
i'm not sure either on that part
drakonis has joined #nixos
codygman has quit [Read error: Connection reset by peer]