<cmacrae>
So, general question out to the channel: I'm using mkForce in some places to alter the ExecStart of some services. Is there any way I can get the "default" value to reference it?
delli3_ has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
delli3 has quit [Ping timeout: 260 seconds]
prusnak has quit [Quit: Connection closed for inactivity]
fendoer has quit [Read error: Connection reset by peer]
delli3_ has quit [Ping timeout: 260 seconds]
delli3 has joined #nixos
duckonomy has joined #nixos
<cmacrae>
Perhaps an example will help: I'm using writeShellScriptBin combined with mkForce to set the ExecStart of a systemd unit. In this shell script, I'm just using 'while' to wait for a file to appear before starting the service. As such, when it gets to starting the service, I'm just using the "default" value that's defined in nixpkgs by hand. Less than ideal. I'd prefer to be able to interpolate the default value
<{^_^}>
[nixpkgs] @erictapen opened pull request #76519 → meli: init at alpha-0.4.2 → https://git.io/Jeb4O
mbrgm_ has joined #nixos
gustavderdrache has joined #nixos
<guill>
I'm relatively new to Nix, so this might be a stupid question, but I'm having trouble finding a solid answer through search engines: Is there any way to get some of the configuration features of NixOS on a system that isn't actually NixOS? Specifically, I'm looking to use `networking.firewall` options to configure iptables in a docker container
<guill>
based on 'nixos/nix'.
thc202 has quit [Ping timeout: 248 seconds]
<guill>
Alternatively, is anyone aware of a docker image actually based on NixOS rather than just a stripped down version of Nix?
mbrgm has quit [Ping timeout: 268 seconds]
mbrgm_ is now known as mbrgm
delli3 has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Read error: Connection reset by peer]
delli3 has joined #nixos
mexisme has joined #nixos
<mica[m]>
guill: I don't think so.
<mica[m]>
Not aware of a docker image eithrr
mexisme has quit [Ping timeout: 260 seconds]
<worldofpeace>
cmacrae: Doesn't systemd have some unit key like ConditionPathExists to start unit if a file exists?
<notgne2>
guill: I might have what you want but it depends
<notgne2>
the generated container won't work with Nix commands or anything, it's not mutable, this is just so you can use the same config you would on NixOS to generate a Docker container, to avoid writing annoying scripts and Dockerfiles
bvdw has joined #nixos
<cmacrae>
worldofpeace: Very good point! I've actually also just realised I could just use ExecStartPre... but perhaps (depending on behaviour, such as retries) I could look into ConditionPathExists!
shibboleth has quit [Quit: shibboleth]
<cmacrae>
Looks like ConditionPathExists is an if, not a while - but still a good point to go digging!
<guill>
@notgne2: That's super cool! Not quite what I was looking for, but I think it's something I may still be able to use. Thanks!
<cap_sensitive>
Hi. I'm trying to build w3m with imlib2 support of macOS: `w3m = super.w3m.override { graphicsSupport = true; imlib2 = super.imlib2; }` But I got build error when building w3mimgdisplay
<cap_sensitive>
I suspect imlib2 is not installed by nix. How can I check that?
Arahael has joined #nixos
drakonis has quit [Ping timeout: 240 seconds]
dansho has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @ehmry opened pull request #76525 → navilu-font: init at 1.2 → https://git.io/Jeb0N
orivej has joined #nixos
<dansho_>
i think i broke my NIX_PATH
<dansho_>
cant rebuild
Rusty1 has quit [Quit: Konversation terminated!]
dansho_ has quit [Quit: Leaving]
dansho has joined #nixos
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<{^_^}>
[nixpkgs] @danbst pushed commit from @yorickvP to master « nixos/borgbackup: install job wrappers to systemPackages for easy borg access »: https://git.io/Jeb0j
<{^_^}>
[nixpkgs] @danbst closed pull request #64888 → nixos/borgbackup: generate wrappers per job for easy borg access → https://git.io/fjXxD
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
<Enzime>
does anyone know how to build 32-bit apitrace?
<{^_^}>
[nixpkgs] @ehmry pushed to master « glow: init at 0.1.3 »: https://git.io/JebzP
thc202 has joined #nixos
Cale has quit [Ping timeout: 260 seconds]
<mlen>
Hi, I'd like to copy a file that I keep alongside the derivation into the build directory -- what's the cleanest way to achieve this?
gagbo has quit [Ping timeout: 268 seconds]
__monty__ has joined #nixos
<raboof>
what could explain 'Package ‘firefox-bin-71.0’ has an unfree license (‘unknown’), refusing to evaluate.'?
vidbina has quit [Ping timeout: 260 seconds]
<raboof>
funny thing is I get it even when I comment out firefox from my system packages - the nixos-rebuild trace looks like https://pastebin.com/mMEE8qC0
vidbina has joined #nixos
<puffnfresh>
raboof: you need to set allowUnfree
<__monty__>
Maybe it's because they include graphics that aren't free?
<puffnfresh>
mlen: cp ${./file} $out/
<raboof>
puffnfresh: I'm trying not to :)
<__monty__>
I know firefox non-bin couldn't include the logos for a bit.
<__monty__>
puffnfresh: Any sonic streaming in the near future?
<raboof>
I'm getting this even when I have firefox commented out though - not sure how it's being pulled in
is_null has quit [Ping timeout: 240 seconds]
<mlen>
puffnfresh: thanks, didn't expect it to be that simple :) doesn't it copy it to the target dir instead of the build dir though? or does that depend on the phase?
<thblt>
The branding/license issue has been solved for some time now
<__monty__>
thblt: With `firefox` yes. But maybe that's the reason `firefox-bin` doesn't have a free license?
<puffnfresh>
mlen: cp ${./file} .
<mlen>
puffnfresh: ack, thanks
<immae>
mlen puffnfresh note that this command will have an unpredictable name if you write it like that, you may want to use cp ${./file} ./file instead :p
<__monty__>
Ah, and it's probably rendered as SPDX "unknown"?
<__monty__>
raboof: So firefox-bin *is* unfree. Not sure why you get the error if you don't have it in your config though. I'd be surprised if anything depended on firefox-bin.
<thblt>
But that's a bit strange, even Debian packages Firefox (with the official branding) in free nowadays
<__monty__>
Fwiw, firefox could be an alternative for you. If you stick to a stable channel the build should always be cached.
<__monty__>
raboof: ^
<__monty__>
thblt: Not that strange, users can't rebuild the official mozilla binary.
<puffnfresh>
are you sure you saved the file raboof? I don't get why you'd get that error otherwise
<__monty__>
And it's only because the distros have gotten explicit permission that they can build firefox with official branding, afaik.
<raboof>
(i'm tracking nixos-unstable btw, not sure if that's relevant)
<thblt>
No, that wasn't the issue (for Debian at least). It was that anyone should be able to build a vanilla or patched Fx with official branding.
<raboof>
__monty__: I'm using `firefox` actually - but my nixos-rebuild will complain about `firefox-bin`, `firefox-release-bin` and `firefox-release-bin-unwrapped` whether or not I have `firefox` commented out
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
opthomasprime has joined #nixos
<raboof>
ok, so it makes sense that firefox-*bin* are unfree, but not that I'm getting errors about those
<__monty__>
thblt: That's not the only reason. That's the reason it's still nonfree for debian. Their own binaries are only able to use the firefox branding because they got specific permission. As did NixOS.
<__monty__>
afaik
<thblt>
__monty__: Firefox-branded Firefox is free for Debian
<__monty__>
Yes, but only because mozilla specifically said "We probably won't come after you with our trademarks, keep up the good work."
<__monty__>
As someone creating a derived work from the free version distributed by debian. You still run the risk of mozilla coming after you for the branding.
<__monty__>
Let's move to #nixos-chat for the licensing talk.
<raboof>
ah, `dropbox` depends on `firefox-bin` apparently
<raboof>
I've been meaning to get rid of that eventually anyway :D
<__monty__>
That's a weird dependency imo.
<thblt>
That's not enough to be called “free” by Debian. Rule 8 of the DFSG explicitely states that DFSG-compatibility requires that “License Must Not Be Specific to Debian”
<__monty__>
And the thread shows that most people are worried they're in a very grey area re DFSG#8 : )
<thblt>
Granted :) But NixOS seems to follow their interpretation, firefox is free, firefox-bin isn't.
<{^_^}>
[nixpkgs] @nlewo pushed commit from @Vonfry to master « offlineimap: add proxy dependency (#76347) »: https://git.io/Jeb2r
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
chenhq2005 has joined #nixos
<the_pumpkin_man[>
Hey, Im trying to install Thunar without installing XFCE. So I installed xfce.thunar with gvfs, thunar-volman and thunar-archive-plugin but none of the 2 plugins are working and I get no icons. Are there actually issues on Thunar ?
<NoctisLa1>
I have Thunar without XFCE on i3, not sure about the plugins but the icons work fine.
<the_pumpkin_man[>
Do you have some icon themes installed ? I also use i3
<NoctisLa1>
Just using the basic adwaita dark.
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/Jeb27
<NoctisLa1>
I think the Thunar plugins aren't working for me either though.
<__monty__>
Have you given console file managers a chance? None of those depend on a DE : )
<the_pumpkin_man[>
brightone: I prefer open source ones and it isnt in the nixos repository
<the_pumpkin_man[>
__monty__: no, I will try ranger
<brightone>
tbh, both ranger and nnn are very, very usable for just about anything you can imagine doing with your files. ranger even has media previews available right in your terminal! :)
<__monty__>
*depending on your terminal, caveats apply : )
<the_pumpkin_man[>
Im actually using alacritty
<the_pumpkin_man[>
But do they have the ability to mount and manage files in drives ?
<__monty__>
Hmm, then you'd be restricted to either the ueberzug preview method (requires X11) or mpv. (This is for image previews, textual previews should just work.)
<__monty__>
Ranger doesn't automount drives.
<__monty__>
Once mounted it's just like any other fs though.
<the_pumpkin_man[>
I dont really need to automount them, but to have the ability to see "you have some USB key or external drive plugged in, click it to mount it"
<the_pumpkin_man[>
As in graphical file manager
<__monty__>
It doesn't do that currently.
<the_pumpkin_man[>
Then I will stay on Thunar and try to make it work
iyzsong has quit [Read error: Connection reset by peer]
<Enzime>
# tg<any> makes a new tab then goes to the folder specified by g%any
<Enzime>
eval -q [cmd("map tg{} eval fm.tab_new(path='{}')".format(chr(k), fm.ui.keymaps['browser'][103][k][3:]))for k in fm.ui.keymaps['browser'][103] if fm.ui.keymaps['browser'][103][k].startswith('cd ')]
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « xsecurelock: 1.5.1 -> 1.6.0 (#76478) »: https://git.io/Jebwo
<thblt>
I asked yesterday, sorry if you've seen it already: Is there a way to disable a given “tunable” with powerManagement.powertop.enable? Specifically, autosleep for the receiver of my wireless mouse, which makes it lag for a half second or so every time I grab it.
<hexo>
hi, does anyone use FBP extension in firefox? it seems like it has a problem saving settings, could it be somehow nixos related?
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @filalex77 to master « ueberzug: init at 18.1.5 »: https://git.io/JebKD
<mpickering>
When trying to use a python created using `withPackages`, I am getting this confusing error "ModuleNotFoundError: No module named 'pkg_resources'"
<lassulus>
mpickering: which packages are you trying to use?
<itsu[m]>
Hello, beginner here. I have this `configuration.nix` https://pastebin.com/tXwqd6TA Unfortunately, Elm doesnt seem to build properly. It says it cannot build derivation. One of the error is about a module (Netwokr.Socket) that doesn't export `bindSocket`
brightone has quit [Ping timeout: 265 seconds]
<itsu[m]>
I don't know where to go from here. Is this because my configuration is wrong or maybe it's something impacting everyone ??
<simpson>
I'd approach it from the other way around: When would you *not* want to split a package?
<asymmetric>
simpson: why isn't every package a split package?
<asymmetric>
for /share for example
<simpson>
asymmetric: Take as example any single-binary undocumented Go package; with only one artifact in bin/, there's not anything to split away.
<asymmetric>
should manpages be their own package?
<asymmetric>
*store path?
<simpson>
Yep. See the table in the manual.
<NinjaTrappeur>
0/, are there any mirageos users here? I'd be interested to hear about your nixos-based dev workflow. Mirage doesn't seem to be packaged in nixpkgs, I was wondering how do you deal with that.
<simpson>
NinjaTrappeur: I talked with Mirage's maintainer a bit ago. They weren't really comfortable with building w/o opam, and I wasn't able to dig much into the nature of the build rules.
<simpson>
It seems like Mirage will need custom Nix support; it's not just another OCaml package.
<NinjaTrappeur>
I see.
<asymmetric>
simpson: i don't see a mention of /share (or manpages). all the pkgs i've seen so far don't split /share into its own store path, fwiw
<NinjaTrappeur>
So => qemu vm for no
<NinjaTrappeur>
w I guess?
<simpson>
NinjaTrappeur: I dunno. Whatever works for you. Share if you like.
<simpson>
asymmetric: "doc" for /share/doc, "man" or "devman" for man pages (depending on chapter), "info" for info pages. See the table at https://nixos.org/nixpkgs/manual/#sec-multiple-outputs- Is your question about a package that you currently have, that puts various interesting things into share/ but not share/doc/?
<NinjaTrappeur>
I will, thanks :)
<asymmetric>
simpson: i'm removing shared lib functionality from a package and was wondering if i should also remove "dev" from the outputs. seems like i should
<simpson>
asymmetric: Maybe? I'm not gonna say "probably". Instead, I'm gonna recommend manually examining the output package's artifacts.
<asymmetric>
simpson: is there something specific i should look for after removing "dev"?
<simpson>
Not really. Just look at all of the artifacts, see if there's anything that can't be sorted into existing outputs.
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #76546 → nvidia: fix $ substitution in udev rules → https://git.io/JebP3
fusion809 has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
MinceR_ has joined #nixos
mexisme has joined #nixos
ayerhart_ is now known as ayerhart
ayerhart has quit [Client Quit]
ayerhart has joined #nixos
MinceR has quit [Ping timeout: 258 seconds]
MinceR_ is now known as MinceR
mexisme has quit [Ping timeout: 260 seconds]
kolaente_ has joined #nixos
Chiliparrot has joined #nixos
cosimone has joined #nixos
drakonis__ has joined #nixos
captn3m0 has quit [Ping timeout: 258 seconds]
ddellacosta has quit [Ping timeout: 260 seconds]
<clever>
duairc: if one job has 20 shares, and the other has 40 shares, the one with 40 shares gets 2x the cpu time
<duairc>
Hmmm. If I'm building everything on remote machines anyway, does that matter?
<clever>
duairc: it controls which jobset in hydra gets more time, if you have more then one
<duairc>
Okay, I think that makes sense. I guess I'm just surprised it can do that when remote machines are doing all the actual building.
drakonis__ is now known as drakonis
<clever>
duairc: if 2 jobsets are fighting over that remote machine, hydra uses the shares to equally divide the workload
cosimone has quit [Quit: Terminated!]
<duairc>
But if I don't particularly care, and/or I don't expect a situation where I need to build multiple jobsets at the same time is likely to occur, I can just set everything to have the same value, right?
<duairc>
And the values only have meaning relative to one another, their absolute value doesn't mean anything? Like it's nothing like the number of cores on a machine?
cosimone has joined #nixos
phreedom_ has quit [Remote host closed the connection]
<immae>
Ankhers: if you’re able to adapt a shell.nix doing that to your needs, then yes: https://paste.ee/p/Atu4H this nix-shell file will spawn a psql process in background that you can use seamlessly in the shell (I don’t know much home-manager, but I guess it can make use of this kind of thing?)
<Ankhers>
immae: Thanks. I will take a look at that.
<lirzhv>
what`s the deal with /etc/static?
<lirzhv>
i`m asking because i have some self made scripts which use config files in /etc and not sure if i should place them now in /etc/static instead with symlinks in /etc ?
<immae>
lirzhv: /etc/static is a link to a derivation. Most files in /etc are a link to files in /etc/static, but not all
<immae>
for instance /etc/ssh/ssh_host_key is a known one that doesn’t have its place in a derivation
chloekek has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
duckonomy has joined #nixos
kleisli has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mehlon>
but when compiling for android it says this: error: attribute 'lib' missing, at /nix/store/la370qpk0lpjqbjhm1vjkgkv0qyixv58-nixexprs.tar.xz/pkgs/development/tools/misc/gdb/default.nix:15:4
Rusty1 has quit [Remote host closed the connection]
ixxie has joined #nixos
scasc has joined #nixos
Rusty1 has joined #nixos
chloekek has joined #nixos
selfsymmetric-pa has joined #nixos
ixxie has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11 has joined #nixos
<Thra11>
If a project provides a default/example config in the source repo, but doesn't install it anywhere by itself, would it be best to copy the example config into e.g. share? Or is there a better way to make it available to users of the package?