<maurer>
aszlig: As an example, you could see a database doing db user to system user mapping via database username -> system uid mapping
<maurer>
systemd would be blissfully unaware of this, and not unmap them when the service was destroyed
o1lo01ol1o has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
rcshm has quit [Remote host closed the connection]
mmlb977 has joined #nixos
<maurer>
tl;dr, I think dynamic user ids could be good in greenfield dev
<maurer>
but this isn't how uids h ave been used for years
<maurer>
so there's bound to be software that makes the old "uids won't be reused" assumption
rcshm has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<aszlig>
maurer: well, systemd just assumes (and that's also documented) that uids in the dynamic user range aren't allocated elsewhere
<aszlig>
of course, if you use one of these uids, it will be a problem
<aszlig>
or maybe that's not what you meant?
<maurer>
I mean:
o1lo01ol1o has joined #nixos
<maurer>
1.) Systemd hands out uid to service foo
drakonis has joined #nixos
<maurer>
2.) Service foo talks to db, gets mapping set up
infinee has joined #nixos
<maurer>
3.) systemd kills foo, fress ud
<maurer>
*uid
<maurer>
4.) Systemd hands out same uid to service bar
<maurer>
5.) User uses bar to talk to db, getting service foo's rights
kvda has joined #nixos
drakonis1 has joined #nixos
<aszlig>
maurer: well, usually the same uid is allocated for the same service, so while it's not impossible that something like this could happen there is the possibility, yes
<maurer>
I mean, the whole point of dyn uids is to reuse them right?
<aszlig>
but something like this is not the scope of DynamicUser
<maurer>
So if this situation *cannot* happen
drakonis_ has quit [Ping timeout: 252 seconds]
stepcut has quit [Remote host closed the connection]
<maurer>
then it doesn't help much
stepcut has joined #nixos
<aszlig>
i think DynamicUser is meant for services that don't interact with other services locally, so you just need "some extra user that just isn't used anywhere else"
<maurer>
So, if used carefully, that could work
<maurer>
I think that it's going to get overused and/or cargo culted, and will cause a vuln via the path I described above
drakonis has quit [Ping timeout: 264 seconds]
<maurer>
Can you honestly say that you've never seen someone cargo cult a systemd unit file?
drakonis has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<aszlig>
maurer: nah, i can't
<aszlig>
i've seen lots of unit files like that
<aszlig>
even using DynamicUser for databases
<CMCDragonkai>
If you have installed a nix package that uses java, and the wrapper executable calls java, is there a way to increase the heap size when executing the wrapper?
stepcut has quit [Ping timeout: 246 seconds]
<aszlig>
CMCDragonkai: the heap size of the wrapper itself?
<CMCDragonkai>
no the wrapper is a nix shell script
<aszlig>
aka, during clone()
<CMCDragonkai>
that execs java
<aszlig>
CMCDragonkai: ah, wait... you mean the JVM heap size?
<CMCDragonkai>
yes
<aszlig>
isn't there a flag for that?
<CMCDragonkai>
yes, but how does it get passed via the shell warpper
<CMCDragonkai>
yes, but how does it get passed via the shell wrapper
o1lo01ol1o has joined #nixos
infinee has quit [Ping timeout: 246 seconds]
<aszlig>
well, if the wrapper is created via makeWrapper you should be able to just pass it to the wrapper and it gets passed along
<CMCDragonkai>
the wrapper uses `"$@"`at the very end, so java isn't interpreting the heap option
<aszlig>
CMCDragonkai: ah, that arg is position dependent?
<CMCDragonkai>
`selenium-server -Xms1024M` doesn't work
silver has quit [Quit: rakede]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<aszlig>
CMCDragonkai: does it work if you put that flag at the front of the call to java?
<aszlig>
like copying the command line from the wrapper and injecting that flag in front
goibhniu1 has quit [Ping timeout: 246 seconds]
<CMCDragonkai>
it probably does, i haven't tried, but i'd hope that such wrappers would support jvm options since these can be critical to how the app functions
<aszlig>
CMCDragonkai: well, IFF java args are not positional, then it should work
<CMCDragonkai>
I think the wrapper would have to do something like `$@` instead of `"$@"`
<aszlig>
CMCDragonkai: nah, that would cause problems with spaces in args
<aszlig>
like eg. calling something like: wrapper 'foo bar' will pass 'foo' and 'bar' seperated
<aszlig>
s/d$/ly/
<aszlig>
so "$@" is fine
slack1256 has quit [Remote host closed the connection]
<aszlig>
my guess is rather that those arguments are indeed positional
<aszlig>
CMCDragonkai: you did actually verify that -Xms1024M is even valid *at* *all*, right?
<aszlig>
okay, maybe the upper-case M is the problem, but anyway, you should test whether it works outside of that wrapper just to be sure
thc202 has quit [Ping timeout: 245 seconds]
<samueldr>
aszlig: confirmed with a local test, it is position dependent
<samueldr>
CMCDragonkai: :/ not sure what the best solution for that is, but it is an annoying thing I can see
<aszlig>
samueldr: geesh...
<aszlig>
JAVA_OPTS=-Xms1024M <command>
work_ has quit [Quit: Connection closed for inactivity]
<aszlig>
that could work, but haven't tested
<samueldr>
from a small search looks like JAVA_OPTS is dependent on the thing starting
<samueldr>
though might be a good idea to add that in our java-using things
<samueldr>
(I'm verifying using -Xmx1M to crash the app)
<aszlig>
ah, yeah, that's actually something commonly used in wrappers
thomashoneyman has joined #nixos
<thomashoneyman>
is anyone here using home-manager with neovim?
<samueldr>
_JAVA_OPTIONS=-Xmx1M selenium-server # this works though CMCDragonkai
<samueldr>
(works as in crashes as expected with a max of 1M)
<samueldr>
and JAVA_TOOL_OPTIONS too seems to be fine
<samueldr>
>> JAVA_TOOL_OPTIONS is included in standard JVMTI specification, does better handling of quoted spaces and should be always preferred instead of undocumented Hotspot-specific _JAVA_OPTIONS
<thomashoneyman>
error: 'wrapper' at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/applications/editors/neovim/wrapper.nix:12:13 called with unexpected argument 'withNodeJs', at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/customisation.nix:69:12
<thomashoneyman>
i can see the option is there, with a default:
<{^_^}>
attribute 'platforms' missing, at (string):222:1
<clever>
> pkgs.drawpile.meta
<{^_^}>
{ available = <CODE>; description = "A collaborative drawing program that allows multiple users to sketch on the same canvas simultaneously"; downloadPage = "https://drawpile.net/download/"; homepage ...
<clever>
> pkgs.drawpile.meta.hydraPlatforms
<{^_^}>
attribute 'hydraPlatforms' missing, at (string):222:1
<clever>
tobiasBora: that might be why
rcshm_ has quit []
<tobiasBora>
clever: you mean that without platforms, it's built on x86_64 but not on arm?
<clever>
tobiasBora: thats my guess
hlolli has quit [Remote host closed the connection]
slack1256 has joined #nixos
<tobiasBora>
clever: interesting. platforms = platforms.unix; should be enough?
<clever>
tobiasBora: that would include darwin, platforms.linux doesnt
<tobiasBora>
clever: ok thanks. I think it should build on darwin as well.
erasmus has quit [Read error: Connection reset by peer]
infinee has joined #nixos
aaronjanse[m] has left #nixos ["User left"]
simukis has quit [Quit: simukis]
cyphase has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @ryantm pushed to ryantm-copying « COPYING: include 2019 »: https://git.io/fjvA0
slack1256 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @ryantm opened pull request #57886 → COPYING: include 2019 → https://git.io/fjvAE
npmccallum has quit [Remote host closed the connection]
countingsort has joined #nixos
Fare has joined #nixos
jasongrossman[m` has quit [Quit: ERC (IRC client for Emacs 26.1)]
jasongrossman has joined #nixos
doyougnu has quit [Ping timeout: 250 seconds]
cyphase has joined #nixos
buffet has quit [Ping timeout: 246 seconds]
realrokka_ has quit [Ping timeout: 245 seconds]
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 255 seconds]
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 246 seconds]
stepcut_ has quit [Ping timeout: 245 seconds]
<CMCDragonkai>
samueldr: I will try `JAVA_TOOL_OPTIONS`
<CMCDragonkai>
samueldr: I recognise this would be inherited by any jvm invocations then.
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fjvA7
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjvAF
<{^_^}>
[nixpkgs] @worldofpeace pushed 0 commits to ryantm-copying: https://git.io/fjvAb
<tobiasBora>
Hum I've an annoying problem
<tobiasBora>
I don't have much space on /boot
<tobiasBora>
(like 120M on my rasp)
<clever>
tobiasBora: grub or systemd-boot?
<tobiasBora>
I tried to remove everything in /boot/nixos in order to keep only the next kernel. But for some reason, nixos-rebuild creates back a folder for linux 4.20, and 5.0, while I just want the latest kernel.
<tobiasBora>
clever: hum I think it's based on extlinux
<tobiasBora>
(it's on the raspeberry pi 3)
<clever>
tobiasBora: every time you run nixos-rebuild switch, it will copy all the kernels from your system generations
stepcut__ has quit [Remote host closed the connection]
stepcut has joined #nixos
o1lo01ol1o has joined #nixos
vidbina has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
stepcut has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
vidbina has quit [Ping timeout: 244 seconds]
<sb0>
I'm trying to package a Python library that needs a binary executable (yosys) including in its check phase. this fails as the executable isn't in PATH
<sb0>
adding the yosys package to propagatedBuildInputs does not solve the problem
<sb0>
what is the proper way to deal with this?
<clever>
sb0: you just want normal buildInputs, there is no need for it to propagate
<sb0>
using the library also needs that executable
<sb0>
so, I do want to propagate it
<clever>
sb0: propagatedBuildInputs wont make it available at runtime
<sb0>
hmm, is there a way to make it available at runtime?
<clever>
wrapProgram
<sb0>
I've put it in both buildInputs and propagatedBuildInputs, and the check phase still fails from the missing executable
vidbina has joined #nixos
<clever>
putting it in both wont help any
<sb0>
it's a Python library - not a Python application
<clever>
can you pastebin the nix expression and the exact error?
<sb0>
well, putting it in buildInputs alone also does not work...
<sb0>
nmigen.back.verilog.YosysError: Could not find Yosys in PATH. Place `yosys` in PATH or specify path explicitly via the YOSYS environment variable
<clever>
sb0: have you tried YOSYS = "${yosys}/bin/yosys"; ?
<sb0>
I guess I can try that, but why is it not in PATH?
<clever>
not clear yet
pie___ has joined #nixos
<clever>
sb0: i think buildPythonPackage handles buildInputs differently
<sb0>
YOSYS = "${yosys}/bin/yosys" does solve the issue
<sb0>
it's a bit clumsy, though
<clever>
and wrapProgram can also set the YOSYS var
<clever>
yeah
<sb0>
it's a library, I can't use wrapProgram
vidbina has quit [Ping timeout: 246 seconds]
<clever>
this is a problem that all python libraries have
<clever>
the final shell script that uses the library, must wrapProgram
pie__ has quit [Ping timeout: 272 seconds]
<clever>
or you must patch the library to use an asbolute path
<sb0>
patching the library is doable
vidbina has joined #nixos
<sb0>
do you mean, injecting the path to yosys in the nix store into the installed library?
<clever>
yeah
<sb0>
and then put it in propagatedBuildInputs?
<clever>
thats how all the c/c++ libraries do it
<clever>
nope
<clever>
it doesnt need to be in any of the inputs
<clever>
any storepath that appears in your output, is something you depend on at runtime
<clever>
hyper_ch2: due to the sheer number of tabs i have open, just restarting chrome can crash the machine, so i sometimes have to blacklist the domain for half of them lol
<hyper_ch2>
clever: lol :)
<Havvy>
Firefox's lazy tab loading might work better for you?
<{^_^}>
[nixpkgs] @andir pushed 7 commits to release-18.09: https://git.io/fjvp1
<clever>
Havvy: also, i have had enough tabs in firefox, that just loading the dummy about:blank in each tab, would cripple the machine
<Myrl-saki>
clever: Are you sure? Imagine starting in 10 seconds with 500 tabs. With Firefox, you don't have to imagine!
<hyper_ch2>
but why only www.youtube.com and not youtube.com and *.youtube.com? that's where dnsmasq is really nice: address=/domain.tld/0.0.0.0 -> also why redirect to 127.0.0.1 instead of 0.0.0.0?
<clever>
Havvy: even with the lazy loading, it crashed the machine :P
<clever>
Myrl-saki: ^^^
<Myrl-saki>
Jesus, how many tabs do you have open?
<hyper_ch2>
Myrl-saki: some people like to "collect" open tabs
<Myrl-saki>
Also, I actually managed to crash my Android Chromium lmao
<clever>
Myrl-saki: you dont want to know how many i had open in firefox back then :P
<Myrl-saki>
hyper_ch2: Yeah, me too. But I have not managed to crash my Firefox.
<mkovacs>
clever: unfortunately i need a git fetch that works with submodules, and as far as i can tell, builtins.fetchGit doesn't
<hyper_ch2>
clever: in case you didn't see but why only www.youtube.com and not youtube.com and *.youtube.com? that's where dnsmasq is really nice: address=/domain.tld/0.0.0.0 -> also why redirect to 127.0.0.1 instead of 0.0.0.0? [08:21] <clever> Havvy: even with the lazy loading, it crashed the machine :P
<clever>
mkovacs: one min
<hyper_ch2>
ctrl-c fail :)
<clever>
hyper_ch2: that was enough to stop them from loading
<clever>
hyper_ch2: none of the tabs are on the tld or any other subdomain
<clever>
mkovacs: you must use socat to proxy the unix socket, so ssh-agent cant detect that uid git clone is running as
<hyper_ch2>
clever: well, the reason why I'd prefer dnsmasq is because the according hosts file with all known subdomains (since /etc/hosts does not support wildcards) is 170k entries :)
<hyper_ch2>
so adding address=/domain.tld/0.0.0.0 blacklists also *.domain.tld
<mkovacs>
clever: what's strange is that i got this setup working on Ubuntu fine without socat, but having troubles on Arch now
<clever>
mkovacs: if you are using single-user nix, then all builds happen as the current user, and ssh-agent doesnt get upset
<clever>
mkovacs: but if nix-daemon is at play, they run as seperate users
<mkovacs>
gotcha!
<hyper_ch2>
I guess I need to check who created the dnsmasq nix expression :)
drakonis1 has quit [Remote host closed the connection]
<danbst>
hello. Is there any reason why makeFlags = [ "PREFIX=$(out)" ]; isn't in mkDerviation? I see prefix is set in configureFlags, why not set in make flags as well?
xkapastel has joined #nixos
reinhardt has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
reinhardt has quit [Remote host closed the connection]
reinhardt has joined #nixos
reinhardt has quit [Remote host closed the connection]
m0rphism has joined #nixos
reinhardt has joined #nixos
freeman42x has quit [Ping timeout: 258 seconds]
knupfer has quit [Remote host closed the connection]
goibhniu has joined #nixos
wfranzini has joined #nixos
Ariakenom has joined #nixos
dycan has quit [Remote host closed the connection]
johanot has joined #nixos
reinhardt has quit [Quit: Leaving]
jackdk has quit [Ping timeout: 245 seconds]
agander has joined #nixos
reinhardt has joined #nixos
rauno has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vbgl pushed commit from @rixed to master « ocaml-syslog: init at 1.5 »: https://git.io/fjvhg
reinhardt has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
<sphalerit>
hyper_ch2: hi
jasongrossman has quit [Remote host closed the connection]
<hyper_ch2>
sphalerit: still fail to see the problem: couldn't you just attach a 4TB drive to teh 2TB-Drive mirror, after resilveing is done, remote 1 2TB drive, attach another 4TB drive and when resilvering is done, remove 2TB drive and autoexpand?
<hyper_ch2>
or add both 4TB drives at the same time for resilvering
<sphalerit>
hyper_ch2: that would give me striping with the 2 4TB drives, not a mirror
kvda has joined #nixos
kvda has quit [Client Quit]
<hyper_ch2>
sphalerit: what stripping? zfs attach is adding another disk to the mirror
<hyper_ch2>
zpool attach I mean
<hyper_ch2>
sphalerit: you have a single disk zpool named a and the disk is /dev/sda. You can turn that into a 2-disk mirror by issuing zpool attach a /dev/sda /dev/sdb
<hyper_ch2>
sphalerite: I guess you need to zfs send/recv to the new 4TB mirror
<sphalerite>
hyper_ch2: yes, that's what I was saying.
<clever>
sphalerite: yeah, currently, zfs has no (released) way to remove a vdev, so that pool is forever 2 vdevs (the mirrors can be downgraded to non-mirror status though)
<clever>
there is an unfinished feature, that turns 'removed' vdevs into indirect things
agander has quit [Ping timeout: 244 seconds]
<clever>
one way to think of that unfinished feature, is that it copies a given device (like mirror-1) to a zvol (that is sepcially flagged to not allocate on mirror-1)
<clever>
and then it flags that vdev is read/delete only
<clever>
so all reads, will bounce off the old mirror-1 vdev, then lookup within a zvol on mirror-0
timor has joined #nixos
<clever>
and over time, GC will remove blocks, till its gone
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #57899 → [backport] nixos/containers: create veths if only IPv6 is configured → https://git.io/fjfet
shabius has quit [Ping timeout: 252 seconds]
simukis has joined #nixos
<pie_>
samueldr, wow this gdk pixbuf thing is breaking everything :P if I hadnt gone back to read the one line of backtrace I got I almost went on a wild segfault goose chase ;~;
rauno has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @roberth pushed 4 commits to release-19.03: https://git.io/fjfeu
<rnhmjoj>
can i run a nixos test for a different architecture than the vm host?
<{^_^}>
[nixpkgs] @roberth pushed 2 commits to release-18.09: https://git.io/fjfer
<linarcx>
Hi. i want to create a font package. i clone the nixpkgs git repo. and in fonts directory, there are lots of methods to create font packages. How should i create a font package that fetch its source from github?
<Myrl-saki>
linarcx: Do you know how to create a normal package?
<linarcx>
Myrl-saki: Yes, i create a package before.
__monty__ has joined #nixos
philippD has joined #nixos
<betaboon>
linarcx: there is `fetchFromGitHub`
<arianvp>
rnhmjoj: euhm i remember Mic92 showing me something like this on 35C3
<arianvp>
So I think it's possible
<Myrl-saki>
betaboon: IIRC, fetchGit is way more recommended than fetchFromGitHub.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien>
how can i disable colors in `nix search` output?
hyper_ch has joined #nixos
<sphalerite>
noonien: funnily enough, I don't think that's possible. You can use the --json flag to get JSON output though.
<noonien>
hmm, `nix-search search --json .` returns the package list, but also `error: no results for the given search term(s)!` and a non-zero exit code
rprije has quit [Ping timeout: 250 seconds]
<linarcx>
Guys. i'm creating a package and used `fetchFromGithub`. when i want to build it, it says: `hash mismatch in fixed-output derivation '/nix/store/ybma9b4dgpnd6hwqknr9hqrqfnh53j7x-source':`
<linarcx>
though i add first one in sha part in default.nix.
<jasongrossman>
noonien: You can get rid of the colours by piping the output through something. I'm not sure what's best though. Personally I pipe it through lolcat.
<buffet>
noonien: little hacky but `nix search | sed 's/\0x1b\[[0-9;]*m//g'` kind of works
fusion809 has quit [Remote host closed the connection]
<jasongrossman>
buffet: Awesome.
<buffet>
jasongrossman: not at all, should be an option on nix search
<buffet>
also: nix searches color sequences are really fucked
adetokunbo has quit [Quit: This computer has gone to sleep]
<linarcx>
Gyus. how to get `sha256` when we using `fetchFromGithub`?
<jasongrossman>
,tofu
<{^_^}>
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.
<Avaq>
Hello. Is it possible to work with dynamic, relative paths in Nix Expressions?
<Avaq>
I've tried using a String, but then an error arises about the path ot being absolute.
<Avaq>
Then I tried embedding a previously assigned directory in my String, and the absolute path somehow got expanded to a hash in the store, where the file I'm trying to read does not reside.
<Mic92>
Avaq: you mean a path relative to the current expression file?
<Avaq>
Yes.
_linarcx has joined #nixos
<Mic92>
Avaq: toString ./. gives you the current directory
<Mic92>
there was also a hack to get the filename itself.
<Avaq>
Ahh
<Avaq>
I tried "." and "./".
<Mic92>
linarcx: checkout nix-prefetch in case you are on unstable.
<gchristensen>
what do you mean dynamic, Avaq?
linarcx has quit [Ping timeout: 246 seconds]
<gchristensen>
Avaq: and, what for?
<Mic92>
gchristensen: a path relative to the current expression file?
<Avaq>
What I'm trying is to define a function that reads a file relative to the .nix file where the function was defined.
<Avaq>
And the path is taken as an argument
winem_ has joined #nixos
<gchristensen>
no string is required, just ./foo
<gchristensen>
or ./.
<Avaq>
> name : readFile "./stuff/${name}.ext"
<{^_^}>
<LAMBDA>
<Mic92>
> readFile /etc/passwd
<{^_^}>
access to path '/etc/passwd' is forbidden in restricted mode
<gchristensen>
> name: readFile "${./.}/${name}"
<{^_^}>
<LAMBDA>
<Avaq>
Aha
<gchristensen>
but, why readFile?
<Avaq>
gchristensen: I'm doing a toy project to familiarize myself with the Nix Expression language, mostly because I really like the language. In this case I'm trying to embed the contents of a file into a property of a record.
<gchristensen>
right on
<Avaq>
gchristensen: With the approach given "${./.}", the path somehow refers to an object in the Nix Store. I need it to point to a file in my home directory.
<_linarcx>
Gyus. i succesfully create a font package and build and install it locally on my machine. But i can't see it in font-manager. what should i do?
<gchristensen>
Avaq: it sounds like you're doing something that is not really encouraged in Nix
<gchristensen>
Avaq: but if you acknowledge that you're doing a weird thing you probably shouldn't do... ${toString ./.}
<Avaq>
gchristensen: Yeah, I am totally doing a weird thing.
rycwo has quit [Ping timeout: 245 seconds]
rauno has quit [Remote host closed the connection]
<Avaq>
gchristensen: I'm abusing Nix to be a kind of "programmable JSON" using `nix-instantiate --eval --strict --json`. I got to a point where I explored the possibility for embedding some file's contents in one of the JSON properties.
<gchristensen>
cool
<hodapp>
programmable JSON? O_O
<Athas>
Have you considered Dhall instead?
<hodapp>
I thought Dhall was purposely not programmable either
<Athas>
Dhall is programmable; it's just not Turing-complete.
rycwo has joined #nixos
<Athas>
It's a language for configuration files (in the broad sense of the word).
<Avaq>
Athas: I was just browsing through my starts on GitHub to find Dhall. I wanted to provide it as an example of what I'm trying to do with Nix Expressions.
<Avaq>
stars*
fusion809 has joined #nixos
<Avaq>
I really Enjoy Nix's syntax, in particular the multiline strings with "smart indentation". I wanted to know if it can do a similar thing to what Dhall does.
<__monty__>
You can write your nix expressions in dhall with dhall2nix : )
<__monty__>
Though dhall does sound like it might be right for your use case.
dnlkrgr has joined #nixos
<Avaq>
What I'm doing concretely is translating a large README file for my open source project into Nix, essentially using Nix as a content management system. Using this approach, I can reuse pieces of content, inject variables via functions, and compile to multiple markup languages.
<Avaq>
I know it's not the most fitting use for Nix, but I'm just playing around.
vidbina has joined #nixos
<buffet>
Avaq: i hate how you escape $ with '' in multiline scripts though
<{^_^}>
[nixpkgs] @aepsil0n opened pull request #57901 → adr-tools: init at 3.0.0 → https://git.io/fjffL
<srhb>
_linarcx: THey can look into overlays to add it into their local package set. Technically, if it's 3 days old, it'll only be automatically included in 19.09 (the next time master branches off to a stable branch)
jtojnar has joined #nixos
vidbina has joined #nixos
<{^_^}>
[nixops] @AmineChikhaoui merged pull request #1115 → Allow Azure VMs to be reached by private IP address if specified → https://git.io/fjvul
<{^_^}>
[nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fjffP
<{^_^}>
[nixpkgs] @NeQuissimus pushed 5 commits to release-19.03: https://git.io/fjffH
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-18.09: https://git.io/fjff7
johanot has joined #nixos
fusion809 has quit [Remote host closed the connection]
camsbury has joined #nixos
fusion809 has joined #nixos
reinhardt has quit [Ping timeout: 250 seconds]
zupo has quit [Ping timeout: 258 seconds]
<_linarcx>
Gyus. i succesfully create a font package and build and install it locally on my machine. But i can't see it │ adetokunbo
<_linarcx>
| in font-manager. what should i do? Y
fusion809 has quit [Remote host closed the connection]
<__monty__>
Avaq: I have a similar thing going using dhall : )
waleee has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<sphalerite>
_linarcx: how did you install it? If you used nix-env, you may need to run fc-cache -f
Neo-- has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
<_linarcx>
sphalerite: Yes, i install it with `nix-env`. run the `fc-cache -f`. nothing changed.
<sphalerite>
_linarcx: are the font files there in ~/.nix-profile/share/fonts ?
<sphalerite>
Oh, and which OS are you on?
<Avaq>
__monty__: Dhall has interested me for quite a long time. I would like to use it one day for a real thing. This README thing for me was just about exploring Nix in particular, though.
<_linarcx>
sphalerite: Oh, sorry. my bad. it's correct right now. thank you so much.
fusion809 has joined #nixos
alex`` has joined #nixos
agander has joined #nixos
vidbina has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 272 seconds]
reinhardt has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
alex`` has quit [Ping timeout: 255 seconds]
OllieB has joined #nixos
<OllieB>
?
OllieB has quit [Client Quit]
<gchristensen>
hah
alex`` has joined #nixos
evanm has joined #nixos
agander_ has joined #nixos
agander__ has joined #nixos
agander has quit [Ping timeout: 245 seconds]
agander_ has quit [Ping timeout: 250 seconds]
agander_ has joined #nixos
agander__ has quit [Ping timeout: 250 seconds]
agander_ is now known as agander
alex`` has quit [Ping timeout: 272 seconds]
camsbury has quit [Remote host closed the connection]
<asymmetric>
hi, my laptop freezes every time i use nix commands, specifically when evaluating /nix/store/xhlaj0ym83v3jcll7wbd7ybippr8p1fm-source/pkgs/tools/archivers/unzip/default.nix
<asymmetric>
i'd like to rollback to a generation before that file was introduced in my store - how do i find out when it was introduced?
<{^_^}>
[nixpkgs] @lheckemann pushed commit from @ryantm to release-19.03 « COPYING: include 2019 »: https://git.io/fjfTr
rauno has quit [Remote host closed the connection]
schneid3306 has joined #nixos
neminis has joined #nixos
<_linarcx>
Gyus, how to add local packages and install them via overlays?
<illegalprime>
_linarcx: I think you just have to add them to the top level of your overlay
ikitat has joined #nixos
<ikitat>
Can you remove a parameter to a derivation using an overlay? pylint won't build on macos because enchant fails to build. This seems to be only needed for testing pylint, so I'd like to remove it in an overlay until I can get around to attempting to fix enchant
<_linarcx>
illegalprime: I don't use them before. where is the default overlay?
<illegalprime>
then in the example, instead of overriding another package, just add your own between the curly braces and (I believe) it should get added
<{^_^}>
[nixpkgs] @zimbatm opened pull request #57908 → pythonPackages.invoke: patch the default bash path → https://git.io/fjfka
<detran>
illegalprime: thanks for the link, do you do this in configuration.nix under environment.systemPackages?
<ikitat>
Is there a way to remove an attribute from the input set of a derivation? Specifically, I'm trying to adapt a broken derivation through an overlay.
asymmetric has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
<slack1256>
scientist: you can meanwhile set it as `setxkbmap -layout eng`
<{^_^}>
[nixpkgs] @dotlambda pushed 5 commits to release-19.03: https://git.io/fjfkb
<laas>
yeah that worked, nice
<laas>
iqubic: I don't know about libnss3, but in general, you don't install libraries
<laas>
you install programs
<laas>
if you need a library to build a program, you can make a nix expression with mkShell that includes libnss3 in buildInputs
<scientist>
slack1256: do i paste this in my configuration.nix, or xserver.nix module ?
<srhb>
scientist: Since the driving force behind this is still sessionCommands, and you're still using plasma, I would expect it to fail in exactly the same manner as yesterday.
Fare has quit [Ping timeout: 268 seconds]
<scientist>
srhb: so if i completely remove plasma and replace it with xmonad , will it work ?
<srhb>
scientist: I would expect so.
<srhb>
scientist: I haven't verified this though.
xkapastel has quit [Quit: Connection closed for inactivity]
agander has quit [Ping timeout: 246 seconds]
timokau has quit [Ping timeout: 258 seconds]
<slack1256>
scientist: no, run in on your shell
josiah_sama has joined #nixos
<slack1256>
it is a stopgap measure
hyper_ch2 has quit [Quit: Page closed]
asymmetric has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos
<slack1256>
scientist: Do you have services.xserver.layout = "es"; set?
<scientist>
slack1256: what do mean on `run in on your shell` and for the setting do you mean `us` or `es` ?
<slack1256>
open xterm and run that command, set the layout to the one on your keyboard
<slack1256>
for my case that would be "es", I don't know yours.
i1nfusion has quit [Remote host closed the connection]
st4ll1_ has joined #nixos
i1nfusion has joined #nixos
<scientist>
i already set it in my xserver.nix module
iqubic has quit [Ping timeout: 256 seconds]
<scientist>
srhb++
<{^_^}>
srhb's karma got increased to 36
<scientist>
slack1256++
<{^_^}>
slack1256's karma got increased to 1
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 245 seconds]
ThatDocsLady_ has quit [Remote host closed the connection]
<scientist>
guys i am going to remove kde plasma, and replace it with xmonad, i have never used xmonad before is it hard to use and setup ?
ThatDocsLady_ has joined #nixos
<scientist>
?
stepcut_ has quit [Ping timeout: 255 seconds]
<sphalerite>
scientist: it sounds like you don't actually know why you'd want to switch.
timokau has joined #nixos
<sphalerite>
what's wrong with plasma?
<neminis>
kde plasma is a full blown desktop environment, xmonad is "just" a window manager
<neminis>
why would you like to use actually ? a tiling window manager ?
<neminis>
what*
<simpson>
scientist: XMonad's difficulty appears to be directly related to whether or not one knows Haskell syntax, AFAICT.
<scientist>
sphalerite: i want to get rid of kde plasma to so that my custom keyboard will work and i was reading about xmonad earlier and it seems useful
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @Mic92 to release-19.03 « python3.pkgs.python-engineio: 3.0.0 -> 3.4.3 »: https://git.io/fjfI9
<scientist>
simpson: thanks for the tips
<scientist>
simpson++
<{^_^}>
simpson's karma got increased to 4
timokau has quit [Ping timeout: 246 seconds]
<jasongrossman>
scientist: Alternative simple window managers that work well with NixOS, in case you don't like Haskell, include i3, stumpwm, awesome, and qtile.
<simpson>
I have put up with Awesome for many years. It's a local maximum.
<scientist>
simpson: that's good to know, does xmonad work well with nixos ? because kde plasma doesn't want to let xserver load my custom keyboard layout when i bootup.
asymmetric has joined #nixos
<simpson>
scientist: I haven't used XMonad on NixOS. No idea. I hear that it's usable.
<scientist>
simpson: ok, i'll give it a try
stepcut has joined #nixos
<scientist>
simpson++
<{^_^}>
simpson's karma got increased to 5
<asymmetric>
hi, i can't seem to be able to add a swap partition to my hardware-configuration.nix
<asymmetric>
but it still doesn't do a swapon for some reason
<asymmetric>
if i do it manually, it works
<scientist>
Lears: was this message for me ?
<Lears>
Yes.
<scientist>
Lears: thanks for the tip
<scientist>
Lears++
<{^_^}>
Lears's karma got increased to 1
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<scientist>
alphaomega: are you there ?
<asymmetric>
i'm using luks and btrfs if that matters
scientist has quit [Quit: WeeChat 2.2]
<glasserc>
Is there an easy way to use nix-shell to get a build environment for a package in nixpkgs? I'm trying `nix-shell -A hello` and I get an error about the function having arguments without a default value
mariel__ has joined #nixos
stepcut has quit [Ping timeout: 245 seconds]
<slack1256>
glasserc: nix-shell -A hello '<nixpkgs>'
i1nfusion has quit [Remote host closed the connection]
stepcut has joined #nixos
i1nfusion has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 252 seconds]
<glasserc>
slack1256: Fantastic, thank you
ddellacosta has joined #nixos
boothead has quit [Quit: Page closed]
novakovic has quit [Remote host closed the connection]
<slack1256>
glasserc: generally nix-shell tries to pick up the nixpkgs revision from the environment (your current directory can have a shell.nix file and will use that)
<slack1256>
to make it use the current revision of your system you have to pass the '<nixpkgs>' string at which points to it.
<glasserc>
slack1256: Oh, I see, the problem was I happened to be in a directory with a default.nix, and it was trying to use that. My mistake. Thank you very much
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @zimbatm to master « pythonPackages.invoke: patch the default bash path (#57908) »: https://git.io/fjfLs
<sphalerite>
which can be very confusing, what with the very different behaviour of -p :)
neminis has quit [Quit: WeeChat 2.2]
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
mmlb977 has quit [Ping timeout: 245 seconds]
stepcut has quit [Ping timeout: 272 seconds]
Jackneill has quit [Ping timeout: 255 seconds]
scientist has joined #nixos
_linarcx has quit [Ping timeout: 246 seconds]
<scientist>
does anyone know when alphaomega gets on, i have a question about the instructions he showed me yesterday
<scientist>
?
<scientist>
i want to know that way i am not stuck waiting on weechat all day for him to get on
<scientist>
?
<sphalerite>
scientist: no, we don't tend to stalk each other :)
_linarcx has joined #nixos
<sphalerite>
scientist: the best approach is usually to ask your actual question and wait a couple of hours rather than targetting a specific person with the question.
<scientist>
sphalerite: if you send a private message, will he get it the next time he logs on to weechat ?
<{^_^}>
[nixpkgs] @shmish111 opened pull request #57910 → prometheus: fix version 2 errors → https://git.io/fjfLc
<scientist>
if i send it, typo
<sphalerite>
scientist: no, IRC messages only get delivered to people who are currently online. If you don't want to stay connected all the time, maybe you should post on discourse instead.
<srhb>
Which I think is what vaibhavsagar was going to say too :-)
Fare has quit [Ping timeout: 255 seconds]
<scientist>
srhb: so now that i have ghc and cabal installed, i don't have to have to set the path env var for them ? so i can go straight to the xmonad instructions ?
Panke has joined #nixos
<vaibhavsagar>
:thumbsup:
<srhb>
scientist: The xmonad options will take care of everything you need for a basic xmonad setup. No need to manually juggle any dependencies. And this should go for most things in NixOS.
<srhb>
scientist: So you can "uninstall" ghc and cabal and still be fine.
<srhb>
scientist: The options will be sure that they are locally present for xmonad.
<srhb>
er, will ensure*
<scientist>
srhb: thanks for the tip
<scientist>
srhb++
<{^_^}>
srhb's karma got increased to 37
timokau has joined #nixos
scientist has quit [Quit: WeeChat 2.2]
Fare has joined #nixos
<Panke>
got a newbe question. I've got the nix package manager installed under arch linux and try to upgrade cmake. However I have conflicting packages and it tells me to change the priority. Is there any way to do this for the new cmake version prior to installation. Here is the session: https://pastr.io/view/EL10tK
<scientist>
srhb: i removed plasma5, do i need to remove sddm as well ?
<srhb>
scientist: I don't know. I use lightdm. I don't think I have an opinion on whether it's nice or not though
<scientist>
what is sddm ?
<Panke>
a graphical login manager like gdm
<srhb>
scientist: I imagine it's the display manager / graphical login screen.
erasmas has joined #nixos
neminis has quit [Quit: WeeChat 2.2]
<rnhmjoj>
Mic92: i have access to the aarch64 box (thanks grahamc) and i setup the builder but i'm not sure how to run nixos tests remotely. this doesn't work: nix-build -A nixosTests.predictable-interface-names.predictable --option system aarch64-linux
<scientist>
srhb: ok i guess, i will just leave it, you said it was plasm5(kde) was the reason for my custom kyb layout was not working so i am removing it
<scientist>
what display manager works best with nixos, i am currently using sddm
<Mic92>
rnhmjoj: nix-build nixos/release.nix -A tests.predictable-interface-names.predictable.aarch64-linux
timokau has quit [Ping timeout: 272 seconds]
<Mic92>
should work
<srhb>
scientist: It's only a theory
<srhb>
scientist: I don't know that that's what's happening.
<scientist>
nix-env -e `package` is this the correct command to remove packages in nixos ?
evanm has quit [Ping timeout: 256 seconds]
<scientist>
srhb: well i'll try it out just to make sure
<srhb>
nix-env -e packagename will remove that package from your user profile.
<scientist>
srhb: what about globally ?
<srhb>
scientist: Depends how you installed it. And what you meant by removed :)
<srhb>
scientist: The notion of "installed" is not so simple in Nix land.
<srhb>
Heck, even the notion of "package" is difficult.
<scientist>
ya, confusion, but i am geyying the hangof it
<srhb>
scientist: Sure, it takes a while. :)
<rnhmjoj>
Mic92: thank you, seems to work
ddellacosta has quit [Ping timeout: 246 seconds]
dashkal has joined #nixos
<_linarcx>
Gyus. How to implement i3blocs.conf in home manager?
<{^_^}>
[nixpkgs] @LnL7 merged pull request #57868 → Add CoreAudio to sox on macOS → https://git.io/fjvH1
grizwako has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 250 seconds]
timokau has quit [Ping timeout: 244 seconds]
Myhlamaeus has joined #nixos
JosW has joined #nixos
grizwako has joined #nixos
timokau has joined #nixos
Ariakenom has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<NemesisD>
how do y'all handle importing nix expressions that you'd store in a private git repository and share between work projects? do you just submodule it into the project or is there something in nix itself?
<gchristensen>
builtins.fetchgit usually
scientist has joined #nixos
Fare has joined #nixos
ikitat has quit [Ping timeout: 245 seconds]
<scientist>
how do i set wpa_supplicant in my configuration.nix , i want to enable wifi ?
timokau has quit [Ping timeout: 268 seconds]
jtojnar has joined #nixos
<scientist>
?
grizwako has quit [Remote host closed the connection]
<gchristensen>
rnhmjoj: you wrote nixos-tests, but nixos-test is required
rycwo has quit [Ping timeout: 245 seconds]
rcshm has quit [Remote host closed the connection]
ikitat has joined #nixos
jtojnar has quit [Ping timeout: 246 seconds]
jtojnar_ has joined #nixos
rcshm has joined #nixos
jtojnar_ is now known as jtojnar
timokau has quit [Ping timeout: 246 seconds]
wfranzini has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<rnhmjoj>
gchristensen: thank you! it was driving me insane
<gchristensen>
:)
<gchristensen>
it didn't even do most of that error for a long time, just error: a 'aarch64-linux' is required to build '/nix/store/dnk2dhq1ziz7h088pdixqb7fqzxmjz89-vm-test-run-predictableInterfaceNames.drv', but I am a 'x86_64-linux'
alex`` has joined #nixos
[Leary] has joined #nixos
o1lo01ol1o has joined #nixos
Lears has quit [Read error: Connection reset by peer]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
_linarcx has quit [Ping timeout: 246 seconds]
stepcut has quit [Read error: Connection reset by peer]
scientist has joined #nixos
_linarcx has joined #nixos
scientist has quit [Client Quit]
stepcut has joined #nixos
_linarcx has quit [Ping timeout: 255 seconds]
rcshm has quit [Read error: Connection reset by peer]
pie_ has quit [Ping timeout: 246 seconds]
rcshm has joined #nixos
<eyJhb>
Where is curses.h included?
_linarcx has joined #nixos
<_linarcx>
noonien: How you configure i3blocks finally?
stepcut has quit [Ping timeout: 244 seconds]
<noonien>
_linarcx: you mean, what i put in `command`?
<noonien>
`command=/run/current-system/sw/libexec/i3blocks/$BLOCK_NAME`, and i also added `modules/desktop.nix: environment.pathsToLink = [ "/libexec" ];` to my configuration.nix
leat1 has joined #nixos
_kwstas has joined #nixos
zupo_ has joined #nixos
Panke has quit [Quit: Lost terminal]
<_linarcx>
noonien: I don't have that path: `/run/current-system/sw/libexex`
<noonien>
are you on nixos?
zupo has quit [Ping timeout: 245 seconds]
<_linarcx>
noonien: Yes, i'm on nixos. In sw directory, i just have bin, etc, lib, sbin, share.
<noonien>
yes, that's why i added `environment.pathsToLink = [ "/libexec" ];` in my configuration.nix
stepcut has joined #nixos
<_linarcx>
noonien: What that line doing?
<_linarcx>
and is this best approach to use i3blocks in nixos?
<noonien>
it links /libexec from derivations to /run/current-system/sw
<noonien>
i'm unsure, that's what I do and what works for me.
<_linarcx>
Oh, yes. thank you. i will add this tips to wiki too for other persons. :)
_kwstas has quit [Quit: _kwstas]
fusion809 has quit [Remote host closed the connection]
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
rcshm_ has quit [Read error: Connection reset by peer]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
domogled has quit [Quit: domogled]
<elvishjerricco>
Is there something like bind mounts that lets you hide some paths from the target dir, or only show a certain set of paths?
linarcx has quit [Quit: WeeChat 2.4]
rcshm has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
rcshm has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eyJhb>
Is there any policy on forking a Github repo which hasn't been updated in quite some time, merging some PRs, and then changing the package to point at your own fork?
rcshm has quit [Read error: Connection reset by peer]
_kwstas has joined #nixos
rcshm has joined #nixos
Ralith_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
<gchristensen>
that is not typically wanted if it can be avoided
<gchristensen>
sometimes PRs will be "merged" in Nixpkgs by using fetchpatch on the PRs, if there are not many
<eyJhb>
gchristensen: the repo was last updated 2017, and I have included some additional stuff in my own, and I think his is already a fork of something else.. :p
<gchristensen>
ugly. what project is this?
mariel__ has quit [Ping timeout: 255 seconds]
<eyJhb>
gchristensen: you are NOT going to like it.. It is sl, the steam locomotive!
<gchristensen>
lol.
<gchristensen>
if the fixes are not *very* important, I would prefer we not
<{^_^}>
nix#2633 (by x80486, 8 weeks ago, closed): Error: cloning builder process: Operation not permitted installing Nix 2.2.1 in (Arch) Linux
shabius has joined #nixos
<tdammers>
I gave up at that point, and just installed nixos into a VM
<simpson>
JosW: I agree with both that issue and tdammers: Try out the sysctl. What's the worst that could happen on a fresh VM? And then figure out how to get NixOS on there, unless you really like Debian.
* tdammers
really likes debian
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JosW>
it is not that much of a problem, running nixos on kvm vm's on my test pc
ddellacosta has joined #nixos
<JosW>
but i have an vps that I would like to run Nixos on but the hoster isn' t providing Nixos iso' s as an install option...
aanderse-work has quit []
<JosW>
so I thought to try it this way instead of the kexec or Nixos inplace options
<simpson>
Remember to read the whole thing before doing the first step.
<JosW>
simpson: yes i am trying to follow that
<simpson>
Oh, and remember to save your SSH keys and networking information. There's various guides and blogposts out there if you're on any of the popular VPS providers.
linarcx has joined #nixos
<JosW>
Will try :) the provider is popular in the Netherlands..
irimione has joined #nixos
<tdammers>
tilaa?
<JosW>
Nearly, TransIp
irimi1 has quit [Ping timeout: 246 seconds]
dashkal has quit [Read error: Connection reset by peer]
<tdammers>
ah, yes
mkoenig_ has joined #nixos
goibhniu has quit [Ping timeout: 272 seconds]
<tdammers>
thought their cash cow was shared hosting though
<tdammers>
(which, bafflingly, is still a thing in 2019)
goibhniu has joined #nixos
dashkal has joined #nixos
mkoenig has quit [Ping timeout: 245 seconds]
timokau has joined #nixos
<JosW>
might be, still get stuff going on their vps
<JosW>
dedicated is a bit too far right now
troydm has joined #nixos
disasm has joined #nixos
pie_ has joined #nixos
ixxie has joined #nixos
<sphalerite>
tdammers: I don't find it baffling..?
<bgamari>
but I find it hard to believe that this could really be true
<bgamari>
This is using the nixos/nix docker image
spikebike has left #nixos [#nixos]
<pie_>
bgamari, if it did require it, it shoudl fetch it when you need it?
<pie_>
also theres fetchGit and fetchgit i think
<tdammers>
JosW: originally, but living in the Netherlands now. I have a €15/yr VPS from some weird garage company somewhere in NL, and two servers under my staircase, no further personal hosting needs
<bgamari>
I would have thought that nix would just gain a runtime dependency
<tdammers>
I've worked with tilaa, aws, transip, digital ocean and linode
<ryantm>
bgamari: It shouldn't because git is a nativeBuldInput to it:
<tdammers>
not really a strong preference either way
<bgamari>
my confusion was in part due to the fact that this dependency appears not to be documented anywhere
<vikingman>
someone can help me i try to get my laptop gpu working
<bgamari>
and it seems like this means that fetchGit will likely be broken by default in NixOS
disasm has joined #nixos
<ryantm>
Vikingman: Please ask a question about your problem instead of asking to ask.
<ryantm>
bgamari: Yeah, that seems pretty bad.
<vikingman>
i got a gt335 i know its old i simply dont understand how to get it activated
<vikingman>
im running on the intel one for now
<NemesisD>
how do you all handle development dependencies that don't actually get used in the nix build? i've got some frontend code to build but i don't necessarily want to teach nix how to build it in a derivation, i just want the tools to be available to the shell
grizwako has joined #nixos
<NemesisD>
my best idea so far is to just produce an expression that's a list of those tools and then merge that into my main package's nativeBuildInputs
<vikingman>
i made it work with nouveau driver and bumblebee
<elvishjerricco>
what does building with nix do if not build your frontend?
<{^_^}>
[nixpkgs] @LinArcX opened pull request #57917 → mcos-xfce-edition: init at 8d90e10 → https://git.io/fjfmM
vk3wtf has quit [Ping timeout: 245 seconds]
<vikingman>
but with optimus its a no go
<{^_^}>
[nixpkgs] @dotlambda pushed to master « python.pkgs.msrest: fix build on python2 »: https://git.io/fjfmy
<srhb>
bgamari: Hmm, what goes into the output hash for a builtins.fetchGit with a rev?
<NemesisD>
elvishjerricco: i have a haskell backend i'm using nix to build using shellFor. i also have a purescript frontend. right now i'm managing that frontend build with shake, so i'm provisioning the purescript compiler and sundry via nix
linarcx has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @dotlambda pushed to release-19.03 « python.pkgs.msrest: fix build on python2 »: https://git.io/fjfmH
<NemesisD>
elvishjerricco: i guess i could figure out a derivation so nix can build the frontend too. i think i don't understand what nix' role should be in the project. ok so it builds the final compiled frontend, but what about development? i guess if i include all the dev tools in the derivation's inputs that would do the trick
<tokudan[m]>
is someone successfully using services.rspamd? I'm facing some issues configuring it and it looks like /etc/rspamd is completely ignored
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @zimbatm to release-19.03 « pythonPackages.invoke: patch the default bash path »: https://git.io/fjfmb
<devalot>
tokudan[m]: I use rspamd and have some custom config. Let me look up how I'm doing that.
realrokka has quit [Ping timeout: 255 seconds]
<devalot>
tokudan[m]: Okay, what I do is: environment.etc."rspamd/override.d/actions.conf".source = ...
<tokudan[m]>
ah...
<tokudan[m]>
do you use rspamadm configdump? i tried a strace on it to figure out which configuration files it uses and it always uses /nix/store/*-rspamd-*
grizwako has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 268 seconds]
<srhb>
tokudan[m]: If you really want to manage it imperatively, I guess you can add an includes that points where you want it. But why would you want that?
<srhb>
tokudan[m]: fwiw it's normal for NixOS services to point to the generated, immutable config inside the store.
<devalot>
I have, yes. And it was correctly pulling files from /etc/
<srhb>
(And quite deliberate)
<tokudan[m]>
srhb: I don't want any imperatively involved, i just wanted to see what it thinks of the configuration
<tokudan[m]>
srhb: the reason for that is that it seems to completely ignore what I write in the exta-config
<tokudan[m]>
devalot: thanks! I'll have a look :)
<srhb>
tokudan[m]: I see. :)
bobvanderlinden has joined #nixos
shibboleth has quit [Quit: shibboleth]
<bobvanderlinden>
It seems some packages that have their version embedded in the name are not automatically updated. How useful/viable would it be to replace all `name = "package-1.2.3";` with `name = "package-${version}"; version = "1.2.3";`? Would the automatic updater pick these packages up?
tmaekawa has joined #nixos
realrokka has joined #nixos
rycwo has joined #nixos
<srhb>
bobvanderlinden: Automatically updated by what? ryantms bot?
<bobvanderlinden>
srhb: yes
knupfer has quit [Ping timeout: 264 seconds]
<srhb>
bobvanderlinden: Hmm, I didn't think that was how it worked...
<bobvanderlinden>
srhb: I noticed that some packages were outdated (in repology) and those packages had their version embedded in the name. I thought maybe that was an indication why ryantms bot did not pick them up. I have no idea whether that's actually how it works, but it seems like a quick-win to get higher % of fresh packages.
Shouou has joined #nixos
wfranzini has quit [Remote host closed the connection]
<bobvanderlinden>
(_if_ that is actually how it works)
wfranzini has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
<srhb>
I thought it looked at just the name, but I may be mistaken.
<bobvanderlinden>
ryantm: could you shed some light on your magificent bot? ;D
<ryantm>
bobvanderlinden: It first uses some nix-env query command to figure out the attrpath of the package, then it uses "nix edit attrPath" to find which file the attrPath corresponds to, then it greps that file for the version.
stepcut_ has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @rasendubi opened pull request #57920 → acpilight: add to module-list → https://git.io/fjfYc
<bobvanderlinden>
ryantm: aah ok. that sounds logical. i'll try to emulate that locally
<JosW>
WARNING: the per-user profile dir /nix/var/nix/profiles/per-user/jos should belong to user id 1000
<JosW>
WARNING: the per-user gcroots dir /nix/var/nix/gcroots/per-user/jos should belong to user id 1000
slack1256 has quit [Remote host closed the connection]
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @aszlig pushed 2 commits to release-19.03: https://git.io/fjfYu
<JosW>
what to do now?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #57820 → tree: use $CC instead of cc to build → https://git.io/fjvRP
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjfYa
ilya-fedin has quit [Quit: Connection closed for inactivity]
<sphalerite>
JosW: who do they belong to?
<sphalerite>
JosW: it won't cause any immediate problems, but nix-env and nix-channel probably won't work for jos
<JosW>
sphalerite: I am so glad I managed to get Nixos on this vps, but exhausted right now and no idea how to get the id 1000
rcshm has quit [Read error: Connection reset by peer]
<bobvanderlinden>
ryantm: strange that that infix of (probably) "1.1.6" was failing. If you run it right now it succeeds? or is it hard-ish to run it for this particular package ad-hoc?
<bobvanderlinden>
ryantm: it checks the _old_ version for one with surrounding quotes, even though updating the version works for embedded versions, the old-version-check is not compatible it seems
<JosW>
sphalerit: profiles/per-user and gcroots/per-user is root.root
<bobvanderlinden>
ryantm: of check just the contents of `nix eval alsaPlugins.name -f .`? not sure what the best solution is here. Just ending with " could catch other cases as well, but i guess there are enough checks to fail when it is updating incorrectly
scientist has quit [Quit: WeeChat 2.2]
<JosW>
sphalerite: thought so, will try and login after that
<bobvanderlinden>
there are 661 files that have the version embedded in the name of the derivation. It might be a good idea to do a recheck for those files.
timokau has joined #nixos
drakonis1 has quit [Ping timeout: 272 seconds]
Ariakenom has quit [Quit: Leaving]
<ryantm>
bobvanderlinden: Checking that old version is in there might be redundant, since when it uses `nix-env -qa ...` in lookupAttrPath it looks it up via the old version being in the name.
scientist has joined #nixos
<bobvanderlinden>
ryantm: ah right, that makes sense
<scientist>
where are the instructions to fix this ?
Dr8128 has quit [Ping timeout: 255 seconds]
<JosW>
although nix-channel --list gives me nothing?
timokau has quit [Ping timeout: 245 seconds]
<bobvanderlinden>
scientist: I guess you have `networking.wireless` defined in your configuration.nix. you can remove that because you already have networkmanager enabled (networkmanager is on its own able to manage your wireless cards and thus the option is conflicting with wireless options)
<scientist>
displayManager.sddm = {
ikitat has quit [Ping timeout: 246 seconds]
<scientist>
enable = true;
<scientist>
};
<scientist>
bobvanderlinden: that is all i changed, i don't have networking wireless defined anywhere ?
<{^_^}>
bobvanderlinden's karma got increased to 1
<duoi>
bobvanderlinden++
<{^_^}>
bobvanderlinden's karma got increased to 2
<duoi>
i feel like a few of us could game the system and take all the karma
<bobvanderlinden>
thanks for the karma :P is that a new thing?
<DigitalKiwi>
how new?
Myhlamaeus has joined #nixos
<DigitalKiwi>
pretty sure karma is a few thousand years old
<bobvanderlinden>
haha, yes you might be right
Makaveli7 has quit [Quit: Leaving]
<bobvanderlinden>
but making it that concrete with numbers in this specific channel seems new ;)
<ddellacosta>
once you make it to 100 karma you can redeem your karma for NixBucks(TM) and purchase Nix-themed gear with it like the famous Nix travel kit, Nix cookies, and of course the famous Nix frozen pizza
<ddellacosta>
</absolute nonsense>
<duoi>
bobvanderlinden in this channel you want to stay as close to 0 as possible
<DigitalKiwi>
i'm not sure when it first was added but i know it's been around for at least a few months
<tobiasBora>
however when I run nix-build default.nix, it fails with an error Can't make a derived instance of ‘Generic PortNumber'
<tobiasBora>
(this happened during the compilation of the file src/Types.hs)
<tobiasBora>
however if I manually compile it with "stack init && stack install", it works
<tobiasBora>
so do you know if it's because stack uses an older version of ghc (lts-9.9), or is it for a more subtle nix-related reason?
adetokunbo has joined #nixos
<elvishjerricco>
tobiasBora: That's almost guaranteed to be an issue with wstunnel or a difference in GHC versions. There's virtually no way Nix would be responsible for an error like that
<elvishjerricco>
my money is on GHC version
<tobiasBora>
elvishjerricco: ok thanks. And does nix provides a way to compile it with an older ghc, like lts-9.9?
grizwako has quit [Remote host closed the connection]
<elvishjerricco>
tobiasBora: Yea, in that default.nix you can change the `ghc863` to some older GHC version if nixpkgs still has it kicking around. If not, you may need to find an older nixpkgs
<elvishjerricco>
(sidenote, that's why I think nixpkgs should never drop GHC versions, or there should be a separate repo with all of them)
<tobiasBora>
elvishjerricco: ok I'll try... that's too bad that nix can't build older versions...
chreekat has quit [Ping timeout: 264 seconds]
<elvishjerricco>
tobiasBora: Yea we used to have a lot more but it was decided that we should reduce to IIRC only the last three major versions, and only one minor version of each major version
<linarcx>
Gyus, i create some packages and send pull-requests on github. How long does it take to merge them finally?
chreekat has joined #nixos
<elvishjerricco>
mistake IMO, but I think the main maintainer didn't really have time for it anymore
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #57929 → [backport] nixos/tests/predictable-interfaces: fix failure on aarch64 → https://git.io/fjfOz
<tobiasBora>
elvishjerricco: so when you remove one GHC version, it removes as well all the packages that do no build against the latest version right?
<elvishjerricco>
linarcx: It varies depending on who sees the PR and when. Sometimes hours. I usually find the most relevant maintainer and ping them after a week
grizwako has joined #nixos
<jackdk>
I've had stuff take over a week, I've had stuff take minutes. Most maintainers are good, but they're human.
<noonien>
what does nix-collect-garbage consider garbage?
<elvishjerricco>
tobiasBora: Yea if a package only builds with 8.0, but not 8.6, then removing 8.0 means there's no way to build that package in nixpkgs
<jtojnar>
scientist: what about `nixos-option -I nixos-config=/etc/nixos/configuration.nix networking.wireless.enable`
<noonien>
elvishjerricco: i'm guessing non-deamon installs don't have direct access to /nix/store
<noonien>
in't the nix store somewhere in $HOME?
<elvishjerricco>
noonien: Nah, non-daemon installs use /nix/store by default.
<jtojnar>
scientist: I think you missed a space before the option name
ikitat has joined #nixos
<elvishjerricco>
It's possible to change it but I don't think anyone's made a convenient way to do that without losing the binary cache yet
imdoor has quit [Quit: imdoor]
<noonien>
hmm, i guess that makes sense, since the binary cache is compiled for /nix/store by default, yeah
<elvishjerricco>
you can use chroot stores if your distro enables user namespaces to keep the store anywhere, but I dunno if Nix can be installed to use one by default.
<clever>
elvishjerricco: only root can view the env vars of another user
<clever>
noonien: `nix-store --query --roots /nix/store/foo` will list all roots for a given path
<elvishjerricco>
noonien: Do you already know how Nix traverses from gc roots so that runtime dependencies of roots aren't deleted?
<noonien>
well, there was a small portion describing that in the manual, yes. basically like any other GC i'm guessing
ikitat has quit [Ping timeout: 255 seconds]
<scientist>
jtojnar: i import an xserver module
<noonien>
start from root to see what's actually used, mark as used, then mark dependencies recursively as well
<elvishjerricco>
noonien: Yea, but the issue is determining what paths a path references. It has to scan the output for references to other store path's hash components. Sometimes doesn't work, e.g. compressed files
<jtojnar>
scientist: do you mean <nixos/modules/services/x11/xserver.nix>?
<noonien>
what do you mean? derivations depend on other derivations, what does this have to do with paths?
<elvishjerricco>
that way not all build inputs have to be considered runtime deps; e.g. gcc shouldn't be a runtime dep of bash, but it must be a build input
<noonien>
paths are resolved from derivations, not the other way around, i'm guessing
<bobvanderlinden>
(scientist: it would really help to share your configuration.nix. if that's not possible, please say so)
<noonien>
is that not why all the different *inputs and *dependencies exist?
<elvishjerricco>
noonien: Yea, so if your derivation writes the path of another derivation to a file in its output, Nix will see that the output contains the other derivation's path and consider that a runtime dep.
linarcx has quit [Quit: WeeChat 2.4]
<elvishjerricco>
noonien: The various types of inputs for stdenv are actually mostly for cross compilation; i.e. choosing the native or cross version of the input
<noonien>
hmm, that sounds leaky
<elvishjerricco>
runtime inputs are scanned for the way that they are because coders are dumb and will produce derivations that don't declare runtime deps correctly, which can lead to non reproducible builds
<noonien>
i agree, stil, it sounds leaky
<elvishjerricco>
leaky?
<noonien>
yes, it sounds like it's really easy to get false positives AND false negatives
<elvishjerricco>
it's definitely faulty, in that it's possible to make derivations that don't get their runtime deps correctly determined, but it should never result in something being a runtime dep that isn't
i1nfusion has quit [Remote host closed the connection]
<elvishjerricco>
er, it should never result in Nix determining that something is a runtime dep when in fact it is not, is how I should put that
i1nfusion has joined #nixos
<noonien>
it might
<elvishjerricco>
how?
<noonien>
also, i'm not completely sure how .so paths are stored, before resolved by ld, are they treadet specially?
<noonien>
trated&
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « lightdm: drop run-dir.patch »: https://git.io/fjfOb
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien>
well, some programs might choose to store the path to the compiler in the binary
<noonien>
i'm unsure if gcc stores the complete path though, for example
<scientist>
jtojnar++
<{^_^}>
jtojnar's karma got increased to 9
<elvishjerricco>
Nixpkgs makes sure that GCC emits executables with hard coded paths to libraries.
<scientist>
bobvanderlinden++
<{^_^}>
bobvanderlinden's karma got increased to 3
<noonien>
heh, nix contains more complexity than i initially thought
bobvanderlinden has quit [Ping timeout: 256 seconds]
<elvishjerricco>
noonien: Another derivation depending on a derivation with such a binary could scan the binary for the path and use it, all without having to guess any hashes.
<elvishjerricco>
so in that sense, it's still a runtime dep of that binary, just in odd use cases of that binary
scientist has quit [Quit: WeeChat 2.2]
srl295 has joined #nixos
<noonien>
fair enough
<elvishjerricco>
e.g. if you accidentally link against a lib you don't need, and something else wants to validate that all your libs exist, you're in trouble
<elvishjerricco>
though I guess launching that binary would fail anyway :P
random_yanek has quit [Ping timeout: 245 seconds]
jasongrossman has quit [Ping timeout: 264 seconds]
<noonien>
pretty interesting
<noonien>
and, how are the outputs scanned?
wfranzini has quit [Remote host closed the connection]
<noonien>
just matches for `/nix/store/<hash>-`?
wfranzini has joined #nixos
<elvishjerricco>
noonien: It will literally just find any binary string matching the hash part of any build input. So it doesn't have to find the whole path, just the hash
<noonien>
ah, interesting
<elvishjerricco>
since that's the unit that's least likely to be broken up
<noonien>
is there a way of specifying dependencies manually?
<elvishjerricco>
as in manually adding runtime deps, in case those hashes e.g. get compressed? I think the only way is to just create dummy files in the output that contain them
<noonien>
aha, so outputs are scanned after the derivation realisation is coplete?
<elvishjerricco>
yea
<elvishjerricco>
then recorded in the db
Anton-Latukha has quit [Quit: Leaving.]
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
<noonien>
awesome!
grizwako has quit [Remote host closed the connection]
grizwako has joined #nixos
grizwako has quit [Remote host closed the connection]
grizwako has joined #nixos
<worldofpeace>
jtojnar: why does gtksourceview use vala 0.40?
<noonien>
an aquantaince of mine is working on a game that's also targetting linux, i've asked him to provide a curl-able way of fetching the demo and full game but he said it's not worth the time. so i've created a program that allows downloads for users that have bought the game via steam, hopefully i can convince him to use the tool, so i can create a nix expression for the game :D
<noonien>
it's pretty amazing to see how many games there are in nixpkgs
random_yanek has joined #nixos
<clever>
noonien: steam also just works on nixos
jasongro` has joined #nixos
<jtojnar>
worldofpeace: I think I added it when we had policy of using fixed vala version and then forgot to bump it