<{^_^}>
[nixpkgs] @github-actions[bot] pushed 41 commits to staging-next: https://git.io/JIsVv
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 42 commits to staging: https://git.io/JIsVJ
zarel has quit [Ping timeout: 260 seconds]
<jasom>
colemickens: `services.xserver.desktopManager.gnome3.enable = true;` didn't do it for you?
<DigitalKiwi>
i've had that not work before
gustavderdrache has joined #nixos
<colemickens>
starting a Wayland session results and it just crashing right back to the login screen and starting an x11 session causes it to load a gray screen with an error message and a logout button
<colemickens>
s/and/in/
kreisys has joined #nixos
<colemickens>
I'm wondering if I have some stuff in my homedir that is from an old gnome install? Not sure yet, time to go log spelunking
veleiro has quit [Remote host closed the connection]
<pjt_tmp>
time to try and remember the wildcard pattern for dot folders?
<pjt_tmp>
fun
<pumpy>
nice
<colemickens>
"org.gnome.Shell@wayland.service: Failed with result 'core-dump'."
<pumpy>
colemickens unrelated but ever tried i3? i moved from gnome to it and never looked back
<colemickens>
Maybe time to kick the tires on plasma or see just how good h-m is at abstracting over sway/i3 config.
<pjt_tmp>
dwm makes for a nice ride, esp. with dwm-status
<pjt_tmp>
also, h-m?
<colemickens>
I'm actually on this journey because sway is broken, but I also did want to see if all the "perf improvement" hype about gnome-shell was real. But I also want to get some things done this evening.
<colemickens>
Home-manager, I think the i3/sway configs use the same module config so I should be able to adopt it with all my sway config default very easily, in theory.
veleiro has joined #nixos
<pjt_tmp>
if you have lr installed, this may help: lr -t 'type = d' -e '.*gnome.*'
__monty__ has quit [Quit: leaving]
* DigitalKiwi
uses xmonad with plasma
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xcmw has joined #nixos
<fuzzypixelz>
before nixos, I was used to calling /usr/bin/time to get GNU time instead of the bash builtin...
<fuzzypixelz>
how do I do that now?
<DigitalKiwi>
01:06:55 [kiwi@mvp-nixos ~]$ which time
<DigitalKiwi>
so basically i want to have a thing that builds all of my packages i maintain (and if it works on haskellPackages even better) for all platforms
<DigitalKiwi>
i guess i could just figure out what packages i maintain and make an alias...
<DigitalKiwi>
that runs those functions on all of them
<DigitalKiwi>
but that's not as cool
<DigitalKiwi>
infinisil: make sense or am i rambling
<infinisil>
Yee
<infinisil>
DigitalKiwi: What doesn't work about the nix version?
<DigitalKiwi>
i think it only builds on one system
<infinisil>
Ah
<DigitalKiwi>
and i'm not even sure it's right now because it's haskellPackages and i remembered i tried getting it to work with haskellPackages but i don't think i did
<DigitalKiwi>
but the way it's supposed to work doesn't work on haskellPackages afair
<DigitalKiwi>
i do things and then i forget about them :(
<DigitalKiwi>
OH IT DOES WORK
<{^_^}>
[nixpkgs] @arcz opened pull request #105937 → libff: shared build on darwin → https://git.io/JIsij
<fuzzypixelz>
haha can't believe there is a pkgs.makeAutostartItem
<fuzzypixelz>
makes me want to declaratively configure gnome
<DigitalKiwi>
i think the problem was it wouldn't build them when they were broken...
fuzzypixelz has quit [Quit: fuzzypixelz]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JIsP4
ris has quit [Ping timeout: 240 seconds]
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
Lord_of_Life_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lord_of_Life has quit [Ping timeout: 256 seconds]
jonatanb has joined #nixos
xcmw has joined #nixos
<{^_^}>
[nixpkgs] @virusdave opened pull request #105938 → osx-cpu-temp: Init at 1.0 → https://git.io/JIs1s
<jackdk>
how do I free up space on /boot? I cannot `nixos-rebuild boot` for want of space on `/boot`, but I've done a `nix-collect-garbage --delete-older-than 30` which should remove some kernels from september that I can still see.
<jackdk>
I found #12241, which suggests that it should try to clean /boot before copying new kernels, but that doesn't match what I'm seeing
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigmundv has quit [Ping timeout: 240 seconds]
bgamari has joined #nixos
bgamari_ has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
<jackdk>
I wound up removing everything under /boot/kernels, running ` /run/current-system/bin/switch-to-configuration switch` and rebooting. This worked but was unsatisfying - I was fixing bugs that were preventing my most recent generations from booting, and just got lucky that I fixed it before running out of space
<DigitalKiwi>
nix-build ~/old-kiwi/projects/github/nix-configs/nix/list-maintainers.nix --argstr maintainer kiwi --argstr system aarch64-linux --show-trace
<DigitalKiwi>
error: while evaluating the attribute 'version' at /nix/store/zvv2srjs3szilzrp95gybg1y72shyhd8-nixos-21.03pre253014.6625284c397/nixos/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix:63:12:
<DigitalKiwi>
Unsupported system: aarch64-linux
<DigitalKiwi>
yay?
<DigitalKiwi>
i could just ssh to the builders ;_;
<DigitalKiwi>
this is working though
hlolli_ has joined #nixos
<DigitalKiwi>
infinisil: is that right or is there a different way i tried just using system but it doesn't pick it up
<DigitalKiwi>
instead of putting it in the nixpkgs import
<infinisil>
Well you need to configure remote builders probably
<infinisil>
I think that's in the nix manual
<DigitalKiwi>
i have
cole-h has joined #nixos
hlolli__ has quit [Ping timeout: 272 seconds]
bgamari_ has joined #nixos
<DigitalKiwi>
building '/nix/store/6bd5xhdac6gh12d2raf3k3xcfr2nl65v-Hclip-3.0.0.4.drv' on 'ssh://kiwi@aarch64.nixos.community'...
<DigitalKiwi>
tada
bgamari has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
that's for either glirc or matterhorn idk
<KarlJoad>
Also, the configure script tries to write to a location within the building directory. It complains that it is a RO filesystem. I've never seen that before.
<KarlJoad>
Lastly, which is preferred in nixpkgs? `fetchurl` or `fetchTarball`?
MichaelRaskin has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
infinisil: of course it's not quite right :( something fails to build that should build (it builds if i do it from an aarch64 server)
<KarlJoad>
A configure script that is run during a `nix-build` is trying to write a config.log file. Since the $src and $out directories are RO(?) this is erroring out. Does anyone know the/a workaround?
rurt91 has joined #nixos
<simpson>
sed until it stops misbehaving, probably.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @ldesgoui to release-20.09 « discord: 0.0.12 -> 0.0.13 »: https://git.io/JIGIt
<KarlJoad>
simpson: patchPhase seems to have worked. Now to see if it actually did.
<colemickens>
I'm still getting crash-back-to-gdm when I try to start gnome-wayland session and I just get a grey screen with an error and logout button when I try the x11 sessions. Looking for any suggestions.
<KarlJoad>
simpson: Turns out the `configure` script uses the `config.log` to pass information to another script needed for building, so I need to allow `config.log` to be written.
gustavderdrache has quit [Quit: Leaving.]
jaeckel has quit [Ping timeout: 240 seconds]
<simpson>
KarlJoad: Hilarious but unfortunate. Maybe there's a second build prefix which can be configured, akin to the typical --prefix.
czer00 has quit [Ping timeout: 240 seconds]
<KarlJoad>
simpson: The way I see it, there are 2 ways to solve this. 1) Write `config.log` to /tmp and let the write happen normally. 2) Somehow change the fact that the store is RO for this build and let the `config.log` file be written. Am I missing something?
<KarlJoad>
There has to be another package that assumes it can write to its build directory. How can the `make` phases work otherwise?
Rusty1 has quit [Quit: WeeChat 2.3]
<colemickens>
What are the things called that aren't profiles and aren't generations?
<energizer>
colemickens: what's an example of one?
z0k has quit [Read error: Connection reset by peer]
<colemickens>
they're like different profiles you can swithc within a single generation
<colemickens>
you get extra bootloader entries, I guess i can work my way backward from there...
<simpson>
KarlJoad: Yes, builds can write to the build directory; that's how other configure scripts work. Something else must be going on. Do you want to share the package that you're working on?
<KarlJoad>
simpson: I am working on packaging plug-ins to GNU Octave. I have gotten the simple ones downloaded/built. This is the first one that requires compilation. Namely, the control plug-in https://octave.sourceforge.io/control/index.html
palo1 has joined #nixos
czer00 has joined #nixos
<simpson>
Hm. Doesn't look like it's doing anything special.
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 30 commits to staging-next: https://git.io/JIGsm
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 31 commits to staging: https://git.io/JIGsO
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
<KarlJoad>
simpson: Agreed. However, the `config.log` in `src/configure` is what's causing so many issues for me.
sangoma has quit [Read error: Connection reset by peer]
spudly1 has quit [Ping timeout: 260 seconds]
KarlJoad-1 has joined #nixos
<simpson>
KarlJoad: I don't see it. Could you pastebin your derivation?
<simpson>
KarlJoad: Testing to see whether it builds, but so far I'm having good success by using `sourceRoot = "source/src";` and adding `autoreconfHook` to buildInputs.
<KarlJoad-1>
I guess I haven't tried those yet. I'm not sure how setting `sourceRoot` changes everything.
<KarlJoad-1>
Ok, sure. I get that, which is smarter than the `cd` I do, but the `config.log` is still my pain point. What's your end look like?
<simpson>
I get all the way to installPhase, where `make install` appears to not work.
sangoma has joined #nixos
<simpson>
Because of autoreconfHook, no extra effort needs to be put into configure; it just goes. It doesn't even need --quiet.
<KarlJoad-1>
simpson: I didn't expect `make install` to work, but I can figure that out later.
<KarlJoad-1>
I guess my greatest confusion is how `config.log` gets written when we make those changes.
<simpson>
KarlJoad-1: I guess I'm confused about what needs to be extra. Does https://bpa.st/ESXQ work for you? I get a lot of Fortran compiler warnings and two .oct shared objects.
<KarlJoad>
simpson: Nothing needs to be extra. I'm just not sure how to compile such a piece of software, and I wrote some bad code. Your's works perfectly: I get the same Fortran compiler warnings and the same 2 .oct shared objects.
<KarlJoad>
I'm just really confused on why config.log is writable when autoreconfHook is specified in buildInputs.
riksteri has joined #nixos
sss2 has quit [Quit: Leaving]
<simpson>
KarlJoad: The hooks are somewhat magical; config.log has problems if I try to nix-shell the derivation, too. I don't know why, and it's certainly an interesting open question since nix-shell's supposed to have the exact same environment as the builder.
<KarlJoad-1>
Ok, at least that means I'm not crazy. I still don't feel comfortable with the "magicalness" of these hooks. Those 2 .oct files are not the only ones that should be copied out, but that's a problem for when I wake up.
asheshambasta has joined #nixos
<virus_dave>
How can I see if a particular package was built & cached in global hydra ? I don't really understand the UI
<virus_dave>
specifically, I'm looking to see when the last time `graalvm8` built successfully on darwin
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
veleiro: Yes, presumably that key is not in your flake. There's two ways to fix it; either include it in your flake, or don't refer to the key itself, but its string path. Referring to the key itself will cause it to be injected in the nix store world readable.
hmi has joined #nixos
<veleiro>
ok
<veleiro>
thanks
fuiltilt has quit [Quit: WeeChat 2.9]
jonatanb has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIGDT
jonatanb has joined #nixos
jonatanb has quit [Remote host closed the connection]
jonatanb has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
acowley has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
acowley has joined #nixos
malook has quit [Ping timeout: 256 seconds]
malook has joined #nixos
fuzzypixelz has joined #nixos
<DigitalKiwi>
Baloo File Indexer is running
<DigitalKiwi>
Indexer state: Idle
<DigitalKiwi>
Total files indexed: 2,241,695
<DigitalKiwi>
Files waiting for content indexing: 0
<DigitalKiwi>
FINALLY
Miyu-saki has joined #nixos
<DigitalKiwi>
it only took...a few weeks of baloo_file being like "it'd be a shame if you weren't using all of your ram and cpu cores..." which i'm sure had nothing to do with a lot of my crashes/lockups
<DigitalKiwi>
Current size of index is 27.42 GiB
<DigitalKiwi>
lol
<srhb>
index/data ratio? :P
<DigitalKiwi>
i have content indexing on so it's higher than it could be
fuzzypixelz has quit [Client Quit]
fuzzypixelz has joined #nixos
<DigitalKiwi>
mvp_zroot/HOME 515G 268G 192K none
<DigitalKiwi>
...that seems high. wtf have i accumulated
<DigitalKiwi>
i used to have only 500GB drive a few months ago...
<DigitalKiwi>
oh, almost 30 of it is the index, duh ;D
clever_ has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JIG9G
malook has quit [Quit: malook]
clever_ has quit [Changing host]
clever_ has joined #nixos
jonatanb has quit [Remote host closed the connection]
clever has quit [Disconnected by services]
clever_ is now known as clever
jonatanb has joined #nixos
<pumpy>
can i enable firewall and have it open only what it needs to for what i config?
<srhb>
pumpy: Yes. That is in fact the default setup, firewall defaults to on.
<gentauro>
srhb: firewall should always default to on :)
<DigitalKiwi>
idk what's broken or already fixed? :(
<DigitalKiwi>
is staging merged into master or the other way
respawn_ has joined #nixos
vidbina_ has quit [Ping timeout: 256 seconds]
LogicalOverflow has joined #nixos
<DigitalKiwi>
the first i think
<DigitalKiwi>
or staging-next into master
<pumpy>
how can i tail networking.firewall events? pass/blocks
<DigitalKiwi>
what's staging vs staging-next
<raghavsood>
I believe the ordering is (any mass rebuild) -> staging -> (mass rebuild completes) -> staging-next <-> master
fuzzypixelz has quit [Quit: fuzzypixelz]
<raghavsood>
Master is merged into staging-next, followed by staging-next into master
waleee-cl has joined #nixos
<jtojnar>
these days we merge mass rebuilds to staging but they only accumulate there
<DigitalKiwi>
i can't get any electron apps to build from source :(
<DigitalKiwi>
...have spent the last ~10 hours failing
<jtojnar>
then we periodically repeat: merge staging → staging-next, wait for hydra to build the branch, manually fix any failures, merge staging-next → master
<DigitalKiwi>
(i want to make my packages support darwin and aarch64)
<jtojnar>
plus there is another independent stream that merges stuff the other way round (master → staging-next → staging) to reduce the risk of merge conflicts. It has been recently automated
<patagonicus>
I'm trying to debug a systemd.shutdown script, but neither stdout nor systemd-cat seem to be shown in the serial console - how can I log something from that script?
<MichaelRaskin>
patagonicus: I won't say it is a _good_ idea, but it's not like you need it to work 100% of time in diverse environments unattended
jonatanb has quit [Ping timeout: 256 seconds]
<patagonicus>
MichaelRaskin: Yep, works, at least for debugging stuff. :)
fuzzypixelz has joined #nixos
<pinpox>
adisbladis: Sorry to bother you, but I still can't install nixops. Is your fix still not in unstable?
<MichaelRaskin>
I could imagine some cases where such stuff could break unattended if somethig else is also monitoring serial console for other reasons, but in debugging you xan afford to say «So I won't launch them together»
<patagonicus>
MichaelRaskin: Not in my use case, it's an ARM device and the only thing on the serial console will be the USB-UART that I plug in if I need to debug early boot/late shutdown (or I screwed up so bad that I need to boot an older generation, but I can do that with a MicroSD card reader as well). :)
<ishan>
I am working on a PR for wayfire. But I can't figure out where the attributes for the window-managers are defined? Right now have defined them in the all-packages.nix file .
werner291 has joined #nixos
<ishan>
sorry I found it.
<ebbertd[m]>
I am trying to use the NUR and for that followed the instructions in the README of the github repo. I am on NixOS and added the lines given in https://github.com/nix-community/NUR to the configuration.nix and then rebuild. However, when I'm trying to use the NUR as described in the readme using `nix-shell -p nur.repos.mic92.hello-nur` all I get is `error: unfefined variable 'nur'`. Any ideas what I am doing wrong?
<Mic92>
ebbertd[m]: did you add it to packagesOverrides in your configuration.nix?
<pinpox>
Anyone running a seafile server on nixos?
<{^_^}>
[nixpkgs] @petabyteboy merged pull request #104660 → wacomtablet: Fix build with Qt5.15, pending new release → https://git.io/Jk6fM
<{^_^}>
[nixpkgs] @petabyteboy pushed commit from @Thra11 to master « wacomtablet: Fix build with Qt5.15, pending new release (#104660) »: https://git.io/JIZmk
<pinpox>
(that would be willing to share his configuration)
<{^_^}>
[nixpkgs] @sevenfourk opened pull request #105969 → nixos/manual: small formatting improvements → https://git.io/JIZmq
werner292 has joined #nixos
werner291 has quit [Ping timeout: 246 seconds]
werner292 is now known as werner291
<siraben>
What's the easiest way to nix-shell into a Nix package expression? I'm doing something like `nix-shell -E "with (import <nixpkgs> {}); callPackage ./foo.nix {}"` right now
<betawaffle>
not exactly a nixos question, but is there somewhere i can find a list of all the filesystem paths that have some significance to the linux kernel?
<siraben>
Heh, good thing /usr/bin is not writable by non-root, many packages want to make directories there and so forth.
<patagonicus>
betawaffle: I'm not sure there are technically any. Even things like /dev and /sys are just filesystems that happen to almost always be mounted at those places, but I don't think the kernel in particular cares where they are mounted (or if). Userspace does, though.
fuzzypixelz has quit [Quit: fuzzypixelz]
fuzzypixelz has joined #nixos
<betawaffle>
well like it searches for init in a particular place by default, for example
<patagonicus>
Hmm. Good point. Not sure if there's a list of those.
<patagonicus>
Is it just me or is the NixOS options search broken for 20.09 on the website? 20.03 and unstable return results, 20.09 just doesn't show any results.
<evils>
patagonicus: same here...
<patagonicus>
I swear I just used it an hour ago, so must be a recent breakage.
<siraben>
How do I limit the depth of the tree when querying derivations using nix-store?
sangoma has joined #nixos
<dottedmag>
Is there a clean path to add `mount` to the PATH of a systemd service? I see `mount` is in `/run/wrappers/bin`, but it does not seem that adding this directory to PATH in Environment directly is a good idea.
<rawtaz>
hey peeps. im trying to use rofi under nixos, but dont really see how i can reference the theme file which is at one of the following locations, from within the ~/.config/rofi/config file:
<rawtaz>
MichaelRaskin: you mean in the nixos configuration i presume? note that the rofi.theme line i wrote above is from rofi's own config file, not the nixos one.
<rawtaz>
cant find any rofi related files under the /run path im afraid, escept one pid file
DigitalKiwi has quit [Quit: quite.]
<rawtaz>
perhaps the rofi package doesnt take themese into account at all, and hence needs to be updated/modified for one to be able to specify a theme?
<rawtaz>
if it did support theme selection, i PRESUME that there has to be an option for it
<{^_^}>
[nixpkgs] @doronbehar opened pull request #105979 → Pkg/zoom us → https://git.io/JIZ0r
<MichaelRaskin>
Yeah, having very specific (even if weird) technical complaints usually comes together with Just Writing Bootscripts being actually pretty easy (specifically just for my own use, which reduces complexity, and easy-for-me)
<siraben>
If I'm writing an overlay, where should I put it in my project?
<siraben>
default.nix?
marsh has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @alunduil opened pull request #105982 → lib/string: drop redundant string in description of toInt. → https://git.io/JIZgD
<rawtaz>
MichaelRaskin: i tried your suggestion in a number of places and ways, gettings lots of errors, before finally getting it to work like this: http://pastie.org/p/14cnzRozEjgwrJUTBV4wEI
<rawtaz>
MichaelRaskin: im trying to not take much of your time, but can you tell me 1) where is that .theme option defined (if it wasnt in the code somewhere, i dont see how nix would know how to configure rofi's theme setting), and 2) how would i have been able to find that myself (there's no rofi at all in the Options browser and the expression for the rofi package)?
<MichaelRaskin>
rawtaz: do you even need packageOverrides here, or just to install rofi into your environment?
jonatanb has quit [Remote host closed the connection]
<deltab>
siraben: I can clone the repository fine
<MichaelRaskin>
If you opem nixpkgs/pkgs/top-level/all-packages.nix you can find the definitions of rofi and rofi-unwrapped
<{^_^}>
[nix] @Ma27 opened pull request #4319 → libstore/openStore: fix stores with IPv6 addresses → https://git.io/JIZVn
<MichaelRaskin>
These refer to the actual source files
jonatanb has joined #nixos
<siraben>
deltab: I can't seem to use fetchFromGitHub to get it
sangoma has quit [Ping timeout: 260 seconds]
shibboleth has quit [Quit: shibboleth]
<siraben>
Oh, because I had the wrong repo name :facepalm:
jonatanb has quit [Ping timeout: 256 seconds]
<rawtaz>
MichaelRaskin: it's the only place i found to put an *override*. i dont know where it makes most sense to put it. im just trying to get it to work, and as it is now, i cant even find that tins .themes "option" or whatever it is exist. as i ve said numerous times, i cant find it in the options list (which is fine cuz its probalby not an option), but nor can i find it in the code for the package derivative or what to call it. you'd think that you should be
<siraben>
Why does this happen? `error: some outputs of '/nix/store/8mcv7dmpa5haadvc8jhqqyy5yyxrl7ld-blynn-compiler.drv' are not valid, so checking is not possible`
<siraben>
Perhaps because I have a non-executable file in $out/bin
<MichaelRaskin>
unwrapped is to compile; wrapper is to pass environment variables and some settings
<MichaelRaskin>
Conveniently changeable without recompiling
philr has quit [Ping timeout: 264 seconds]
jonatanb has joined #nixos
jonatanb has quit [Ping timeout: 240 seconds]
respawn_ has quit [Quit: Leaving]
KarlJoad-1 has quit [Read error: Connection reset by peer]
veleiro has joined #nixos
rnea has joined #nixos
<rawtaz>
MichaelRaskin: ok, so basically the unwrapped is what defines the possibilities (options etc) and the other ones wraps that to make use of it in a more user-friendly manner
<Duponin>
Hi, I try to define a user `hashedPassword` from `mkpasswd -m SHA-512` output but it don't work. I'm following the `users` module doc and don't understand why it fails. I don't get what I miss
<rawtaz>
Duponin: i can pastebin my config if it is of any help. meanwhile, see if running `mkpasswd -m help` shows you that you are supplying a proper argument to the -m
<rawtaz>
Duponin: i use `mkpasswd -m sha512crypt -R 1000000` to generate the hash for my config
<halfbit>
is there an easy way to split an existing package with an overlay?
<halfbit>
libpq is seemingly embedded in the postgres package, protoc is embedded in the protobuf package, etc
<halfbit>
would be nice to split those, would also be nice to split headers off
<halfbit>
-dev type packages
mtr has joined #nixos
<Duponin>
rawtaz: I changed the hash method from SHA-512 (from doc) to sha512crypt (from command help), supply in my user hashedPassword and it's still "!" in /etc/shadow
<{^_^}>
[patchelf] @andrewla opened pull request #256 → Remove limits on output file size. → https://git.io/JIZMu
<rawtaz>
MichaelRaskin: sorry to bother you again but i dont get this. i was able to build successfully a few minutes ago, but now for having rofi.override { theme = "Pop-Dark.rasi"; } on its own line inside environment.systemPackages = with pkgs; [ (along with other packages like firefox, vim, etc) i get: error: The option value `environment.systemPackages.[definition 3-entry 5]' in `/etc/nixos/configuration.nix' is not of type `package'
<rawtaz>
is anyone else getting any hits on the https://search.nixos.org/options website? whatever i search for i dont get any hits at all
<shapr>
I just found hardware.video.hidpi.enable in the releas notes, where do I enable that? would it be in hardware-configuration.nix or configuration.nix ?
<rawtaz>
Duponin: its actually described in there. but right now the options website doesnt seem tto work so i cant show you
<Duponin>
rawtaz: it's described but I don't understand relationship between both (I'm not an English native). If you want to see options you have to toggle desktop view, button is only broken in phone view
<Yaniel>
shapr: configuration.nix
<Yaniel>
as a general rule you never touch hardware-configuration.nix
<rawtaz>
Duponin: but im on my computer, tried both safari and chrome :D
<Duponin>
rawtaz: works with Firefox :D
<Duponin>
(only in desktop viewport thought)
zupo has joined #nixos
<Yaniel>
rawtaz: did you select a channel
<shapr>
Yaniel: thanks
<Yaniel>
it at least used to be that no channel is selected by default and then you would get no results
<srk>
Yaniel: rawtaz: hah, that's pretty confusing due to the style of the buttons
<MichaelRaskin>
rawtaz: () around the override
<rawtaz>
Yaniel: yes. actually, i tried the others now, and Unstable and 20.03 works, but 20.09 yields nothing
<Duponin>
rawtaz: anyway, thank you for your help :)
<MichaelRaskin>
all whitespace is the same for nix, and in lists it separates entries
sangoma has quit [Ping timeout: 272 seconds]
<rawtaz>
Duponin: if you read the docs for the hashedPassword option, it says "If the option users.mutableUsers is true, the password defined in one of the three options will only be set when the user is created for the first time". i presume you already have your user created in the system, and hence this doesnt apply. it also says "If users.mutableUsers is false, you cannot change user passwords, they will always be set according to the password options", which
<rawtaz>
Duponin: no problem, glad i could help someone back!
<SomeoneSerge>
The whole dynamic libstdc++ thing with python is so frustrating =\
<SomeoneSerge>
2. With venvShellHook in buildInputs (topLevel) in shell.nix and nothing else, I pip install say `torch` - and ofc it fails at import (expected)
<SomeoneSerge>
3. Add pytorch-bin to buildInputs and it's used isntead of pip-installed one, and works fine (expected)
<rawtaz>
Yaniel: can you verify that the 20.09 channel yields no options when queried, whereas the other channels do?
<SomeoneSerge>
To clarify, in 4. the notebook package does depend on libstdc++, but I never import it, I just do "import torch", in the same python interpreter as in 2.
Lordcirth has quit [Remote host closed the connection]
<rawtaz>
ok then its the same for you as for me. i think the 20.09 search is broken. three different browsers on two different computers show the same symptoms. it's hardly the clients.
akavel has quit [Remote host closed the connection]
<pinpox>
Sorry I already asked this, but don't get it: How can I use nixops to provision multiple systems when some of them are not online 24/7? I'd like to have a simple way to rollout all my infrastucture: (2 servers, laptop config and maybe a raspi)
<pinpox>
There was something you can do with github actions to have it build on push and rollout the changes
<Yaniel>
rawtaz: I know nothing
<Yaniel>
but yea searching for "xserver" does not work for 20.09
<Yaniel>
works for 20.03 and unstable
<Yaniel>
so 20.09 is just borked
<rawtaz>
yep
<rawtaz>
MichaelRaskin: i dont suppose your custom build of the system is online somewhere so one can look at how you do it?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
neiluj has joined #nixos
neiluj has joined #nixos
neiluj has quit [Changing host]
<raghavsood>
pinpox: `--include` the systems that are currently online?
meh` has quit [Ping timeout: 272 seconds]
zupo has joined #nixos
<pinpox>
raghavsood: hm ok. I remember someone here saying he build everything in github so it didn't have to build on each machine
<raghavsood>
I have a build server that builds everything, copies it to my deployment laptop, which then copies the closures over to machines I'm currently updating - only builds once per package, seems reasonable
<pinpox>
Ok, maybe I have to step back and rephase my question: I'm quite new to nix/nixos and have now setup several machines in a repo (https://github.com/pinpox/nixos). This works fine, but I have to run "nixos-rebuild switch --upgrade" on every of the machines so they are updated or deployed. What would be the best way to make this less work with
<pinpox>
nixops?
shibboleth has quit [Quit: shibboleth]
<pinpox>
I don't want to be ssh'ing into every server to pull config changes from github and run nixos-rebuild manually
<adisbladis>
pinpox: The most lowtech solution is `nixos-rebuild --target-host=...`
<{^_^}>
[nixpkgs] @nh2 merged pull request #105487 → gst-plugins-good: fix aarch64 builds and make raspi deps optional → https://git.io/JIv4M
<pinpox>
adisbladis: ok yes. But is that people are doing mostly?
<pinpox>
I thought nixops is exactly what I'm looking for
<raboof>
the VTK library has a function "vtkGetFactoryCompilerUsed" which returns a string with the /nix/store path of gcc. While that's kind of fine, this now also means libvtk has a run-time dependency on gcc. is it possible to remove that dependency link while still keeping the string in there?
<pinpox>
Keep reading about it
Edward- has joined #nixos
<adisbladis>
pinpox: Btw, I also use NixOps to deploy all my machines
<adisbladis>
It's just good to know you don't _have_ to use nixops for remote deploys
<pinpox>
adisbladis: would you mind explaingin your rough workflow?
<pinpox>
or sharing the configs?
<Yaniel>
do you manage the machine that runs nixops also using nixops?
<pinpox>
adisbladis: Thanks! And how do you actually *use* that config?
<pinpox>
like, what do you run or setup to be run automatically?
<adisbladis>
nixops create ./deployment.nix
<adisbladis>
Then just `nixops deploy` :)
<pinpox>
ok. And for the offline stuff, you just do it manually then whenever it's online?
cole-h has quit [Ping timeout: 260 seconds]
<adisbladis>
Not sure what you mean?
<pinpox>
E.g. If i have 5 machines, I'd just deploy them one after the other or does nixops deploy them all at once?
<lukegb>
raboof: I think conventionally the hack used is to replace out the hash part of the store path, which does lose data but avoids the scanner finding the dep
<pinpox>
I'll look at your deployment.nix in more detail, thank you!
<pinpox>
Oooh... yeah, now I understand.
<raboof>
lukegb: yeah, that's an easy way out I guess ;). I figured it might be nice to keep it in there for diagnostic purposes, but perhaps that adds more risk than it's worth
<pinpox>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 119
MarcWeber has joined #nixos
Edward- has quit [Remote host closed the connection]
<MichaelRaskin>
rawtaz: it is, but it contains quite a few solutions ranging from atypical to completely unsuitable unless you understand why you would do that. https://github.com/7c6f434c/lang-os
mtr has joined #nixos
cosimone has quit [Remote host closed the connection]
<jeeger>
Hey! I'm trying to override a python override in shell.nix (specific pyparsing version). I've copy-pasted https://paste.debian.net/1175742/ from the wiki, but I get an error ("attempt to call something which is not a function but a set"). Any tips on how to proceed
<jeeger>
?
<pinpox>
adisbladis: I'm trying to get it to work without allowing root login and created a user with passwordless sudo on the target, but nixops seems to still try to connect as root and errors, am I doing somenthing wrong? https://gist.github.com/pinpox/246ff4d77bc868ae0c5ea302ea15ca4b
<pinpox>
porree> generating new SSH keypair... done
<pinpox>
porree> could not connect to ‘root@nix.own’, retrying in 1 seconds...
<fuzzypixelz>
quick question: why did the designers of nix choose to seperate drv and build? if nix expressions could dterministically build packages, I don't see the need for that "extra layer" between nix and actual builds
teto has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 43 commits to staging-next: https://git.io/JInTk
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 44 commits to staging: https://git.io/JInTI
<clever>
fuzzypixelz: the seperation lets you do things like guix, use a completely different expression language to create .drv files, which nix-daemon can still build without changes
<fuzzypixelz>
afterall .drv files _seem_ to contain the exact same information declared in .nix expressions
<clever>
fuzzypixelz: the drv file is the result of running the exprs, after everything gets shuffled around
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JInLc
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
<lopsided98>
veleiro: That means you previously tried to eval the config, but it failed. Unfortunately flakes doesn't seem to cache the error message as well
<lopsided98>
Normally, I just make some trivial change to force a new eval, but there might be some way to invalidate the cache
virus_dave has quit [Quit: virus_dave]
virus_dave has joined #nixos
<veleiro>
to the flake.nix file?
virus_dave has quit [Client Quit]
Guillaum has joined #nixos
<veleiro>
ah, yes
<veleiro>
thank you
<veleiro>
lopsided98++
<{^_^}>
lopsided98's karma got increased to 16
<veleiro>
Im trying to figure out how to use boot.initrd.secrets with flakes properly
<veleiro>
i'm pretty sure its just playing with me, now it wants a path again
<SomeoneS1>
ok, smth broke and I can't get nix-packaged pytorch to work anymore - strace says it probes /run/opengl-driver/lib/libcuda.so.1 (which exists, etc) successfully, but then goes on probing it in nix glibc path and depending on the config in nvidia_x11 path... the end being - no cuda driver detected or version mistmatch :(
<SomeoneS1>
that, intertwined with libstdc++ occasionally dropping out of scope for interpreter, while I'm debugging cuda
<evils>
betawaffle: 2 years old, latest "current-stable" release is from last month, so yea, pretty old
<colemickens>
I can't seem to be able to use it properly anyway. My attempts to use specialisation so far have resulted in inf recursion errors :/
<betawaffle>
k, hopefully it was just an oversight, and i can get a newer version with overrides
<patagonicus>
There's only one maintainer listed and it looks like the newest commit they have on Github is about a year old. So I'd guess that kea in nixpkgs is just unmaintained.
<betawaffle>
ahh
<evils>
lol, yea that's not 2 years xD
<veleiro>
ahh interesting
<patagonicus>
If you're lucky just bumping the version + hash is enough and it'll build. :D
<betawaffle>
yep, that's what i'll try
fuzzypixelz has quit [Read error: Connection reset by peer]
<LilleCarl>
Is it possible to nixos-rebuild --upgrade just one package
LilleCarl is now known as LilleCarl
<LilleCarl>
was trying to launch discord just now and it was messing with me about not being up2date
vika_nezrimaya has joined #nixos
<Yaniel>
yeah you'll have to grab the updated package from nixpkgs
<Yaniel>
mm you can do `nixos-rebuild -I nixpkgs=path/to/local/checkout`
<LilleCarl>
Is it commonplace for everyone to keep a local nixpkgs clone around on their systems?
<Yaniel>
no
<Yaniel>
then again most programs don't brick themselves like discord
<energizer>
LilleCarl: some people do, some dont
solene has left #nixos [#nixos]
<Yaniel>
your best bet might be to do a local checkout and use nix-env to install only discord from there
<vika_nezrimaya>
LilleCarl: I keep a local Nixpkgs clone on my system because I'm a Nixpkgs contributor. I use my own fork of Nixpkgs at GitHub to build my systems - it's based on nixos-unstable but includes a dirty hack that fixes a bug
<LilleCarl>
So the idea is to clone nixpkgs masterbranch (unstable) and only install discord from there, correct?
<ivan>
I use a fork of nixpkgs that I rebase all the time
<LilleCarl>
ivan: unrelated, but if you do. Check out git-imerge
<LilleCarl>
It's bloody outstanding
<Yaniel>
LilleCarl: yeah that is something you can do when channels are lagging behind
<ivan>
taking a look, thanks
<vika_nezrimaya>
LilleCarl: why would you need to clone it? use builtins.fetchGit
<LilleCarl>
vika_nezrimaya: Discord is a binary release if that's what you're asking. And I'm really new to Nix. I've only ran the system for a couple days. Was on manjaro before but went "fuck it, i like the determinism NixOS offers" So I'm yet to write a single real nix expression myself.
<Yaniel>
LilleCarl: I just use discord in a browser when the package breaks because I cba to work around it
<Yaniel>
but installing stuff from a local nixpkgs checkout is a good learning exercise :P
<LilleCarl>
I'm on the case
<vika_nezrimaya>
If you want to mix channels, you don't exactly need a local clone, just use builtins.fetchGit and some [overlays](https://nixos.wiki/wiki/Overlays) to substitute Discord with a version from unstable
<Yaniel>
I've done that for a couple of things since they weren't packaged (so I packaged them and here I am no)
jeeger has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<Yaniel>
now there are channel branches on the nixpkgs repo
<joepie91>
thought I'd updated that everywhere but apparently not
<vika_nezrimaya>
Yaniel: I definitely like the change, it feels nice to jump revisions quickly and not switch repositories
sss2 has joined #nixos
<Yaniel>
it also makes a lot of sense from a git workflow perspective
<joepie91>
anyway, the concept stands :D
<joepie91>
also I would recommend fetchTarball over fetchgit
<joepie91>
fetchgit does an actual git clone IIRC which is sloooooow
<Yaniel>
or fetchFromGithub
<energizer>
why edit nixpkgs instead of using overlays? (unless you're working on upstream nixpkgs)
<LilleCarl>
joepie91: Will it git clone every time or will it clone and then pulls? Because pulls should be fast (I remember homebrew had an issue where they overloaded github by making shallow clones which loaded git servers harder)
<joepie91>
Yaniel: doesn't that require a hash?
mtr has quit [Quit: WeeChat 2.9]
<Yaniel>
energizer: not much reason. but please do contribute to upstream
cr4y1__ has joined #nixos
<joepie91>
LilleCarl: I *think* it clones every time
<Yaniel>
joepie91: a commit hash or tag name + sha256
<joepie91>
not sure though
<joepie91>
Yaniel: yeah so that sucks for this usecase :P
<joepie91>
the point here is to always pull latest
<joepie91>
whatever that currently is
<joepie91>
it would be annoying to have to update your config every time unstable updates
<LilleCarl>
I've got so many answers here now I'm unsure where to start.
<Yaniel>
heh
julm has quit [Ping timeout: 256 seconds]
SomeoneS1 has joined #nixos
<LilleCarl>
joepie91: Your option seems great. Could that same outcome be achieved but against a local fork as well (where you just prefix the package name with "unstable"/"localpkgs")
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joepie91>
LilleCarl: yep, but instead of `fetchTarball ...` you'd just do the path to your local fork
<joepie91>
`import` takes anything that evaluates to a path containing a default.nix (or that *is* a .nix file), more or less
<joepie91>
fetchTarball is just "get this tarball, unpack it into a store path, and give me that store path"
<joepie91>
and a nixpkgs package set is just a function that, when invoked with a set/object/hash of options (including an empty set of options), returns a set/object/hash of packages
<joepie91>
so the code I provided/suggested does, in order: 1) download tarball from URL, 2) unpack tarball into store path, 3) import/evaluate that store path as a file/folder containing Nix code, 4) the evaluation produces a function, invoke that function with some options, 5) the return value produces a package set, address a package in that set by doing `unstable.some-package-name`
<joepie91>
providing a local path literal replaces steps 1 + 2, pointing at the local thing instead
<joepie91>
the rest of the logic remains the same
<joepie91>
so, for example...
<joepie91>
let unstable = (import ./path/to/local/nixpkgs combinedOptions); in <configuration expression goes here>
<LilleCarl>
Sry my weechat was scrolled up didn't see the messages. 1s
<LilleCarl>
Yep, all makes sense
<LilleCarl>
Though combinedOptions is something that isn't defined anywhere in my configuration
<joepie91>
LilleCarl: yeah that's something from my own config. if you don't need any custom nixpkgs config or overlays, it can just be an empty hash, {}
<joepie91>
my setup is... a little more complex :D
julm has joined #nixos
<LilleCarl>
I'll get there eventually. I just really need to learn the language. I've written C# and C++ in my life. But the Nix language is yet to befriend me
<LilleCarl>
joepie91: Sorry for bothering you. But if i were to put this into my configuration.nix (My configuration over these days haven't grown a lot other than adding more packages. Where would define the unstable var? If i put it inside the main {} It'll say let isn't an allowed word, if i put it outside the { starting my config isn't expected
<hexa->
LilleCarl: is this wrt to an unstable channel? if so in a let block.
<joepie91>
LilleCarl: a `let..in` expression can be placed anywhere a value is expected; usually that means it will be prefixed to an object... the 'variable' ('binding', technically) is part of the `let`
<hexa->
let { unstable = import <your-channel-name> {}; } in { }
<Yaniel>
LilleCarl: unstable channel still has the old discord version
<hexa->
true, you might need to get master, the fix is ~12h in
<LilleCarl>
Yaniel: yes i'll use master
<Yaniel>
but you can also just override the version and sha256 with an override (see manual for overrides)
<joepie91>
it's a good introduction to the language syntax
<Yaniel>
no need to clone the full nixpkgs for that
<Yaniel>
(sorry, didn't remember that one earlier)
<LilleCarl>
joepie91: Put on the reading list, thanks mate.
<LilleCarl>
Yaniel: Eventually I'll want to package some applications and PR so It'll be good to keep a local copy around anyways. :)
<Yaniel>
you'll want to use overrides every now and then too
<Yaniel>
some things require it (like renoise requires you to override the installer with a local copy - else you get the demo version)
<LilleCarl>
Also overlays for things like weechat. I've been struggling to add python deps to it required to install wee-slack. But this is more pressing as I'm still using windows at work and that's where i use slack the most (so not having it in weechat hasn't been that much of a hassle yet)
<Yaniel>
well there is a slack plugin for weechat IIRC
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @r-ryantm to master « gnome3.gnome-shell-extensions: 3.38.1 -> 3.38.2 »: https://git.io/JInwU
<LilleCarl>
Yaniel: Yes indeed, but it required python-websockets which isn't in the default weechat package. If that's what you're refering to
<Yaniel>
ah
<LilleCarl>
Progress on the import unstable (yes i'll get unstable first then move to master). Now it says discord license is unfree even though i have nixpgs.config.unfree = true; set
<LilleCarl>
Yaniel: my intention is to keep discord on super bleeding edge always, the sha256 i assume is the git commit hash i would have to update every time discord releases an update right?
<Yaniel>
no it's not the commit hash
<Yaniel>
it's the sha256 of the downloaded sources
<LilleCarl>
Oh ic what that is
<Yaniel>
and yes you'd have to update it every time you update the... thing you download