<lordcirth>
Hello, I'm trying to install NixOS (in a VM atm) with /dev/vda2 being a dm-integrity volume, with ext4 on top for /. I made /dev/vda1 a plain ext4 for /boot. The device UUID is not found during boot. What do I need to add to make the initramfs scan for dm-integrity devices?
linarcx has quit [Quit: WeeChat 2.4]
jluttine has joined #nixos
<lordcirth>
I did add "dm-integrity" to boot.initrd.availableKernelModules
m0rphism has quit [Ping timeout: 255 seconds]
<wolfman154_>
Can someone paste bin there syntax for setting up screen-locker in home.nix?
work_ has quit [Quit: Connection closed for inactivity]
drakonis1 has quit [Quit: WeeChat 2.4]
<{^_^}>
[nixpkgs] @romildo opened pull request #59939 → deepin.deepin-mutter: fix paths related to plugins and desktop files → https://git.io/fjOQJ
<wolfman154_>
I’m trying to lock screen after 10 minutes of not being used (preferably with xmonad)
jasongrossman has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @romildo opened pull request #59940 → deepin.deepin-wm: fix paths related to plugins and desktop files → https://git.io/fjOQq
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis1 has quit [Ping timeout: 258 seconds]
thePirateKing has joined #nixos
<lordcirth>
Ok, so I got 1 step further - I used boot.initrd.preLVMCommands to run 'integritysetup', but it's not in the initrd. How do I add an executable to initrd?
drakonis2 has quit [Ping timeout: 257 seconds]
jasongro` has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjOQs
<symphorien>
lordcirth: make it run ${pkgs.something}/bin/integritysetup instead, I guess
<lordcirth>
symphorien, the pkgs dir exists in initrd?
<symphorien>
No but the initrd builder computes the closure of the initrd and patchelfs everything iirc
thc202 has quit [Ping timeout: 244 seconds]
<symphorien>
You may have to read the code in nixpkgs to be sure, though
<taktoa>
anyone have experience debugging opengl / rust issues? I've written a program that indirectly uses glutin and it crashes with "both libglx and libEGL are not present" despite those libraries being in LD_LIBRARY_PATH
<ToxicFrog>
Like, what's happened here is that I have a system with generations 39, 40, 41, and 39 boots, and 41 doesn't, and I want to make sure 39 sticks around
<gchristensen>
this will make it undeletable by --delete-older-than
<gchristensen>
interesting
<gchristensen>
NixOS will never delete the system you booted
<gchristensen>
clever: will --delete-older-then skip deleting a profile which you booted?
<ToxicFrog>
That is good to know
<gchristensen>
(see /run/booted-system/)
<ToxicFrog>
So perhaps add-root is unnecessary here! Thank you!
<gchristensen>
well here is the big question in my head
<gchristensen>
you booted 18, you're on 19, will `nix-collect-garbage --delete-older-than` delete the profile entry for 19?
<gchristensen>
you booted 18, you're on 19, will `nix-collect-garbage --delete-older-than` delete the profile entry for 18?
jmgai has quit [Ping timeout: 255 seconds]
<gchristensen>
because if yes, and you then install the bootloader, it won't have a boot entry for 18 despite not having been GC'd
<sindrip>
I'm writing an overlay, and I am changing the source. The original package uses fetchFromGithub, I am a bit confused as to how I should reach for such utility functions in an overlay nix file (what is the correct way that is)
<dsx>
Is there a good reason why networking.nameservers are completely ignored if unbound is running locally?
<alienpirate5>
question, what should i do if my question is completely ignored?
<thePirateKing>
alienpirate5, I think wait a bit and try again
<alienpirate5>
It's been half an hour, can I repost it?
<thePirateKing>
idk
jasongrossman has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
<thePirateKing>
wait till like there is some activity by people who dont seem clueless like me lol
<alienpirate5>
I'm currently writing a nix overlay for tilp and gfm. Here's a link to the git repo: https://github.com/dkudriavtsev/tilp-nix I'm having trouble building gfm and can't understand why. Can someone please help me debug it?
qualiaqq has joined #nixos
<Ralith>
you may have better luck attracting interest if you concisely describe the specific problem you're having
<Ralith>
few people are going to be inclined to go clone some random git repo just to see if your problem is maybe something they know anything about
<alienpirate5>
Ok
drakonis has joined #nixos
<alienpirate5>
I am getting errors during the build, like this one:
<alienpirate5>
> /nix/store/za7z01w97i0zk974cc3vjmn799dnmn2d-libticalcs-unstable-2019-01-04/include/tilp2/ticalcs.h:29:10: fatal error: ticables.h: No such file or directory
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):252:99
<alienpirate5>
where is this?
jasongrossman has joined #nixos
<alienpirate5>
I looked at the build commands and it seems like libticalcs is not being included for some reason?
<{^_^}>
[nixpkgs] @samueldr opened pull request #59945 → nixos/virtualbox: Fixes configuration to evaluate → https://git.io/fjO72
<alienpirate5>
i mean it's not in the include path
<Ralith>
what're the output files of the libticables build?
<alienpirate5>
let me check
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<alienpirate5>
Also how do I stop the bot's embeds from being auto expanded?
<alienpirate5>
sadly enough that command means nothing to me
<Ralith>
riot has a toggle in the per-room settings accessed via the gear icon next to the topic
<alienpirate5>
Just did it, thanks
<Ralith>
`<expr>` is the path to a nix expression that contains the package you want to diagnose; `<path>` is the attribute path of that package
<alienpirate5>
attribute path?
<Ralith>
if `<expr>` is a file that contains { foo = ...; }` then you might do `-A foo`
<Ralith>
often `<expr>` is the literal string `<nixpkgs>`, e.g. if you have this repo configured as an overlay in your config.nix
<Ralith>
unfortunately it's kind of a pain to debug overlays in-place
<alienpirate5>
makes sense
o1lo01ol1o has quit [Remote host closed the connection]
<alienpirate5>
so I ran `nix-shell <nixpkgs> -A tilp` since tilp depends on libticables
<Ralith>
that should do nicely
<kleisli>
i'm trying to use python36.pkgs.fetchPypi, but I can't figure out how to get the sha256 for the pypi package i want
<Ralith>
modulo shell escaping issues with the angle brackets
o1lo01ol1o has joined #nixos
<Ralith>
,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.
<Ralith>
kleisli: ^
<thePirateKing>
oh wait that is way easier than the way i do things
<kleisli>
hm, i was calling nix-shell to build the derivation and it doesn't tell me what it expects the hash to be
<Ralith>
alienpirate5: so what's pkg-config print in that env?
<clever>
gchristensen: --delete-older-then will delete the booted profile, but booted-system itself is a root, so it cant actually GC it after deleting the generation
<siraben>
DigitalKiwi: wow that's a lot of timezones you keep track of
<clever>
Ralith: i just run tzselect in a shell
<alienpirate5>
Is there just a configuration entry where I can clone an overlay from git
<Ralith>
`pkgs.fetchGit`
<Ralith>
but prefer `fetchFromGitHub` if applicable
* DigitalKiwi
knows people
<Ralith>
they work the same way in configuration.nix as they do elsewhere
<alienpirate5>
but if it's an overlay, how do I add it
<Ralith>
you put it in your nixpkgs.overlays list
<alienpirate5>
I can just `nixpkgs.overlays = [ (pkgs.fetchFromGitHub {...}) ];`?
<Ralith>
yep
<alienpirate5>
Makes sense
<Ralith>
nix is magic like that
<alienpirate5>
Trying
<alienpirate5>
that's amazing actually
<alienpirate5>
The option value `nixpkgs.overlays.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not of type `nixpkgs overlay'.
<alienpirate5>
help
<Ralith>
oh, sorry, you need to wrap it in `import`
<alienpirate5>
ah
<alienpirate5>
cannot coerce a built-in function to a string, at /etc/nixos/configuration.nix:246:4
<Ralith>
god I hate that error
<alienpirate5>
ah, used too few parentheses
<alienpirate5>
it seems to be working
<alienpirate5>
yay
<alienpirate5>
now how would i go about getting these packages into nixpkgs?
<{^_^}>
[nixpkgs] @strager opened pull request #59947 → oraclejdk: use working mirror for download → https://git.io/fjO7h
<Ralith>
add the package to the `udev.packages` NixOS option
<alienpirate5>
?
<Ralith>
assuming the package places the rules in the usual path beneath its prefix
<alienpirate5>
It doesn't
<Ralith>
then fix it til it does :P
<alienpirate5>
it's not udev aware, it accesses devices through libusb
<Ralith>
for example, libu2f-host installs `$out/lib/udev/rules.d/70-u2f.rules`
varjag has joined #nixos
<alienpirate5>
can i manually add a udev rules file in the package?
<Ralith>
it's okay to add files wholesale to a package if it makes sense
<Ralith>
as a patch, or manually in `postInstall` or similar
o1lo01ol1o has joined #nixos
sindrip has quit [Quit: WeeChat 2.4]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<lordcirth>
I see that in the nixpkgs default.nix for ceph, "fetchgit" is given a sha256sum of the git tag. But git uses sha1. How exactly is this sha256sum calculated?
<gyroninja>
Is there a good way to install nixos over my previous operating system (Gentoo)? Would my best bet be booting the liveusb and putting the old root into a folder and then start installing nix? Do you think that would cause any problems?
<gyroninja>
*into folder on the same partition I'm installing nixos into
<Ralith>
lordcirth: for one thing, nix hashes aren't in base16
<Ralith>
they also don't include git metadata
<lordcirth>
Ralith, so, what command do I need to run on the git repo to get the correct hash?
* Ralith
shrug
<Ralith>
,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.
<lordcirth>
{^_^}, ok, thanks!
<Ralith>
> botsnack
<{^_^}>
undefined variable 'botsnack' at (string):252:1
wfranzini has quit [Remote host closed the connection]
<Ralith>
aw
wfranzini has joined #nixos
<DigitalKiwi>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 156
<kleisli>
@{^_^}, i'm still having trouble getting the sha expected by python36.pkgs.fetchPypi
<gyroninja>
thePirateKing: Maybe I'm misunderstanding it but that does not look very clean
<kleisli>
nix gives me the hash it's expecting for my derivation, but I think this is different than the one it expects for fetchPypi
<gyroninja>
or maye the description is weird
<gyroninja>
It looks like it installs it in /nixos, rather than installing it in root like normal
<Alling>
I also have a shell.nix which adds cabal-install so that I can run cabal new-build etc in the shell.
<Alling>
nix-build works. But if I then enter a nix-shell, run cabal new-build, and exit the nix-shell, then nix-build doesn't work anymore.
<Alling>
ghc: can't find a package database at /home/alling/.cabal/store/ghc-8.4.4/package.db
<Alling>
And I notice that cabal new-build creates a file .ghc.environment.x86_64-linux-8.4.4; if I remove it, nix-build works again.
<Alling>
It contains this line: package-db /home/alling/.cabal/store/ghc-8.4.4/package.db
<Alling>
That directory exists (outside the nix-shell).
thc202 has joined #nixos
kreisys has joined #nixos
<Fulgen>
hello, I'm trying to start another X instance on another VT. as it complains about missing libinput, I run it with nix-shell -p libinput --run startx. it starts up fine, however, neither mouse nor keyboard input work. how can I fix this issue?
Jackneilll has joined #nixos
<basvandijk>
Alling: the problem is you are including .ghc.environment.x86_64-linux-8.4.4 in your source code. Apparently GHC takes this file into account. nix-build will then fail because builds are executed in a sandbox where /home/alling/.cabal/store/ghc-8.4.4/package.db doesn't exists. To fix this filter this file from your source code with a function like sourceByRegex or something similar.
spacekookie has quit [Quit: **more agressive swooshing**]
LogicAside is now known as ThatOtherGuy
<Alling>
basvandijk: You mean I implicitly include that file in the Nix build? Where/how would I use sourceByRegex?
alexherbo2043 has quit [Ping timeout: 255 seconds]
eqyiel- has joined #nixos
<eqyiel->
can someone help me understand this? https://github.com/NixOS/nixops/issues/561 one of my ec2 instances was rebooted, and now I can't unlock it using the key that nixops uploaded after starting it again. I think this issue is saying that there is some kind of ephemeral storage where nixops stores a passphrase that is also required to unlock the volume. is this not also saved in the deployments file?
<{^_^}>
nixops#561 (by AmineChikhaoui, 2 years ago, open): Recover encrypted EBS volumes upon spot instance kill/termination
mexisme_ has joined #nixos
Lears has joined #nixos
eqyiel has quit [Ping timeout: 255 seconds]
mexisme_ has quit [Client Quit]
eqyiel- has quit [Remote host closed the connection]
eqyiel has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
[Leary] has quit [Ping timeout: 255 seconds]
regulus- has quit [Ping timeout: 244 seconds]
[Leary] has joined #nixos
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @romildo opened pull request #59953 → [WIP] deepin.deepin-manual: init at 2.0.19 → https://git.io/fjObl
Lears has quit [Ping timeout: 255 seconds]
eqyiel has quit [Ping timeout: 255 seconds]
jtojnar has joined #nixos
regulus- has joined #nixos
<{^_^}>
[nixpkgs] @joachifm pushed to master « nixos/hardened: split description of allowUserNamespaces into paras »: https://git.io/fjObu
<{^_^}>
[nixpkgs] @lightbulbjim opened pull request #59954 → brogue: add .desktop file and icon → https://git.io/fjObz
<Profpatsch>
Izorkin: I suggest going through the history of the file you are modifying and pinging some of the authors
<Profpatsch>
If Mic doesn’t have the time.
<aanderse>
Izorkin: in regards to my latest comment, and your reply, i really don't think one data point (ie. you have nginx with php and roundcube working) is sufficient evidence :\
<Izorkin>
how else can you test?
<aanderse>
i don't much anything about nginx, but i fear if your change gets accepted for nginx it will be support to do the same for apache, without proper testing
arjen-jonathan has joined #nixos
<aanderse>
so let me start with saying i really want your change to happen
<aanderse>
i've been thinking of an adequate plan for apache
<aanderse>
step 1. run on my personal web server which doesn't receive any traffic outside me and my friends/family
<aanderse>
step 2. run on a public website i manage in my hobby time
<aanderse>
step 3. convince my boss to let me run that on a low traffic server at work
<aanderse>
step 4. convince my boss to let me run that on a high traffic server at work
<aanderse>
on top of that, though
ris has joined #nixos
<aanderse>
you need to make sure you have enough coverage across use cases
<aanderse>
there are countless ways to utilize apache
<aanderse>
modules, features
<aanderse>
you need to say that you have an adequate spread of tests
<aanderse>
for apache that means using at least all the major mod_*s included with nixos
<aanderse>
and testing several that aren't included
<aanderse>
using apache as a proxy server is a common enough usecase
<aanderse>
so that would need to be tested
<aanderse>
etc...
ricekrispie2 has joined #nixos
<Izorkin>
I do not use apache, so I can not test something
<aanderse>
so i think the first thing you need do is find volunteers with a wide variety of use cases to test this in production
<Profpatsch>
lassulus: Do you know whether we have any instructions on how to backport things?
<Profpatsch>
lassulus: I think if you cherry-pick the commit locally, you can create another PR that is merged into the 19.03 branch.
f0i has joined #nixos
ricekrispie has quit [Ping timeout: 250 seconds]
* Profpatsch
is not really much of a nixpkgs power-contributor
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<aanderse>
Izorkin: i wish i could offer more concrete feedback on the nginx side, but i really don't know much about it
<aanderse>
is running nginx as a regular user common? no idea
<aanderse>
it certainly isn't that common in apache, though
<aanderse>
i'm not aware of any distro that has apache setup to run that way
Glider_IRC_ has joined #nixos
o1lo01ol1o has joined #nixos
<Izorkin>
root rights are required only to open the port (poor translation)
<aanderse>
Izorkin: i get that. but given how big apache is, and how it was meant to run as root, there are just too many unknowns for you to confidently say it won't break
<Izorkin>
And if you try to ask on the channel #nginx ?
Glider_IRC__ has quit [Ping timeout: 246 seconds]
kisik21 has quit [Ping timeout: 268 seconds]
<aanderse>
asking for real world production stories of people running nginx as non root would be a good idea
o1lo01ol1o has quit [Remote host closed the connection]
<aanderse>
if you can show that running nginx as non root is common enough, it definitely supports your PR
sigmundv has joined #nixos
o1lo01ol1o has joined #nixos
Have-Quick has quit [Ping timeout: 244 seconds]
ashkitten has quit [Quit: WeeChat 2.4]
Anton-Latukha has quit [Ping timeout: 250 seconds]
arjen-jonathan has quit [Ping timeout: 255 seconds]
<Alling>
Hm. If I have my default.nix which uses developPackage, and a cabal file which specifies that my package needs hspec == 2.0, shouldn't Nix automatically install hspec 2.0 then?
<Alling>
I thought developPackage would read my cabal file and figure out what Nix should install.
<clever>
Alling: nixpkgs will just provide any version of hspec, so whatever is in nixpkgs
<Alling>
clever: OK. But I thought version bounds were very important when working with Haskell and Hackage. They recommend setting lower and upper bounds on dependencies; that's what I'm trying to do.
<Alling>
And it doesn't sound Nixy at all that I shouldn't be able to build a Haskell package which requires some older dependency.
<clever>
Alling: if you want nix to respect the version bounds, then you need something like stack2nix, and then youll have to recompile nearly all haskell packages
<Alling>
clever: Only those I depend on, or _all_ of them, including GHC etc?
stepcut has quit [Ping timeout: 255 seconds]
o1lo01ol1o has joined #nixos
stepcut has joined #nixos
<clever>
the ghc version will be cached, but it will likely have to rebuild eveyr single haskell package
<clever>
you can also use overrides in the nix file to force a version for just one thing
<lordcirth>
Ralith++
<{^_^}>
Ralith's karma got increased to 3
<__monty__>
Alling: It's actually not as much of a problem as you might think. Nixpkgs' haskell infrastructure is based on stackage so for packages on there there'll be no version mismatches.
<Alling>
I started out with cabal2nix, but I was told that I should use developPackage and Nix would handle stuff for me.
<clever>
ive not used developPackage before
kreisys has quit [Ping timeout: 255 seconds]
* clever
reads its source
<Alling>
__monty__: OK, but how do I know what version bounds to put in my cabal file for dependencies, e.g. hspec?
<__monty__>
Alling: Nix+haskell does involve plenty of overrides with doJailbreak and dontCheck and callHackage invocations in my experience.
<clever>
Alling: basically all developPackage does, is run callCabal2nix for you!
<clever>
and if you use nix-shell, add a .env at the env
<__monty__>
Alling: Good question, something everyone seems to struggle with : ) I don't have a good answer.
<clever>
__monty__: we are currently switching over from stack2nix to haskell.nix, since it adds cross-compile support
<clever>
but the haskell.nix stuff still needs some things ironed one, recently found that nix-shell support isnt working at all
<__monty__>
That would include direnv/lorri support, right?
<Alling>
clever: It sort of worked. nix-build seems to work, and cabal new-build inside a nix-shell as well. But not cabal new-test:
<Alling>
cabal: Cannot test the package easy-rewriting-1.0.0 because none of the components are available to build: the test suite 'spec' is not available because the solver did not find a plan that included the test suites
<Alling>
So I guess that just means I can't have old dependencies.
<clever>
Alling: the cabal new- family of commands have issues under nix
<clever>
they tend to ignore the versions nix provides, download their own source, and build things directly
<clever>
and then that fails, because nix-shell didnt provide the deps of your deps
<clever>
because your not supposed to be building your own deps
<Alling>
clever: OK. But I think I've had issues with every single thing I've tried thus far.
<clever>
what about `runhaskell Setup.hs build` and then test?
<Alling>
Now nix-build works, but it doesn't run the test suite like it did before. :s
<Alling>
Setup.hs:1:1: error: Could not find module ‘Distribution.Simple’
<clever>
are you in the .env shell?
<clever>
what does `type ghc` return?
<Alling>
ghc is /nix/store/lsj0xp87zzv8nwbbyjqn6r0y1fx9avw4-ghc-8.4.4-with-packages/bin/ghc
<clever>
ghc-pkg list | grep -i cabal
<Alling>
I don't know if I'm in the env shell. I have .env in default.nix which I then import in shell.nix and there I use overrideAttrs.
<clever>
default.nix shouldnt use .env, that will break nix-build
<Alling>
WARNING: there are broken packages. Run 'ghc-pkg check' for more details. Cabal-2.2.0.1
<clever>
only shell.nix needs .nv
<clever>
what does check say?
acarrico has joined #nixos
<Alling>
I have to go, sorry. :(
<Alling>
But I removed .env so nix-build works again.
<Alling>
See you!
<clever>
yep
arjen-jonathan has quit [Ping timeout: 268 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vid has joined #nixos
zupo has joined #nixos
endformationage has joined #nixos
<lionello>
I think there's still something wrong. If I use dockerTools to create an image from the `${getBin pkg}/bin/exe` it pulls in gcc and evrything
<symphorien>
to get the dependencies on a store path, use nix-store -qR
<symphorien>
then you can use nix why-depends foo bar to get an idea of what happens
<symphorien>
maybe the resulting binaries are not stripped?
zupo has quit [Client Quit]
Mr_Keyser_Soze has quit [Ping timeout: 255 seconds]
<symphorien>
this could happen if you override the fixupPhase instead of using postFixup
myskran has quit [Ping timeout: 244 seconds]
<lionello>
hmm
<lionello>
symphorien: let me try
<lionello>
Yeah, nix-store -qR shows all the build dependencies
<lionello>
I suppose it shouldn't?
<symphorien>
No it should not
o1lo01ol1o has quit [Remote host closed the connection]
<lionello>
How do I use why-depends? `nix why-depends -f container.nix nixpkgs.ldc` tells me `error: more arguments are required`
<{^_^}>
[nixpkgs] @yrashk opened pull request #59963 → pforth: init at 28 → https://git.io/fjOx1
<clever>
lionello: it also works with raw storepaths
<clever>
setting documentation.man.enable = false;, means systemPackages wont include the $man output from packages
<clever>
so the documentation just goes away, without having to edit any packages
<lionello>
nice
<lionello>
Alright. Looks like I'll have to change `nixpkgs.dmd` though
<infinisil>
Does anybody happen to have an example of a NixOS config for automatically rolling back to the previous generation if the new one doesn't work for some reason?
<clever>
infinisil: untested, but grub has options to change the default entry both at grub-time and normal runtime
<infinisil>
clever: It's for when the server fails miserably, such that i can't connect to it anymore
<clever>
reading grub.cfg, i can see that it loads the grubenv file, and there is a comment explaining grub-reboot
<clever>
the idea, would be to modify the default entry, so when booting generation X, it flags X-1 as the default
<clever>
then when X comes online fully, it modifies grubenv to make X the default again
<clever>
if things go wrong, and you somehow reboot the machine, it will boot X-1 instead
<clever>
X-1 could then also flag X-1-1 as the default (within grub)
<infinisil>
Won't work if the error is during sshd initialization or so
<clever>
yeah, you would need some watchdog thing to verify its 100% working, before claiming so in grub
<infinisil>
There was a presentation at the last NixCon about something like this
<clever>
one idea ive wanted to work on, is to replace the boot menu, with a custom kernel+initrd pair, that brings up sshd, and waits 15 seconds
<clever>
then you can ssh in and choose an option
kisonecat has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
lionello has quit [Ping timeout: 255 seconds]
<clever>
it would also be more flexible and you could program in custom rollback logic
<{^_^}>
[nixpkgs] @Lassulus opened pull request #59964 → [19.03] writeC: fix finding of libraries → https://git.io/fjOpf
kisonecat has joined #nixos
<clever>
infinisil: ah, that only works if the machine is still online, and can rollback itself
_kwstas has quit [Quit: _kwstas]
<infinisil>
Yeah it doesn't guard against grub failing I guess, but that's not my biggest worry
lionello has joined #nixos
<infinisil>
clever: I think that should work as long as systemd can start, which is pretty much the first thing after grub I think
<clever>
grub runs linux, linux then runs stage-1 in the initrd, stage-1 then runs stage-2, and stage-2 runs systemd AFTER the activation scripts
<clever>
i have seen somebody brick the machine by doing network in the activtions scripts, so systemd never ran
<infinisil>
Hmm
<infinisil>
Eh I think that'll be fine, I'll be fine for most problems caused in regards to networking
kisonecat has quit [Ping timeout: 246 seconds]
<lionello>
Found another issue: one of the dependencies generates a (header) file during build, which fails because `dub` cannot write.
orivej has quit [Ping timeout: 268 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<clever>
infinisil: yeah, which method you use depends heavily on what type of fault you want to recover from
<lionello>
How can I patch a repo from `fetchgit`?
<clever>
and you could mix methods
<symphorien>
lionello: dub must write in the sources ?
<clever>
lionello: you can still use the patches array to apply patches
<lionello>
it's a custom build step in one particular package: it fetches the version of `openssl` and creates a header file with it, supposedly for runtime version check
<lionello>
clever: ah! I can apply patches to `fetchgit`?
Neo-- has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
Tiez has joined #nixos
fusion809 has quit [Remote host closed the connection]
sindrip has joined #nixos
vid has quit [Ping timeout: 255 seconds]
<sindrip>
When I run a test environment with nixos-rebuild build-vm, it is insanely slow. What do I need to configure to get it to more native speeds (I'm a complete qemu/kvm novice)
<clever>
sindrip: does /dev/kvm exist?
work_ has quit [Quit: Connection closed for inactivity]
fendor has joined #nixos
<sindrip>
under the host system?
<clever>
yeah
jmgai has quit [Ping timeout: 250 seconds]
<sindrip>
Yeah, it exists
<sindrip>
I have the kvm-intel kernelmodule on the host system
<clever>
sindrip: `virtualisation.memorySize = 2048;` add that to the configuration.nix
<Orbstheorem>
Hello, how can I combine a list of attribute sets in nix?
<Orbstheorem>
i.e. [ {a = 1;} {b = 3;} ] => {a = 1; b = 3;}
<clever>
> :p [ {a=1;} {b=2;} {c=3;} ]
<{^_^}>
[ { a = 1; } { b = 2; } { c = 3; } ]
<clever>
Orbstheorem: one min...
<clever>
> builtins.foldl' (a: b: a // b) {} [ {a=1;} {b=2;} {c=3;} ]
<{^_^}>
{ a = 1; b = 2; c = 3; }
<clever>
Orbstheorem: that work?
<Orbstheorem>
Yep ^^
<Orbstheorem>
I'm surprised there's no function in the lib though
jmgai has quit [Ping timeout: 255 seconds]
ferriswheel has joined #nixos
kreisys has joined #nixos
drakonis_ has joined #nixos
jmgai has joined #nixos
<Orbstheorem>
Are there pairs in nix?
<Orbstheorem>
I just realized I'm trying to map to a function that takes two arguments
<Orbstheorem>
I could double map on two lists, but seems less readable?
<clever>
Orbstheorem: simpler to make it a list of sets, then map ({ a, b }: a * b)
<sindrip>
clever: I have searched through nixos options and I'm just not finding the one you're referencing
drakonis has quit [Ping timeout: 258 seconds]
<clever>
sindrip: so its missing from the normal docs
<clever>
sindrip: its in qemu-vm.nix, which is only included when you run build-vm
<sindrip>
clever: I found the option, I went searching because I'm getting an error about the option not existing. Which is weird because the default value of the option was the memorysize of my vm
<clever>
thats because it doesnt exist when nixos-rebuild is building nix, only nixos
<clever>
you can safely ignore that error
<clever>
its a bug within nixos-rebuild
jmgai has quit [Ping timeout: 245 seconds]
<sindrip>
clever: Working much better now, thanks for the help
fendor_ has joined #nixos
linarcx has joined #nixos
[Leary] has joined #nixos
xkapastel has joined #nixos
OutLaw has joined #nixos
Lears has quit [Ping timeout: 245 seconds]
jmgai has joined #nixos
hellrazo1 has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
hellrazo1 has joined #nixos
hoijui has joined #nixos
<{^_^}>
[nixpkgs] @LinArcX opened pull request #59967 → nixbox: init at unstable-2019-04-20" → https://git.io/fjOhw
o1lo01ol1o has quit [Ping timeout: 244 seconds]
OutLaw has left #nixos [#nixos]
jmgai has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @markuskowa opened pull request #59968 → guake: fix by setting strictDeps to false → https://git.io/fjOhK
slyfox has joined #nixos
jmgai has joined #nixos
steve-chavez has joined #nixos
ferriswheel has quit [Ping timeout: 255 seconds]
jmgai has quit [Ping timeout: 268 seconds]
jmgai has joined #nixos
ATuin has joined #nixos
gyroninja has quit [Read error: Connection reset by peer]
<iktomi>
I'm trying to get PHP-FPM + nginx set up... I'm at the point where I'm no longer getting any errors from nginx or php-fpm, but it's still not working
<infinisil>
adisbladis: Oh man, nixos-19.03 has rc4 already, while nixos-unstable doesn't!
<infinisil>
I guess it makes sense, considering the number of updates on master, and only a small part of them being backported, but it's still a bit odd
jmgai has quit [Ping timeout: 246 seconds]
gagbo has joined #nixos
jmgai has joined #nixos
apeyroux has joined #nixos
_ris has quit [Ping timeout: 255 seconds]
<adisbladis>
Yeah, funky =)
Anton-Latukha has joined #nixos
orivej has joined #nixos
zupo has joined #nixos
mkoenig has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #59979 → [demo, do not merge] nix-serve: $PERL5LIB -> perl.withPackages → https://git.io/fj3vV
alexherbo204302 has joined #nixos
alexherbo20430 has quit [Ping timeout: 246 seconds]
<LnL>
so the longer you wait after a -small update the more will be available
_ris has joined #nixos
jmgai has joined #nixos
<xorAxAx>
hmm, makes sense. ideally i would want a -mixed channel type: a kind of auto-merged tree that refers to the small version of the nix expr as soon as the cache is populated for that package
<oborot>
Hey folks, I'm trying to setup firejail binary wrapping liked shown in the B.2.1 Highlights, using the example that's provided I', getting an "undefined variable 'lib'" error.
<oborot>
Is there anywhere I can find a working example?
<oborot>
Just trying to wrap firefox.
MarkOtaris has joined #nixos
Lears has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
[Leary] has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @risicle opened pull request #59993 → pythonPackages.box2d: fix build by moving swig2 to nativeBuildInputs → https://git.io/fj3Tq
justanotheruser has quit [Ping timeout: 246 seconds]