<red[evilred]>
vigoux (IRC): Firstly -=- Welcome! Secondly = I'm going to say something somewhat inflammatory about systemd and follow it up with a "But..."
<red[evilred]>
I certainly qualify as someone who hates systemd on principle - because of its design, approach, and the way that it was introduced into the wider Linux ecosystem.
<red[evilred]>
But...
<red[evilred]>
The way that NixOS works - pretty much all of your exposure to systemd is abstracted away. I've been using NixOS for years now and I've pretty much forgotten that systemd exists
<red[evilred]>
So - I would say, as long as you're not packaging services or daemons - chances are you're not even going to know that it's there in your day-to-day NixOS use.
<pushqrdx>
can someone tell my why can't i add my shell script as a package like so
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkMWa
<spacetato>
pushqrdx: and it doesn't show up in your path after rebuild?
<euandreh>
What error are you getting?
<pushqrdx>
spacetato no it doesn't build at all throwing `A definition for option `users.users.pushqrdx.packages.[definition 1-entry 35]' is not of type `package'`
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkMWy
<spacetato>
pushqrdx: did you wrap the call to `writeShellScriptBin` in parens or define it in a `let`?
<spacetato>
`packages = [ writeShellScriptBin "..." "..." ] ` won't work because nix will think `writeShellScriptBin` is the first member of the array, and so on
<spacetato>
so either `packages = [ (writeShellScriptBin "..." "...") ]; ` or `packages = let mypkg = writeShellScriptBin "..." "..."; in [ mypkg ];`
<pushqrdx>
oh, i still confuse myself with the "functional" style in nix language
<pushqrdx>
so in my configuration.nix i have a nixpkgs = { config.allowUnfree = true; config.packageOverrides = pkgs: {vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };}; };
<pushqrdx>
but that's it nothing else that would alter the place of overlays
teto has quit [Ping timeout: 260 seconds]
<aterius>
Hmm, not sure if the overrides might conflict
<aterius>
Can you try removing that for now?
iH8c0ff33 has joined #nixos
<pushqrdx>
sure i will remove it and rebuil/reboot and come back
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkM2D
alp has joined #nixos
hyiltiz has quit [Client Quit]
* red[evilred]
does the PR dance
hyiltiz has joined #nixos
hyiltiz has joined #nixos
h0m1 has quit [Ping timeout: 264 seconds]
hyiltiz has quit [Client Quit]
hyiltiz has joined #nixos
h0m1 has joined #nixos
<aterius>
Wait attribute nixpkgs not found
<aterius>
try pkgs
turlando has quit [Ping timeout: 256 seconds]
<aterius>
```
<aterius>
```
<aterius>
nix-env -iA pkgs.neovim-nightly
<pushqrdx>
same... how can i make sure that this cachix thing was properly registered, i mean installed it, ran the cachix use command (which added a file to my /etc that i imported in my config.nix) and rebuilt
bbarker has quit [Remote host closed the connection]
<V>
just delete that and then gc and you're good to go
ilmu1 has quit [Ping timeout: 260 seconds]
<V>
in future, you can pass --no-out-link to nix-build to make it not produce those 'result' symlinks
ilmu1 has joined #nixos
<V>
(for ephemeral stuff)
<sss2>
thx
<sss2>
for info
<{^_^}>
[nixpkgs] @IvarWithoutBones opened pull request #104849 → pkgs/tools/compression: cleanup of various packages → https://git.io/JkMK0
supersandro2000 has joined #nixos
D_ has quit [Remote host closed the connection]
<jneto>
I'm settting my flake registry system-wide with "nix.registry" and use them within home-manager via "builtins.getFlake" but I'm having trouble with nur flake.
<jneto>
cannot write modified lock file of flake 'flake:nur' (use '--no-write-lock-file' to ignore)
D_ has joined #nixos
<jneto>
yes, I could use '--no-write-lock-file' but I cannot pass this option to home-manager.
<rogerr>
why doesn't `home.sessionPath = ["~/.local/share/foo/"];` work? echo $PATH doesn't show it in list even tho ~/.nix-profile/etc/profile.d/hm-session-vars.sh is sourced and it contains `export PATH="$PATH${PATH:+:}~/.local/share/foo/"`
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<sss2>
nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix --arg system \"i686-linux\" default.nix
<sss2>
what wrong here ?
<sss2>
last time i executed it it was worked
<sss2>
and now it failing with error: a 'i686-linux' with features {big-parallel} is required to build '/nix/store/d78z4c8jw8m3ixwg2g2jlpgm2h2pqmrq-linux-5.4.80.drv', but I am a 'x86_64-linux' with features {kvm}
jmeredith has quit [Quit: Connection closed for inactivity]
<rogerr>
why doesn't `home.sessionPath = ["~/.local/share/foo/"];` work? echo $PATH doesn't show it in list even tho ~/.nix-profile/etc/profile.d/hm-session-vars.sh is sourced and it contains `export PATH="$PATH${PATH:+:}~/.local/share/foo/"`
negaduck has joined #nixos
ericsagnes has quit [Ping timeout: 264 seconds]
supersandro2000 has quit [Ping timeout: 265 seconds]
<typetetris>
Many Thanks to whomever invented that NIXOS_LUSTRATE stuff !
<typetetris>
Works like a charm.
supersandro2000 has joined #nixos
raghavsood has quit [Ping timeout: 245 seconds]
<ivan>
people who liked NIXOS_LUSTRATE also liked emergency-kexec
<bqv>
I feel like I should ask because it's happened a lot of times now
<bqv>
In fairness, not exclusively in the context of nix, just mostly
<deadpixels>
Hi! A newbie question here: I was playing around with nix-shell yesterday and really love it. however when I try to run the command with --pure the build fails because ALSA cannot be found. I assume I have to enable pulseaudio or similar in the same way I do in my nix configuration. How do I do that when invoking nix-shell?
Sellow has joined #nixos
<Abdullah>
I want to enable pulseaudio support for polybar. How can I do that?
<ivan>
bqv: are people obligated to respond to things?
<bqv>
ivan: that's my question. As a policy, I always at least respond that I don't have time currently or I don't care. I assumed everyone would at least extend that courtesy too, but that is seeming wrong
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JkDmd
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
cr4y1_ has joined #nixos
<ivan>
bqv: sometimes the best way to express my total disinterest or disapproval is through silence
<bqv>
So I'm right to assume it's rude, then
karantan has joined #nixos
<ivan>
I think there's some level of projection involved in considering it rude in general, though it can be obviously rude in some contexts
<bqv>
Hm, ok.
<ivan>
you can consider some edge cases with e.g. very popular people
<energizer>
bqv: some people manage their time/attention by turning off github notifications, or only respond to emails on fridays, or are too in-demand to respond to everyone, or whatever. so it's not necessarily disrespect. but that's certainly one of the things it can indicate.
<bqv>
Fair point
<Abdullah>
How can I compile polybar with extra features like puluseaudio and mpd?
<karantan>
hi, how can I get the path of the haproxy config? I want to change the "ExecStartPre" command but I want to keep the original part ("${pkgs.haproxy}/sbin/haproxy -c -f ${haproxyCfg}")
alp has quit [Ping timeout: 272 seconds]
<karantan>
but I don't know how to define `haproxyCfg` var
<simpson>
Abdullah: `polybar.override { mpdSupport = true; pulseSupport = true; }` might work; I'm checking to see whether it builds. Reading the derivation for polybar will show you the different available flags. (There's also `polybarFull`, built with everything.)
<energizer>
it can be sorta odd when an expert is hanging out in a support channel, someone asks a reasonable question and expert doesnt respond. on one hand they could easily answer the question; on the other hand that's pretty much always true and cumulatively could create huge demands on their time.
<Abdullah>
energizer: I wish I could. Its my 3rd day in this channel and 2nd day on nixos. I hope someone will answer you
<energizer>
Abdullah: i'm responding to bqv's query, i dont have a question of my own
<energizer>
tho actually i did have one earlier
<Abdullah>
simpson: giving me error. error: syntax error, unexpected '{', expecting '.' or '=', at /etc/nixos/configuration.nix:141:20
<sphalerite>
bqv: yep, agree with energizer. I have a long list of github notifications that I intend to get to "eventually" and haven't yet — definitely not out of intentional rudeness. Maybe I could manage my time better, but eeeeh.
<Abdullah>
polybar.override { mpdSupport = true;
<energizer>
Abdullah: for a syntax error you'll probably have to post your code
<rogerr>
anyone doing neovim with rust support? help me get mine set up?
werner291 has joined #nixos
<rogerr>
home manager fwiw
<bqv>
sphalerite: yeah, makes sense
<sphalerite>
bqv: and I guess it's the same old open-source thing: most of us aren't getting paid to support ~randomers on github issues and have personal lives or jobs that are more important and therefore get more of our limited resources.
cyphase has quit [Ping timeout: 256 seconds]
<simpson>
Abdullah: Put it in parentheses and put it in your list of packages.
cfricke has joined #nixos
<bqv>
sphalerite: at least in the context of nixpkgs, that to me screams the need for more maintainers, yet everyone seems against that idea?
<simpson>
Abdullah: Consult your Nix tutorial. `packages = [ ... (polybar.override ...) ... ];` Recall that Nix has strange rules for lists; spaces, not commas, separate list items.
<sphalerite>
bqv: I don't know where you get that impression from. I'm not against that for example.
<Abdullah>
working now
<bqv>
Last I saw it discussed, I thought the outcome was that the requirements to gain commit access were not lowered
<bqv>
And instead, those with access but idle were dropped
<typetetris>
Updated to nixos-20.09, now my menu-bar is missing from libreoffice now. Already tried `libreoffice --safe-mode` and disable opengl-stuff. But to no avail. Anyone has seen this and has a solution to get the menu bar back?
<pushqrdx>
can someone assist me getting that cachix thing to work, i am trying to use an
<pushqrdx>
Second i added the overlay to $HOME/.config/nixpkgs/overlays/neovim.nix
<pushqrdx>
First i installed cachix, ran cachix use, added the import to my configuration.nix rebuilt and rebooted
<pushqrdx>
overlay but i can't get nix-env to see it.
<pushqrdx>
Now i am trying to run `nix-env -iA nixpkgs.neovim-nightly` but getting error: attribute 'nixpkgs' in selection path 'nixpkgs.neovim-nightly' not found
<pushqrdx>
i can see the cache added to my nix.conf correctly so i don't know why nix-env can't recognize it
zarel has quit [Ping timeout: 256 seconds]
zarel has joined #nixos
<{^_^}>
[nix] @regnat opened pull request #4282 → fix the hash rewriting for ca-derivations → https://git.io/JkDrY
<pushqrdx>
thibm good god, that was it, i have been banging my head for hours lol
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkDKo
<etu>
za1b1tsu: Click links and you get to look at different concepts and things step by step
<za1b1tsu>
etu, still official documentation
<za1b1tsu>
but presented differently?
<thibm>
pushqrdx: nixpkgs is the default channel name on non-NixOS Nix installation, on NixOS it's nixos ;)
zimbatm has quit [Ping timeout: 240 seconds]
<pushqrdx>
thibm one other question though, if i do `cachix use` it modifyies /etc/nix/nix.conf adding the used cache, how can i remove something that i used?
zimbatm has joined #nixos
<thibm>
pushqrdx: IIRC, it should modify /etc/nixos on nixos, not /etc/nix/nix.conf (which is, in fact, modified by the /etc/nixos configuration)
<thibm>
(On nixos deleting the file /etc/nixos/cachix/<name>.nix should be enough. But I never tried actually)
<pushqrdx>
thibm so after i added the generated cachix.nix to my configuration and rebuilt i noticed that /etc/nix/nix.conf had the extra entries, so that's just my configuration after a rebuild that did that?
<thibm>
yes
<pushqrdx>
thibm makes sense, thanks for saving me :D
<thibm>
normally you import the generated cachix.nix from your configuration.nix (as told by the CLI), and this cachix.nix imports all files in /etc/nixos/cachix/. These files add the options nix.binaryCaches and nix.binaryCachePublicKeys, which are used to generate /etc/nix/nix.conf
<pushqrdx>
thibm yup that's exactly it, i didn't notice the /cachix directory thanks for pointing it out
<srenatus>
hi there. I'm trying to use vscode-with-extensions on an osx system with plain `nix` installed. I've found the wiki, but I don't know where to put that let expression. ~/.defexprs? what would I `nix-env -i` then?
<lunik1>
any Opera users? video playback does not seem to work - on arch you needed opera-ffmpeg-codecs (like with vivaldi), but that does not seem to exist in nixpkgs
<{^_^}>
[nixpkgs] @AndersonTorres merged pull request #104892 → mpc-qt: Fix compilation failure due to mpv changes → https://git.io/JkD5A
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/Jkyf7
mahogany has joined #nixos
<eyJhb>
It is weird with Guix. Do we know what/when/whatever they branched off Nix/NixOS?
<{^_^}>
[nixpkgs] @bennofs pushed commit from @r-ryantm to master « pwntools: 4.2.2 -> 4.3.0 »: https://git.io/JkyYk
iH8c0ff33 has quit [Ping timeout: 264 seconds]
kjglsgsd has quit [Ping timeout: 245 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
<vika_nezrimaya>
So, as my involvement in Nixpkgs seems to grow, I've started wondering: what's the procedure to gaining commit rights in Nixpkgs? (not that I'd like to do that now, I don't deserve such a privilege yet, I'd end up merging a lot of junk and breaking everything for now lol)
<vika_nezrimaya>
kaliumxyz: a normal bind volume? will save space for you but also could provide stuff that you wouldn't want in a container
<vika_nezrimaya>
if you wanna build something inside of a docker container you'll either have to pass a nix-daemon socket OR host nix-daemon inside with a separate store and push to a binary cache
<vika_nezrimaya>
(MinIO supports S3 APIs and could probably be a decent binary cache)
<kaliumxyz>
oh I can expose the socket?
<adisbladis>
By far the easiest way is to do what vika_nezrimaya suggested and bind mount the store (ro) and optionally the socket
<vika_nezrimaya>
kaliumxyz: I mean you could, just be careful with trusted_users
veleiro`` has joined #nixos
<vika_nezrimaya>
don't run your stuff in container as root
<halfbit>
using protobuf in cross compilation is confusing, should I put it in buildInputs nativeBuildInputs or both?
<halfbit>
if I put it in both, it tries to execute the target arch's protoc which is wrong
za1b1tsu has quit [Ping timeout: 264 seconds]
sevenfourk has joined #nixos
<adisbladis>
halfbit: Which package?
waleee-cl has joined #nixos
bobo__ has joined #nixos
gustavderdrache has joined #nixos
gustavderdrache has left #nixos [#nixos]
gustavderdrache has joined #nixos
bobo_ has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #nixos
<kaliumxyz>
adisbladis: if its mounted read only wont it cause issues if the docker container tries to get a dependency that doesnt exist inside the nix store?
oxalica has quit [Quit: oxalica]
oxalica has joined #nixos
<adisbladis>
kaliumxyz: No, that's taken care of by mounting the socket rw
bobo__ has quit [Ping timeout: 260 seconds]
<adisbladis>
The daemon is responsible of writing to the store
endformationage has joined #nixos
<adisbladis>
kaliumxyz: If you're using the daemon (not single user) /nix is normally ro
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lsix has quit [Ping timeout: 260 seconds]
bobo_ has joined #nixos
werner291 has joined #nixos
werner291 has quit [Client Quit]
phalange has joined #nixos
za1b1tsu has quit [Ping timeout: 256 seconds]
<Fare>
Hi. I'd like to add a package glow-lang for my language glow under development. There's no "stable" version currently. Should the package be called "glow-lang" or "glow-lang-unstable" ?
<simpson>
Fare: You might not want to include your subsystem into nixpkgs yet, or at all; perhaps a flake will be a better path. (FWIW I have been thinking about Monte in nixpkgs for years, and each time I realize that it's not ready for other people; it would be a vanity project.)
<raghavsood>
Is there a mini PC or desktop that I could buy for aarch64 stuff locally?
<phalange>
hi folks, how do I set DPI in configuration.nix? tried services.xserver.dpi = "96" but no effect
<gchristensen>
raghavsood: the question of course is whats your budget?
<adisbladis>
If I could run linux on an arm mac I would buy one in a heartbeat
<raghavsood>
gchristensen: let's say up to 1k?
<simpson>
phalange: What does /var/log/X.0.log say about all of this? It'll usually say something if it's overriding your user-chosen configuration.
ngyj has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
<raghavsood>
I am considering getting an Arm mac to help with the nixpkgs updates to support it as well
<{^_^}>
[nixpkgs] @ryantm pushed commit from @tomberek to master « dydisnix: init at unstable (#49366) »: https://git.io/JkyWv
<phalange>
simpson, could the log be elsewhere? in /var/log no X.0.log
werner291 has joined #nixos
bobo_ has quit [Ping timeout: 256 seconds]
domogled has quit [Ping timeout: 260 seconds]
<Fare>
simpson: maybe I should just put it in a nixpkgs fork for now, and a flake in the near future. I want my users to be able to install it deterministically with a simple nix-env command.
domogled has joined #nixos
sevenfourk has joined #nixos
FRidh has quit [Ping timeout: 260 seconds]
FRidh has joined #nixos
<simpson>
phalange: It should be in /var/log under NixOS. Maybe Xorg completely failed to start? systemd might have logs as well.
<simpson>
Fare: In Monte-land, we use Cachix for that, and have a GH Action which invokes Cachix as a sort of CI.
<phalange>
Abdullah, I found services.xserver.dpi = 96; and put that in config. after rebuild, no change.
<Abdullah>
I'm noob. I don't even know what that does ;-)
<Abdullah>
That's why I removed it
<Yaniel>
are you perhaps overriding it in .Xresources
<phalange>
lukegb, I smiled when I read that, not using wayland though
<Yaniel>
that is, ~/.Xresources
<Abdullah>
I have no such thing in my Xresources.
<Abdullah>
I think wiki told me to do something like dpi = 80
<Abdullah>
I might be wrong.
<stites[m]>
Silly question! I just wrote my first flake (yay!) which includes my first nixos module (yay!) and everything appears to compile. How do I add this flake's nixosModule to my non-flake based nixos configuration?
<Yaniel>
also you'll surely have to restart X11 if you change stuff like that
<Abdullah>
it did not make difference for me so I removed it
<Yaniel>
ideally by rebooting
<Abdullah>
I rebooted today.
<Abdullah>
does it make difference for a screen with 1920x1080 Yaniel
<Yaniel>
you mean HiDPI?
<Yaniel>
if it's the physical size of a postage stamp, yes
vigoux has quit [Quit: Coyote finally caught me]
<Yaniel>
it = the screen
<Abdullah>
resolution: 96x96 dots per inch
<Abdullah>
this is what xdpyinfo reported for my screen.
<Abdullah>
so I think I don't have to do something
mortum has joined #nixos
davidv7_ has quit [Read error: Connection reset by peer]
<Abdullah>
btw my laptop had 1600x900 when it came. My good luck, it was broken so I changed it to 1920x1080
<phalange>
simson, there's an option called xrandrHeads.*.monitorConfig but the * kicks up an error, and it's not clear what the * should be
<Yaniel>
Abdullah: dpi is just needed to make things the same physical size across multiple screens
<Yaniel>
so you don't have to struggle with UI for ants
<Abdullah>
like when I connect another external monitor?
<Yaniel>
if you have a 24" ish 1080p screen you don't need to touch it
jonatanb has quit [Remote host closed the connection]
<Abdullah>
I have another monitor. which is 1280x1080
<simpson>
phalange: Sorry, but unless you have an Xorg log, I can't help further. The log is where Xorg would explain what it's setting the DPI to, and why it was configured that way, and whether there's any warnings or errors or problems.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkyB0
<simpson>
No worries. In very many ways, NixOS is a standard Linux distro. The software is all the same, and just slightly differently configured so that each package is treated as a capability and not just a pile of files.
bdju has quit [Read error: Connection reset by peer]
veleiro`` is now known as veleiro
<Abdullah>
I'm loving it
veleiro has quit [Changing host]
veleiro has joined #nixos
<Abdullah>
going to create my first video using nixos.
jonatanb has quit [Ping timeout: 264 seconds]
<simpson>
Good times. NixOS is my preferred distro for streaming, too.
<stites[m]>
Hi all, does anyone know how to add a flake's nixosModule to my non-flake based nixos configuration?
ATuin has quit [Ping timeout: 272 seconds]
<Yaniel>
what serves as the gc root for nixos vms?
<Yaniel>
or do they have one at all
<Abdullah>
simpson: I use a function to create videos. But I have no fonts I think that's why some overlay texts icons aren't working.
<Abdullah>
It detects another font for text. But didn't know why no icons. maybe I don't have those fonts?
<Yaniel>
certainly not in /usr/share/fonts
<Abdullah>
ffmpeg detected the fonts path you know ;-)
<Yaniel>
then why specify the full path
bdju has joined #nixos
<Abdullah>
wrote it when I was on arch
<rogerr>
why doesn't `home.sessionPath = ["~/.local/share/foo/"];` work? echo $PATH doesn't show it in list even tho ~/.nix-profile/etc/profile.d/hm-session-vars.sh is sourced and it contains `export PATH="$PATH${PATH:+:}~/.local/share/foo/"`
<Yaniel>
but yes make sure you have the fonts you want listed in fonts.fonts
<Yaniel>
in your nixos configuration
<lukegb>
rogerr: if this is from a graphical session, it's possible that ~/.nix-profile/etc/profile.d/hm-session-vars.sh was already sourced into your graphical environment and won't be sourced again
<Abdullah>
ah yes. lemme search for Ubuntu Nerd fonts
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jky0D
<Yaniel>
switching fails sometimes with more complicated services
<Yaniel>
but if you're just adding stuff to systemPackages and switching that shouldn't be a problem
<Yaniel>
ofc you'll want to gc obsolete stuff regularly
<simpson>
Wanting to install new packages is a desire which eventually goes away. Instead, nix-shell is typically used to create temporary environments with desired packages. And after that, there's direnv https://github.com/direnv/direnv/wiki/Nix
<{^_^}>
[nixos-search] @turboMaCk pushed 5 commits to turboMaCk/fix-loading: https://git.io/JkyEJ
<Abdullah>
are the directories in /nix/store/some_digits_package static? I mean can I use them in scripts?
<Yaniel>
use /usr/bin/env
<Fare>
Unrelatedly, I haven't been able to use HDMI as audio sink on NixOS (video is fine). Is there some configuration I am missing? (Intel chips for video)
m4ts has joined #nixos
<Abdullah>
or they change with time like when I update or install new package?
<simpson>
Fare: There's two parts to that answer. First, Typhon scales down; my local Typhon checkout allows me to nix-build each part of the suite as I need it, against my modified working tree.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jkyz9
m4tsa_ has quit [Ping timeout: 260 seconds]
<Abdullah>
ffmpeg needs the font path Yaniel
Jackneill has quit [Read error: Connection reset by peer]
werner291 has quit [Ping timeout: 272 seconds]
werner292 has joined #nixos
<Abdullah>
font file path
Jackneill has joined #nixos
<Yaniel>
nixos sets up fontconfig for you and keeps the cache up to date
<simpson>
Fare: Second, the way that Monte's code loader searches paths is idiosyncratic to reduce security headaches; the loader can only search *one* directory for an entire module's transitive dependencies. This removes most of the typical npm-era package-management frustration; there's no node_modules.
werner292 is now known as werner291
<Abdullah>
font file path is /nix/store/jv5vr6768da7j49m47giilwf0ibw0jmh-nerdfonts-2.1.0/share/fonts/truetype/NerdFonts/Ubuntu Bold Nerd Font Complete.ttf
<Abdullah>
so is it okay to use it or there is some portable way ?
Boomerang_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-search] @turboMaCk pushed to turboMaCk/fix-loading « throw away init if page doesn't change during url transition »: https://git.io/JkygC
ngyj has joined #nixos
<Yaniel>
Abdullah: fontconfig
<siraben>
Is it possible to see how much space GC would free?
<teto>
siraben: ther emust be a 'dry-run' option if you check the help/manual
<simpson>
Abdullah: `nix-shell -p nerdfonts` gives a temporary environment where those fonts are available; you can use the nix-shell interpreter trick to get those fonts into your environment where your shell script is running fontconfig.
<siraben>
teto: I know about --dry-run but it only reports which paths would be deleted
<teto>
fetchFromGitLab generates an url .../archive.tar.gz?sha=rev which fails on a private gitlab of mine. If I change it to .../archive?sha=rev it works :s any idea ?
<siraben>
Interesting, `nix-collect-garbage --dry-run` actually prints nothing
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.ha-ffmpeg: 2.0 -> 3.0.2 »: https://git.io/Jkyaf
<simpson>
Fare: Monte modules are unversioned, and we are explicitly avoiding defining a package/library format; instead we have a tool which combines many modules into one single zero-dependency "muffin" module. (Think like Newspeak https://newspeaklanguage.org/, where most objects are anonymous.) Redirect to ##programminglanguages ?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « executor: 23.1 -> 23.2 »: https://git.io/JkywT
<rogerr>
why im trying to install rust using rustup but it fails because it can't find openssl, even though i added openssl to home.packages. what i doing wrong pls?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « consul: 1.8.5 -> 1.8.6 »: https://git.io/JkywO
<numkem>
rogerr: any reason why you can't just do nix-shell -p rust ?
<numkem>
rogerr: mozilla has an overlay for using the nightly version of rust or any other version
FRidh has quit [Ping timeout: 260 seconds]
<rogerr>
rather just start simple and install it for my whole user account
FRidh has joined #nixos
<numkem>
rogerr: you could just add `rust` to your home.packages if you wanted to
red[evilred] has joined #nixos
<red[evilred]>
rust?
<red[evilred]>
or rustc?
<rogerr>
what's weird is i was able to run it manually but can't t hrough ansible
<rogerr>
rustc
proofofkeags has joined #nixos
<LnL>
,library rogerr
<{^_^}>
rogerr: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
vidbina has joined #nixos
<LnL>
"installing" libraries with nix intentionally doesn't work
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « omnisharp-roslyn: 1.37.3 -> 1.37.4 »: https://git.io/Jkyw5
<rogerr>
er nvm i guess it doesn't work manually either
hnOsmium0001 has joined #nixos
<rogerr>
so every time i wanna do something in rust i have to run a nix-shell -p rust command?
<{^_^}>
[nixpkgs] @grahamc opened pull request #104915 → {fprintd,libfprint}-tod: init, plus libfprint-2-tod1-goodix: init at 0.0.6 → https://git.io/JkywN
<LnL>
you can use the rustup version if you want that, but if you want to build a rust thing that links against openssl you'll need nix-shell -p openssl
<{^_^}>
[nixpkgs] @NeQuissimus pushed to master « awscli: Add test »: https://git.io/JkyPn
vs^ has joined #nixos
saschagrunert has quit [Remote host closed the connection]
hyper_ch4 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Max SendQ exceeded]
bbarker has joined #nixos
hyper_ch2 has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #104823 → pythonPackages.pyscard: Remove patch that is included in 1.9.9 and 2.0.0 → https://git.io/JkMnI
<{^_^}>
[nixpkgs] @jonringer pushed commit from @SuperSandro2000 to master « pythonPackages.pyscard: Remove patch that is included in 1.9.9 and 2.0.0 »: https://git.io/JkyPh
rajivr has quit [Quit: Connection closed for inactivity]
devmohe has joined #nixos
<devmohe>
Hi, how can I add an environment variable to makeFlags that is set to NIX_BUILD_CORES? I tried `makeFlags = ["CPUS=$NIX_BUILD_CORES" "both"];` but I don't think that worked as I can see the dollar escaped
<{^_^}>
[nixpkgs] @teto pushed commit from @hmenke to master « gitAndTools.pass-git-helper: 0.4 -> 1.1.0 »: https://git.io/Jky16
<thibm>
devmohe: Yes. Although in that case it's not escaped, it's just the make syntax $(variable). (And the $ is escaped to not be interpreted by bash)
<devmohe>
Yeah, thanks for the explanation
thblt has joined #nixos
<thblt>
I've had to increase the size of my / recently, and I found fileSystems."/".autoResize = true; very useful. Is it reasonable/not weird to leave the line in my config?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to staging « gnupg: 2.2.23 -> 2.2.24 »: https://git.io/JkyMC
<jasom>
So, I'm deploying a PHP application on NixOS. Depending on how a child is spawned it either inherits the environment or gets PATH=/no-such-path. If I use the PHP system(), the environment seems inherited, but the application is using some weird process library; some googling has shown me that /no-such-path comes from systemd, can anyone point me in the right direction to continue debugging this?
devmohe has quit [Remote host closed the connection]
slack1256 has joined #nixos
<dsx>
How to build nixos sd image for armv7l?
werner292 has joined #nixos
cosimone has quit [Remote host closed the connection]
<Fare>
simpson: actually, I'm interested in both the PL approach *and* the nix-specific mapping of this packaging issue.
<simpson>
Fare: I, too, await nixpkgs-specific advice; I want to make sure that Monte is very compatible with Nix, possibly using it as the preferred build system. So far, all I've heard is to use flakes; I'm waiting for them to be more stable first.
justanotheruser has joined #nixos
flix59 has quit [Remote host closed the connection]
raghavsood has quit [Remote host closed the connection]
<mortum>
Hi guys. I have such classic problem, but despite that i can't solve this problem. Http error 200 from cache.nixos.org when trying nixos-rebuild switch. I've try disable ipv6, use --keep-going and use substitute false advise from nix.dev. But I've noticed that it depends with fact that i can not access to cache.nixos.org via traceroute.
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JkyHz
<mortum>
Last hop in *cw.net. And from another machine on Win 7 tracert cache.nixos.org works great
kreyren has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @WilliButz to release-20.09 « grafana: 7.3.3 -> 7.3.4 »: https://git.io/JkydE
meh` has joined #nixos
<srid>
I enabled xmonad, along with i3 and GNOME on my nixos config. But even with "none+xmonad" selected in login screen, it puts me in i3. Does anyone know what I can do to *debug* this silliness?
<{^_^}>
[nixpkgs] @kampka opened pull request #104930 → keyutils: fix build with llvm/clang → https://git.io/JkydV
<{^_^}>
[nixpkgs] @srhb merged pull request #104923 → nixos/tests/networking: Alleviate race in scripted test → https://git.io/Jky9a
<lordcirth>
hardware.video.hidpi.enable also exists, but not sure exactly what it does
<Yaniel>
can I rebuild my system temporarily from a local nixpkgs checkout?
<Yaniel>
i.e. without switching the channel that root is following
fendor has joined #nixos
<sphalerite>
Yaniel: nixos-rebuild test -I nixpkgs=path/to/your/nixpkgs
<sphalerite>
Yaniel: or nixos-rebuild boot with the same (that will create a permanent system generation, but later rebuilds without -I will still rebuild from the channel that you had before)
<Yaniel>
thanks
<Yaniel>
looks like I was just missing the "nixpkgs=" bit
<Abdullah>
still error. undefined variable python3
<Abdullah>
lukegb:^^
<lukegb>
did you swap python3 for "pkgs.python3"?
<Abdullah>
swap?
<lukegb>
Where previously you were using "python3" you would need "pkgs.python3", probably, because python3 is inside the attrset conventionally called "pkgs"
pushqrdx has quit [Remote host closed the connection]
<lukegb>
At the top of your configuration.nix you've got something that looks like { (something) pkgs, (something) }:
<lukegb>
Right, so yeah: you have a line right at the top { config, pkgs, ... }:
zakame__ has quit [Ping timeout: 264 seconds]
<lukegb>
The details of where they come from is a bit magic but basically "config" lets you refer to other bits of the config, and "pkgs" contains the contents of nixpkgs (and maybe something else? I'm sure flakes does something magic here)
<lukegb>
Where you've got "environment.systemPackages =" - you've got "with pkgs;" there, which means you can refer to things inside "pkgs" without writing "pkgs." in front of them every time
<lukegb>
so instead of saying "[ pkgs.wget pkgs.neovim pkgs.curl " and so on, you can say "with pkgs; [ wget neovim curl " instead, which is... shorter and more readable
<Abdullah>
that's default config. I just modified it as I learnt
astylian has quit [Quit: Leaving]
<lukegb>
Sure
<lukegb>
I'm just explaining bits of it :P
<lukegb>
You also refer to "python-with-my-packages", which obviously isn't in the default nixpkgs set
jperras` has joined #nixos
<Abdullah>
I just copied it from wiki
jperras` has quit [Client Quit]
<lukegb>
Yeah, I'm still just explaining what you've written :P
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkSvC
pushqrdx has joined #nixos
<Abdullah>
How can I overcome this systemd units not finding the commands?
<octe>
lordcirth, what I want to do is download another file and place it in the build directory somewhere, so i can use fetchurl and bind it to a variable.. how do i place it somewhere?
<lordcirth>
octe, you just do srcfoo = fetchurl ... and it will get downloaded. Then you can do "cp ${srcfoo} ./build"
<{^_^}>
[nixpkgs] @mweinelt pushed 7 commits to release-20.09: https://git.io/JkSfz
<realrokka>
Is somebody else is having trouble with gitlab after 20.09 upgrade? The gitaly.service won't start and complains about "unsupported git version 2.28.0".
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JkSJf
<SomeoneSerge>
A nix/bazel/cc toolchain question. If I follow https://www.tweag.io/blog/2018-03-15-bazel-nix/ to set up a build for a shared library, the resulting .so has RUNPATH set to /nix/store/... - is that an expected behaviour?
<pushqrdx>
i am trying to make the simplest possible overlay over the existing vim, and by the rules of overlays i should be getting the same thing just with a changed revision
treotmnor has quit [Remote host closed the connection]
<pushqrdx>
however there seems to be some secret sauce somewhere in the original neovim package, that doesn't propagate with the overlay
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkSIL
<pushqrdx>
becuase normal neovim install has all the required stuff correct, but just changing the src in an overlay yields different results, i.e no python, no ruby, no python3 support
<pushqrdx>
also creating an overlay over the neovim package doesn't work but for some reason over the "neovim-unwrapped" it works even though it appears that both point to the same nix expr
<cole-h>
The neovim package wraps neovim-unwrapped
<pushqrdx>
cole-h and i want to override the src of that wrapper because the wrapper seems to be the thing that ties together the required python/python3 etc
<pushqrdx>
however i can't overlay it for some reason
<cole-h>
If you want to change the src of neovim, you have to overlay neovim-unwrapped
<pushqrdx>
cole-h but then i get a broken install without the wrapper
<pushqrdx>
now -iA neovim, rebuilt neovim and gave me 0.5
<pushqrdx>
holy crap... finally
<pushqrdx>
idk what happened though and i don't like thing to magically work like that
iH8c0ff33 has quit [Ping timeout: 256 seconds]
eoli3n has quit [Ping timeout: 256 seconds]
<cole-h>
Oh
<cole-h>
If you were using -iA
justanotheruser has quit [Ping timeout: 256 seconds]
<cole-h>
that's why
euandreh has quit [Quit: WeeChat 3.0]
<pushqrdx>
comparing my 2 pastes the only changes were pname and the neovim overrides
<pushqrdx>
cole-h why what :D
<pushqrdx>
the attribute is using pname right xD
<cole-h>
Because nix-env is annoying to deal with :)
<cole-h>
Or maybe not
<cole-h>
I don't really know
<cole-h>
But glad that it works. (You should really not use nix-env, though. It's got loads of gotchas.)
<pushqrdx>
i don't use it usually it's just that i wanted to test the overlay before i move that into my config
<pushqrdx>
i only have 4 packages in -q
fendor has quit [Remote host closed the connection]
<pushqrdx>
would my overlay work when i move neovim to my users.user.packages though?
<cole-h>
If it were me, I'd still test using my config. You can even just use `nixos-rebuild test`
<cole-h>
and it will switch your current system to it, but not change it for boot
<pushqrdx>
cole-h you mean your overlay?, and i don't get the part about rebuild
<cole-h>
You were using `nix-env` to test the package. I'd rather just add it to my user's packages and `nixos-rebuild test` instead.
<pushqrdx>
oh i didn't know that there's test command, been rebuilding generations like a dummy
<pushqrdx>
so test will replace thing at runtime as if i rebooted?
<pushqrdx>
thigs*
<cole-h>
what
meh` has quit [Ping timeout: 264 seconds]
<pushqrdx>
nixos-rebuild test, what does it do?
<cole-h>
`nixos-rebuild switch` is basically `nixos-rebuild boot` + `nixos-rebuild test` -- `nixos-rebuild boot` changes the generation you'll boot into, and `nixos-rebuild test` changes the current generation of your system
<cole-h>
man nixos-rebuild for more
<pushqrdx>
the test part made me think that it's not permenant for some reason
meh` has joined #nixos
<pushqrdx>
and applies without reboot
<cole-h>
It's not
<cole-h>
If you reboot, it will go back to your previous generation
<clever>
cole-h: for extra complication, boot doesnt really work on systemd-boot, since that can only boot what is a valid generation
<clever>
cole-h: but grub's boot code, can boot things that are not generations
<cole-h>
💫
<gchristensen>
`nixos-rebuild boot` does work with systemd-boot, though?
<pushqrdx>
cole-h emoji picker?
<clever>
gchristensen: it might be specific to switch-to-configuration boot
<gchristensen>
I guess switch-to-configuration boot doesn't..yeah