<ZaraChimera>
How well does Nix integrate with Linux distributions? Would I need to create shortcuts and menu entries manually after installing packages, for example.
justanotheruser has quit [Ping timeout: 245 seconds]
<Profpatsch>
joepie91_to_go: Down from 2550 to nearly 2350 in one evening. :)
fragamus has quit [Read error: Connection reset by peer]
<Lisanna>
ugh I hate openssh so much, it refuses to let me share a private key with a unix group which is really screwing up my remote building
<clever>
ZaraChimera: if a program generates a .desktop file, it will be in ~/.nix-profile/share/applications after you nix-env -i it
<clever>
ZaraChimera: you will need to somehow convince your DE to look in there
justanotheruser has joined #nixos
sorixelle has joined #nixos
pacmeister has joined #nixos
kyren has quit [Read error: Connection reset by peer]
kyren has joined #nixos
init_6 has joined #nixos
<ZaraChimera>
Okay, I'll see if I can locate how to make Plasma look in my .nix-profile location.
<rizary>
when i put `{ inherit (pkgs.haskellPackages) auth-service; }`, should the haskellPackages contains my `auth-service` package?
roconnor has joined #nixos
camsbury has joined #nixos
joepie91_to_go has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 260 seconds]
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nixos
<rotaerk>
sigh, haskell-mode just doesn't work for me
<rotaerk>
at least, the haskell layer of spacemacs doesn't seem to
<rotaerk>
might be able to get it to work, with a lot of effort working out the kinks, but certainly doesn't just work out of the box
<Profpatsch>
Okay, <2350 issues, I’m going to bed. gn8 ;)
<rotaerk>
:P
rschm has quit [Remote host closed the connection]
rschm has joined #nixos
<Orbstheorem>
Hi, I'm trying to use `nix build` to build a local derivarion
<Orbstheorem>
I'm in the folder with the `default.nix` file, but when I run `nix build`, I get `error: cannot auto-call a function that has an argument without a default value ('stdenv')`
<clever>
Orbstheorem: the file must be loaded with callPackage
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnovosel has quit [Ping timeout: 245 seconds]
ericsagnes has joined #nixos
markus1189 has joined #nixos
silver has quit [Read error: Connection reset by peer]
camsbury has quit [Quit: WeeChat 2.0]
markus1199 has quit [Ping timeout: 248 seconds]
hamishmack has joined #nixos
mounty has joined #nixos
nvh^ has quit [Ping timeout: 265 seconds]
hamishmack has quit [Client Quit]
<Orbstheorem>
So, I'm trying to make a derivation for this: https://github.com/payonel/ocvm (so far I got: https://paste.gnugen.ch/raw/AvlW ). When trying to build using this command `nix build -f =(echo "with import <nixpkgs> {}; callPackage $(pwd)/default.nix {}") -vv` I get the message `No package 'lua5.3' found` on the build phase, it's comming from pkgconfig I pressume. How can I debug the build? that is, how can I
<Orbstheorem>
”manually execute the build steps” to figure the problem?
pie_ has quit [Read error: Connection reset by peer]
<clever>
Orbstheorem: lua5_3 has a lua.pc file, but pkg-config is looking for lua5.3.pc
<clever>
Orbstheorem: so you have to set the makeflag lua to nothing, but then the makefile automatically adds 5.2, so you have no option but to patch the makefile
<{^_^}>
[nixpkgs] @Phreedom pushed to master « amarok: fix building against Qt-5.11 »: https://git.io/f4SER
blonkhart has quit [Ping timeout: 268 seconds]
<Orbstheorem>
Okay, I'm trying to check how it works in other distros to see how to properly fix upstream
<clever>
lua can also be patched, to have 2 .pc files
blonkhart has joined #nixos
<Orbstheorem>
So, in debian they use lua5.3, are there any policy/name conventions on library names?
<Orbstheorem>
Perhaps we should add lua5.3.pc?
<clever>
yeah, adding a lua5.3.pc would also solve the issue
<clever>
and keepign the lua.pc would allow existing things to continue to work
phreedom_ has quit [Remote host closed the connection]
<rotaerk>
hrm, wasn't there something like /etc/nixos/configuration.nix but specific to the user
<clever>
rotaerk: ~/.config/nixpkgs/config.nix has nixpkgs config
phreedom has joined #nixos
ndowens04 has joined #nixos
<rotaerk>
ahh thanks
mkoenig has joined #nixos
blonkhart has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @dtzWill merged pull request #42470 → dmraid: patch to fix users of dmraid when using musl → https://git.io/f4S0Q
<ndowens04>
think i sorta figured out what is going on with mosh, it complains that LANG=en_US.UTF-8 isn't available but it is what is set in configuration.nix
<Orbstheorem>
I just found that `enableDebugging` is not in nixpkgs manual. Reading the definition I see that it's intended be be used with nix-build, is there an index of such handy functions somewhere or do I have to read all nixpkgs? :P
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philippD has joined #nixos
hamishmack has joined #nixos
<nixosbootloop>
I have an issue with xserver continuously trying to restart and failing after a fresh install of Nixos 18.03 on a Dell G7 (w/ gtx1060 and i7-8750H): https://youtu.be/CZsdksPh3pw
<nixosbootloop>
not sure what to do
tzemanovic has quit []
<init_6>
read logs?
<nixosbootloop>
A previous suggestion from here told me to replace init in grub with /bin/bash but that didn't seem to work.
<nixosbootloop>
init_6: So use an ubuntu live usb or something to mount this partition and look at the logs?
tzemanovic has joined #nixos
<nixosbootloop>
hm if I'm doing that anyway, I guess I could modify the systemd service for X11 to only try starting once
blonkhart has quit [Ping timeout: 264 seconds]
<init_6>
disable x11 from systemd and try start by hands
tmaekawa has joined #nixos
<init_6>
+ enable x11 logs if it`d not enabled
<init_6>
or read console output
<nixosbootloop>
init_6: Alright, I'll download ubuntu and burn it to a usb then try that
<init_6>
about thinkfan nix show version 0.9.3. but there https://github.com/vmatare/thinkfan is new fork with new features. How to install it in nixos?
<rizary>
does the `jailbreak-cabal` is for function `doJailBreak`? how to use atleast Cabal-2.2.0.0 as mentioned in that repo?
b has quit [Quit: Lost terminal]
tzemanovic has quit [Ping timeout: 248 seconds]
testuser has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
tzemanovic has joined #nixos
andymandias has joined #nixos
Xiro` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
goibhniu has joined #nixos
<inquisitiv3>
clever: I got another build that fails.
<inquisitiv3>
But this time I'm sure that it isn't a typo, because I've copied the files from the pills.
<inquisitiv3>
I'm trying to package `GNU hello world` with the instructions from § 8.1. But I get an error message some time after starting the build with `nix-build hello.nix`.
<jD91mZM2>
A nixos-rebuild switch (without --upgrade) just decided to rebuild a bunch of what looks like unrelated packages again
joepie91_to_go has joined #nixos
fendor has joined #nixos
rihards has joined #nixos
<flyx>
has anyone a working setup with nginx and pam authentication? I try to make it work but always get „authentication failure“ without a message about what is failing
andymandias has quit [Ping timeout: 256 seconds]
<flyx>
I get an error when I enter an unknown user or a wrong password saying what's wrong, but when I enter correct user and password, it just says „authentication failure“
<flyx>
pam config is like security.pam.services."radicale".unixAuth = true;
<flyx>
and nginx extraConfig is like auth_pam "Restricted Zone"; auth_pam_service_name "radicale";
<infinisil>
Unrelated: Here's a tiny command to convert a derivation name that gives you an "invalid character" error into a valid one (for scripts): tr -cs '+-._?=[:alnum:]' -
justanotheruser has quit [Ping timeout: 276 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
inquisitiv3 has quit [Ping timeout: 264 seconds]
hamishmack has joined #nixos
<stranger___>
infinisil: good, thanks!
<infinisil>
Unrelated: Here's a tiny command to convert a derivation name that gives you an "invalid character" error into a valid one (for scripts): sed 's/^\.*//' | tr -cs '+-._?=[:alnum:]' -
<infinisil>
^^ Now with leading dot removal, which are invalid also. Putting it like this so people might find it in the logs
agander_ has quit [Ping timeout: 240 seconds]
phdoerfler has joined #nixos
posco_ has joined #nixos
Turion has joined #nixos
posco has quit [*.net *.split]
posco_ is now known as posco
ajs124 has joined #nixos
jD91mZM2 has quit [Ping timeout: 248 seconds]
andymandias has quit [Ping timeout: 256 seconds]
<infinisil>
stranger___: Is it not possible to merge the default settings and the interface specific settings?
MercurialAlchemi has quit [Ping timeout: 265 seconds]
Ralith_ has joined #nixos
hxrts has joined #nixos
logzet has quit [Remote host closed the connection]
orivej has joined #nixos
stanibanani has joined #nixos
<{^_^}>
[nixpkgs] @ip1981 opened pull request #42526 → Mutable users vs authorizedKeysFiles → https://git.io/f4S1B
Ralith_ has quit [Ping timeout: 255 seconds]
Ralith_ has joined #nixos
silver has joined #nixos
sbdchd has joined #nixos
justanotheruser has joined #nixos
hxrts has quit [Ping timeout: 255 seconds]
yyadavalli has joined #nixos
<stranger___>
infinisil: thx! not sure i know a way to do that. so i've put a warn into interfaces option. also imho explicit is better than implicit in that particular case. i open ports granularly, don't want say port 22 be open on all interfaces
justbeingglad has quit [Ping timeout: 265 seconds]
<infinisil>
stranger___: Some nitpicking, ask here if you're not sure what I mean
MercurialAlchemi has joined #nixos
<stranger___>
infinisil: indeed, sorry
<hodapp>
raaaawr... going to try to package a program that's on Sourceforge and uses QMake
<hodapp>
this could be interesting.
<hodapp>
don't quite understand why I always see qmake listed in 'nativeBuildInputs'
__monty__ has joined #nixos
<infinisil>
hodapp: nativeBuildInputs is for build machine dependencies, which qmake seems to be, judging from the name at least
<infinisil>
hodapp: Same as cmake and make
<hodapp>
infinisil: hm, then why do I always seem to see cmake instead in buildInputs?
<infinisil>
hodapp: That's just wrong, and was either done before nativeBuildInputs was really there, or by people who didn't know :)
<hodapp>
that's probably something that should be documented somewhere considering that ~95% of my normal Nixpkgs workflow consists of grepping for the nearest example I can find, and copying it
<infinisil>
Also, there seems to be a qmake hook, I suggest just ripgrepping for qmake through nixpkgs to find other packages who use it
<infinisil>
Heh yes
<infinisil>
Pretty sure it is documented though, /me goes looking
<hodapp>
yeah, that requires a bit too much interpretation to ever translate to something obvious unless it was just so obvious you didn't really need the docs in the first place
<joepie91>
I think a good documentation goal would be "make it easier to implement based on documentation, than based on copypasting examples"
<joepie91>
I suspect that the copypasting is a major factor in the widespread inconsistencies in nixpkgs
<hodapp>
yel;
<hodapp>
er. yes; I have a very difficult time brigding between documentation and actual working examples
<symphorien>
about inconsistencies: what is the better way in a package: adding lib as an argument or using stdenv.lib ?
<infinisil>
symphorien: I honestly don't know what the point of stdenv.lib is at all
<hodapp>
as a guess, clangStdenv.lib may also be a thing that differs
<rizary>
according to the error, it should not happened if i'm using Cabal-2.2.0.0.
<rizary>
is there a way to specifically told ghc822 to just relying on `Cabal-2.2.0.0`?
<rizary>
I already tried `doJailbreak` on servant package, but then I can't build `auth-api` package due to ghc's packagedb not found. I can build the servant though.
roconnor_ has quit [Ping timeout: 265 seconds]
mariatsji has quit [Remote host closed the connection]
<gchristensen>
what is the exact not-str error you see?
<Myrl-saki>
Err, I meant to post the ec2SecurityGroups declaration.
<infinisil>
What's the problem with just setting the groupId?
<Myrl-saki>
error: The option value `deployment.ec2.securityGroupIds.[definition 1-entry 1]' in `/home/myrl/Development/skynet/ops/network-ec2.nix' is not of type `string'.
<Myrl-saki>
infinisil: description = "The security group ID. This is set by NixOps.";
<infinisil>
Oh
<gchristensen>
are you doing a nixops deploy with --include?
fresheyeball has quit [Remote host closed the connection]
<Myrl-saki>
I'm, uh. Really confused right now.
fresheyeball has joined #nixos
<fresheyeball>
clever: you around?
iyzsong has quit [Read error: Connection reset by peer]
<Myrl-saki>
infinisil: I think they forgot to add it?
<infinisil>
No idea
roconnor_ has quit [Ping timeout: 264 seconds]
<Myrl-saki>
infinisil: I'm taking a look at vpc_subnet.py, and there's way more mention of subnetId than groupId in ec2_security_group.py.
<fresheyeball>
is nixops deploy supposed to be deterministic? as in, it can be run more than once and have the same effect?
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<infinisil>
That's called idempotent btw
<joepie91>
well, you could also call it deterministic in this situation :P
<fresheyeball>
infinisil: I fear using that word, since I have been accused of using it wrong :P
<fresheyeball>
so yeah, is nixops deply supposed to be idempotent?
<Myrl-saki>
joepie91: (Real life) deterministic is more of `forall x, y, s, s'. x = y => f(s, x) = f(s', y)`
<joepie91>
as I understand it, deterministic = given the same inputs, it consistently produces the same outputs... whereas idempotent = applying an operation any non-zero amount of times to something will always produce the same resulting state, whether it's once or a hundred times
<LoneTech>
yep. so deterministic will produce the same result given the same inputs; idempotent will reach a steady state, so repeated applications don't matter.
* joepie91
considers whether idempotency is a strict subset of determinism
<Myrl-saki>
oe
<Myrl-saki>
joepie91: I guess?
<infinisil>
Idempotent: forall x . f(f(x)) = f(x)
<Myrl-saki>
joepie91: It maps {absorb} -> {absorb}
<Myrl-saki>
Where absorb is the absorption element.
<joepie91>
I *think* you can't end up with an idempotent system unless the operation itself is also deterministic
justanotheruser has joined #nixos
<infinisil>
Deterministic: forall x y . x = y => f(x) = f(y)
<infinisil>
joepie91: According to SO: "Idempotency does not imply determinacy (as a function can alter state on the first call while being idempotent on subsequent calls), but all deterministic functions are inherently idempotent (as there is no internal state to persist between calls)."
<__monty__>
That doesn't sound right. (+1) is not idempotent.
<Myrl-saki>
infinisil: A stricter idempotent is nullipotent, FWIW.
<infinisil>
__monty__: That's a good point..
<Myrl-saki>
Which is what I believe is implied by the first statement.
<Myrl-saki>
And yeah, I agree with __monty__ on this.
<Myrl-saki>
Hmm
<Myrl-saki>
How about
<Myrl-saki>
"Idempotent functions have a fixedpoint"
asuryawanshi has joined #nixos
<__monty__>
Still don't see how a non-deterministic function could be idempotent, unless const (rand) counts, i.e. always return a value that is random but fixed.
asuryawa_ has joined #nixos
<Myrl-saki>
__monty__: U'm duvukd ug a ghyldhg gyy.
<Myrl-saki>
I'm giving it a thought too*
<fresheyeball>
so it looks like a type error being thrown by python
<fresheyeball>
any idea how I could get around this?
<hodapp>
uhm, how do I make a derivation show *exactly* what it is trying to run?
<__monty__>
Myrl-saki: I guess my counter example proves a non-deterministic function can be idempotent though...
<hodapp>
nix-shell -v 6 is showing a lot of extra stuff... but still not the actual command
<{^_^}>
[nixpkgs] @fpletz pushed to master « snapcast: init at 0.14.0 »: https://git.io/f4SHD
<hodapp>
and particularly, qmake is throwing some errors and I'd like to see the actual flags being passed
asuryawanshi has quit [Ping timeout: 256 seconds]
asuryawa_ has quit [Remote host closed the connection]
daughertyh90 is now known as __holden__
<infinisil>
__monty__: Brain-melting! Let me know if you have a proof
<__monty__>
infinisil: Proof of?
chaoflow has joined #nixos
<infinisil>
That a non-deterministic function can't be idempotent
<__monty__>
infinisil: But my counter example proves it CAN.
<__monty__>
Kinda undermined my own point with the example.
chaoflow has quit [Client Quit]
pie_ has joined #nixos
simukis has joined #nixos
Mateon3 has joined #nixos
<{^_^}>
[nixpkgs] @Phreedom pushed to master « calligra: fix building against Qt-5.11 »: https://git.io/f4SHN
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
AluisioASG has quit [Remote host closed the connection]
[Leary] has quit [Ping timeout: 268 seconds]
AluisioASG has joined #nixos
<infinisil>
Oh
asuryawanshi has joined #nixos
Lears has joined #nixos
asuryawanshi has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @bhipple opened pull request #42530 → pythonPackages.plaid-python: init at 2.3.0 → https://git.io/f4SQk
<fresheyeball>
how can I findout the statePath for a service?
<jluttine[m]>
Is there some kind of "nixos-chroot" kind of command? I have nixos already installed, I'm now modifying hardware configuration by booting from a live usb stick. I'd like to use nixpkgs on my installed system, not the one on the live usb..
mariatsji has joined #nixos
<jluttine[m]>
I have done this before somehow, I think..
kier has quit [Remote host closed the connection]
<symphorien>
maybe nixos-enter ?
<jluttine[m]>
Maybe! Thanks, looks good.
kier has joined #nixos
hph^ has quit [Ping timeout: 240 seconds]
rardiol1 has quit [Remote host closed the connection]
<Myrl-saki>
nixos-eater sounds like a cool name for an OS replacement program.
<infinisil>
Which makes it a bit nicer in that aspect than nixos-option
<infinisil>
makefu: Also, do you know why nixos-option sometimes just doesn't return anything? E.g. the above nixos-option command just silently fails with exit code 1 for me
asuryawanshi has joined #nixos
<makefu>
infinisil: it fails with error 1 if it is unable to find the attribute, `
<makefu>
`nixos-option services.mattermost.statePath` works for me
<infinisil>
Hmm weird.., the nix-instantiate one works
<infinisil>
Oh wait, it directly uses /etc/nixos/configuration.nix ???
logzet has quit [Ping timeout: 255 seconds]
<makefu>
i think it uses your system config, yes
<infinisil>
Ah no it does use the proper path, not hardcoded /etc/nixos/configuration.nix
<infinisil>
But I still have no idea why it fails for me
<nh2[m]>
I'm trying to upgrade a Go application, consul-alerts, to a newer version. I get `cannot find package "github.com/aws/aws-sdk-go/aws" in any of: ...` How do I deal with stuff like that?
mariatsji has quit [Remote host closed the connection]
<infinisil>
nh2[m]: I'm not sure when go2nix is required, but it would certainly work if you used it
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<philippD>
Why is ghc842 missing on unstable-small? It was replaced by ghc843 which breaks my build. Is there a safe way of enforcing a lower bound the ghc version?
andymandias has joined #nixos
agander has joined #nixos
xy3_ has joined #nixos
knupfer has joined #nixos
elasticdog has quit [Ping timeout: 264 seconds]
<__monty__>
Upper bound you mean?
phdoerfler has quit [Quit: Leaving.]
elasticdog has joined #nixos
asuryawanshi has quit [Ping timeout: 265 seconds]
asuryawanshi has joined #nixos
realrokka has quit [Ping timeout: 240 seconds]
anderslundstedt has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @Synthetica9 closed pull request #42533 → keepassxc: use qt5.9 instead of latest qt5 → https://git.io/f4SF6
asuryawanshi has quit [Ping timeout: 240 seconds]
kisik21 has joined #nixos
LogicAside has quit [Ping timeout: 276 seconds]
<kisik21>
Hi there! Sitting in installation prompt now... Does anyone know how to use a keyfile on a flash drive/SD card/removable block device assuming I use LVM-on-LUKS?
<philippD>
__monty__: I need the ghc version to be at least 8.4.1 but I don't want to change each time a minor version is released. I also don't want to run on HEAD
<kisik21>
I encountered some guides for Arch, but these were Arch-specific (mkinitcpio encrypt hook)
<philippD>
__monty__ no, ghc842 beeing absent breaks my build since I depended on that exact version
fresheyeball has quit [Quit: WeeChat 2.0]
asuryawanshi has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<hodapp>
hiya
<fresheyeball>
so after putting much effor into getting nixops running on digital ocean
<fresheyeball>
I have another roadblock
<fresheyeball>
after doing a deploy rebooting the vm fails
<philippD>
__monty__: I know that Nix doesn't support versions but there has to be some way to do this. Like specifying something like ghc84 which always points to the newest minor version in the 8.4 range
<fresheyeball>
it dies with "mount: mounting /dev/vda1 on /mnt-root failed: No such file or directory"
<kisik21>
fresheyeball: check the /mnt-root directory
<kisik21>
fresheyeball: you lost your hard drive somewhere...
<kisik21>
Maybe forgot to load some modules?
asuryawanshi has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
xy3_ has quit [Ping timeout: 255 seconds]
<__monty__>
philippD: I'm not very experienced so I don't know. I think you should be able to make an overlay with version 841 and above, then use the overlay instead of just nixpkgs? That wouldn't be automatic though : /
notdaniel has quit [Remote host closed the connection]
<philippD>
yeah, that wouldn't help me
kisik21 has quit [Ping timeout: 245 seconds]
<philippD>
I would still have to have my CI builds breaks and then just bump the version
<fresheyeball>
that is the error I see if I reboot after deploying
<clever>
fresheyeball: you need to include the drivers for vda in boot.initrd.availableKernelModules
<clever>
fresheyeball: run nixos-generate-config and look at the hardware-configuration.nix it generates
<fresheyeball>
woah, that is differnt
<fresheyeball>
its a uuid now for example
<clever>
vda1 is simpler then the uuid
<clever>
both work, but vda1 is more predictable
<fresheyeball>
still this is more to copy over
<fresheyeball>
let me try this
<fresheyeball>
clever: the new version doesn't show boot.loader.grub
<fresheyeball>
should I be concerned?
kisik21 has quit [Ping timeout: 265 seconds]
<clever>
nixos-generate-config doesnt include that, but you still need it
<clever>
it expects that to be in the configuration.nix file
<fresheyeball>
its not haha
<fresheyeball>
infect put it in hardware-configuration.nix not configuration.nix
<clever>
ah
<fresheyeball>
clever: do I need to put that line back before deploying?
<fresheyeball>
(back on the droplet side)
<clever>
nixops ignores the config on the droplet
<fresheyeball>
deploying
<fresheyeball>
lets see if it can reboot now
frank87_ has joined #nixos
<fresheyeball>
this has been a ton of learning atleast
frank87 has quit [Read error: Connection reset by peer]
kisik21 has joined #nixos
<__monty__>
philippD: Yeah, I'm turning up nothing : /
<fresheyeball>
clever: woo! she rebooted!
<clever>
fresheyeball: :D
<fresheyeball>
clever: I really owe you one for teaching me this new skill
<clever>
fresheyeball: next, youll want to break the required config into 2 groups, the generic stuff like fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };, which you can put into a digital_ocean.nix file, and then the per-droplet stuff like the IP
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « gdbm: 1.14.1 -> 1.15 (#42263) »: https://git.io/f4SNI
<clever>
fresheyeball: then your nixops file can be: { hostname = { imports = [ ./digital_ocean.nix ./hostname_ip_cfg.nix ]; .... }; }
<clever>
and if you decide to make a 2nd droplet, you can reuse the digital_ocean.nix and base the new hostname_ip_cfg.nix on the existing example
<fresheyeball>
makes sense
juhe has quit [Remote host closed the connection]
<fresheyeball>
clever: actually, how do thing merge that way?
<fresheyeball>
is it just // ?
<clever>
every option in nixos has its own merge rules
<clever>
so it depends on the type of the option
robstr has quit [Quit: WeeChat 1.9.1]
<clever>
for boolean types, it will throw an error if they dis-agree
<hodapp>
if one packages a tool, and the tool's source code contains examples and miscellaneous other code, is it customary to put this in the output directory too?
<clever>
for int types, it throws an error if you set it twice
<clever>
for lists, it just concats them
<hodapp>
stuff that isn't built, just stuff that the user might need/want
<clever>
in the case of a set like fileSystems, it will recursively merge the values within
<clever>
hodapp: yeah, that could go into $out/share/
<__monty__>
Ah, great. So you could add a ghc84 to an overlay that selects a ghc84x?
<clever>
yeah
<__monty__>
philippD: ^ Only thing I could think of.
<__monty__>
clever: Would something like this be accepted in nixpkgs? I wouldn't mind taking a swing at it, doesn't seem hard.
<clever>
__monty__: if it was in nixpkgs, it would be much simpler, just a ghc84 alias that is updated by a maintainer when the thing it points to breaks
<clever>
and hydra will complain if anybody breaks it
<__monty__>
Wouldn't the maintainer get mad at us for the extra burden?
<clever>
its 1 extra line
<__monty__>
Well, one extra line for every range we can think of wanting, ghc7, ghc8, ghc82, ghc84...
<hodapp>
well, that's annoying. the application only wants to look for examples in two places: $HOME/Examples, and $PWD/Examples... can makeWrapper by chance add a custom command to start a binary from a certain directory?
<clever>
hodapp: i think it has a pre script, check the source of wrapProgram
<__monty__>
clever: A new utility function could "easily" allow for custom lower *and* upper bounds, working for ghcjs as well. Still think it's too complicated? I'll just give it a shot for personal use, can always PR if it turns out useful.
asuryawanshi has joined #nixos
<clever>
__monty__: yeah, a PR sounds good, then we can see what others think
kisik21 has quit [Ping timeout: 240 seconds]
xy2_ has joined #nixos
<hodapp>
w00t, wrapProgram worked fine with --run "cd $out/share" here, that was easy
asuryawanshi has quit [Ping timeout: 248 seconds]
<infinisil>
hodapp: So everytime anybody runs the app it cd's them to /nix/store/<hash>-<name>/share ??
<__monty__>
clever: That needs a different format though, right? 8.4.1 instead of 841, so you'd have to convert to or from because the attrNames are in one and the version'd have to be in the other.
<clever>
yeah, it would have to match the existing format, ghc841
Drakonis has joined #nixos
<__monty__>
But pkgs."ghc-8.4.1", right?
<clever>
i dont think that one exists
<__monty__>
Then what did you mean by pkgs."ghc-${version}"? Or was the - a slip-up?
<clever>
more an example of how you can insert variables into a key
<clever>
then an actual key
chessai has joined #nixos
<__monty__>
Ah, got it, that's actually very useful because I was still thinking of having a version string but then pkgs.${version} would be nonsensical.
mariatsji has quit [Ping timeout: 248 seconds]
<__monty__>
s/useful/helpful is more what I meant to say.
fresheyeball has quit [Quit: WeeChat 2.0]
hph^ has joined #nixos
<hodapp>
__monty__: I don't like how it more or less forces me to go through Blender and store things in their abomination of a file format.
seku has quit [Quit: Leaving]
<hodapp>
would rather the renderer be a separate piece, and my scene be something simpler and text-based (even though the geometry won't be) that is actually amenable to things like diffing and version control and has some chance of being human-grokkable
asuryawanshi has joined #nixos
<__monty__>
hodapp: Hmm, can you do that with blender? Sounds like you want something more like openscad/brl-cad.
stranger___ has quit [Quit: Connection closed for inactivity]
<hodapp>
can I do what with Blender? have my scene in a sane file format? I don't think so
<hodapp>
OpenSCAD may help with geometry (though I still need some interactive modeling functionality that's not from a DSL) but it falls over as soon as you do any sort of recursion/iteration... BRL-CAD, dunno, but it's more for industrial CAD and that's a separate thing completely
<__monty__>
Then why are you packaging blender exporters?
<__monty__>
There's also implicit cad.
<hodapp>
still need a renderer.
shabius has joined #nixos
<hodapp>
as for the exporters: because it's a thing that people may need (possibly including me, even if I want to avoid Blender)
<hodapp>
the issue of how I can make my geometry procedurally is one that looks like it's fairly well covered in between: Curv, libfive, ImplicitCAD, Ruckus (the DSL in Racket), OpenSCAD, and some homespun tools I wrote
<hodapp>
but I still need a renderer.
<__monty__>
Can Cycles not be used standalone btw?
<Ralith>
what sort of renderer do you want?
asuryawanshi has quit [Ping timeout: 240 seconds]
rihards has quit [Quit: rihards]
<hodapp>
Ralith: an open-source, global illumination, physically-based one, of which there are a couple like Appleseed and LuxCoreRenderer
<hodapp>
__monty__: don't know that it can in any useful sense.
<{^_^}>
[nixpkgs] @xeji merged pull request #42365 → chrony: disable the whole timesyncd module when chronyd is enabled → https://git.io/f4DuG
<__monty__>
hodapp: Hmm, seems like it's at least possible. It's also integrated into other 3d modelling programs.
<hodapp>
__monty__: it might be but it's not clear to me what it gets me over, say, Appleseed or LuxCoreRender
<hodapp>
which are both pretty excellent renderers of the same sort as Cycles
<__monty__>
Just another option.
andymandias has quit [Ping timeout: 260 seconds]
<hodapp>
"Cycles standalone has a XML API, which is used for mesh data and shader/settings import. There is no real API documentation at the moment, as the API is subject to change, but you can check the source code to get an idea"
<hodapp>
yeah, that is the sort of thing that is why I tend to shy away from Blender
<hodapp>
I'll still likely be using it for the 3D modeling part of things because it's still pretty top-notch for that
<samueldr>
with a remote build (buildMachines = ...) I'm getting `copying path ... from 'ssh://...'...` then `error: out of memory`
asuryawanshi has joined #nixos
<samueldr>
the file copied is 2.3GB, I know the remote machine isn't out of memory, so it must be the local machine
<samueldr>
I wouldn't have expected the local machine to copy the file in-memory
<__monty__>
hodapp: Would be a cool project to implement a better api in haskell ; )
<hodapp>
__monty__: yeah, you should start on that.
<__monty__>
samueldr: For remote builds the local downloads everything, then transfers to remote which builds and then transfers back.
<elvishjerricco>
samueldr: I think there was a change that got merged recently for streaming stuff instead of holding it in memory. Dunno if it's in 2.0.4.
<samueldr>
elvishjerricco: I'm pretty sure it's related to the copy from build machine to the local machine, which I think means the PR I linked to is related
<samueldr>
and if so, looks like it isn't merged or closed
<samueldr>
(I'm currently building with the fix)
<{^_^}>
[nixpkgs] @emmanuelrosa opened pull request #42537 → nixos/transmission: allow prestart to create directories → https://git.io/f4Sph
<clever>
rardiol1: and nix-store -q --tree ~/.nix-profile
m0rphism has joined #nixos
Lisanna has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
chessai has quit [Ping timeout: 240 seconds]
<rardiol1>
clever: thanks
asuryawanshi has joined #nixos
knupfer has joined #nixos
nickname2 has joined #nixos
datakurre has quit [Ping timeout: 260 seconds]
<nickname2>
hi all. trying to use ensime on neovim, but I get this error: " A dependency is missing, please `pip install sexpdata websocket-client` and restart Vim"
<nickname2>
although I don't get the "recompile" part
<nickname2>
I rebuilt the nixos configuration, if that's what they mean
kisik21 has joined #nixos
<nickname2>
(did you just approve my pull request for the epson? :P )
<symphorien>
are you installing neovim with nix-env ?
<symphorien>
(yes for the pull request :) )
<nickname2>
symphorien: nope, it's in configuration.nix
<symphorien>
can you introduce a syntax error in you overlay file and try to rebuild ?
datakurre has quit [Ping timeout: 260 seconds]
<symphorien>
if no error is raised, then your file is not read
<symphorien>
this would explain.
phdoerfler1 has quit [Quit: Leaving.]
seequ has quit [Ping timeout: 240 seconds]
troydm has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
<nickname2>
oh for the moment I stuck it inside configure.nix itself ^_^
<symphorien>
ah ok
datakurre has joined #nixos
<symphorien>
can you paste it ?
<palo>
matthewbauer: I just looked at nix-bundle, nice idea ! I read you want to create AppImages out of a nix file. Out of curriosity, did you manage to run a AppImage under NixOS ? I never made it work.
Drakonis has quit [Quit: Leaving]
toby1851 has joined #nixos
<__monty__>
Hmm, if we could get people so far as to write nix derivations to generate flatpaks and the like that'd be awesome. Nix packagers for free ; )
inquisitiv3 has quit [Remote host closed the connection]
<clever>
palo: i have used the arx mode of nix-bundle to make an app that works on any linux distro, including nixos
<clever>
palo: its essentialy a bash script that extracts and runs a static elf inside a .tar
<tilpner>
palo - You can run some AppImages using appimage-run, which is probably only available on master right now
asuryawanshi has joined #nixos
Dezgeg has joined #nixos
<palo>
uh tilpner and clever this is news to me.
<palo>
good news :D
seequ has joined #nixos
kisik21 has quit [Ping timeout: 265 seconds]
stanibanani has quit [Ping timeout: 260 seconds]
<clever>
palo: the tricky part, is that you need things like /etc/resolv.conf and such in the sandbox for stuff to work, and on nixos, those are symlinks to the host store, so things break when you overwrite /nix with a new mount
<samueldr>
the copy (download) isn't over, but there is already improvement in which my SBC doesn't go down (due to load) when copying
<clever>
palo: so it has to copy before setting up the sandbox
<palo>
clever: I see
<matthewbauer>
yeah i don't think appimage is supported at all in nixos. but why would you need it when you already have the Nix package manager?
<clever>
palo: and in my case, the entire bundle was ~200mb in size, and there is a ~30+ second delay just starting it, because it has to un-tar the entire thing on every start
<clever>
palo: so i only used the arx bundle as an installer
<tilpner>
matthewbauer - To use applications that are currently not packaged in nixpkgs, either due to lack of time or packaging difficulties
<clever>
palo: and then i have more custom stuff, that runs the sandbox without bundles, to give faster launch times
* tilpner
gets stuck playing on the iohk site again
<{^_^}>
[nixpkgs] @symphorien opened pull request #42538 → agedu: init at 20180522.5b12791 → https://git.io/f4Sjc
<palo>
I have other stuff in mind. For example one thing is to create a puredate binary which has a specific older version, that supports video output, together with some configuration that makes it smoother to work. In this case a nix-pkg (which I almost finished) exporting as an AppImage for other computers (which don't run NixOS) is a real time-saver
<Lisanna>
hmm, what should I do if a hydra jobset gets stuck in evaluation?
<Lisanna>
"Evaluation running since: 52s ago" :/
<Lisanna>
it evalautes and starts building fine locally
<Lisanna>
tried restarting hydra-evaluator
<Lisanna>
last message it prints when it starts is "starting evaluation of jobset ..."
nickname2 has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Ping timeout: 268 seconds]
<clever>
Lisanna: if you check `ps -eH x`, what does the tree look like around the evaluator?
<clever>
Lisanna: and is it using cpu?
asuryawanshi has joined #nixos
<kyren>
FruitieX: regarding earlier with gnome3 and gdm and wayland.. unfortunately no, gdm by default (I think?) runs wayland, but the gnome3 session doesn't
logzet has quit [Remote host closed the connection]
<clever>
Lisanna: can you link your release.nix?
<clever>
Lisanna: also, if you use an ssh based url in the hydra ui, then hydra will use the .ssh/id_rsa in the hydra user, so you dont have to leak your password in configs
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Lisanna>
I've run into this problem once before, and the solution was to restart
matthewbauer has quit [Read error: Connection reset by peer]
<Lisanna>
I can take that hydra-evaluator command and run it manually under the hydra user and it will run
<clever>
Lisanna: not sure what the issue is then, all you can try is to manually run hydra-eval-jobs with the args from https://lpaste.net/6367929829735530496 (mind the quotes around the --arg) and then strace that
asuryawanshi has joined #nixos
<Lisanna>
clever that's the thing, when I do that it works fine
<clever>
check its env too, /proc/PID/environ
matthewbauer has joined #nixos
<Lisanna>
clever of the daemon or the hydra-eval-jobs?
seequ has joined #nixos
<clever>
Lisanna: hydra-eval-jobs
<Lisanna>
clever I'm stracing the live process and the only thing printed is "futex(0x1a0db210, FUTEX_WAIT, 2147483648, NULL"
jensens has quit [Read error: Connection reset by peer]
<Lisanna>
I can't see anything particularly interesting in /proc/6378/environ
asuryawanshi has quit [Ping timeout: 256 seconds]
<clever>
Lisanna: out of ideas for now then
<Lisanna>
guess I'll just kick my box and file a bug and hope someone who works on hydra has an epiphany and happens to see the thing causing the problem one day
<Lisanna>
oh, if I kill the process hydra prints the log to the evaluation errors
<clever>
what does that log say?
<Lisanna>
it was having trouble DLing the nixexprs.tar.xz
<Lisanna>
clever might need to start a new section with some notes on this flag... from my testing, every time I use it with nix-build, it always seems to need to upload some data to the remote, even if the same command has succeeded in the past
<Zer000>
Folks I need a little bit of help. I have added package for a qt5 based audio application called MusE. I just imported this file into my config's list of packages: http://dpaste.com/3MTWSHB.txt and it works. I then wanted to add it to nixpkgs and make a pull request, but when I did so (please see: https://github.com/Zer0-/nixpkgs/commit/6e89491fa179decb116297354bb9c1e734cb31e1) on top of nixpkgs master the program fails to run! The output it gives is this:
<{^_^}>
[nixpkgs] @flokli opened pull request #42541 → WIP: casync: init at 2-152-ge4a3c5e → https://git.io/f49JL
<Zer000>
averell, I was looking at that issue. I'm not experienced enough with qt to know what the issue is, also supposedly it's "fixed" but I am using up to date master branch and it still fails. Btw I built using nix-build -A muse from the root of my nixpkgs clone.
Lisanna has quit [Quit: Lisanna]
init_6 has quit []
Lisanna has joined #nixos
foldingcookie has quit [Remote host closed the connection]
<Zer000>
ah in that issue I am told that starting the application like that is not expected to work. I suppose I will add to my configuration.nix and test like that and still make a PR