turlando has quit [Read error: Connection reset by peer]
rprije has joined #nixos
turlando has joined #nixos
Dr8128 has quit [Ping timeout: 240 seconds]
civodul has quit [Ping timeout: 260 seconds]
mrSpec` has quit [Ping timeout: 246 seconds]
mrSpec has joined #nixos
mrSpec is now known as Guest107
turlando has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JORil
ddellacosta has joined #nixos
Guest107 has quit [Ping timeout: 265 seconds]
ddellacosta has quit [Ping timeout: 252 seconds]
mrSpec` has joined #nixos
jesystani has quit [Ping timeout: 258 seconds]
jesystani has joined #nixos
mrSpec` has quit [Remote host closed the connection]
luke has joined #nixos
luke is now known as Guest91986
<xAr86>
Can someone help me why "type = types.attrsOf (types.str (types.oneOf [ types.bool types.int types.str ]));" leads to "attempt to call something which is not a function but a set, at"?
<xAr86>
(in mkOption)
<clever>
xAr86: your running types.str on the return-value of types.oneOf
<clever>
but types.str isnt a function
<xAr86>
oh ok i thought its for like attrsOf (<key-type> <value-type>)
<clever>
even if it was, the parens are forcing it to be evaluated the other way around
<xAr86>
Can you give me a hit how to specify type of "attrSet {string = string/int/bool; ...}"?
<clever>
i think you just drop the types.str
<xAr86>
oh ok
<xAr86>
ah ok works, so is key now also bool/int/str or am I wrong? (type is now "types.attrsOf (types.oneOf [ types.bool types.int types.str ]);")
lambdaman has joined #nixos
<clever>
xAr86: the key is always a string
<xAr86>
clever: thx :)
griff__ has joined #nixos
ddellacosta has joined #nixos
sss2 has quit [Quit: Leaving]
ddellacosta has quit [Ping timeout: 265 seconds]
ahmedelgabri has joined #nixos
ManiacOfMadness has quit [Ping timeout: 260 seconds]
ahmedelgabri has quit [Ping timeout: 260 seconds]
lambdaman has quit [Remote host closed the connection]
<xAr86>
I'm trying to find out why in this function e.g. "mkValueStringDefault = {}: v: with builtins;" there is "{}" after the equal? What does this do?
jesystani has quit [Ping timeout: 258 seconds]
jesystani has joined #nixos
<gchristensen>
it defines a function which accepts no arguments, funnily enough
Havvy has quit [Quit: Computer Restarted or Restarting IRC]
Havvy has joined #nixos
ddellacosta has joined #nixos
ericsagnes has quit [Ping timeout: 250 seconds]
<mjsir911>
What is the difference between `out` & `dev` derivation outputs? I'm trying to compile a php extension that depends on another extension at build time and php.withExtensions doesn't include `dev` outputs that include php-config that I need
palo1 has joined #nixos
endformationage has quit [Quit: WeeChat 2.9]
ddellacosta has quit [Ping timeout: 252 seconds]
ahmedelgabri has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
ahmedelgabri has quit [Ping timeout: 258 seconds]
ericsagnes has joined #nixos
lawt has quit [Read error: Connection reset by peer]
rprije has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @rycee pushed to master « Drop maintainership for some packages »: https://git.io/JO0g2
Jd007 has quit [Quit: Jd007]
<spinlock[m]>
In `flake.nix`, is `nixpkgs` always provided, even if not present in `inputs`?
<DavHau[m]>
spinlock: I don't think so
<DavHau[m]>
Does anyone know if there is a `nix-shell --pure` equivalent for the flakes based alternative `nix develop` ?
tomberek has quit [Ping timeout: 240 seconds]
lambdaman has quit [Remote host closed the connection]
lambdaman has joined #nixos
ddellacosta has joined #nixos
wentasah has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
lambdaman has quit [Remote host closed the connection]
dotdotok has quit [Ping timeout: 252 seconds]
lambdaman has joined #nixos
lambdaman has quit [Remote host closed the connection]
lambdaman has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
ahmedelgabri has joined #nixos
asheshambasta has joined #nixos
wentasah has joined #nixos
lambdaman has quit [Ping timeout: 265 seconds]
<asheshambasta>
Hi, are there any resources for installing NixOS on APU3 boards? For example, should these boards allow for UEFI (GPT) installations or MBR?
<asheshambasta>
I've also seem to run into https://github.com/NixOS/nixpkgs/issues/55332, but I'm not sure if I can do GPT partitioning on this board, I cannot seem to find any relevant documentation about limitations, so I'm assuming not. I'm very likely doing something wrong here.
<{^_^}>
#55332 (by AMDphreak, 2 years ago, closed): NixOS Manual is wrong. How to install?
<Shell>
hey, trying to get joycond working... its package has a systemd unit file, how do I make nixos pick that up?
<mjlbach>
Anyone had issues with sddm/plasma recently? I just updated to the latest nixos-unstable and now sddm doesn't start, and I can't log into TTY
lambdaman has quit [Ping timeout: 252 seconds]
liketechnik has joined #nixos
<sterni>
which was the http parameter nix parsed so you could set a binary cache's priority again?
<sterni>
I forgot it again and it doesn't really seem to be documented anywhere?
<sterni>
so if I have a HTTPS cache it I can't specify it without https:// or nix complains
ddellacosta has quit [Ping timeout: 265 seconds]
jumper149 has joined #nixos
<jumper149>
Hi, I want to write a derivation of a repo with some scripts, that just need to get copied. No Makefile, no building. Just some patching with sed. What would be my best approach?
<thnkg>
I want to install NixOS, but even the unstable firmwareLinuxNonfree isn't new enough to have the microcode for my GPU (Radeon 6700XT). Is there a simple way to build a package from source during installation? Or would it be better to wait to save headache for someone unfamiliar with nix package management?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jumper149>
thnkg: You do have tty working?
<thnkg>
tty works with the minimal iso, it just uses the fallback vga mode
<jumper149>
I basically just want you to look at linuxPackages_latest
lambdaman has joined #nixos
jess has quit [Quit: back soon]
fendor has joined #nixos
sangoma has quit [Quit: WeeChat 3.1]
lambdaman has quit [Ping timeout: 240 seconds]
<thnkg>
I see, I think those are newer versions of the driver, no? While that may come into play later, I'm trying to figure out how to get the microcode I need.
<thnkg>
The commit was made on 2021-03-22, but nixos-unstable's linuxFirmwareNonfree version is 2021-03-15
<thnkg>
So is there some equivalent to gentoo's 9999 ebuilds to build directly from upstream's git source, or is this something I have to do myself without nix until a new release is tagged?
<jumper149>
thnkg: You can override the derivation with an overlay.
lsix has joined #nixos
fuiltilt has quit [Quit: WeeChat 2.9]
lambdaman has joined #nixos
<jumper149>
thnkg: I don't know a lot about gentoo, but basically you could just change the "src" attribute of the linux derivation and change it to the commit you desire.
m3thos has quit [Quit: WeeChat 2.8]
lambdaman has quit [Ping timeout: 240 seconds]
cyraxjoe has quit [Ping timeout: 268 seconds]
<thnkg>
Alright, thanks for the insight. It looks like I have a lot more reading to do about nix before I get this far
<liketechnik>
Hey there, I have a question regarding toml serialization with `pkgs.formats.toToml`: What I want is a string containing `\[`, but I can't figure out how I have to escape it in my nix configuration.
<sterni>
liketechnik: formats.toml uses json2toml internally, so you might want to check how it does it
<sterni>
liketechnik: in theory I'd say having "\\[" should be enough in nix and it should work correclty
<sterni>
liketechnik: isn't "\[" invalid TOML though? "\\[" seems to be more like it
lambdaman has quit [Ping timeout: 265 seconds]
<liketechnik>
sterni: I find it strange too, but it's what starship has in it's docs (and what worked in the plain config file, before I switched to nix): https://starship.rs/config/#example-49
<liketechnik>
and "\\[" in the nix config becomes "\\\\[" in the resulting .toml file for some reason
<liketechnik>
so apparently builtins.toJSON escapes all string values again, which would make it impossible to get foo = "\[" in the toml (nix ignores a single backslash if it is an invalid escape afaik)
<asymmetric>
in flakes, is there a way to see the error log when the failure is cached?
<asymmetric>
rather than just error: cached failure of attribute 'nixosConfigurations.tachikoma.config.system.build.toplevel'
<asymmetric>
during a nixos-rebuild in this case, but more generally during a `nix build`
<liketechnik>
I don't really have a solution, but even changes that don't effect the output (like adding a comment) display the error again iirc
ahmedelgabri has quit [Ping timeout: 248 seconds]
davidv7_ has quit [Read error: Connection reset by peer]
<attila_lendvai>
is something broken with xkbconf on nixos? i can't make it to emit anything else than zero length output files. shouldn't this work? xkbcomp -R"$(nix-build --no-out-link '<nixpkgs>' -A xorg.xkeyboardconfig)/etc/X11/xkb/" symbols/us /tmp/x
<lukegb>
Antkibo: you can just make the PR, it should add the maintainers as reviewers automatically
<hodapp>
have you already made your own branch and made the updates there?
<Antkibo>
hodapp: yes
<hodapp>
you should just be able to do a PR directly on that
<Antkibo>
lukegb: But do I add myself as a maintainer? I haven't touch the meta section
<lukegb>
I don't think you usually have to, if you're doing this as a one off fix. If you'd like to contribute to ongoing maintenance of the package, I don't see why not
<Antkibo>
Ok, thanks lukegb and hodapp!
griff__ has quit [Quit: griff__]
<attila_lendvai>
services.xserver.layout is a rather unfortunate name for specifying *keyboard* layouts
<bl1nk>
I am just getting started using NixOS and wanted to run it on a NUC at home first. Would you recommend going with nixops first or should I start looking at morph or krops directly? The nix ecosystem is a lot... :D
lsix has joined #nixos
<hodapp>
why not just start with NixOS on the NUC?
<bl1nk>
if things go smoothly I'd like to deploy it to a VPS as well, that's why I thought I should be looking at a way to remotely push configuration right away
<hodapp>
I'd just start with NixOS, learn that enough to be comfortable, and then try to extend that to NixOps
<bl1nk>
You are right though
<bl1nk>
Thanks
<lukegb>
Yeah, I have about 12 machines and I'm still not NixOpsing yet
<lukegb>
...hmm, make that 17
<hodapp>
o_O
<gchristensen>
I'm cutting you off lukegb
lsix has quit [Ping timeout: 258 seconds]
<lukegb>
I just have a GitLab CI pipeline and also put my secrets into the nix store 🙈
<hodapp>
are there any good examples in Nixpkgs someone can point to for something installing Guile libraries into a custom load-path?
ddellacosta has joined #nixos
<hodapp>
trying to update libfive still, and its CMake installer just acquired a step in which it tries to install its Guile libraries directly into what Guile says is its site-path (which of course isn't writable here)
<hodapp>
ah, wait, looking at an older commit. they don't use %site-dir but they do use %site-ccache-dir
<lukegb>
if so, sending an upstream patch to only set GUILE_CCACHE_DIR if it isn't already defined would work for that, at least - then in the nix derivation you can set -DGUILE_CCACHE_DIR=$out/share/whatever/the/path/was
MmeQuignon has quit [Quit: WeeChat 3.1]
<hodapp>
wouldn't the nix derivation then still need some kind of wrapper for libfive-studio to have that in its load-compiled-path?
<lukegb>
hodapp: whoops, sorry; in theory the Guile setup hook should take care of that, iirc
<MysteriousSilver>
Hi! Nix newb here, i tried to install texlive.latex.pkgs through the `nix-env -iA` command, how do i uninstall it? there are now ~200 new packages
<hrnz>
this may be a dumb question, but can someone give me a rough estimate when nixos will use flakes by default instead of channels? So are we talkinng about months, years, or probably never?
nisstyre has quit [Ping timeout: 250 seconds]
<lukegb>
hodapp: so, err, yeah, in general you'd need to wrap the thing yourself to make sure the env variable is set properly
<hodapp>
lukegb: but how does one ensure that the load path actually makes it into that?
<MysteriousSilver>
evils: the shell returns nothing and exits
<fionera_>
hi I try to write a function that returns all .nix files in a folder but when i call builtins.readDir I always get `string './module' doesn't represent an absolute path`
endformationage has joined #nixos
ddellacosta has quit [Ping timeout: 252 seconds]
ManiacOfMadness has quit [Ping timeout: 260 seconds]
<{^_^}>
undefined variable 'builtnis' at (string):494:1
<sterni>
> builtins.readDir (toString ./.)
<{^_^}>
access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
<fionera_>
Ah yeah the issue was that i had it as string :D
<fionera_>
thank you :D
attila_lendvai has quit [Quit: Leaving]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
vidbina has quit [Ping timeout: 252 seconds]
lambdaman has joined #nixos
meh` has quit [Ping timeout: 260 seconds]
dotdotok has joined #nixos
lambdaman has quit [Ping timeout: 240 seconds]
<fionera_>
Ok now the function works and I have it imported in my script and I import other folders but want to make this accessible... smth like this in the module: `{ config, pkgs, lib, custom, ... }:`
<fionera_>
how do I have to register/declare it so the imported modules can get the `custom` module?
<catern>
buffet: I don't know a concretely how to do it, or if it's possible with fetchTarball specifically, but I can tell you it's theoretically possible; just invoke curl or whatever with the option to set the useragent, inside of a fixed-output derivation
<noonien>
hmm, is there any reason why `programs.wireshark.enable = true;` in my configuration.nix doesn't put `wireshark` in /run/current-system/sw/bin?
<AkechiShiro>
Hi, I am using Jellyfin from unstable and I've installed ffmpeg_full on NixOS 20.09 however Jellyfin throws error when it uses ffprobe (a binary that comes bundled with ffmpeg_full).
<AkechiShiro>
I am getting this error : /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/hsw0sq8y0a46fxc2d7krgyr6p5dy71kd-gcc-10.2.0-lib/lib/libgomp.so.1)
<garionion>
hey, could it be, that nixops is ignoring my ssh config? because i want to deploy a machine which is only reachable behind a jumphost and nixops just takes forever to connect (i thinks its stuck)
<afontain_>
Is there a convention for packaging licenses around here, like Debian has "install the licence in /usr/share/doc"?
ddellacosta has joined #nixos
rajivr has quit [Quit: Connection closed for inactivity]
haritz has joined #nixos
haritz has joined #nixos
haritz has quit [Changing host]
<sterni>
mostly this is handled via meta.license
<sterni>
some packages do still install it to $out/share/doc I think
<sterni>
but there is no real need to if the license maps to one available in lib.licenses
zupo has quit [Client Quit]
aveltras has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 240 seconds]
<a12l>
I'm reading the sixth Nix pill, and have created a file `default.nix` places in a directory. The file contains `derivation { name = "myname"; builder = "mybuilder"; system = "mysystem"; }`, which is copied from the pill. I when try to create a derivation by running the command `nix eval -f channel:nixpkgs default.nix` in the directory containing the `default.nix` file. But when I run the command I get a error message saying
beertoagunfight has quit [Ping timeout: 268 seconds]
derek_betak has quit [Quit: derek_betak]
<elvishjerricco>
Is there a way to force nixos to put `systemd.services.foo` stuff in a dropin in `foo.service.d`? The service I want to override is created by a generator, so its service file is in /run and takes precedent, and since there's no foo.service in /etc/systemd/system nixos tries to put these configurations in foo.service instead of foo.service.d. Ergo, they don't get applied.
lewo` has quit [Remote host closed the connection]
<supersandro2000>
elvishjerricco: create the file manually?
<supersandro2000>
environment.etc.systemd
<elvishjerricco>
supersandro2000: You can't. /etc/systemd/system is a derivation; so you can't manually mess with the files in it
bennofs_ has joined #nixos
griff__ has joined #nixos
stites[m] has joined #nixos
<stites[m]>
has anyone in here needed to build the node package keytar before? I'm having a bit of trouble using node2nix
<elvishjerricco>
Yuck. Making a package with a symlink from $out/lib/systemd/system/foo.service -> /dev/null, and adding that package to `systemd.packages` causes nixos to put my settings in a drop-in, which works -_-
<matthewcroughan>
Why wouldn't you use it in a derivation? I've seen examples of derivations that do and do not use rec at the point of stdenv.mkDerivation.
<evils>
it makes it recursive, meaning attributes can refer to attributes in the same scope
<supersandro2000>
and it is pretty safe to use in mkDerivation
<evils>
usually used in mkDerivation because fetchFromGitHub uses ${version}
<supersandro2000>
but if you are doing more calculation or lib things then you maybe do not want to use it to avoid infinite recursions
<matthewcroughan>
supersandro2000: the hello derivation uses it, and i'm wondering why
<samueldr>
one thing to know about rec is that it won't "compose" with overrides
<ScatteredRay>
New to nixos, still trying to wrap my head around how deriviations work.
jonringer has quit [Remote host closed the connection]
<matthewcroughan>
samueldr:
<matthewcroughan>
whoops pre-emptive enter :D
<matthewcroughan>
Is there an issue with sources being fetched from http in nixpkgs?
<matthewcroughan>
`grep -ri 'url = http://'` on nixpkgs returned no results, whereas lots of https
<samueldr>
matthewcroughan: not really in practice because of the hash
<samueldr>
but still preferred
phalrax has quit [Quit: Connection closed]
jumper149 has quit [Quit: WeeChat 3.1]
<matthewcroughan>
samueldr: I don't see any results though
<matthewcroughan>
so will my package be the first?
ManiacOfMadness has joined #nixos
<samueldr>
¯\_(ツ)_/
<samueldr>
¯
<MichaelRaskin>
I am pretty sure some people did a treewide replacement of all http:// sources if there is an https:// alternative apparently managed by the same upstream
<samueldr>
I see enough http://
<samueldr>
ag 'url\s*=\s*(''|")http://'
<samueldr>
so no, it wouldn't be the first or only
<MichaelRaskin>
matthewcroughan: if you search for _unquoted_ URLsP
<matthewcroughan>
Great, thanks.
<MichaelRaskin>
Of course you will find nothing, URLs should be quoted as normal strings
<matthewcroughan>
What have I done instead?
<matthewcroughan>
Are you referring to me putting it into single quotes?
<samueldr>
'url = http://' <- no quote at the start of http
<samueldr>
so it won't match url = "http://
<samueldr>
furthermore, sometimes there's more spaces for alignment
<matthewcroughan>
pkgs/development/mobile/androidenv/examples/shell.nix seems to show up for unquoted url
<matthewcroughan>
so does that mean all the packages that do show up, unquoted, are broken?
<evils>
bad example, those are in comments :P
<samueldr>
if it's unquoted in nix code, it's not up to the recent standards
<samueldr>
though Nix itself still supports them, it's been deprecated for use in Nixpkgs
<matthewcroughan>
Is there a way to test platforms = platforms.all ?
<samueldr>
probably not
<samueldr>
because platforms.all is almost definitely wrong
<matthewcroughan>
The hello derivation uses it, is it accurate?
<samueldr>
oh, it doesn't even list the more fun ones
<samueldr>
yeah
<samueldr>
but no, but yeah
<samueldr>
it's a contentious issue
<evils>
3 fetchpatch uses without quoted URLs, a fetchgit and the entirety of pkgs/servers/web-apps/bookstack/php-packages.nix
<samueldr>
evils: generated files wouldn't be touched, so the latter is probably something to be fixed in what generated it [assuming it's generated]
ddellacosta has joined #nixos
<matthewcroughan>
samueldr: So how do you come to a determination on what platforms are supported, automatically?
<evils>
samueldr: that file used to have a comment mentioning it is generated xD
<samueldr>
matthewcroughan: there is no automatism
<matthewcroughan>
would it be valid to use pkgsCross to test that
<matthewcroughan>
or would that be considered invalid?
<samueldr>
there is no clear concensus about meta.platforms
<samueldr>
it would be valid
ddellacosta has quit [Ping timeout: 252 seconds]
<samueldr>
but platforms.all is probably not the answer unless you know it runs on really exotic platforms, like windows, wasm, and other even more exotic
<samueldr>
there are other collections that are useful for "ah, should compile on anything unix`
<samueldr>
but opinions are still tense about whether using `lib.platforms.unix` is valid
<pie_>
generally if mkderivation is involved you want to check setup.sh
tomberek has joined #nixos
<bpye>
pie_: Yeah, though in this case I'm not actually targeting a router - I'm trying to build an image for a Zynq board - though I guess the challenges are similar
<pie_>
bpye: *nod*
<pie_>
matthewcroughan: and probably theother stuff in that directory, but thats the main one. IIRC that attr might also be described in the manual
hyiltiz has joined #nixos
hyiltiz has joined #nixos
zupo has joined #nixos
wnklmnn has joined #nixos
__monty__ has quit [Quit: leaving]
tmciver has quit [Ping timeout: 260 seconds]
tmciver has joined #nixos
gdc has joined #nixos
gdc has quit [Client Quit]
garionion has quit [Quit: garionion]
fendor has quit [Remote host closed the connection]
davidv7_ has joined #nixos
VideoGameEnjoyer has quit [Ping timeout: 268 seconds]
aaabbbbbbbbbb has quit [Ping timeout: 240 seconds]
<samueldr>
bpye: IIRC flokli did something for a zynq board too
<jackdk>
How can I use the `extraCommands` argument to `dockerTools.streamLayeredImage` to create directories belonging to unprivileged users? It appears that the streaming script sets uid=gid=0 on everrythingg
sss has joined #nixos
<jackdk>
alternatively, is there a robust way to drop privileges in the entrypoint script of such a container? I'm not opposed to starting as root, making the dirs I need and then dropping privs
<hodapp>
working again on libfive; mkDerivation seems to understand how to make a C/C++ library accessible when I declare (e.g. in a nix-shell) that I want it as a dependency, but how would I do this for Guile libraries?
sumner has joined #nixos
<hodapp>
it seems I have to set things like GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH explicitly for anything that wants to use the Guile library, which seems a bit clunky
<jackdk>
hodapp: I don't know the guile packaging, but many languages in nixpkgs have a "fooWithPackages" function, called like `haskellPackages.ghcWIthPackages(p: [p.aeson p.lens])`. perhaps there is similar?
<hodapp>
there don't seem to be enough Guile packages for that to exist
<hodapp>
for libfive-studio I just used wrapProgram
<jackdk>
then I can't help I'm afraid
<hodapp>
do I make sense, though? if I do, for instance, 'nix-shell -p libfoo' then libfoo's shared libraries and headers find their way into the requisite things in the environment such that 'gcc -lfoo' and #include <foo.h> just work
<hodapp>
but I'm not clear on how to have something inherit the environment variables needed for this to work with a Guile package