<{^_^}>
#9415 (by joepie91, 4 years ago, open): libGL not working on non-NixOS (without setting up)
user_0x58 has joined #nixos
<benley>
I'm trying to package a commercial app that ships with a bunch of its own libraries, including QT and libxcb, and I'm not sure if it's causing problems to mix them with nixos versions or if something else is going on
<{^_^}>
[nixpkgs] @cdepillabout pushed 3 commits to master: https://git.io/JJM0c
realisation has joined #nixos
user_0x58 has joined #nixos
<DigitalKiwi>
https://mostlyabsurd.com/files/mlv-app/default.nix can someone review this i'm trying to add darwin support to packages i maintain that don't currently support it but can and started with this one
gentauro has quit [Read error: Connection reset by peer]
<benley>
whoa cool, I may have solved my qt problem by ditching the vendor-provided copy of all the QT libraries and using autoPatchelfHook to replace them with nixos versions
rardiol has joined #nixos
suzanne has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 256 seconds]
user_0x58 has quit [Read error: Connection reset by peer]
pjt_tmp has joined #nixos
<_habnabit>
i think i asked the wrong question a few hours ago.. writeTextFile and the other trivial builders are for the case where i'm calling mkDerivation, right? i'm looking at editing /etc/nixos/configuration.nix and adding files to the system to configure installed services. is environment.etc the right place to put those config files?
<_habnabit>
to be clear, these are services with no options listed in https://nixos.org/nixos/options.html already, so it seems like it's up to me to configure them
user_0x58 has joined #nixos
<_habnabit>
or, should i make distributions to contain my configuration?
<_habnabit>
DigitalKiwi, nomad, in this case. no systemd service unit; no configuration path; nothing but the binary. it's enough to run the daemon, but i have to assemble all the parts myself. i suppose i could make an overlay for adding this to the nix nomad package? i'm not sure how i'd develop on this stuff locally before submitting it upstream
captn3m0 has joined #nixos
dirkmkdir has left #nixos ["Good Bye"]
<_habnabit>
DigitalKiwi, consul has options, but i kinda don't like how it's set up? if i want to run it myself without upstreaming my work, i'm not sure if i should do that the same way or make a consul-alt package which sets up the service or something else
<srhb>
zangi: It was added to nixpkgs after 20.03 branchoff and no one has backported it/requested a backport.
<srhb>
zangi: And now, 20.03 is nearing EOL anyway :)
<kyren>
hey, I'm having a bit of trouble trying to cross compile nixos to a raspberry pi 3b+, I already have nixos running on the pi, I'm just trying to build a new version of nixos from my workstation
<kyren>
I've set nixpkgs.crossSystem to `{ config = "aarch64-unknown-linux-gnu"; system = "aarch64-linux"; }`, and I'm using nixos-rebuild with the `--target-host` flag to push to the pi, and the error I'm getting is:
<kyren>
error: a 'x86_64-linux' with features {} is required to build '/nix/store/xxxx-aarch64-unknown-linux-gnu-binutils-2.31.1.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
diogenes_ has left #nixos ["vergissmeinnicht"]
<srhb>
kyren: Are you really trying to build it from an aarch64-linux?
<energizer>
_habnabit: nixos usually runs daemons with systemd, are you trying to avoid that?
<_habnabit>
energizer, no?
kyren2 has joined #nixos
<_habnabit>
energizer, i'm not sure what part would've implied that
<energizer>
_habnabit: "no systemd service unit"
<_habnabit>
energizer, yes, the nomad package lacks a systemd service unit
<energizer>
_habnabit: ah ok
<kyren2>
srhb: sorry I'm having trouble with my matrix server, it apparently cannot connect to #nixos without running out of ram
<srhb>
_habnabit: Normally, nix packages don't contain anything systemd related -- instead that's done in the accompanying NixOS module
<_habnabit>
srhb, sure, ok
<srhb>
kyren2: Ouch!
<kyren>
srhb: no I'm trying to build it from x86_64
<kyren2>
oh hehe, there's the message
<kyren>
(apologies if my replies come late, I'm connected through a matrix server that is slow when connecting to this room)
<kyren2>
>_>
<srhb>
kyren: I'm not very knowledgable with cross nixpkgs, but it looks to me like you're implying that your builder is aarch-64 (system)
<srhb>
_habnabit: What I'm trying to say is: You'll want to create a module to do the "glue" for you of setting up systemd services etc.
<_habnabit>
srhb, is that something different from mkDistribution
<srhb>
_habnabit: One of the easiest ways to develop it locally is to build your system from a nixpkgs checkout
<energizer>
_habnabit: you can make one. the big picture is you make a set of options= for users to configure it, and then a config= that uses the options to create a systemd unit
<srhb>
Here, the author of the module has decided to toJSON the configOptions option as /etc/consul.json
<srhb>
That's one way to do it.
<_habnabit>
srhb, yeah, i was looking at that and saw environment.etc
kyren has left #nixos ["User left"]
<srhb>
Environment.etc.foo will become a symlink "/etc/foo" pointing to some store path.
palo1 has joined #nixos
<srhb>
So, most modules are built up from other module primitives.
<srhb>
Another common pattern is to have a systemd unit with `ExecStart = "somebinary --configfile ${pkgs.writeText "configfile" someOption}"`
<srhb>
_habnabit: What's most ergonomic depends. :)
<_habnabit>
makes sense
<chiiba>
Is there a documented way to create a .vmdk release from a NixOS configuration? I guess `nixpkgs::nixos/release.nix` can provide me w/ an ISO and I can somehow turn that into a .vmdk, but would that be proper? Is there a better way?
jbox has joined #nixos
jbox is now known as Guest9432
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<_habnabit>
ok, so last question for now i think. what if i want to make a file (in /etc or anywhere) that contains some default string but will get overwritten/updated? is there a better option than ExecStartPre to create it?
<srhb>
chiiba: Documented, I don't think so, but you will want to import nixos/modules/virtualisation/vmware-image.nix
zangi has quit [Ping timeout: 256 seconds]
zangi has joined #nixos
<srhb>
_habnabit: A mutable file in /etc will usually not be appreciated upstream. We tend to create them via either systemd.tmpfiles or prestart scripts as you say in /var/lib/someprogram
<_habnabit>
srhb, oh, i wouldn't upstream this anyway; it's very cluster-specific. nomad's vault token needs to be written out to somewhere on disk and doesn't change across reboots. i suppose /var/lib makes sense because it (presumably) won't get cleaned out
<srhb>
_habnabit: Correct, it will not, and it sounds like the more correct place for mutable state. By the way, you will not want to inject secrets in nix options anyway, since they will end up in the world readable /nix/store
maier has joined #nixos
<_habnabit>
srhb, yeah, it's issued and written out-of-band
<srhb>
Good :)
varun_ has left #nixos ["Leaving"]
<srhb>
chiiba: At a glance, it looks like you'll get a `system.build.vmwareImage` attribute once you build a NixOS system with that module imported.
<_habnabit>
srhb, it's a weird bootstrapping-type situation because nomad needs to start in order to have the right machinery in place to get the token, but doesn't care if that token is invalid initially. so it gets issued and nomad reloaded
<srhb>
_habnabit: Right. I've touched a few hashicorp products and it seems for most of them, the model takes a little jiggling to get to gel nicely with NixOS. It's not _quite_ declarative enough to just be an obvious translation every time.
<chiiba>
srhb: If the result will be an additional attribute, then am I supposed to extract it as a file using `nix-instantiate --eval` or something similiar? Or at least would it be possible?
<samueldr>
command with a full path is a pleonasm, redundant and tautological; e.g. try nix-shell -p hello --run 'command -v hello' vs. nix-shell -p hello --run 'command -v not-hello'
<samueldr>
and also use `help command`, since that's a bash builtin
<samueldr>
so you should be able to just use `command -v qmake`
<samueldr>
additionally, since it's used to give you information about runnable commands from the PATH, the test for it being executable becomes redundant
<samueldr>
so it could become `elif command -v qmake; then ...`
<samueldr>
(as far as bash is concerned, [[ is a command with some syntaxic sugar added that requires it to be ended by ]])
alexherbo2 has quit [Ping timeout: 265 seconds]
<samueldr>
(if takes a command as a parameter)
<siraben>
samueldr: Thanks
stephaneyfx has quit [Quit: Leaving]
cr4y1 has joined #nixos
betrion[m] has joined #nixos
alexherbo2 has joined #nixos
mallox has joined #nixos
lsix has joined #nixos
cr4y1 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJM9L
potong has joined #nixos
fendor has joined #nixos
<potong>
Hi I'm fairly new to nix, trying to find my way around. The nix tool has an edit function it will put me inside a function such as nixpkgs.vim. I am interested in using docker and there is a set of functions nixpkgs.dockerTools, how do I access those?
<turbo_MaCk>
I have trouble packaging Rust package because of openssl issue (openssl-sys failing). I think it might be because the package is using features = ["static-ssl"]. Anyone knows how to resolve these errors?
<lunik1>
hmm my nixos system is doing something weird. says it can't find default.target and kicks me to the recovery shell
<lunik1>
but then graphical.target from there works fine
coco has quit [Quit: WeeChat 2.7.1]
<lunik1>
and default.target is just a link to that...
<Ke>
wucke13: using systemd service might be nicer, as it get's properly annotated in log
<Ke>
but slightly more typing
<Ke>
lunik1: and it contains things like nix/store and everything needed?
<nixuser>
Hey guys, for some projects I need antlr 4.8 for python (nixos.python37Packages.antlr4-python3-runtime). What is the best way to get an update to the nixos channel?
<lunik1>
Ke: yes
<lunik1>
Ke: It manages to find and start rescue.target in the same folder
<lunik1>
ok time to make a fresh cup of really hot tea
zangi has quit [Ping timeout: 240 seconds]
zangi has joined #nixos
<{^_^}>
[nixpkgs] @zowoq pushed commit from @dependabot[bot] to dependabot/github_actions/technote-space/get-diff-action-v3 « build(deps): bump technote-space/get-diff-action from v2.0.3 to v3.0.0 »: https://git.io/JJMFB
<{^_^}>
[nixpkgs] @Munksgaard opened pull request #95067 → haskell-sexp: Unmark sexp-grammar as broken → https://git.io/JJMFR
potong has quit [Remote host closed the connection]
<typetetris>
To play around with flakes do I have to use `nixFlakes` or `nixUnstable` in nixos-20.03? Wiki suggests `nixUnstable`.
<typetetris>
confusing to also have `nixFlakes` around.
<{^_^}>
[nixpkgs] @zowoq merged pull request #95044 → build(deps): bump technote-space/get-diff-action from v2.0.3 to v3.0.0 → https://git.io/JJM6S
<{^_^}>
[nixpkgs] @zowoq pushed commit from @dependabot[bot] to master « build(deps): bump technote-space/get-diff-action from v2.0.3 to v3.0.0 »: https://git.io/JJMhu
<{^_^}>
[nixpkgs] @zowoq pushed 0 commits to dependabot/github_actions/technote-space/get-diff-action-v3: https://git.io/JJMhz
hekkaidekapus has quit [Remote host closed the connection]
<Ke>
symphorien: I guess I read that and forgot, thanks
hekkaidekapus has joined #nixos
<Ke>
normally I would not want the same results, but equivalent results with bugfixes and security updates
<Ke>
and would not want to rely heavily on external modules
<Ke>
I guess it's nice to have standards though
zangi has joined #nixos
<Ke>
especially, if the external modules would block updates
meh` has quit [Ping timeout: 240 seconds]
waleee-cl has joined #nixos
<weelknym>
I ran into flakes when I wanted to "connect" home-manager (and, potentially, NUR) in a more straight-forward way, not just adding that to nix-channels as rycee's manual says
<Ke>
weelknym: your choice, I guess the problem is that without blocking updates it will occasionally break, as your alternative source maintainer is not up to date with nixpkgs' changes
<Ke>
I'd still prefer visibly broken than silently missing out on updates
<Ke>
but not in any way expert here
karantan has joined #nixos
<maralorn>
I think flakes have stronger purity guarantees, with the result that nix can do evaluation caching. Which can potentially lead to strong speed ups.
<maralorn>
That‘s at least a hope that I have for flakes.
<Ke>
what we use internally is git submodules, you could use them to import any nix modules residing in git anyway so nix would never fetch any git stuff by itself
<Ke>
though I guess there is no nix code in submodules anymore
<Ke>
maralorn: I believe the hashing is done after nix evaluation, so if your statements evaluate to same derivation they should be equivalent regardless of the nix code used to derive them
<{^_^}>
[nixpkgs] @Mic92 merged pull request #95006 → busybox: Pull in upstream patch for CVE-2018-1000500 → https://git.io/JJ1pX
<Ke>
ie. if .drv is equivalent, it should not matter
gxt has quit [Quit: WeeChat 2.9]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<maralorn>
jkarlson: No, that's not what I am talking about here. The point is, that nix can cache the result of a nix-expression. So that when you run nixos-rebuild twice against the same config and the same channel you don‘t need to wait the 5 secs it needs to calculate which system derivation to build.
justanotheruser has joined #nixos
<karantan>
any ideas why "nixos-rebuild switch" doesn't restart certain systemd processes when I trigger it via a program (python program that runs as a systemd process)
<maralorn>
Like it knows "this .nix file will result in this .drv when evaluated."
<karantan>
if I write "nixos-rebuild switch" in the shell it will restart all the processes
<maralorn>
karantan: Not sure. Maybe it has something to do with systemd.services ... restartIfChanged or restartTriggers option?
<karantan>
yeah I'm looking at them atm. that's probably the issue
<sephii>
I'm getting a weird error "attribute 'license' missing" when using `bootstrapped-pip`, which in turns tries to access `pip.meta.license`. Any idea how I can debug this? I put the full error here https://dpaste.com/9HXC9B5ME
turbo_MaCk has joined #nixos
<Ke>
maralorn: I did not know that, I guess I'd expect to see that as a problem first
<maralorn>
jkarlson: Well, nix-instantiate also has an add-root flag, might that help?
<Ke>
looking at manual, that would just build
boothead has joined #nixos
<Ke>
but maybe it's ambiguous
euandreh has quit [Remote host closed the connection]
<boothead>
Hey folks, having some dramas with my desktop set up. Ideally I want gnome (or maybe xfce) running xmonad, I really don't want to have to switch away from WM if possible but I'm having strange issues with obs working in pure gnome, but not in xmonad. Anyone got a nice desktop set up I could steal from?
work_ has joined #nixos
<Ke>
maralorn: amazingly seems to work
<Ke>
maralorn: though one missing feature is that it does not link all the outputs, as I have $out and $run
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has joined #nixos
<mjrosenb>
How do I figure out what the expected hash should be for XCode? I followed the directions that it printed out asking me to install it, but it still can't find the binary, so I assume that apple changed the hash of the xcode package since it was last updated in nixpkgs
<makefu>
infinisil: maybe plug hydra-check here as well (nix-shell -p hydra-check --run 'hydra-check hello')
<makefu>
it would also make a nice addition to the IRC bot. the main downside is that hydra is so horribly slow to respond. uncached response time is ~30s and i am unsure if there is even any caching in place
nDuff has joined #nixos
<maralorn>
Crawling hydra with beautiful soup feels like something for which we should have a better solution …
<makefu>
i am pretty sure it would be :) however right now the tool is good enough (with some edge cases). it can even somewhat guess the channel name in hydra
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
makefu: Iirc srk has experimented with adding a `#cached /nix/store/...` bot command for this
<infinisil>
Something like that would be nice indeed
gthm has quit [Ping timeout: 260 seconds]
<makefu>
yep, that would be great. Mic92 also thought about this (essentially querying the cache.nixos.org). this however has the downside of not knowing if the package ever built without bisecting nixpkgs
<{^_^}>
[nixpkgs] @ttuegel opened pull request #95091 → qtdeclarative: Patch for scrollbar regression → https://git.io/JJDOJ
<inquisitiv3>
Could someone please explain why `x` is bound to `123` in exercise 23 in _A tour of Nix_? I don't understand their explanation. I guessed that `x == 123`, because maybe the `x` in the let-binding binds `x` in the `as` because the `with as; ...` expression?
<{^_^}>
nix#490 (by pikajude, 5 years ago, closed): Scoping is unintuitive
<clever>
> let a = 1; b = {a=2;}; in with b; a
<{^_^}>
1
fresheyeball has joined #nixos
<immae>
I got tricked too but I don’t understand why
erasmas has joined #nixos
<inquisitiv3>
Mic92: Thanks for the links!
<Mic92>
immae: afaik `with b` is lazy evaluated?
<immae>
oh
<gustavderdrache>
in my head i think of "with" as being a secondary scope to check after the lexical scope is checked
<immae>
ok so it’s not done "on purpose"
<gustavderdrache>
instead of augmenting the existing scope
hauleth has joined #nixos
<Mic92>
I think we can all agree here, that this is confusing.
<gustavderdrache>
i almost never use with, since you can almost always rewrite with foo; bar as let inherit (foo) x y z; in bar
<immae>
I don’t use with either (except in very controlled places), but I thought there was a true reason behind this "rule" (not "because it’s implemented like that")
<infinisil>
The only place I use with is when I need to quickly test something so I put `with import <nixpkgs> {}` at the start of the file
<infinisil>
Wouldn't use that in code that's meant to stay though
<gustavderdrache>
i do it for buildInputs = with pkgs; [ ... ]; in stuff i'm too lazy to factor out into a callPackage
euandreh has quit [Ping timeout: 272 seconds]
<clever>
the only other place i use it, is `with pkgs; [ a b c ];`
noudle has joined #nixos
bqv has quit [Quit: WeeChat 2.9]
wolfshappen has quit [Ping timeout: 265 seconds]
<gustavderdrache>
it has its uses in a controlled context, but otherwise i avoid it for the same reason as i avoid the with statement in JS - it gets really difficult to figure out where a variable came from when it's in play
whald has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @timstott opened pull request #95092 → Cleanup: delete obselete attribute goPackagePath where buildGoModule is used → https://git.io/JJDsa
<{^_^}>
[nixpkgs] @Mic92 opened pull request #95093 → [20.03] busybox: Pull in upstream patch for CVE-2018-1000500 → https://git.io/JJDsV
<{^_^}>
[nix] @Ma27 opened pull request #3916 → Always reset ANSI colors in progress-bar line → https://git.io/JJDsK
<lordcirth__>
Mic92, while I love IPFS, the license terms would not allow redistributing the foundry zip
<Mic92>
lordcirth__: In some countries it might be legal :)
<lunik1>
i'm stumped on this default.target issue, both nix-cache --verify and xfs_repair say everything is fine. guess I'll just reinstall and hope for the best
proofofkeags has joined #nixos
<Mic92>
usually we use requireFile in those cases.
<lunik1>
at least with nixos a reinstall is fairly painless :)
<dottedmag>
I've got a (pretty crappy) laptop I'd like to free from ChromeOS and install NixOS. However NixOS kernel (latest, 5.7.14) fails to probe a keyboard (of all things). Debian kernel works fine. Any pointers how to debug?
<lordcirth__>
Mic92, oh? Do you have an example?
<dottedmag>
Kernel from stable release fails as well, so it's not a recent regression.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @IvarWithoutBones to master « simplenes: init at unstable-2019-03-13 »: https://git.io/JJDCI
<adamkowalski>
Do any of you all use dwm with nixos? I am trying to figure out how to get the nix package to read the dwm config file when it recompiles
<adamkowalski>
I'd also love to know how to deal with packages you want to build from source in general? For example I want to get the latest neovim built from head
<{^_^}>
[nixpkgs] @jonringer pushed commit from @ymarkus to master « zfs-prune-snapshots: init at 1.1.0 »: https://git.io/JJDCh
<symphorien[m]>
> Do any of you all use dwm with nixos? I am trying to figure out how to get the nix package to read the dwm config file when it recompiles
<symphorien[m]>
dwm uses patches for config, right ? make an overlay with `dwm = super.dwm.override { patches = [ ./my.patch ]; };`
<{^_^}>
error: syntax error, unexpected WITH, expecting ')', at (string):320:27
<symphorien[m]>
> I'd also love to know how to deal with packages you want to build from source in general? For example I want to get the latest neovim built from head
<symphorien[m]>
It's a bit of an oversimplification, but there is no such thing as `from HEAD` in nix. You can fetch whatever fixed commit you want, but not a "fleeting" target.
<{^_^}>
error: syntax error, unexpected WITH, expecting ')', at (string):320:35
<adamkowalski>
Well they have patches, but they also have a config.h file which you can use
meh` has quit [Ping timeout: 256 seconds]
veleiro has joined #nixos
<symphorien[m]>
a first step can be to use neovim from unstable while staying on nixos stable:
<adamkowalski>
I think I needed that because I'm on a hidpi display
wolfshappen has quit [Ping timeout: 265 seconds]
<adamkowalski>
and when I was generating the hardware config it picked that up when it's on unstable
<symphorien[m]>
well you can choose a commit and override src with this
<symphorien[m]>
you'll have to change the commit manually from time to time
<adamkowalski>
Do you have a recommended tutorial/book/video/resource where I can learn more about that? Ideally I'd learn the way nixos is meant to be used. I'm coming from a more convential systems like arch/ubuntu so it's a bit of a perspective shift
<adamkowalski>
Are overlays the recommended way of modying most packages?
boothead has quit [Remote host closed the connection]
wolfshappen has joined #nixos
<adamkowalski>
How about when packages are missing? It seems like i'm not supposed to use neovims built in plugin manager, and instead supposed to install things using the nix store
<adamkowalski>
but the names don't always match up with the name of the package, and lots of packages are missing
<symphorien[m]>
yes
<adamkowalski>
What if I want to add new ones. Can I do that, or do I have to contribute those upstream
gthm has quit [Ping timeout: 265 seconds]
<adamkowalski>
Sorry for all the questions. That's why I guess I want to know more about Nix, and so if I can figure out a resource that goes over the system as a whole I feel like I can probably figure out each of these individual questions
<symphorien[m]>
there is the wiki but it does not look like so useful on this subject
<tokudan>
when I define an option, how can I define the type to be either a string or null? I've got "type = with types; either str null;", but that doesn't seem to work and results in errors I cannot figure out
wolfshappen has quit [Ping timeout: 240 seconds]
jco has joined #nixos
wolfshappen has joined #nixos
alexherbo2 has joined #nixos
ramses_ has joined #nixos
<immae>
you have nullOr tokudan
<jco>
I'd like to test a daemon that i set with systemd, i already set a nix environment to develop it
<jco>
all that remains to be done is to write a package for it?
<ramses_>
Hey guys, is there a way to enable a cachix cache declaratively on nixos? Or should I just manually set the nix.conf content using `nix.extraOptions` ?
<jco>
in order to install it on the system
<tokudan>
immae, that works, thanks :)
<immae>
:)
<infinisil>
ramses_: `cachix use` tells you what you need to do on NixOS
<{^_^}>
[nixpkgs] @jonringer pushed commit from @oyren to master « license changed to gpl3Plus (for gtg and liblarch) »: https://git.io/JJDlp
<{^_^}>
[nixpkgs] @dasj19 opened pull request #95098 → gnome-subtitles: init at 1.6 → https://git.io/JJDlh
dongcarl has quit [Read error: Connection reset by peer]
<ramses_>
infinisil: but that command will modify nix.conf on the current machine, no? I would like to configure this in my nixos config so that it's declarative and so that all our servers pick it up
<adamkowalski>
Is there some docs about getting services registerd with systemd?
<adamkowalski>
In particular how would you use dunst
<Mic92>
adamkowalski: there is a home-manager module for dunst
<Mic92>
it includes a systemd service
<adamkowalski>
Do I need home-manager? Or can I enable it system wide?
<Mic92>
*systemd user service
<Mic92>
You can use home-manager via NixOS
<adamkowalski>
What's the advantage of home-manager over configuration.nix in /etc/nixos/
<adamkowalski>
if you are the only user? or if you want things to be enabled regardless of the user coming in
<{^_^}>
[nixpkgs] @peti pushed 73 commits to haskell-updates: https://git.io/JJD8s
<adamkowalski>
wouldn't it be better to just say dunst is always enabled?
<Mic92>
adamkowalski: systemd.user.services.* in nixos itself.
<Mic92>
but than you need to write it yourself.
<adamkowalski>
So I take it home manager is the recommended way then?
<tokudan>
systemd.services for system services... I don't know dunst, so no idea what would be better for dunst
<Mic92>
dunst is a user service
<Mic92>
It needs x11
<Mic92>
home-manager would be here the easier route
<{^_^}>
[nixpkgs] @zimbatm opened pull request #95099 → rustracerd: mark as broken → https://git.io/JJD8c
<adamkowalski>
Awesome, thanks, I'll use it
dermetfan has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nixpkgs] @matthuszagh opened pull request #95100 → qcsxcad: init at 0.6.2 → https://git.io/JJD8z
<Mic92>
adamkowalski: it is currently a better fit for systemd user services. Also its possible to use configuration.nix in theory, nobody has done though given that home-manager already has the module.
mananamenos has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @zimbatm merged pull request #95099 → rustracerd: mark as broken → https://git.io/JJD8c
<{^_^}>
[nixpkgs] @zimbatm pushed to master « rustracerd: mark as broken (#95099) »: https://git.io/JJD8o
<{^_^}>
[nixpkgs] @jonringer pushed commit from @IvarWithoutBones to master « ryujinx: init at 1.0.5160 »: https://git.io/JJD8P
<adamkowalski>
Can't I put it in environment systemPackages?
<ramses_>
Mic92: I guess there is no need to actually install cachix then, if I only want to pull builds, it is purely Nix functionality?
wolfshappen has joined #nixos
<infinisil>
ramses_: Mic92: There is a better way, cachix use -d <your system config path> <cachix name>
<infinisil>
This generates a cachix.nix and a cachix folder in the path you give it
<infinisil>
And you can just `imports = [ ./cachix.nix ]` from your system config
<{^_^}>
[nixpkgs] @etu opened pull request #95101 → php: Drop PHP 7.2 support → https://git.io/JJD85
orivej has quit [Ping timeout: 264 seconds]
domogled has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @risicle opened pull request #95102 → [r20.03] openexr,imlbase: 2.3.0 -> 2.4.1 to fix numerous security issues → https://git.io/JJD8x
domogled has joined #nixos
<ramses_>
infinisil: ok, cool. It's a bit weird that you need to run this as root even to update a local git clone, but besides that it works nicely indeed
<ramses_>
I couldn't find this described anywhere in the cachix documentation
knupfer has joined #nixos
charukiewicz has joined #nixos
<charukiewicz>
If I have nginx running via services.nginx = {...}, can I also use systemd.services.nginx.serviceConfig to change the systemd unit settings of my nginx process? specifically, I want to change the LimitNOFILE setting for nginx. Maybe there's a better way to do this but I didn't see anything in services.nginx.*
<Ke>
I use let in, even if it's on separate file, but not necessary either
<kini>
It looks like the ofborg x86_64-darwin builder has been down for a couple of days? But I don't see any instance metrics for it at https://monitoring.nix.ci/d/000000002 . I guess the x86_64-darwin builder is a non-cloud machine, or something?
<Ke>
I think you could even just write the expression directly to systemPackages, if you wanted
<nature>
and if I want a separate file, I should do "(import myderivation.nix)" in systemPackages ?
<nature>
Ke: ok thx, I still want to keep it relatively clean
magnetophon has quit [Remote host closed the connection]
magnetophon has joined #nixos
magnetophon has quit [Remote host closed the connection]
cantstanya has joined #nixos
kenran has joined #nixos
<demize>
Seems it timed out waiting for ofborg.
seku has joined #nixos
<demize>
(Which is the CI infra thing.)
magnetophon has joined #nixos
magnetophon has quit [Client Quit]
gthm has quit [Ping timeout: 246 seconds]
griff_ has quit [Quit: griff_]
<fooker>
is there something like a "contant" for modules?
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<energizer>
fooker: explain?
<fooker>
i would like to have a module with an option 'foo'
<fooker>
and something in that module, which evaluates to config.foo + "bar"
<fooker>
i.e. some derived value depending on one (ore more) options in that module
<ilya-fedin>
Why Nix forces me to enable nscd if I don't want to?
<ilya-fedin>
- Loading NSS modules from system.nssModules (/nix/store/ryiv1g8q35ymmgjraynj2ayxvvn76j65-systemd-245.6/lib), requires services.nscd.enable being set to true.
<fooker>
or is that complete non-sense?
<nature>
why is the sha256 hash of a single github url inconsistent through multiple calls of nix-prefetch-url ?
knupfer1 is now known as knupfer
<energizer>
fooker: i think you can just do that
<clever>
nature: read the output, is it html or a tar?
<fooker>
energizer: how? everything that I define in the modules config needs an acording option, right?
<tokudan>
nature, you may need this: curlOpts = "--location";
<nature>
clever: Oh, so nix-prefetch-url acts like curl and just downloads the html ?
<clever>
nature: depends on what URL you point it to
<nature>
I just need the sha256 of a repo at a specific commit in order to use in in fetchFromGithub
<clever>
nature: and use nix-prefetch-url --unpack
malook has joined #nixos
<fooker>
energizer: thanks. I think I will come up with an better example
<nature>
clever: oooh ok, I didn't know about the unpack
<nature>
thanks
malook has quit [Client Quit]
malook has joined #nixos
<clever>
also,
<clever>
,tofu nature
<{^_^}>
nature: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<{^_^}>
#89502 (by hansjoergschurr, 9 weeks ago, open): nixos/modules/security/acme: Issuing multiple certificates fails due to wrong file permissions
gthm has quit [Ping timeout: 240 seconds]
<Raito_Bezarius>
Is there a nice script to auto-install NixOS quickly using btrfs or ext4, bonus for encryption + remote unlocking through ssh? (justdoit uses ZFS for the root device)
<{^_^}>
[nixpkgs] @callahad opened pull request #95112 → exiv2: Patch cmake files to correctly locate libs → https://git.io/JJDVV
<drakonis>
uh
<drakonis>
set up your configs, doe.
<clever>
energizer: db.sqlite contains a list of every entity in /nix/store/ and the hash of that entity, and what the deps of each one are
<clever>
energizer: re-creating the deps would be difficult, and recreating the hash can cause problems if something is corrupted
domogled has quit [Remote host closed the connection]
<clever>
energizer: it should be pointing to the one in ~/.nix-profile
<clever>
energizer: something is wrong with your $PATH
<energizer>
clever: ~/.nix-profile/bin/nix-channel --update error: path '/nix/store/f93d5qmv20a76gsi3ml4jnv2awrnys5s-nix-2.3.2-x86_64-unknown-linux-musl' does not exist and cannot be created
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @asbachb to release-20.03 « roundcube: 1.4.7 -> 1.4.8 »: https://git.io/JJDwp
<clever>
energizer: anything funny about musl in /etc/nix/nix.conf or `nix show-config` ?
<{^_^}>
[nixpkgs] @apeyroux opened pull request #95116 → molotov: init at 4.2.2 → https://git.io/JJDoJ
Soo_Slow has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
<energizer>
clever: still getting $ nix-channel --update -> error: path '/nix/store/f93d5qmv20a76gsi3ml4jnv2awrnys5s-nix-2.3.2-x86_64-unknown-linux-musl' does not exist and cannot be created
<o1lo01ol1o>
...So I ran out of disk space while editing /etc/nixos/configuration.nix. Now it's blank. Is there a way to get a previous version?
<typetetris>
But he had to write the "merging" of python packages by hand.
<chipb>
I feel like it must be a terribly obvious fix, but nothing really jumped out at me. maybe you can .override python= of the defaultPackage of the nixops flake.
<chipb>
ah, nice. I'll take a look.
<typetetris>
o1lo01ol1o: Sorry, but I think your out of luck, if you didn't had it in git or something.
<o1lo01ol1o>
typetetris: whoa. That sucks.
anderslu1dstedt has quit [Ping timeout: 264 seconds]
<typetetris>
o1lo01ol1o: Doesn't help you now, but if flakes hit nix,
<typetetris>
they will do that better
shibboleth has quit [Quit: shibboleth]
<{^_^}>
[nixpkgs] @langston-barrett closed pull request #89030 → gcc9: don't run patchELF on statically linked binaries → https://git.io/Jfro8
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
cosimone has quit [Quit: Quit.]
aveltras has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
cosimone has joined #nixos
hekkaidekapus has quit [Ping timeout: 240 seconds]
<colemickens>
does anyone have a nix snippet handy for output an attrset that is env vars and a single string of "K1=V2 K2=V2" string
erasmas has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
spease has joined #nixos
freezeboy has quit [Remote host closed the connection]
tazjin has quit [Quit: Byeee]
<spease>
I'm trying to compile halide on OS X, but it appears that it's only using llvm 7.10. I looked at the nix repository, and it looks like 10.0.1 should support all platforms (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/llvm/10/llvm.nix). Is there a way to specifically have it try to select this version in the buildInput?
<spease>
Thanks...
andi- has quit [Ping timeout: 260 seconds]
tazjin has joined #nixos
<sphalerite>
dottedmag: I'm not sure I have a working snippet handy, but the gist of it should look something like… buildLinux { src = _your_tarball_here_; version = "5.7.7"; configfile = ./kernel-config; kernelPatches = []; autoModules = false; }
maier has joined #nixos
<sphalerite>
dottedmag: the version needs to match that in the kernel, including the localversion string
maier has quit [Ping timeout: 246 seconds]
<cole-h>
sphalerite: What does `autoModules` do?
<sphalerite>
cole-h: enables all options that can be enabled as modules as modules rather than disabling them
ericsagnes has quit [Ping timeout: 272 seconds]
<sphalerite>
dottedmag: oh wait sorry, it's not buildLinux that you want but linuxManualConfig I think
alexherbo2 has quit [Ping timeout: 240 seconds]
kalbasit has joined #nixos
<sphalerite>
hang on, I'll actually try it.
<DigitalKiwi>
sphalerite++
<{^_^}>
sphalerite's karma got increased to 104
andi- has joined #nixos
<spease>
Anyone know why nix seems to consistently be using an old version of llvm? :-/ Or is there any way to get it to explain version selection? I am getting 7.1 instead of 10
<cole-h>
What channel are you on?
<cole-h>
Oh, nevermind
<cole-h>
Seems we still default to 7.1 for whatever reason
<spease>
cole-h is there a way to override that in an expression?
<cole-h>
spease: `pkg.override { llvm = llvm_10; }` for example
<sphalerite>
dottedmag: for your keyboard issue, it may well be that it's because nixos's default kernel doesn't have CrOS EC support (gated behind CONFIG_GOOGLE_FIRMWARE)