infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
Jd007 has joined #nixos
rb2k has quit [Read error: Connection reset by peer]
aswanson has quit [Ping timeout: 264 seconds]
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
veleiro has quit [Ping timeout: 260 seconds]
infinisil has joined #nixos
<{^_^}>
[nixpkgs] @thiagokokada opened pull request #108739 → nixos/redshift: use config file instead of passing parameters, using RFC42 → https://git.io/JLxQv
<{^_^}>
[nixpkgs] @jtojnar pushed 78 commits to staging-next: https://git.io/JLxQf
rb2k has joined #nixos
fuzzypixelz has joined #nixos
bitmapper has quit [Quit: Connection closed for inactivity]
<fuzzypixelz>
could you please read https://github.com/NixOS/nixpkgs/blob/master/flake.nix for me? I can't see where in `outputs` the nix expressions are specified... but to be honest I don't understand what the file means at all, should the outputs be _all of nixpkgs_? all the flakes in it, all nix modules ... ?
<{^_^}>
[nixpkgs] @thiagokokada closed pull request #108625 → nixos/redshift: use config file instead of passing parameters → https://git.io/JLAKI
<cole-h>
The outputs are exactly what is defined there. There is a `lib` output for accessing `nixpkgs/lib` (as well as `nixosSystem`, useful for defining a system config via flakes), a `checks` output for making sure things are +/- working, an `htmlDocs` output for building the documentation of nixpkgs / NixOS, a legacyPackages output for accessing nixpkgs packages, and a `nixosModules` output so that the
<cole-h>
notDetected module is easily accessible from flakes
dansho has joined #nixos
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JLxQQ
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JLx7t
<{^_^}>
[nixpkgs] @lukegb opened pull request #108741 → envoy: init at 1.16.2 → https://git.io/JLx7G
<infinisil>
How do I flush DNS caches in NixOS?
<gchristensen>
restart nscd I think
<infinisil>
Ah yeah I tried that, but didn't work
<infinisil>
dig still reported a non-fresh TTL
<lukegb>
dig doesn't use the DNS cache usually, does it?
<infinisil>
Ah
<lukegb>
tends to just query whatever resolver you have configured
<infinisil>
Well no, it caches it somehow
<infinisil>
Run e.g. `dig A infinisil.com`, then wait a couple seconds and run it again
<infinisil>
Oh
<infinisil>
Oh yeah never mind, it's the resolver that gives the answer
kalbasit has joined #nixos
<infinisil>
It's just that nobody other than me queries my domain, so I got a fresh TTL whenever I tried it :P
heyitsrama has quit [Remote host closed the connection]
fuzzypixelz has quit [Ping timeout: 246 seconds]
tobeportable has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
<KarlJoad`>
Does the meta.broken attribute directly propagate to packages that depend on it? Or is the the lack of building of a broken package that stops dependent building?
<infinisil>
KarlJoad`: Evaluating a package also needs to evaluate all its dependencies first
<infinisil>
So dependent packages are indeed broken just because a dependency of it is
<infinisil>
And there's no fancy propagation going on
<psy3497>
Anyone knows what happens to a UEFI boot partition if I reinstall nixos? That is, I install NixOS on a disk that already had a UEFI partition with NixOS in it?
fuzzypixelz has joined #nixos
<KarlJoad`>
infinisil: Gotcha. Thanks!
<psy3497>
The reason I am asking is I was already dual booting windows and NixOS, but due to circumstances I need to reinstall NixOS
<psy3497>
But on NixOS installation when running `nixos-install` the boot partition is also accordingly modified
rb2k has joined #nixos
<psy3497>
I wonder how it will be modified in the case of a UEFI boot partition that already had Windows AND NixOS in it.
<psy3497>
in the case that NixOS is installed for the first time and only windows exists inthe UEFI boot partition, I can attest to the fact that it works as expected with NixOS getting its own entry
kalbasit has quit [Ping timeout: 256 seconds]
<fuzzypixelz>
cole-h: what would the nixpkgs flake look like if everything in nixpkgs was wirtten in flakes?
ymatsiuk has quit [Ping timeout: 245 seconds]
<cole-h>
Probably just a lot of `inputs`
Ashy has joined #nixos
Ashy has left #nixos ["WeeChat 3.0"]
ZaraChimera has joined #nixos
kharon has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 260 seconds]
jlamothe has quit [Quit: leaving]
justanotheruser has quit [Ping timeout: 260 seconds]
Jd007 has quit [Quit: Jd007]
Volk has quit [Quit: See you next time!]
h0m1 has quit [Ping timeout: 264 seconds]
h0m1 has joined #nixos
KarlJoad` has quit [Ping timeout: 246 seconds]
cyphase has joined #nixos
kalbasit has joined #nixos
<{^_^}>
[nix] @DanilaFe opened pull request #4435 → Allow Flake inputs to accept boolean and integer attributes → https://git.io/JLxdF
<Vanilla[m]>
made my flake-submodules PR. If it gets merged (or anything else that allows submodules to work with flakes), I'll rewrite my system configuration as flakes.
<{^_^}>
[nixpkgs] @lukegb opened pull request #108745 → pomerium: init at 0.11.1 → https://git.io/JLxFq
m0rphism has quit [Ping timeout: 264 seconds]
<ZaraChimera>
How would I get the ly display manager working in NixOS? I only find the command for installing it in the packages search. services.xserver.displayManager.ly.enable is not a valid configuration.nix setting.
fuzzypixelz has quit [Ping timeout: 246 seconds]
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
aswanson has quit [Read error: Connection reset by peer]
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xelxebar has quit [Remote host closed the connection]
<veleiro>
cole-h: how are you doing secrets? a private repo and they're encrypted?
<cole-h>
Yep
<veleiro>
oh i was just wanting to see what git crypt uses for hash
<veleiro>
and maybe not making it public
isHavvy has quit [Quit: Computer Restarted or Restarting IRC]
<veleiro>
it's a shame an overlay doesnt produce a new derivation to refer to in an input
<veleiro>
or something like that
<veleiro>
although lazily evaluated i guess it doesnt matter as much
alexherbo2 has quit [Ping timeout: 246 seconds]
<veleiro>
i could just make my own fork with all the changes instead, per derivation
<veleiro>
and one import
<bqv>
cole-h: your style was my recent plan B for secrets, I even got as far as making the repo, but I'm just not happy with relying on github for a private repo
<veleiro>
what other option is there?
Havvy has joined #nixos
<bqv>
I've been pondering that for a week
<veleiro>
i'm not convinced i need to record my secrets in git
<bqv>
I currently use git-crypt
MidAutumnHotaru has quit [Quit: Quit 啾]
MidAutumnHotaru has joined #nixos
<bqv>
Your secrets are needed for your flake, so theyre a flake input, in whatever form. That means theyre locked either by path tree hash or by git rev. The former is flimsy because it means you can only eval on one machine, the latter means depending on github for security or having one of your machines take it's place as the SPOF
<veleiro>
binaries are kind of a no no in git anyways
<veleiro>
bqv: ah! i forgot
<bqv>
There is git-annex, but nix doesn't support such luxuries
<veleiro>
ol joeyh!
<bqv>
If you solve this in a snazzy way, let me know. System secrets have been solved it about 5 different ways now, but eval secrets still plague me
<veleiro>
i guess i didnt fully realize it would cause a flake impurity
<veleiro>
which is why its something seemingly needing solving for a system configuration
<veleiro>
thanks for the information!
m0rphism has joined #nixos
mkaito has quit [Quit: WeeChat 3.0]
<veleiro>
bqv: do you use nixus in your machine configs?
<bqv>
veleiro: yes
<bqv>
Though, I pulled it into my repo
<bqv>
Because I changed it, heavily
<veleiro>
woah i was just looking
<veleiro>
i want to incorperate it similarly
<veleiro>
and nixflx too i remember right?
<veleiro>
so you've flaked nixus sorta in your config?
<bqv>
You don't need to do what I did to use nixus, look at cole-h's repo
<bqv>
I just changed it so much it seemed more sensible than making a patch or fork or something
D_ has quit [Ping timeout: 264 seconds]
<veleiro>
what was the change for?
D_ has joined #nixos
strikerlulu has quit [Ping timeout: 246 seconds]
<veleiro>
i'm thinking it makes sense to use nixus as a replacement for 'nixos-rebuild'
<veleiro>
but for every machine that's running
<veleiro>
or an an exception build a singe machine
<bqv>
No, it was to replace the use of bash with execline
zebrag has quit [Quit: Konversation terminated!]
<veleiro>
oh lol
<bqv>
Like I said, not something you need to do, you can just have it as a flake input
zebrag has joined #nixos
<bqv>
Others use it that way fine
m0rphism has quit [Ping timeout: 240 seconds]
<bqv>
Execline makes more sense to me cause its so much more hackable at any given entrypoint, but there's no material gain from just that switch alone
<veleiro>
first time i've heard of execline, good to know
<veleiro>
i've reached my limit for the time being on things to consider in any case
<veleiro>
i want to do this flakes config + nixus thing well though
Supersonic112 has joined #nixos
<eacameron>
Does anyone have any idea why vtk on aarch64 doesn't seem to have symbols for its built-in png library? On x86 everything links against it just fine but on aarch64 I can only link against it when I set VTK_USE_SYSTEM_PNG=ON and pass libpng.
<{^_^}>
[nixpkgs] @3noch opened pull request #108748 → vtk: use system png on aarch → https://git.io/JLxNQ
<veleiro>
are you using ipfs for yourself or in production for something bqv?
<veleiro>
just curious
nly has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<bqv>
For myself
<veleiro>
interesting, its been a few years since i used it
<veleiro>
there was an era of many distributed web replacements
<bqv>
Most recently, wondering if I can shovel this https://github.com/sahib/brig into something correctly shaped to be a secrets flake input
<veleiro>
almost none of them provided a killer app to bring users in, all niche
<veleiro>
oh wait, for secrets?
<veleiro>
cool idea
<bqv>
I can have a brig repo at a consistent path on each machine. Then that path can be a path flake input in the same vein as the private github repo thing
<bqv>
Not an issue for me cause I already have reliable ipfs daemons on each machine
<veleiro>
i'd like to see a printout chart of the dangers of committing to a public repo
<veleiro>
things like AES-256 binaries for instance
<veleiro>
it reminds me of the question to store encrypted cryptocurrency wallets in
<veleiro>
the cloud
<bqv>
I don't much care about security paranoia, I just don't like relying on clouds I don't own, or having no redundancy
<bqv>
Cause I'm a decentralization idealist, and I tend to break stuff, respectively
<veleiro>
neat, i am along the same lines! i only ask because i'm not confident in security
Jd007 has quit [Quit: Jd007]
ml| has quit [Ping timeout: 256 seconds]
<veleiro>
especially thinking about quantum security "quantum proofs"
stree has quit [Excess Flood]
tejing has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<veleiro>
so its one of the reasons i started to look at flakes more seriously
<qyliss>
not sure how flakes would really help you with this
<veleiro>
if the person that ports a devices, like arm32, has a good install config
<veleiro>
would that not be better shared in a consistent way?
<veleiro>
i suppose it isnt flakes related
<veleiro>
just pinned at minimum
<qyliss>
well, you shouldn't really need any configuration
<qyliss>
you just need the packages to work
<qyliss>
and that should be done in nixpkgs
<veleiro>
the experience has not been good from reusing configs from people that got
<veleiro>
stuff working
<qyliss>
yeah, what nixpkgs they used is much more important than their configuration.
<veleiro>
it all should be upstreamed to nixpkgs is what youre saying?
<qyliss>
yeah
<veleiro>
i'm not confident in nixpkgs yet,
<veleiro>
when multiple people work on the same version of a package
<veleiro>
but on different arch's
<veleiro>
it should work i guess
<veleiro>
maybe that's why you should encourage contribution to nixpkgs
<qyliss>
exactly
<qyliss>
there's not enough interest in 32-bit arm for it to get mindshare
<qyliss>
(currently)
<qyliss>
I'd certainly never think to test on it
<veleiro>
i would say that its more work than anticipated though
<qyliss>
and CI only tests x86_64-linux, aarch64-linux, and x86_64-darwin
<veleiro>
because it involves the sources themselves and nixpkgs
<veleiro>
are patches or overlays sufficient for that?
<DigitalKiwi>
i've been intending to add macos and aarch64 support to my packages for over a year ;_;
ZaraChimera has joined #nixos
<qyliss>
veleiro: in Nixpkgs you are in control of the sources you build from
<DigitalKiwi>
some are...i think i have a macos one that i just need to make a PR for...
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<qyliss>
so if you need patches you can keep them in nixpkgs, along with whatever nixpkgs changes you need
<qyliss>
you can even do so conditionally just for 32-bit arm
sangoma has quit [Ping timeout: 256 seconds]
<DigitalKiwi>
it's hard though most people don't have a mac and/aarch64 devices and...well if it wasn't for the community server i don't think i'd be happy about compile times on my pi
<qyliss>
DigitalKiwi: if you can get cross working that's usually enough ot get it to build natively on aarch64 as well AIUI
<veleiro>
obviously because nixpkgs is just a bunch of definitions
<veleiro>
you can fork and modify changes without overlays
<DigitalKiwi>
qyliss: well...thing about that is a lot of my apps are electron apps and building them from source is ...well i've never figured out how to do it :P and only some of them are upstreamed
<veleiro>
these definitions are extremely helpful if they're agnostic to arch
<DigitalKiwi>
as in i have to use a debian package and they don't offer aarch64
<qyliss>
ahh
<DigitalKiwi>
(some do)
<veleiro>
abstraction is key and the pro-flake thing i guess would be decentralized nixpkgs
<veleiro>
dont know, havent had the time to read through all the arguments in the thread
<DigitalKiwi>
and i had to patch a Qt program because it used a compiler flag that doesn't exist on arm
<qyliss>
and there was big opposition to bootstrapped Rust because of the impact on compile times.
<Ke>
there's a bit silly there that some people do not want to accidentally install closes source software, but want to have wifi blobs and radeon blobs
<Ke>
I would bet this is even the most common stance
<Ke>
or cpu ucode
<qyliss>
Ke: there's an option for exactly that
<qyliss>
Ke: allowRedistributableFirmware
<veleiro>
yikes, I have to work with rust in my new position
<Ke>
ah ok
<qyliss>
(I might have the name wrong)
<Ke>
I just allowed proprietary code, maybe I can disallow it
<{^_^}>
[nixpkgs] @jpotier opened pull request #108762 → gitlab-runner: make check for docker-image option with machine too → https://git.io/JLpLs
<{^_^}>
[nixpkgs] @misuzu opened pull request #108763 → nixos/gitlab-runner: add support for 'docker+machine' and 'docker-ssh+machine' executors → https://git.io/JLpLG
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
<mtreca>
Hi all. The emacs vterm package bundled in nixpkgs provides a sh file to source in order to properly set the terminal prompt from Emacs. I would like to directly append it to my bashrc using builtins.readfile, but the issue is that the path of the sh file within the derivation is version dependent (something like ${pkgs.emacsPackages.vterm}/share/emacs/vterm-2020-12-12/extra/foo.sh). Is there any way to match this file without manually
<mtreca>
specifying these version numbers (which would break at each package update)? Thanks!
IRCsum has quit [Remote host closed the connection]
<mtreca>
So far, I added a snippet to my bashrc that uses find and source to match this file, but it has to eval every time I open a new shell, so I would like to avoid that.
IRCsum has joined #nixos
civodul has joined #nixos
simonpe^^ has quit [Quit: Lost terminal]
IRCsum has quit [Remote host closed the connection]
<clever>
this will instead depend on it at runtime, and just source it
<clever>
(ruins performance of the nix eval/build)
IRCsum has joined #nixos
<mtreca>
clever: My issue is that sourcing at runtime has a (small) cost as well. Ideally I would like to just hardcopy the contents of the sh script to my bashrc at nix build time.
<bqv>
The cost is so small its really not worth caring
<bqv>
Its milliseconds more than direct directory traversal
<bqv>
Oh sorry, you mean cut and paste it in
<bqv>
Same response, slightly different reason
<clever>
mtreca: oh, and builtins.readFile cant take wildcards
<mtreca>
bqv: Yes. Another solution I considered was to git fetch it, but that would be wasteful since I already have the file in my local derivation.
<mtreca>
clever: Yes, apparently. Too bad!
<bqv>
I think you're overengineering this
fuiltilt has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @cideM opened pull request #108765 → Fix dhall-json to work with tasty → https://git.io/JLpqT
<mtreca>
bqv: Probably. Thanks for your reply, I will stick with sourcing then.
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
thibm has quit [Ping timeout: 264 seconds]
thibm has joined #nixos
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
M-GNU-[m] has joined #nixos
IRCsum has quit [Remote host closed the connection]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLpqH
IRCsum has joined #nixos
<{^_^}>
[nixpkgs] @primeos merged pull request #108752 → gpgme: fix build on darwin → https://git.io/JLpeR
<carbolymer>
Hi, I'm trying to use nix-shell to create working vim with deoplete (which depends on pynvim): http://ix.io/2Lig but in vim `:python3 import pynvim` returns "No module named 'greenlet'"
<carbolymer>
any ideas how can I fix that?
cfricke has joined #nixos
<thibm>
carbolymer: why don't you use vim_configurable.customize and add the deoplete plugin?
<carbolymer>
thibm, because I manage plugins via my vimrc and vim-plug; well I guess I can look how deoplete expression looks like....
zarel has joined #nixos
<thibm>
carbolymer: anyway I think you need to give vim a python with the needed plugin, not to throw python packages in buildInputs
<{^_^}>
[nixpkgs] @prusnak merged pull request #108009 → mcrypt: patch to include stdlib.h instead of malloc.h to build on darwin → https://git.io/JLQcO
<ikwildrpepper>
(don't want to read osh to understand it :D )
<gchristensen>
it is just bash really
<ikwildrpepper>
I know, but I am lazy :-p
<ikwildrpepper>
osh was just a convenient excuse
<gchristensen>
but it goes through your snapshots and diffs the copy currently there with all the old versions and asks if you'd prefer that one instead
<gchristensen>
"restore this file from a backup, but not sure which one yet" as a script
<Izorkin>
Mic92: checking netdata on ArchLinux - plugin slabinfo error work - /usr/lib/netdata/plugins.d/slabinfo.plugin ERROR : MAIN : PROCFILE: Cannot open file '/proc/slabinfo' (errno 13, Permission denied)
<Mic92>
13 EACCES Permission denied
srk has quit [Remote host closed the connection]
srk has joined #nixos
<Izorkin>
Mic92: with all capabylites not working. Working only from root
<eyJhb>
it feels bad to just edit the permissions manually for the f ile
<eyJhb>
But running the unit as root, and then chown to the matrix-synapse user does not seem nice, and the secound best is to chown to a shared group maybe?
<Izorkin>
Mic92: on Archlinug with only setcap 'cap_dac_override,cap_perfmon+ep' /usr/lib/netdata/plugins.d/slabinfo.plugin workind. I can't understand what is preventing access.
templis[m] has joined #nixos
<srxl>
Hey, trying to use nixos-option, but it's crashing with "file 'nixos-config' was not found in the Nix search path". My NixOS configuration is a flake, so what should nixos-config point to?
<Mic92>
Izorkin: This is actually also what I would expected. is any of our systemd service options preventing the executable to gain those capabilities
hiro98 has joined #nixos
<Izorkin>
Mic92: bad variant - rollback libcap to 2.27...
<patagonicus>
Maybe I'm just being dense right now, but how do I convert an int to a string in nix? Googling just gives me results showing that nix is strongly typed and you can't just combine them, but they don't tell me how to do the conversion.
<gchristensen>
> let x = 1; in toString x
<{^_^}>
"1"
<patagonicus>
Ah, I was searching for stuff like "fromInt". Sigh. Thanks. :D
<gchristensen>
=)
<carbolymer>
is there a way to read a documentation of an expression? for example I'd like what all attributes of pkgs.python39Packages.pynvim mean
<Mic92>
carbolymer: some of them are described in the nixpkgs manual under stdenv
respawn_ has quit [Quit: Leaving]
chiefgoat has joined #nixos
<eyJhb>
Most of the documentation for many expressions seems to be the actual .nix file
thibm has quit [Ping timeout: 256 seconds]
<immae>
I agree, looking at source code is my main documentation as far as nix is concerned
<{^_^}>
[nixpkgs] @prusnak opened pull request #108769 → rust: fix comment about invocation of print-hashes.sh → https://git.io/JLpZG
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLpZZ
<mudri>
I'm noticing running nixos-rebuild today that the terminal window is coming up urgent every few seconds. Is this new? Is there any way to stop it (in termite) without stopping notification of really urgent things (like the terminal bell)?
<{^_^}>
[nixpkgs] @erictapen opened pull request #108782 → defaultCrateOverrides: override crates necessary for building sequoia → https://git.io/JLp4S
<{^_^}>
[nixpkgs] @primeos merged pull request #73277 → Initial stab at making X11 a configurable dependency of intel-media-drivers → https://git.io/JewPM
<sphalerite>
hugolgst: It may work if you allow the gdm user to configure networking, I think that should be doable via policykit but I don't know any of the details.
<hugolgst>
yes, thanks for that info.
<hugolgst>
I actually tried to modify polkit to allow it but it didnt work
<{^_^}>
[nixpkgs] @fabaff opened pull request #108793 → python3Packages.minidump: init at 0.0.13 → https://git.io/JLpEJ
<mlatus__>
Hi everyone, how do I "reinstall" using `nix profile`? For instance, if I edit the definition in a local flake, is there a convenient way to reinstall it instead of doing `nix profile remove` and `nix profile install` manually?
<{^_^}>
[nixpkgs] @NickHu opened pull request #108798 → rmview: init at 2.1 → https://git.io/JLpuZ
kini has quit [Quit: bye]
<flokli>
duckfullstop: I toyed with longhorn too, but not on nixos yet
kini has joined #nixos
rb2k has quit [Ping timeout: 272 seconds]
<duckfullstop>
flokli: works amazingly well so long as you have ext4 volumes for it to bind to
<flokli>
ext4?
<duckfullstop>
sure beats screwing around with giving gluster or ceph block devices, you can just give it directories
<duckfullstop>
yeah, it uses IO_DIRECT
<flokli>
They use the icsci stuff to get block devices
<flokli>
Don't they?
rb2k has joined #nixos
<duckfullstop>
yeah
<duckfullstop>
but it creates sparsefile images
<duckfullstop>
so it can live on top of a filesystem quite happily
rajivr has quit [Quit: Connection closed for inactivity]
<lordcirth>
duckfullstop, no performance problems from the sparseness?
<duckfullstop>
not afaik, it's obviously not going to be as fast as something like ceph but the tradeoff is worth it
<duckfullstop>
storage on k8s is one of those "oh please dear god just work already" things
<lordcirth>
So, longhorn does it's own clustering? So no reason to stick it on top of another cluster?
<duckfullstop>
it's hyperconverged
<duckfullstop>
(if that's what you're asking)
<lordcirth>
I mean, you run longhorn on multiple boxes, each with a local ext4, and they form distributed/redundant storage? I'm not familiar with it at all
<duckfullstop>
as in, deploy the manifest, deploy a storageclass with a desired replicaCount, and you're off to the races
<duckfullstop>
yeah, it deals with distribution for you
<kini>
qyliss: Sure. Say I have a bunch of packages, some of which depend on (e.g.) nodejs as a package argument, and some of which don't. I want to uniformly apply a function to the list of packages to override their nodejs argument with nodejs-10_x if they have a nodejs argument, and do nothing to them if they don't have a nodejs argument.
<qyliss>
kini: oh, you're looking for overlays
<kini>
I don't quite follow... are you suggesting I make an overlay where the top level nodejs attribute is replaced with nodejs-10_x?
<qyliss>
yeah
<qyliss>
if you only want to do that for some packages you can use pkgs.extend
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JLpgY
<kini>
qyliss: You mean, set `pkgs = (import nixpkgs {}).pkgs` and then separately have (e.g.) `pkgs_node10 = pkgs.extend ...`, so I can grab things from both `pkgs` and `pkgs_node10`?
<qyliss>
basically yeah
<qyliss>
although pkgs = (import nixpkgs {}).pkgs is redundant
<kini>
hmm... I guess this approach should work for nodejs, but that's only because the default value of the `nodejs` argument for various node-related packages is generally the top-level `nodejs` attribute, so replacing that attribute does what I want... I'm not sure if that will be the case for other things I might want to override, like java (top-level `jdk` and `jre` attributes) or other things like that
<qyliss>
I suggest crossing that bridge when you come to it :)
<qyliss>
without an example I can't say for sure, but I think it'll probably be fine
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #108799 → pythonPackages.*: Disable various checkPhases with zero tests run, libgda: Fix building with newest mysql, vtk_{7,8}: Fi… → https://git.io/JLpgi
<kini>
Well, I'm already at that bridge :) `maven3` is defined in `all-packages.nix` as `callPackage ... { jdk = jdk8; }; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731`
<{^_^}>
#89731 (by doronbehar, 30 weeks ago, merged): jdk: point attributes without version suffix to latest
<kini>
hmm, bot says it's merged... maybe I just need to pull? :)
<kini>
Nope, looking at the PR, the code comment means the override was added by that PR, not that the PR makes it unnecessary
mtreca has quit [Remote host closed the connection]
<kini>
I guess the solution here is to override jdk8 and jre8 rather than jdk and jre, in the overlay
<qyliss>
yeah
<kini>
I don't need to force anything to use a different java major version than what nixpkgs sets it as, fortunately - just to use oracle jdk rather than openjdk
orivej has joined #nixos
gulplante has quit [Ping timeout: 246 seconds]
rb2k has quit [Read error: Connection reset by peer]
rb2k has joined #nixos
mallox has joined #nixos
mallox has quit [Client Quit]
<kini>
OK, seems to be working so far. Thanks, qyliss!
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
nicoo has joined #nixos
troydm has joined #nixos
<lordcirth>
veleiro, the standards published by freedesktop.org, yes
hiro98 has quit [Ping timeout: 256 seconds]
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixos
<veleiro>
so nix/home-manager option xdg.* doesnt refer to xserver
<lordcirth>
veleiro, no. It manages variables defined by the XDG standards.
<lordcirth>
Most of which are related to GUIs, though
<bqv>
hyper_ch: consider this reality: nixpkgs is federated, like most flakes users want, so when multiple breakages happen, dealing with it is as simple as overriding the lock to not update the relevant flake, or locally updating it to a patched version to fix the issue
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2021-01-07T20:56:37Z »: https://git.io/JLpiy
schweby has quit [Quit: Das ist möglich, also tun wir es. Später.]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2021-01-07T20:56:37Z »: https://git.io/JLpi9
<{^_^}>
[nixpkgs] @peti pushed to master « all-cabal-hashes: update to Hackage at 2021-01-07T20:56:37Z »: https://git.io/JLpiQ
schweby has joined #nixos
<bqv>
It'll never happen, cause too many people loudly decry the idea of not having everything in one repo
neiluj has quit [Remote host closed the connection]
<lordcirth>
viq|w, nice reproducer
<viq|w>
I'm trying to write down docs for myself, and especially since I was doing this multiple times having something I can copy-paste into terminal made my life easier ;) And here is result of my attempt to trim it down to just the initial stuff, without what I'm trying to add to the machine - which is a mess, since it's my first real contact with NixOS ;)
<sphalerite>
so that doesn't ask you for the passphrase, and fails to boot? And hardware-configuration.nix defines fileSystems."/" = { device = "zroot/root/nixos"; fsType = "zfs"; }?
<viq|w>
importing root ZFS pool "zroot".... and when that eventually times out then "cannot import 'zroot': no such pool available" "mounting zroot/root/nixos on /..." "mount: mounting zroot/root/nixos on /mnt-root/ failed: No such file or directory"
rb2k has joined #nixos
<viq|w>
Above was type by hand, I can put somewhere a screenshot, since virt-manager doesn't seem to be too eager to let me copy-paste text from the console
karantan has quit [Ping timeout: 240 seconds]
Siyo has quit [Quit: Bye]
Jd007 has joined #nixos
shla has joined #nixos
Siyo has joined #nixos
ManiacOfMadness has quit [Ping timeout: 246 seconds]
<kraem>
viq|w: don't know if it's related since i can't test it right now (and i can't remember exactly where it fails). from what i remember: after updating nixpkgs and rebuilding one of my machines successfully imported an encrypted zfs pool but fails in stage 2 while mounting.
<{^_^}>
[nixpkgs] @fabaff opened pull request #108816 → python3Packages.winacl: init at 0.1.0 → https://git.io/JLpMA
nrh^ has quit []
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lush has joined #nixos
seku has quit [Quit: Connection closed]
<sphalerite>
viq|w: huh. Try pressing E in the bootloader menu and adding boot.debug1devices to the kernel command line
<sphalerite>
viq|w: then you can get a shell and have a look if /dev/vda and /dev/vdb exist as expected, and run zpool import to see if the pool is discovered
heyitsrama has quit [Remote host closed the connection]
heyitsrama has joined #nixos
fuzzypixelz has joined #nixos
<fuzzypixelz>
> let foo = { bar = 0; baz = 1; }; baz = 42; in with foo; bar + baz
<{^_^}>
cannot coerce a set to a string, at (string):460:57
riksteri has quit [Quit: riksteri]
rb2k has joined #nixos
<donofrio>
how do I make a full backup of my nix install on my imac?
ZaraChimera has joined #nixos
<ZaraChimera>
The ly display manager looked interesting. Finding documentation on setup has been challenging. What would I need to put in configuration.nix to get ly set up as the default dm?
<noonien>
i've got my configuration.nix flaked, i'm trying to declare nix-channels declaratively in the configuration flake so that `nix-shell -p hello` works, i know that nix-shell -p nixpkgs#hello works, but i also need the previous version to work for compatibility with old scripts
<ZaraChimera>
fuzzypixelz: looking in the options list, for the job.execCmd it lists "${pkgs.lightdm}/bin/lightdm" as an example. Do I need the leading $ in the variable?
<fuzzypixelz>
ZaraChimera: oh my bad, that's where I say the option anyway, shoud've posted the link :P
<fuzzypixelz>
apologies
<fuzzypixelz>
other than that, I built ly on my machine from 20.09 and the path is correct
<ZaraChimera>
I have to relocate, so I'll try building it later. If I get a setup working that I like, I can transfer the configuration.nix to my desktop and build there :D
installingLive has quit [Remote host closed the connection]
<lordcirth>
viq|w, is your reproducer using BIOS or EFI?
<colemickens>
lush: add pkg-config to nativeBuildInputs
tejing2 has left #nixos ["ERC (IRC client for Emacs 27.1)"]
<colemickens>
the error is saying that rustc could find pkg-config to invoke it to find some libs rust needs to build with
<colemickens>
s/could/could not/
<fuzzypixelz>
colemickens: haha good one
ghasshee has joined #nixos
<lush>
colemickens thanks! this is the first time I'm packaging something, how can I add something to nativeBuildInputs?
<colemickens>
fuzzypixelz: sorry what?
<colemickens>
lush: can you paste the derivation you're working with so far?
<fuzzypixelz>
colemickens: I've never seen someone correct themselves with a sed command, that's all ._.
<colemickens>
aha :)
meh` has quit [Ping timeout: 256 seconds]
<lush>
colemickens https://susepaste.org/48401215 ; is there a pasting service providing syntax highlighting for nix of some sort?
ZaraChimera has left #nixos ["WeeChat 3.0"]
<lush>
ah and I'm building it with nix-build -E "with import <nixpkgs> {}; callPackage ./default.nix {}" rn if that matters (have been adjusting a "packaging example" I've seen on a blog
sigmundv__ has quit [Read error: Connection reset by peer]
ghasshee has quit [Ping timeout: 246 seconds]
<colemickens>
then you're going to get errors from pkg-config that it can't find glib probably, so then you'll have to add "buildInputs" just like I added "nativeBuildInputs" and then add the additional build deps in there.
<supersandro2000>
colemickens: do you know how github handles many gists outside of ofborg?
sigmundv__ has joined #nixos
<supersandro2000>
I am a bit hesitant to upload all my logs to it
<colemickens>
supersandro2000: I dont know what that means, or maybe what you're alluding to?
<colemickens>
supersandro2000: I guess I hadn't considered semi-sensitive things like logs and what GH may or might not do with them (index, etC)
<supersandro2000>
I want to upload build failure logs to it
<supersandro2000>
not regular logs of my server
strikerlulu has quit [Ping timeout: 265 seconds]
<fuzzypixelz>
how do I apply an overlay if I want to configure nixos through flakes?
<lush>
thanks colemickens, I'll give it a try!
<noonien>
does `nixos-rebuild switch` apply `nix.nixPath`?
<colemickens>
fuzzypixelz: if you want to set unfree or add overlays, you'll end up re-importing pkgs, passing in those things.
<colemickens>
noonien: if you activate a new generation with a new nix.nixPath, Id expect NIX_PATH to be updated in new terminals, yes.
<noonien>
hmm, does nix-shell -i not work with flakes?
<lush>
colemickens "Package gdk-3.0 was not found in the pkg-config search path." which buildInput should I add for that one?
<colemickens>
lush: probably like gtk3 or something
<colemickens>
noonien: `nix develop` or `nix shell` or `nix run` might be what youre looking for?
<donofrio>
lukegb, How could I make a full backup of my install so at worse case I do not have to recompile everything again to just get pianobar working on my imac?