<matthewcroughan>
sterni: foot won't compile for i686 either
<matthewcroughan>
however, havoc does, and worked
<sterni>
matthewcroughan: uhhh it should?
<matthewcroughan>
you know what the funny thing is?
<simpson>
Oh, i915. You shouldn't have any driver problems. You should be aware that your BIOS memory configuration may influence your GPU performance, particularly in terms of how much RAM and power are allocated to it.
<sterni>
can send me the log? I'll try to have a look at it
<matthewcroughan>
I'm totally running tailscale on this ancient thing
magnetophon has joined #nixos
<simpson>
Honestly, it doesn't sound too bad. Your main concern is gonna be RAM.
CMCDragonkai2 has quit [Ping timeout: 268 seconds]
<matthewcroughan>
simpson: 1GB
<matthewcroughan>
sterni: I can't get the logs out
<matthewcroughan>
2>&1 isn't putting it into a file
<matthewcroughan>
where does nix-env put its output?
<matthewcroughan>
even build failure goes to stdout?
mmmattyx has quit [Quit: Connection closed for inactivity]
paddymahoney has quit [Remote host closed the connection]
sss2 has quit [Quit: Leaving]
<mcint>
can I speed up invocations to `nix-env -qa`? based on -v3 it seems to be reading a bunch of [pkg]/default.nix files. takes 23-28 seconds on an SSD.
rajivr has joined #nixos
marcusr has quit [Read error: Connection reset by peer]
marcusr has joined #nixos
<mcint>
seems like querying the sqlite package database would be faster
<mcint>
or using a full-text search tool: meilisearch / recoll / namazu; would be faster, nicer
<supersandro2000>
not really
orivej has quit [Ping timeout: 265 seconds]
<supersandro2000>
~15 for me
<mcint>
it seems search.nixos.org is the fastest way to even get a list of matching package names
<supersandro2000>
but think about it: you are listing over 50k packages
<supersandro2000>
if you just want the names there is a precompiled list in the channel that the bash-completion uses
<supersandro2000>
it is an sqlite3 db you can use
<supersandro2000>
should be something like /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite
<mcint>
dang, yeah, I still don't see it
alexherbo2 has joined #nixos
<mcint>
the categorical folder structure is nice
<mcint>
supersandro2000: thanks for the help
<matthewcroughan>
sterni: thanks for the help.
<matthewcroughan>
"Grepping Nixpkgs is priceless"
<matthewcroughan>
I need a shirt with that on.
afontain_ has joined #nixos
ebn has quit [Ping timeout: 240 seconds]
<matthewcroughan>
actually, I don't understand why Firefox is marked as broken on i686
<lukegb>
ah, that classic "why is this marked as broken"
<matthewcroughan>
:D
<matthewcroughan>
well, it's a reasonable question
<matthewcroughan>
Just applied for the summer of Nix, woo.
<matthewcroughan>
error: Package ‘firefox-bin-87.0’ in /nix/store/3iwpaqqvdi0vw4ppqq42f5hd10p7h10k-nixos-20.09.3732.91b77fe6942/nixos/pkgs/applications/networking/browsers/firefox/wrapper.nix:186 has an unfree license (‘unknown’), refusing to evaluate.
<matthewcroughan>
Interesting, how does this work?
<matthewcroughan>
is this expected behavior for any binary package?
<matthewcroughan>
If it's binary, is it supposed to trigger this?
<matthewcroughan>
copying path '/nix/store/bgxqf9n918y9skdx8zws7rm7369vqcnb-linux-5.11.10' from 'https://cache.nixos.org'...
<matthewcroughan>
Hahaha
<matthewcroughan>
i686 laptop from 2005, no problem, it'll just run the latest nixos-unstable
<matthewcroughan>
I'm on unstable, and this is the output of `nix-locate libwebp.so.`
<afontain_>
for the proof on 20.09:
<matthewcroughan>
nix-locate is part of the `nix-index` package, so you can use `nix-shell -p nix-index` to get this, then you have to run `nix-index` which will index the entirety of your nixpkgs.
<ahituna_>
I set programs.vim.defaultEditor = true; in configuration.nix, and # echo $EDITOR -> vim, but when I nixos-rebuild edit it opens in nano... Is there something else I need to set?
lukegb has quit [Read error: Connection reset by peer]
lukegb has joined #nixos
quinn has joined #nixos
cgfuh has quit [Quit: WeeChat 3.0]
cinimod` has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @jtojnar pushed 8 commits to staging-next: https://git.io/JYbmA
<hyper_ch>
why do I get this error on nixos unstable: error: A definition for option `boot.extraModulePackages.[definition 1-entry 1]' is not of type `package'. Definition values:
<clever>
hyper_ch: did you set it in any of your configs?
<hyper_ch>
clever: thanks, it's updated now... had to remove wine resp. winetricks as it had some building error... I used wine for an ancient windows software that I didn't use for years anyway
bitmapper has quit [Quit: Connection closed for inactivity]
justanotheruser has joined #nixos
Khetzal has joined #nixos
mmlb6 has joined #nixos
mmlb has quit [Ping timeout: 246 seconds]
mmlb6 is now known as mmlb
aescul has joined #nixos
paddymahoney has joined #nixos
aescul has quit [Client Quit]
paddymahoney has quit [Remote host closed the connection]
ahmed_elgabri has joined #nixos
i1l has joined #nixos
<i1l>
hello. gnome3.epiphany: causes high CPU load on nixos-unstable. strace show lots of "POLLIN". .epiphany-wrapper seem to be buggy. (btw, wtf it isn't a sh-script :). thank you, bye.
i1l has left #nixos ["Leaving"]
ahmed_elgabri has quit [Ping timeout: 250 seconds]
n-osborn_ has quit [Remote host closed the connection]
ml| has quit [Ping timeout: 260 seconds]
stree has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
sangoma has joined #nixos
<alienpirate5>
colemickens: what was the reason for dropping obs-xdg-portal from nixpkgs-wayland?
tejing has quit [Quit: WeeChat 2.9]
<colemickens>
alienpirate5: "These mechanisms (portals, and PipeWire) were the basis of my obs-xdg-portal plugin, which was recently merged into OBS Studio itself as part of the built-in capture plugin! Fortunately, it landed just in time for the release of OBS Studio 27, which means soon everyone will be able to use OBS Studio on Wayland."
<{^_^}>
[nixpkgs] @vcunat pushed 97 commits to staging-20.09: https://git.io/JYb5n
supercoven has joined #nixos
<das_j>
error: derivation '/nix/store/wz0m84k3s63gwkqhhag4q568as9r59rs-fusiondirectory-1.3-fixes.drv' may not be deterministic: output '/nix/store/k27ilnn98gmf7nzlnr5rbiyfdj3iiqf2-fusiondirectory-1.3-fixes' differs
<das_j>
Is there a way to force nix to rebuild it? The bath broke because the SSD ist kind of broken
<das_j>
--delete is not a solution since I have ~800GB of dependants
<{^_^}>
[nixpkgs] @steveeJ closed pull request #106976 → wezterm: add licenses, install extra files, and update to a revision of 20210314 → https://github.com/NixOS/nixpkgs/pull/106976
<das_j>
Yeah, that builds it but does not keep the output
<supersandro2000>
Izorkin: I think the package name is just yarn
<das_j>
there is -K but that keeps the output with a different name
patagonicus0 has joined #nixos
patagonicus0 is now known as patagonicus
patagonicus has quit [Client Quit]
patagonicus has joined #nixos
ml| has joined #nixos
oharvey has quit [Ping timeout: 248 seconds]
oharvey has joined #nixos
Dr8128 has joined #nixos
gyzac[m] has quit [Ping timeout: 248 seconds]
heyarne[m] has quit [Ping timeout: 248 seconds]
leons has quit [Ping timeout: 248 seconds]
sobet[m] has quit [Ping timeout: 248 seconds]
spinus[m] has quit [Ping timeout: 248 seconds]
eliasp[m] has quit [Ping timeout: 248 seconds]
sarcasticdream[m has quit [Ping timeout: 248 seconds]
redcedar[m] has quit [Ping timeout: 248 seconds]
jbal[m] has quit [Ping timeout: 248 seconds]
codyopel has quit [Ping timeout: 248 seconds]
bendlas has quit [Ping timeout: 248 seconds]
bekkvann[m] has quit [Ping timeout: 248 seconds]
tjammer[m] has quit [Ping timeout: 248 seconds]
notgne2[m] has quit [Ping timeout: 248 seconds]
peterstorm[m] has quit [Ping timeout: 248 seconds]
toasty_avocado[m has quit [Ping timeout: 248 seconds]
ricklafleur[m] has quit [Ping timeout: 248 seconds]
axx has quit [Ping timeout: 248 seconds]
techtangents has quit [Ping timeout: 248 seconds]
jimmiehansson has joined #nixos
nrr has quit [Ping timeout: 248 seconds]
gleber has quit [Ping timeout: 248 seconds]
sudocurse has quit [Ping timeout: 248 seconds]
Guest20474_ has quit [Ping timeout: 248 seconds]
cbarrett has quit [Ping timeout: 248 seconds]
cab404[m] has quit [Ping timeout: 248 seconds]
yurb has quit [Ping timeout: 248 seconds]
blackriversoftwa has quit [Ping timeout: 248 seconds]
betawaffle has quit [Ping timeout: 248 seconds]
johanot has quit [Ping timeout: 248 seconds]
ShaRose_ has joined #nixos
HedgeMag- has joined #nixos
nicbk has quit [Ping timeout: 248 seconds]
NobbZ[m] has quit [Ping timeout: 248 seconds]
grin[m] has quit [Ping timeout: 248 seconds]
wvud[m] has quit [Ping timeout: 248 seconds]
siraben has quit [Ping timeout: 248 seconds]
ky0ko1 has quit [Ping timeout: 248 seconds]
genevino has quit [Ping timeout: 248 seconds]
ProofTechnique has quit [Ping timeout: 248 seconds]
HedgeMage has quit [Ping timeout: 248 seconds]
nikola1 has quit [Ping timeout: 248 seconds]
mikeplus64 has quit [Ping timeout: 248 seconds]
dsal has quit [Ping timeout: 248 seconds]
jtle has quit [Ping timeout: 248 seconds]
mvnetbiz_ has quit [Ping timeout: 248 seconds]
juansucks[m] has quit [Ping timeout: 248 seconds]
chvp has quit [Ping timeout: 248 seconds]
bachp has quit [Ping timeout: 248 seconds]
ptotter[m] has quit [Ping timeout: 248 seconds]
fuzzypixelz[m] has quit [Ping timeout: 248 seconds]
dunc4n has quit [Ping timeout: 248 seconds]
ShaRose has quit [Ping timeout: 248 seconds]
ShaRose_ is now known as ShaRose
ml| has quit [Ping timeout: 252 seconds]
m_hackerfoo has joined #nixos
nrr has joined #nixos
gyzac[m] has joined #nixos
cbarrett has joined #nixos
betawaffle has joined #nixos
sudocurse has joined #nixos
jtle has joined #nixos
nikola1 has joined #nixos
ProofTechnique has joined #nixos
blackriversoftwa has joined #nixos
johanot has joined #nixos
dsal has joined #nixos
heyarne[m] has joined #nixos
jonringer has quit [Ping timeout: 250 seconds]
sarcasticdream[m has joined #nixos
notgne2[m] has joined #nixos
__monty__ has joined #nixos
Qwerky has joined #nixos
installnixos[m] has quit [Quit: Idle for 30+ days]
itacer[m] has quit [Quit: Idle for 30+ days]
jonreeve[m] has quit [Quit: Idle for 30+ days]
n-osborne has quit [Remote host closed the connection]
<pinpox>
supersandro2000: I updated all-packages. I've replaced 1_50 with 1_51. There is also an older version, I suppose for backward-compatibility?
<pinpox>
supersandro2000: oh, nevermind my PR was closed, seems there is already one?
NobbZ[m] has joined #nixos
cole-h has quit [Ping timeout: 260 seconds]
ml| has joined #nixos
vidbina has quit [Ping timeout: 265 seconds]
utkarsh181 has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
mvnetbiz_ has joined #nixos
vidbina has joined #nixos
fuzzypixelz[m] has joined #nixos
chvp has joined #nixos
Qwerky has quit [Remote host closed the connection]
juansucks[m] has joined #nixos
bachp has joined #nixos
ptotter[m] has joined #nixos
dunc4n has joined #nixos
jbal[m] has joined #nixos
spinus[m] has joined #nixos
codyopel has joined #nixos
peterstorm[m] has joined #nixos
toasty_avocado[m has joined #nixos
ahmed_elgabri has quit [Ping timeout: 245 seconds]
bekkvann[m] has joined #nixos
ml| has quit [Ping timeout: 252 seconds]
bendlas has joined #nixos
redcedar[m] has joined #nixos
ddellacosta has joined #nixos
devhell has joined #nixos
sobet[m] has joined #nixos
tjammer[m] has joined #nixos
Qwerky has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
Qwerky has quit [Ping timeout: 268 seconds]
leons has joined #nixos
fufexan[m] has joined #nixos
diamondbond has quit [Ping timeout: 250 seconds]
axx has joined #nixos
eliasp[m] has joined #nixos
ricklafleur[m] has joined #nixos
yurb has joined #nixos
cab404[m] has joined #nixos
ml| has joined #nixos
fusion809 has joined #nixos
supercoven_ has joined #nixos
mallox has joined #nixos
supercoven has quit [Ping timeout: 240 seconds]
ml| has quit [Ping timeout: 246 seconds]
ahmed_elgabri has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
paddymahoney has joined #nixos
diamondbond has joined #nixos
<asymmetric>
i'm trying to copy files to the store of a remote machine on which i have sudo, but not root access, and nixos-rebuild complains about lack of valid signature
dingenskirchen has joined #nixos
ebn has joined #nixos
<asymmetric>
i've tried using `nix copy --no-check-sigs --to`, but i assume instead i'd have to change some setting on the remote end, right?
ahmed_elgabri has quit [Ping timeout: 260 seconds]
astylian has joined #nixos
<asymmetric>
trusted-public-keys ?
<tomberek>
--store some-store-path?trusted=1 sometimes does the trick
<stevenroose>
Izorkin: have you tried that service?
Dotz0cat has quit [Ping timeout: 265 seconds]
<stevenroose>
What I biumped into that I hated is that the config file reading is (1) not falling back to defaults; hence every value needs to be present and mostly (2) not being checked on startup. So if you forgot a value related to f.e. file importing, it will crash your peertube when a user tries to import a video, not earlier.
<stevenroose>
So I would really really not want to create the config file from the nix config, unless we can make sure that we provide all fields. I don't want to make it easy for a user to forget fields.
<stevenroose>
Right now the flow is to copy the config from github and change fields. It doesn't say, but you're not supposed to remove fields (I tried).
<stevenroose>
Doing an "extraConfig" on top of our limited provided config is only going to be a footgun.
<{^_^}>
Chocobozzz/PeerTube#3497 (by stevenroose, 15 weeks ago, closed): Missing config variables should cause error on startup
sangoma has joined #nixos
<stevenroose>
That seems to be part of 3.1.0. I think if we upgrade the package to 3.1.0, we might be able to get it working
ml| has joined #nixos
Dotz0cat has joined #nixos
<Izorkin>
stevenroose: yes checking in my test virtual pc. All settings are stored in config / default.yaml. The settings we need are overwritten using files config/production.yaml + config/local-production.yaml
<Izorkin>
stevenroose: I checked if the settings are applied through these parameters - it works.
johs has left #nixos [#nixos]
zebrag has joined #nixos
<stevenroose>
but idk if our packager provides the default.yaml, does it?
stree has quit [Ping timeout: 260 seconds]
fuiltilt has quit [Quit: WeeChat 2.9]
<Izorkin>
stevenroose: Yes, $ {pkgs.peertube} /config/default.yaml is used, needed parameters are overwritten by files config/production.yaml + config/local-production.yaml, which we generating when building.
ml| has quit [Ping timeout: 268 seconds]
<stevenroose>
Izorkin: hmm that is indeed nice, I remember having taken some fields out of my production.yaml file and getting errors
n-osborne has joined #nixos
<stevenroose>
so I don't know how that happened then. I didn't know about the defualt.yaml file before.
<dotdotok>
Hm, so, I'm reading through the manual entry for `nix shell` (https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-shell.html), and when I run the example `nix shell nixpkgs#youtube-dl`, and run the subsequent `youtube-dl --version` in the new shell session, I get "zsh: command not found: youtube-dl". Im assuming theres some sort of fix I need to add somewhere for zsh?
<srhb>
dotdotok: I cannot reproduce that. Are you sure the shell succeeded?
<dotdotok>
i didnt see any errors (or other output besides the initial download), I'm using only nix, not NixOS if that matters (and i do have flakes/experimental turned on)
ddellacosta has joined #nixos
ericsagn1 has quit [Ping timeout: 260 seconds]
Qwerky has joined #nixos
<srhb>
dotdotok: Does `nix run nixpkgs#youtube-dl` succeed?
<clever>
srhb: one thing that often trips people up, `nix-shell -p youtube-dl` puts youtube-dl into $PATH, while `nix-shell '<nixpkgs>' -A youtube-dl`, gives you a shell suitable for BUILDING youtube-dl
<dotdotok>
srhb: it does :^)
<srhb>
Yeah, but that's not the case with `nix shell`
<srhb>
So, confusing...
<srhb>
dotdotok: What's your version of nix then?
<clever>
srhb: what does `which youtube-dl` report inside your `nix shell` ?
<srhb>
clever: /nix/store/i61f8nrjrinhyx1iqqp4l38x49majhbv-python3.8-youtube-dl-2021.03.25/bin/youtube-dl -- it's explicitly on top of PATH
<exarkun>
anyone using yubikey pam ssh auth on nixos? either as client or server. are the necessary pam modules packaged? I don't understand the difference between pam-u2f (packaged, apparently) and pam-yubico (not packaged?)
<eggplant>
hello -- does anyone know anything about configuring wireguard interfaces? i added a bunch of configurations and i would like units for them to be generated, however they seem to be enabled by default which i would like to avoid
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
<sterni>
you could probably set systemd.services.<name>.enable = false; *but* I am not sure if they then get generated at all
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eggplant>
yeah i have the same problem if i set networking.wireguard.enable = false;
<eggplant>
i will give it a shot nontheless
stree has quit [Ping timeout: 260 seconds]
<clever>
eggplant: you can also mkForce the wantedBy, so its not wanted by multi-user.target
<clever>
then it wont auto-start
<eggplant>
cheers man
orivej has quit [Ping timeout: 240 seconds]
<eggplant>
still trying to wrap my head around how nix works
mallox has quit [Quit: WeeChat 3.1]
HedgeMag- is now known as HedgeMage
bqv has quit [Ping timeout: 258 seconds]
bqv has joined #nixos
stree has joined #nixos
acarrico has joined #nixos
ddellacosta has joined #nixos
waleee-cl has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #118412 → pythonPackages.bokeh: add comment to update together with panel, zigbee2mqtt: add upgrade warning → https://github.com/NixOS/nixpkgs/pull/118412
n-osborne has quit [Remote host closed the connection]
n-osborne has joined #nixos
superherointj has joined #nixos
n-osborne has quit [Read error: Connection reset by peer]
n-osborne has joined #nixos
averell has joined #nixos
<superherointj>
Tried Nix remote builds but it did not scale/distribute load beyond a single host and it seems to have no coordination to avoid busy hosts. Is there some tool or method to fix this? Thanks.
<supersandro2000>
superherointj: limit nix build cores on the machines
<superherointj>
supersandro2000, regarding the link I posted, my goal was to have one job per host. Is that configuration correct for this?
<tedious>
Hmm systemctl says display-manager is running but that's not true.
<tpw_rules>
so i'm sure smarter people have thought about this but i dream of nix having some sort of centralized build command manager that can make sure N=number of cores expensive commands are running independent of how many derivations are being built or each's individual level of parallelism. it's annoying to constantly reconfigure to compensate for jobs which can and can't use lots of cores
n-osborne has quit [Remote host closed the connection]
<tpw_rules>
supersandro2000: not as in "fail" but like simple jobs. like i have my 64 core machine configured to 1 job because i need to build tensorflow a bunch of times. but then it spends half an hour serially downloading dependencies and compiling trivial derivations. but if i set it to like 16 jobs then once the tensorflow builds start it just spends way too much time context switching
phil35 has joined #nixos
<matthewcroughan>
Any examples of the nix qemu test-driver being used with a non-nixos image?
zupo has joined #nixos
<phil35>
Hi everyone, i've been following dorian's tutorial and when I'm installing nixos, I encountered this error:
<phil35>
Failed assertions:
<phil35>
- The 'fileSystems' option does not specify your root file system
<phil35>
Does anyone know how to fix it?
eggplant has quit [Remote host closed the connection]
<supersandro2000>
but that should be auto detected by the install script which generates configuration-hardware.nix
<supersandro2000>
tpw_rules: do you substitute downloads?
<eggplant>
systemd.services.wireguard-<server>.wantedBy = lib.mkForce []; doesn't seem to be working...
<tpw_rules>
my simple idea was just to have all commands run by derivations sent to a daemon which will start processes only when there is a core free, with some heuristics for processes that have varying load. but that would break multiple build users and im not sure how you would hook those commands anyway
<tpw_rules>
supersandro2000: i'm not sure?
<supersandro2000>
if I am not rebuilding the entirety of nixpkgs or building from stdenv up to what I need I never really achieve high parallism and stuff like tensorflow always ends up alone at the end with 50 concurent jobs
<tpw_rules>
usually it's custom derivations so it's running curl or git clone directly
<supersandro2000>
>> If set to true, Nix will instruct remote build machines to use their own binary substitutes if available. In practical terms, this means that remote hosts will fetch as many build dependencies as possible from their own substitutes (e.g, from cache.nixos.org), instead of waiting for this host to upload them all. This can drastically reduce build
<supersandro2000>
times if the network connection between this computer and the remote build host is slow. Defaults to false.
<phil35>
>but that should be auto detected by the install script which generates configuration-hardware.nix
<phil35>
Yea, idk why it's not automatically insert the disk I'm using. So I looked it up in nano and I see fileSystems."/boot" = { device = "/dev/disk/by-uuid/"; fsType = "vfat"; Is it correct or is there anything that I should correct?
<ar>
phil35: that's the entry i have on my laptop for /boot, where I use ESP as /boot: fileSystems."/boot" = { device = "/dev/disk/by-uuid/C091-50F9"; fsType = "vfat"; };
<ar>
phil35: I'm not exactly sure about the "/dev/disk/by-uuid/" path from your example
<phil35>
yea, could it be because at the first time I didn't look up correctly and set mount /dev/disk/by-label/nixos /mnt before even though I'm on UEFI?
EdmundMiller[m] has joined #nixos
<phil35>
but after that I create /boot in /mnt and run mount /dev/disk/by-label/boot /mnt/boot
ddellacosta has quit [Remote host closed the connection]
marsh has quit [Quit: No Ping reply in 180 seconds.]
n3t has quit [Ping timeout: 260 seconds]
stree has quit [Ping timeout: 268 seconds]
marsh has joined #nixos
<tedious>
Am I the only one using nightly isos from hydra?
<rotaerk>
hail hydra
n3t has joined #nixos
<ToxicFrog>
tedious: probably not, but you might be the only person using *today's* nightly iso
<ToxicFrog>
I install from nightlies but the last time I installed a fresh system was two months ago, so the best I can say is that it worked then
oxalica has quit [Remote host closed the connection]
<ToxicFrog>
Also, this sounds like this is less a problem with the nightly isos in general and more a bad interaction with your hardware specifically that KDE handles less gracefully than GNOME.
oxalica has joined #nixos
<tedious>
I haven't been able to get a working x display for days.
<tedious>
I think it's 3 different plasma5 isos and now a gnome one.
<tedious>
This didn't happen a few months ago with hydra nightlies and doesn't happen with any other live isos.
<matthewcroughan>
The only problem is that I can't find a way to insert packages into mkDockerImage
<matthewcroughan>
yknow, packages that aren't python related, like git.
<pie_>
note its a pun on the german machen, which means to make
<pie_>
mach is the imperatve (?) form
<pie_>
which means make nothing!
<pie_>
i think? :D
* infinisil
can confirm
<matthewcroughan>
I do love all the stuff you can get up to with the nix name.
ahmed_elgabri has quit [Ping timeout: 250 seconds]
<pie_>
matthewcroughan: idk , looking at the readme it sounds like you might want thiss:
<pie_>
packagesExtra (list) Add extra packages. Can contain tarball-URLs or paths of python source code, packages built via mach-nix.buildPythonPackage, or R Packages.
<matthewcroughan>
python source code, i.e not any nixpkg
<matthewcroughan>
I can't get git from pypi
M53K5HUN_8[m] has quit [Quit: Idle for 30+ days]
coniferous-cube[ has quit [Quit: Idle for 30+ days]
guntherploetner[ has quit [Quit: Idle for 30+ days]
reedrw[m] has quit [Quit: Idle for 30+ days]
<pie_>
"or R packages""
<pie_>
are there maybe examples somewhere?
<pie_>
look at the tests directory
ManiacOfMadness has joined #nixos
<pie_>
ok i cant tell either :D
<pie_>
theres some mentions of .nixpkgs and other such but that seems to be the output?
<pie_>
well
<matthewcroughan>
providers pie_
<matthewcroughan>
Might be the way
n-osborne has joined #nixos
<pie_>
do you need to add packages to the python package? because then it looks like the buildInputs override seems to be the way to go
<pie_>
and if you want git independent of the package you do .nixkpkgs?
<matthewcroughan>
Nope, I just want to add git to the docker image so people can use the image
<matthewcroughan>
because inside, they need git to do stuff
<pie_>
ok but the question is hwo to get it in the docker image, right
<pie_>
you could try taking a look at https://github.com/tazjin/nix-1p though i dont remember how introductory it is or if its for people that already know functional langs
<lukegb>
matthewcroughan: so I think the answer to your, err, initial question is that alongside the "requirements" attribute you set, you can also pass `packagesExtra`
<pie_>
anyway by passing {} you gave it empty arguments, which apparently it was happy with
<matthewcroughan>
but mkDockerImage ISN'T happy with that, right?
<matthewcroughan>
isn't happy with empty args
<matthewcroughan>
Okay hmm..
<matthewcroughan>
pie_: so it needs to be something like contents = oldAttrs.contents ++ [ git ]
<pie_>
it should allow others unless that means the opposite of what i think it does extra_pkgs_other = filter (p: ! (p ? rCommand || p ? pythonModule || l.is_src p)) packagesExtra;
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<matthewcroughan>
packagesExtra = [ git ]; ?
<pie_>
note the rest is processed by the two statements before that line
<matthewcroughan>
Ah yeah, I couldn't figure out how to pass pkgs. in
<matthewcroughan>
error: anonymous function at /home/matthew/git/foundries/mkdocs/test.nix:15:1 called without required argument 'pkgs'
<matthewcroughan>
error: 'streamLayeredImage' at /nix/store/j97jj9f5h21qdyfhl7prsqacbj8zc197-nixpkgs/pkgs/build-support/docker/default.nix:727:24 called with unexpected argument 'packagesExtra' pie_
gustavderdrache has quit [Ping timeout: 248 seconds]
gustavderdrache1 is now known as gustavderdrache
Dr8128 has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
domogled has joined #nixos
zupo has joined #nixos
<abathur>
matthewcroughan: I'm not very sure because I'm not reading the whole scrollback, but iirc the general mach-nix setup pattern entails declaring a nixpkgs and passing that in when you import it
<mindavi>
Ericson2314: Any idea why enabling strictDeps causes pkg-config to not find deps anymore? I've seen this issue e.g. in json-glib. When I enable strictDeps, gobject-introspection can't be found anymore by pkg-config (both in nativeBuildInputs). When I put pkg-config in depsBuildBuild it works again -- but that doesn't seem very logical to me
kaligule has joined #nixos
<kaligule>
Hello there
fendor_ is now known as fendor
<mindavi>
kaligule: Hello kaligule :)
<kaligule>
rfc-72 tells us that the future of nixos documentation shall be commonmark (markdown). Is there any project to actually make this happen (aka convert and replace the existing documentation)?
<Ericson2314>
I.e. there should be various suffixed versions
<confususs>
Thank you @jess :)
<jess>
np
zupo has joined #nixos
<kaligule>
colemickens: By the way, it was you (in this chat) who gave me the confidence to try out nixos (about a year ago). Today I have it running on my main computer and on my server and am in the process of refactoring my configuration.nix to be more modular. Thanks a lot colemickens. https://schauderbasis.de/posts/first_step_to_nixos/
jonringer has quit [Remote host closed the connection]
<matthewcroughan>
abathur: heyo
<matthewcroughan>
I'm looking more to just specify a package that I want to be included in the docker image, and can't really find a clear example
confusus has joined #nixos
confususs42 has joined #nixos
<mindavi>
confususs: Not sure how to do that in a better way
<matthewcroughan>
abathur: if I do what you say, I still get error: 'streamLayeredImage' at /nix/store/4dyd6nmxipljwlcbyaix10cslcw7idv5-nixpkgs/pkgs/build-support/docker/default.nix:703:24 called with unexpected argument 'packagesExtra'
<mindavi>
Ericson2314: Apparently some of the pkgs I expect in PKG_CONFIG_PATH are not there when I enable strictDeps (all in nativeBuildInputs)
<mindavi>
But I can't really tell why that is the case
<cole-h>
confusus: Why not just `runCommand "avconv" {} "mkdir -p $out/bin; ln -s ${pkgs.ffmpeg}/bin/ffmpeg $out/bin/avconv"`
<cole-h>
that should work
jonringer has joined #nixos
<Ericson2314>
Mindavi pkgs in native build inputs will go in PKG_CONFIG_PATH_FOR_BUILD
justanotheruser has quit [Read error: Connection reset by peer]
<fresheyeball>
how can I capitalize a string?
<confusus>
Aww yeah, thanks @cole-h!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mindavi>
Ericson2314: As far as I can tell there is no PKG_CONFIG_FOR_BUILD (neither with and without strictDeps enabled). For reference, I'm using the new nix cli (nix build, nix develop)
ieltan has joined #nixos
<mindavi>
Unless maybe that's setup later (not together with the shell?)
<edrex>
@colemickens: basically i'm just wanting to import modules from inside the machine definitions rather than in flake.nix, and it seems like that's straightforward. I don't love the pattern of putting machine modules in flake.nix - it seems like one entry point per machine is tidier, and just pass in inputs.
<edrex>
Generally, larger flakes-based configs like yours seem to end up with a lot of helper code in flake.nix to map over outputs etc. Seems like a common helper module could clean that up and help standardize the patterns.
<edrex>
one point of confusion I still haven't gotten past: are modules nixos-only? the docs seem to indicate so but I don't understand why they should be.
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.sqlite3: use Dune 2 »: https://git.io/JYA0c
<edrex>
Mindavi cole-h: Some modules rely on systemd or nixos-based guarantees about the system, certainly. The module system itself though, and specifically the ability to define new config options nder the config key, doesn't seem to have any dependency on nixos. Is the same syntax supported in plain nix? https://nixos.wiki/wiki/Module#Structure
<colemickens>
ultimately a nixos toplevel is just another nix output
<colemickens>
one that contains links to systemd units that work together to make up "a nixos system"
<simpson>
edrex: To what end would one want configuration? Like, what is there to configure?
<colemickens>
I don't think there's anything fundamentally preventing that nixos toplevel from being partially consumable from a traditional distro but it seems like it might be harder than it sounds.
<samueldr>
edrex: you're right, the modules system can work outside of NixOS, but the *NixOS modules*, the ones in <nixpkgs/nixos> assume ownership of the system
<edrex>
i'm mainly wondering if I can define my own options in flake outputs, so they can be used in other flakes
<samueldr>
home-manager uses the modules system from NixOS
<samueldr>
robotnix is an example of how it can be used to do *totally not Linux* things with it
<samueldr>
I don't know if flakes provides any facilities or tools for the modules system though, so I can't say there
<samueldr>
but I can totally say that the modules _system_ can work detached from NixOS
<alp>
:r
<edrex>
cool, I'll look in those projects for examples. I was just reading parts of the robotnix repo via your reddit link. would have a play with it if I had a fast enough compilation machine :D
<alp>
oops
<samueldr>
"my" reddit link edrex?
<samueldr>
(I guess it's possible I linked to it in the past)
<samueldr>
for completeness, Mobile NixOS uses the modules system too, but assuming it composes of top of NixOS's own modules, which is why I didn't talk about it
<mindavi>
I did manage to make a build for my android phone with robotnix (I just bought a new SSD with enough room for it), but I haven't had the courage to flash it to my daily driver
<samueldr>
Mindavi: assuming LineageOS, it's as safe as a LineageOS build you would have done locally... for what that's worth ;)
<mindavi>
Yeah, I guess it's quite safe to do so. It's indeed lineageos. I just don't want to break my daily driver with something I'm not 100% sure about :p
<mindavi>
And there was something about overriding the updater, I'd like to just keep using the standard lineageos updater
<mindavi>
FYI, I'm also hacking at nixpkgs to get some more stuff cross-compiling, but the gtk stuff is kinda hard since everything seems to depend on gobject-introspection
<samueldr>
oh definitely understandable, because even what I said _is_ a bit concerning
<edrex>
i think i'm going to flash grapheneos to my pixel 3. glad we're getting past dodgy xda roms, with bootloader signing turned on and good OTA updates
<samueldr>
Mindavi: you saw (or authored) that PR, right?
<samueldr>
Mindavi: I am not using the results from those builds in any of my systems because it is a public shared ressource
<samueldr>
but it is good to see if an expensive build is expected to build
<samueldr>
(and also execute if it can be run without graphics)
gustavderdrache has joined #nixos
<mindavi>
Mm yeah, I understand. It can indeed be handy to try some things out
<mindavi>
I'm glad I've a new SSD with lots of storage now, I kept running out with all the branches and cross-compilation I was doing
n-osborne has quit [Remote host closed the connection]
<samueldr>
haha, in my build machine I installed a 1TB ssd dedicated to the nix store... you pretty much know why
<mindavi>
Anyhow, I'm heading out, time for bed
<mindavi>
Yes, this is also a 1TB SSD which is (for now) dedicated to the store
<mindavi>
I didn't allocate half of the drive yet, but we'll see what happens
<mindavi>
Don't have any use for it right now, so it'll probably end up as store scratch space
<edrex>
<colemickens "edrex: you might be interested i"> interesting. Right not I'm just trying to learn the basics by writing a nixos-config for a bunch of random hardware. I could see wanting to be able to install services for nix packages on macos or whatever, that's cool.
kozowu has quit [Quit: Connection closed for inactivity]
<abathur>
matthewcroughan: sorry; I guess I missed the bing while afk; I guess I didn't read enough to avoid mis-interpreting; looking at the mach-nix source (https://github.com/DavHau/mach-nix/blob/fe91f35e33b128c296758a1744d252f7b76f28fb/default.nix#L86) my guess is that the .dockerImage attr is a stock docker image that mkDockerImage has created, not a mach-nix derivation anymore
<abathur>
matthewcroughan: have you tried moving the extra packages attr up into the initial set alongside requirements? I've noted the presence of the docker stuff in mach-nix but haven't used it yet
<edrex>
nixos flake support q: when `nixos-rebuild switch` fails, subsequent runs see the cached failure and exit early. To skip the cache so I can `--show-trace`, i've been making trivial edits to flake.nix. Better way?
ddellaco_ has quit [Remote host closed the connection]