<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « gnome3.gnome-settings-daemon: 3.30.1.2 -> 3.30.2 (#54220) »: https://git.io/fh4Hk
jasongrossman has joined #nixos
hedning has quit [Quit: hedning]
hyperfekt has joined #nixos
eadwu has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.pygraphviz: use pkgs.pkgconfig and improve expression »: https://git.io/fh4Hu
mbrgm_ has joined #nixos
steell has quit [Ping timeout: 245 seconds]
<hyperfekt>
I'm trying to make a new complex type that is an intradependent attrset and was wondering whether the merge or the check happens first when options are evauluated. Does anyone know more details or where the code for runtime type checking is located?
andi- has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.pygraphviz: use pkgs.pkgconfig and improve expression »: https://git.io/fh4Hg
<fl0_id_>
soo.... how to find out why my virtual box install only goes to rescue shell/single user?
<fl0_id_>
when I log in there as root everything seems to be fine
<hyperfekt>
ottidmes: Great, looks like modules.nix is what I was looking for, thanks for your help! :)
<hyperfekt>
ottidmes++
<{^_^}>
ottidmes's karma got increased to 10
<{^_^}>
[nixpkgs] @clacke opened pull request #54234 → python: sphinxcontrib-wavedrom: init at 2.0.0, Sphinx: 1.7.9 -> 1.8.3, wavedrom: init at 0.1 → https://git.io/fh47e
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
Guanin has quit [Remote host closed the connection]
cyounkins has quit [Read error: No route to host]
cyounkins has joined #nixos
labancle has joined #nixos
<johnw>
is it possible, on a Hydra builder, to ensure that one particular expression only ever builds once at a time on that builder?
WinchellsM has quit [Quit: Lost terminal]
<johnw>
the sandboxing doesn't quite work on darwin, so I can't partitions jobs into separate network namespaces, and I have a test that's overcommitting a port
<labancle>
johnw: I've just realised who you are Mr. Wiegley
<labancle>
john: am I right?
<labancle>
johnw: am I right?
<Guest68469>
nix-env -iA nixpkgs.jira-cli installing 'jira-cli-2.2' error: jira-2.0.0 not supported for interpreter python2.7 (use '--show-trace' to show detailed location information)
Guest68469 is now known as judson
<johnw>
you are right
<judson>
nix-env -iA nixpkgs.jira-cli installing 'jira-cli-2.2' error: jira-2.0.0 not supported for interpreter python2.7 (use '--show-trace' to show detailed location information)
<judson>
:(
hellrazo1 has quit [Ping timeout: 272 seconds]
<labancle>
johnw: me you briefly at the first emacsconf in London
<labancle>
johnw: met you briefly at the first emacsconf in London
<johnw>
ah, nice!
<johnw>
that was fun; glad to see you're also a Nix-er
<labancle>
johnw: its new to me
<labancle>
johnw: need some advice...
<johnw>
my advice is to use it, for everything you can ;)
<labancle>
johnw: the only way I could tramp (emacs) into my (new) nixos machine from my ubuntu machine was to add some symlinks
<disasm>
anyone have an xps usb-c laptop? How do you get the thing to boot on a usb thumb drive? The bios boot doesn't even show the usb stick plugged into the adapter that came with the laptop. I'm pretty sure my usb stick has both efi and legacy boot loaders. I also tried making a recovery usb stick and booting it and it doesn't boot either. Lastly, I attempted adding an EFI boot option to the menu but the bios
<q6AA4FD>
labancle: i've tried guix. pretty buggy
<disasm>
doesn't show the usb stick either.
PLPD-Bot has joined #nixos
the-kenny has joined #nixos
jeaye has joined #nixos
endformationage has joined #nixos
troydm has joined #nixos
<disasm>
never thought booting off USB was going to be the hardest part to getting nixos working, lol
<samueldr>
not enough to make the usb-c format a complete mystery meat sandwich, you also have to make them not handle usb equally for their basic use?
<samueldr>
though yeah, I was about to say: the nixos image, when dd'd should work with UEFI, except with some specific bas UEFI :(
cyounkins has joined #nixos
<samueldr>
I mean, the darn thing even works with UEFI on AArch64 (and armv7l with grub from git)
<fl0_id_>
so ... any debugging ideas for nixos virtual box install that only goes to rescue shell? (not the early kernel limited one)
<fl0_id_>
no obvious log errors
sigmundv_ has quit [Ping timeout: 245 seconds]
<samueldr>
are the mounts alright?
jtojnar has quit [Read error: Connection reset by peer]
jasongro` has quit [Read error: Connection reset by peer]
talyz has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<samueldr>
this could sound like what happens if systemd cannot mount something
jtojnar has joined #nixos
talyz has joined #nixos
Supersonic has quit [Ping timeout: 268 seconds]
iqubic` is now known as iqubic
<gchristensen>
I'd like to execute some commands when a user's logind session is locked with loginctl lock-session. any ideas on getting this signal from the user in to the root systemd?
<gchristensen>
oops, I'd like to run some commands as *root* :)
<samueldr>
it might not have a signal, considering multiple concurrent users could be "at the console" simultaneously
<samueldr>
(just guessing here though)
<gchristensen>
hrm quite likely
<fl0_id_>
samueldr, lemme check
Supersonic has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest3611
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
strobelight_ is now known as strobelight
ng0_ has quit [Quit: Alexa, when is the end of world?]
o1lo01ol1o has quit [Remote host closed the connection]
Guest3611 has quit [Ping timeout: 245 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
<CMCDragonkai>
Python used to have majorVersion attribute.
<CMCDragonkai>
pkgs.python36.majorVersion
<CMCDragonkai>
this was removed recently
<CMCDragonkai>
is there an equivalent somewhere?
cyounkins has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
Peetz0r has quit [Ping timeout: 252 seconds]
spacekookie_ is now known as spacekookie
d4g_ has joined #nixos
<samueldr>
> python36.sourceVersion
<{^_^}>
{ major = "3"; minor = "6"; patch = "8"; suffix = ""; }
<fl0_id_>
samueldr, mount says root and /nix/store is there
<fl0_id_>
samueldr, while I am editing that ... any idea why the docs say that fsck should be disabled for virtualbox?
marusich has joined #nixos
<buckley310>
Can someone with packaging experience give this a glance? I've never submitted a package, but I want to try submitting this, and I'm not sure if there are any gotchas I dont know about yet. https://gist.github.com/buckley310/b28a0b14cb0619ad4109e6b8a0d63ef7 Also, all that's required is dropping this in the appropriate folder, and then adding an entry to the top-level package list, right?
<samueldr>
fl0_id_: sorry, absolutely no idea about virtualbox installs :/
<iqubic>
So I now find myself unable to use the latest version of the Discord desktop client on Nixos.
<iqubic>
Even pulling Discord from unstable fails to solve this issue.
<samueldr>
iqubic: what's the output of `nix-info`?
<samueldr>
okay, so the url is fine, to update it `sudo nix-channel --update nixos-unstable`
<fl0_id_>
samueldr, ok pull request submitted, let's see how that goes
<samueldr>
when you add (or update) a channel, it will not synchronize under your feet with the current state. You need to make a concious and active effort to update channels
eadwu has quit [Ping timeout: 264 seconds]
gagbo has quit [Ping timeout: 250 seconds]
Peetz0r has quit [Read error: Connection reset by peer]
<samueldr>
duoi: it's NixOS, as in Nix (based) Operating System (unless I'm wholly uniformed)
<samueldr>
uninformed*
a-dringus has joined #nixos
<duoi>
samueldr nah it's NiXo-S
<samueldr>
duoi: I'm confused, where do you see that?
<iqubic>
I'm so pissed that I cant use discord right now because of stupid stuff.
<duoi>
samueldr nixo comes from a latin words meaning to "struggle" or to "rest"
<duoi>
or to "strain"
o1lo01ol1o has quit [Remote host closed the connection]
<a-dringus>
Can anyone tell me how to reset my root password in grub? How do I do init=/bin/bash like I would on a regular Linux. I have no idea what path to use.
<samueldr>
ah, then S must come from "Struggling to make a joke" ;)
<jasongrossman>
a-dringus_: And it's actually bash.
jmgai has quit [Ping timeout: 245 seconds]
sanscoeur has joined #nixos
<fl0_id_>
iqubic, can you use web based discord instead?
abathur has joined #nixos
<abathur>
so uh
<abathur>
I have a problem that feels a little dumb, but I'm having a hard time landing on the right search term
<iqubic>
fl0_id_:
<mdash>
duoi: 'nix' is latin for 'snow', hence the snowflake logo :p
<mdash>
abathur: hi
<abathur>
I've got an in-development personal script from my macos system that uses the default md5 command to create names for some history files generated by rlwrap
<abathur>
and searching for md5 + nixpkgs
<abathur>
is
<abathur>
impossible :)
<iqubic>
fl0_id_: I can, but I generally like the desktop client better.
<mdash>
abathur: you're looking for md5sum?
<fl0_id_>
iqubic, i get that, just trying to offer some solutions
<iqubic>
totally fine.
<abathur>
mdash: ah--that's probably what'll get me sorted
<fl0_id_>
is there actually a firefox package that is not versioned? (meaning always at latest)
o1lo01ol1o has joined #nixos
<iqubic>
fl0_id_: I want the same thing, but for Discord.
<abathur>
there's a generic bsd md5 on macos at /sbin/md5, I just couldn't craft a search for what I was looking for in nix that didn't return a mountain of results :)
<mdash>
abathur: not a lot of bsd stuff in nixpkgs :)
<ottidmes>
abathur: install nix-index, then you can use nix-locate like this: nix-locate /bin/md5, and it would have shown among quite a few (but managable) others: coreutils.out 0 s /nix/store/wm8va53fh5158ipi0ic9gir64hrvqv1z-coreutils-8.29/bin/md5sum
<iqubic>
So is there any way to get Discord versin 0.0.8 in Nixos right now?
<fl0_id_>
iqubic, just writing firefox seems to link to the latest
<fl0_id_>
at least the latest for that release
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<abathur>
mdash: yeah; I assume I'll be able to tweak the syntax and run it on the coreutils version
<fl0_id_>
(but that is also the latest stable so it's fine)
<ottidmes>
iqubic: I tried simply bumping it to 0.8, but that causes: file /nix/store/428y39isdr9v3vjs8q3sbg2lq0cpz9p4-discord-0.0.8/opt/discord/Discord is not a valid ELF executable (invalid SHT_ entry:1) so it seems to need some work
<{^_^}>
[nixpkgs] @smaximov opened pull request #54262 → gem-config: support rbnacl v6.0.0 → https://git.io/fhBj5
<q6AA4FD>
jonge: i'm pretty sure your nixbld users don't actually use NIX_PATH, they should get an expression to build, and your own user does the searching
<Yaniel>
has anyone looked into blender 2.8 yet?
Tucky has joined #nixos
<q6AA4FD>
you could also do `sudo -u nixbld1 echo $NIX_PATH` (though they might also either inherit yours/it might not matter)
sheth has quit [Remote host closed the connection]
<teto2>
anyone using flameshot ? just wanted to try and it just closes on start without any message. Seems broken on nixos
<etu>
teto2: I have it enabled in home-manager "services.flameshot.enable" and it works from there, I had bad luck otherwise so it's not completely broken :/
<teto2>
etu: good to know, I will check the magic in HM
dermetfan has joined #nixos
<srhb>
teto2: fwiw it works from nix-shell -p flameshot with current unstable
<srhb>
At least, no crash here.
<teto2>
srhb: which command do you use ? I run $ flameshot gui yet nothing happens
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @step21 to master « nixos/nixpkgs: virtualbox docs update (#54247) »: https://git.io/fhRUM
Makaveli7 has joined #nixos
iqubic` has joined #nixos
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
iqubic has quit [Ping timeout: 250 seconds]
jb55 has joined #nixos
<jonge>
q6AA4FD: the reason i'm asking is that i have jobs in my hydra that make nixbld users checkout repos via "fetchgitprivate", for which i need an ssh key hint in the nix_path. that did not work although NIX_PATH is set correctly for the users i tested it with, so i needed to debug this for nixbld users somehow
atriq is now known as Taneb
orivej has quit [Ping timeout: 246 seconds]
obadz has quit [Ping timeout: 250 seconds]
periklis has joined #nixos
sigmundv_ has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
hyper_ch2_ has joined #nixos
lokado has joined #nixos
<lokado>
is that possible to install nixos on an uefi machine and boot with grub?
<Yaniel>
AFAIK grub supports uefi nowadays just fine
<Yaniel>
so yes should be possible
hvemvet has joined #nixos
<lokado>
but I didn't find a proper guide to follow...
<etu>
lokado: It should "just work"
<etu>
lokado: So the install guide should suffice
<etu>
lokado: you probably have to enable boot.loader.grub.efiSupport
<lokado>
what value should I set to grub.device?
<lokado>
the efi partition or the primary disk?
obadz has joined #nixos
<Taneb>
I've got a messy line in my nixos config that's something like "package = (pkgs.package.overrideAttrs (oldAttrs: { src = packageSrc; buildInputs = oldAttrs.buildInputs ++ [ pkgs.newDependency]; })).override { dep = pkgs.differentVersion; }"
<Taneb>
Actually, it looks nice enough if I split it onto multiple lines
<{^_^}>
[nixpkgs] @Gerschtli opened pull request #54263 → gitAndTools.overcommit: init at 0.46.0 → https://git.io/fhRk5
<tilpner>
Taneb: Personal preference, and not going to help a lot, but I think "old.buildInputs" reads nicer than "oldAttrs.buildInputs": "old buildInputs" vs "buildInputs of/from oldAttrs"
<Taneb>
tilpner: I agree
lawlesseel has quit [Remote host closed the connection]
_lawlesseel has joined #nixos
reinhardt has joined #nixos
slack1256 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « evolution-data-server: 3.30.3 -> 3.30.4 (#54222) »: https://git.io/fhR3I
lord| has quit [Read error: Connection reset by peer]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
phaebz has joined #nixos
Boobie has joined #nixos
<Taneb>
Is it possible/reasonable to move the nix store onto a different filesystem of a running NixOS, especially when I want to move it to a filesystem other than the root one?
__monty__ has joined #nixos
<tilpner>
Of a running one, as in "without shutting it down"?
<Taneb>
Shutting it down is OK
<Taneb>
Losing everything is undesirable
<wedens>
afaik you can copy /nix/store to another drive/partition and add a mountpoint in nixos config
<tilpner>
Yes, I see no problems if you can shut it down
<tilpner>
Actually... there might be some, if you have that copyKernels option off?
<ar1a>
hey, does anyone know how I could get the ck patches for my kernel in nixos? after reading https://wiki.archlinux.org/index.php/linux-ck im pretty sold on it, but googling didn't help me too much
<Taneb>
tilpner: I don't think I do, /boot is a different partition
<wedens>
ar1a: `boot.kernelPatches`
<tilpner>
Taneb: The problem would be that some files in /boot just tell grub to "go look in /nix", which it might assume to be on the root partition
<tilpner>
Taneb: You should verify that your /boot contains actual kernels instead of just a reference
Ariakenom has quit [Ping timeout: 245 seconds]
<tilpner>
But I haven't actually hit this problem, it's just a suspicion
<ar1a>
how can i search for everything under the pkgs.kernelPatches category? nix search kernelPatches returns nothing, and the nixos package search on the web is no help either
<fuzzy-id>
how can i turn off running tests when using `nix-build' on a haskell project à la “How to build a stand-alone project” from the nixpkgs manual?
<tilpner>
betaboon: Huh? Where? It definitely builds. It doesn't produce the path you might think it does though
<tilpner>
Oh? Sorry, I'm wrong
<tilpner>
desination needs to be "/.foo"
<tilpner>
Then it builds
Havvy has quit [Ping timeout: 268 seconds]
isHavvy has joined #nixos
<betaboon>
tilpner: you're right, i kinda misread the documentation string. (it is kind of contradictory tho: "relative path appended to $out eg "/bin/foo" ")
<betaboon>
tilpner: thanks :)
xkapastel has joined #nixos
shibboleth has quit [Quit: shibboleth]
jasongrossman has joined #nixos
<gchristensen>
ah that is a confusing way to put it, eh?
<betaboon>
gchristensen: yeah. "relative path" made me believe "no leading-/". well yeah it is relative to $out, but in the end an absolute path is expected, right ?
<gchristensen>
I don't think "relative" or "absolute" are proper terms here ... heh
<betaboon>
gchristensen: sí
jmgai has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest19750
strobelight_ is now known as strobelight
Makaveli7 has quit [Quit: Leaving]
<sheth>
happy birthday, NixOS! And to the whole nix-family. Thank you for the love & support, I bid you all a good year!
Guest19750 has quit [Ping timeout: 250 seconds]
jmgai has quit [Ping timeout: 245 seconds]
silver has joined #nixos
<gchristensen>
is it the birthday?? :o
<betaboon>
does anyone have a good suggestion for postgresql schema migrations? I've been looking at flyway and liquibase.
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #54271 → pulumi: 0.16.7 -> 0.16.11, patchelf on linux → https://git.io/fhR86
winem_ has joined #nixos
<betaboon>
gchristensen sheth first commit on nixpkgs is march 14 2003
<betaboon>
first commit on nix is march 12 2003
<gchristensen>
though, it is the 3-year anniversary of the Friday I installed NixOS on my laptop!
<betaboon>
gchristensen: how did you figure that out ?
<tilpner>
stat /lost+found
<betaboon>
tilpner: thanks :D
<gchristensen>
sorry, not this laptop, but really the first day I switched to NixOS
<tilpner>
Or stat /nix, for the portable solution
<betaboon>
gchristensen: i moved my nixos installation to ofter between devices that i lost track
reinhardt has quit [Quit: Leaving]
<srhb>
I'd probably have to dig it out by finding my frustrated messages in this channel.
<gchristensen>
the first line of my #nixos irc log is 2016-01-15... and then 2016-01-16 16:29:39 is when I first asked for help with at install problem
* tilpner
appears to be at 1.99 years
<gchristensen>
srhb: bingo :)
<srhb>
:-)
<betaboon>
have come a long way :D
<disasm>
trying to install nixos on my new laptop and /nix/store/f289835yi01lnan49di3dgvdwmnfswv1-zfs-kernel-0.7.12-4.20.2.drv fails to build. This is from nixos-install which uses nix build so I only get the last 10 lines which isn't very helpful. Is there a way I can force it to build with nix-build instead?
<disasm>
I did set the channel to nixos-unstable before running nixos-install
<tilpner>
Tried nix-build '<nixpkgs/nixos> -A system ?
<tilpner>
* Tried nix-build '<nixpkgs/nixos>' -A system ?
<disasm>
trying now
<gchristensen>
disasm: are you trying to get the 5.0 krnel by chance?
<{^_^}>
[nixpkgs] @Mic92 merged pull request #54271 → pulumi: 0.16.7 -> 0.16.11, patchelf on linux → https://git.io/fhR86
<disasm>
I think I'm going to try changing channel to 18.09 and switch to unstable after I get this thing booting, see if that works
<gchristensen>
18.09 + zfs stable + linuxKrnel_latest works for me
orivej has joined #nixos
o1lo01ol1o has joined #nixos
acarrico has joined #nixos
ym555_ has joined #nixos
semilattice has joined #nixos
<tilpner>
I wish there was to express "install this, but only if you can find a cache that has it"
<tilpner>
*was a way to
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<ar1a>
is there something like configuration.nix but for a user profile?
* tilpner
cancels Blender compilation
<ar1a>
so user package management is declarative
<disasm>
I think you can set builders to ''
<tilpner>
,declarative ar1a
<{^_^}>
ar1a: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<tilpner>
disasm: But I don't want it to apply to all packages! There are some I want to have, even if I have to compile them locally
<ar1a>
oh ive heard of that last one
<tilpner>
It does a lot more than handle packages
ym555 has quit [Ping timeout: 245 seconds]
semilattice has quit [Remote host closed the connection]
lokado has quit [Quit: Connection closed for inactivity]
<jomik>
Hey guys, anyone here that have a clever solution as to how I can make it so that everyone can write to `/sys/class/backlight/intel_backlight/brightness` persist?
<jomik>
I guess I can make a systemd unit in my configuration.nix.
<srhb>
jomik: udev rules, most often.
<srhb>
Since it's not detachable, maybe that's overkill...
<jomik>
What would be an alternative? I don't really like having a systemd unit doing it I thinkk.. :P
<jomik>
It's to allow xmonad (run by my user) to change backlight..
<gchristensen>
that is not unique, everything in /nix/store is owned by root
<srhb>
Maybe a driver thing..
<gchristensen>
so evidently xorg can do it
npmccallum has joined #nixos
<srhb>
On an aside, 1060 is a weird max setting for brightness. I wonder what the unit is :P
<jomik>
Mine is 937
<tilpner>
That's driver-dependent, I think
<srhb>
Yeah, it is.
<gchristensen>
probably milivolts or something silly :)
<tilpner>
IIRC my pinebook has a max brightness of 8
jmgai has joined #nixos
<__monty__>
Mine goes from 0-100 but I can't reach the maximum brightness by catting to /sys/class/... And if I cat 0 I can't use the brightness buttons.
<jomik>
wedens: Doesn't `light` essentially do the same as what you linked in that github link? I.e. set a udev rule where it lets `video` write to `brightness`.
<{^_^}>
[nixpkgs] @flokli opened pull request #54273 → programs.ssh.knownHosts: update example to be an attrset → https://git.io/fhRzg
<samueldr>
IIRC light papers over backlight differences and has settings for "curves" so you can get something that looks more linear
<jomik>
brb
periklis has quit [Remote host closed the connection]
jomik has quit [Quit: WeeChat 2.2]
periklis has joined #nixos
jomik has joined #nixos
<wedens>
jomik: well, at least I can get away with `programs.light.enable = true;` :) in general it seems to work more reliable than other backlight controlling apps
init_6 has quit []
<jomik>
wedens: True! But then, for me to feel good about it. I'd need to pass the light package that `programs.light` builds into my xmonad.hs in some declarative way :P
<jomik>
Though, I need to think up a solution for that anyway. I think I may make a `nix.hs` or a `packages.hs` file that will contain absolute paths to all packages that my xmonad depends on.
<jomik>
brb~
jomik has quit [Client Quit]
jomik has joined #nixos
<jomik>
I find this odd... Why does `sudo nixos-rebuild switch` not actually activate my new generation on boot? :O
<wedens>
,tell jomik you can't pass it like ${light}/bin/light it resides in /run/wrappers/bin due to suid
<{^_^}>
wedens: I'll pass that on to jomik
<jomik>
O
<{^_^}>
jomik: 24 seconds ago <wedens> you can't pass it like ${light}/bin/light it resides in /run/wrappers/bin due to suid
<jomik>
Weird, why wedens ?
<{^_^}>
[nixpkgs] @vbgl merged pull request #53798 → coqPackages.QuickChick: init at 1.0.2 for Coq 8.8 → https://git.io/fhZxR
<{^_^}>
[nixpkgs] @vbgl pushed to master « coqPackages.QuickChick: init at 1.0.2 for Coq 8.8 »: https://git.io/fhRgR
<jomik>
`light` has an udev rule that gives a group `video` write permissions to `brightness`?
<jomik>
What's the suid part?
<jomik>
I ended up just setting an udev rule with `services.udev.extraRules`, which seems to be essentially what light, xbacklight and brightnessctl does.
<{^_^}>
[nixos-hardware] @yegortimoshenko pushed 2 commits to master: https://git.io/fhRgF
<fusion809>
Anyone here have any experience getting VSCode's C/C++ extension to work on NixOS? I cannot figure out how to.
<{^_^}>
[nixos-hardware] @yegortimoshenko pushed 0 commits to nix-env-part2: https://git.io/fhRgp
<jomik>
What is the issue fusion809 ?
<Taneb>
Does anyone know a write-up of migrating a hydra server?
<ar1a>
i was changing somethign under services.openssh and then i build switched, and my avahi broke. i rebooted and avahi started working again. changed openssh stuff again and switched, avahi broke again. is this known?
<srhb>
Taneb: No, but. It should be as simple as moving the store, DB, various keys, and the hydra gc roots.
<wedens>
,tell jomik: I don't know why 'light' needs suid, but it does have a suid :) btw, 'ping' also works only from /run/wrappers/bin
<{^_^}>
wedens: I'll pass that on to jomik:
<gchristensen>
light needs suid because it doesn't use X's protocol for adjusting backlights
<fusion809>
Noticed a few bits of that json are for mac and edited it a little more and still, when I reload VSCode after editing the config I still get the LanguageServer failing errors. Here is my new json: https://gist.github.com/210ea42bc6575ab892fd0afaac76496e.
<srhb>
Taneb: Though if your store is particularly big that will probably crash nix oom. I had to cut the store into pieces and xargs my way to victory recently.
<adisbladis>
jophish: Supposedly rust cross compilation should just work nowadays (on unstable/master)
<jophish>
I'll give it a try!
<jophish>
thanks adisbladis!
* jophish
goes on the small journey on remember the incantations for cross compiling in nix
<jophish>
perhaps just ns -p pkgsCross.arm-embedded.buildPackages.rustc
<__monty__>
nikivi: Maybe it doesn't call the executable but it calls it via python instead? If that's the case you will need to have a python.withPackages (ps: [ ps.black ]) available to the editor, rather than just any python.
<jophish>
Ericson2314: nice!
<jophish>
looking forward to using rust for some embedded development
<tilpner>
samueldr, gchristensen: I see that you are using borgbackup as a package, but not the module. Is there some problem with the module that I'll only discover later?
<gchristensen>
I didn't use the module b/c I created my backup with a password which I shared with something else, and now I don't want to store it, and I don't think you can rotate passwords
<samueldr>
there's a module?
<Mic92>
yes
<Mic92>
and a test
<samueldr>
(I was using borg backup before using nixos though)
<orbekk>
the module was created after I started using it, so I have my own one too
<samueldr>
I should look into using the module then lol
<orbekk>
gchristensen: looks like it has a passCommand so you don't need to add your password to the store
<samueldr>
pretty sure borg backup allows changing passwords; I'm pretty sure I went from "something not so crazy I input" to "something I don't know my password manager inputs"
<gchristensen>
I don't want to store it at all
<tilpner>
Ah, that's good, thanks! :)
<tilpner>
gchristensen: Does borg key change-passphrase sound relevant?
<gchristensen>
I'm pretty sure I did something stupid that makes it not possible
<tilpner>
(I haven't used borg much, migrating from duplicity)
<gchristensen>
I use a combination of zfs snapshots and borg, and am not too fussed
<tilpner>
Do you also stop service to take the snapshot?
<tilpner>
(For best consistency)
<gchristensen>
no, none of my service states remain between boots anyway
<tilpner>
Oh, then I suppose we're backing up different things :)
<tilpner>
Thanks! :)
<gchristensen>
what are you backing up?
<tilpner>
Laptop and server, which would include matrix-synapse and nextcloud
<gchristensen>
ah
<tilpner>
Still not entirely sure about that postgres
erasmas has joined #nixos
<gchristensen>
basically, read the docs and do what it says
<gchristensen>
you don't want to get crosswise with db backups
danbst has joined #nixos
<danbst>
finally! no more python.override ( pacakgeOverrides = self: super: { override several times more....
<worldofpeace>
jtojnar: just realized that file roller has a dbus service. that needs a module right?
<danbst>
romildo: ah, maybe it won't work
<danbst>
gchristensen: ivegotasthma: it should be absorbed directly into nixpkgs I think. Why not?
<fusion809>
Hi, on Arch Linux Nix doesn't work properly due to sandboxing apparently, what kernel config option do I need to enable in order for Nix to work?
o1lo01ol1o has quit [Remote host closed the connection]
<tilpner>
danbst: PR reviews are already slow enough as-is, adding more changes doesn't help
<fusion809>
I'm going to rebuild the kernel, with the appropriate option set, so that I can use Nix on Arch
<tilpner>
danbst: And people who are currently maintainers of home-manager might not be maintainers of nixpkgs (where maintainer is a person with write privileges)
<__monty__>
fusion809: Is this a recent change? I'm a happy nix user on arch without a custom kernel. I *am* on LTS however.
<fusion809>
__monty__: yep
<fusion809>
Arch used to work fine with the standard kernel, but it doesn't anymore
<{^_^}>
#4594 (by nbp, 4 years ago, closed): Make a configuration management tool based on Nix to manage User Profiles.
<{^_^}>
#9250 (by ts468, 3 years ago, open): nixuser: declarative user environments
<symphorien>
fusion809: as a stop gap, you can disable the sandbox
<simpson>
That said, feel free to break ground, send a PR, etc. But people may expect a more serious design than 'should be absorbed directly into nixpkgs'
<fusion809>
symphorien: I have, but it is still deciding to be a pain
<danbst>
simpson: nixUP is dead
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<simpson>
Mm. That's a feature, not a problem: "This project is under development. I personally use it to manage several user configurations but it may fail catastrophically for you. So beware!"
<tilpner>
danbst: So you can save one --update call, or because you think that would improve stability?
<fusion809>
When I was debugging this issue on my own, before yas told me to disable sandboxing last time, I decided to rm /nix/store and reinstall with the curl script.
hedning has quit [Remote host closed the connection]
<fusion809>
Now I'm getting errors like: error: opening file '/nix/store/i1frskz7j9rgypr1a0w2j66xva8c422r-gnused-4.7.drv': No such file or directory when I try to install gnused
<fusion809>
Is there a way to fix this?
hedning has joined #nixos
<symphorien>
is nix-store --verify --check-contents happy ?
<fusion809>
It gave an error at the end: error: executing SQLite statement 'delete from ValidPaths where path = ?;': constraint failed (in '/nix/var/nix/db/db.sqlite')
<danbst>
tilpner: no, it's more like personal inertia. I've lived so much with one nixpkgs (and I do remember times when nixpkgs and nixos were separate)... It's definitely personal, not technical
<clever>
fusion809: something depends on it in db.sqlite, sounds like your db is a little corrupt
<symphorien>
ah, you removed /nix/store not the full /nix
<symphorien>
when reinstalling
<clever>
that could also do it
<fusion809>
Yep, I did.
<{^_^}>
[nixpkgs] @bachp opened pull request #54279 → plex service: allow access to hardware acceleration libraries → https://git.io/fhRMS
<fusion809>
So, what should I do? Rm /nix and re-install with the curl script?
<clever>
fusion809: thats the simplest thing
o1lo01ol1o has joined #nixos
perique has joined #nixos
cyounkin_ has joined #nixos
<fusion809>
Seems to have worked, thanks
<morr>
romildo has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #54280 → nixos/doc: bs=1000000 for dd args → https://git.io/fhRDR
ng0 has joined #nixos
<countingsort>
quick question: is the default dm still SLiM? i think remembering it was lightdm the other day, i dont have x installed rn to check though
<{^_^}>
[nixpkgs] @lheckemann opened pull request #54283 → display-managers: use xsession from nix-profile → https://git.io/fhR5G
<goibhniu>
so much easier than supporting people on any other distro, it's a breeze
<clever>
goibhniu: one such person recently thought of using an ubuntu vm to solve his in-ability ot patchelf :P
rpg has joined #nixos
<LnL>
the nix-install-package stuff is gone but there are still instructions for it
<goibhniu>
ah, that's nice! thanks, I didn't realise that was there.
Denommus has joined #nixos
<LnL>
the install command basically became obsolete since you can use store paths in most of the commands directly now
<goibhniu>
my target audience will struggle with copy and paste, but it might work
<Synthetica>
Just ssh into their box :P
<clever>
Synthetica: one time, i made a custom USB image, that launches my vpn on bootup, with ssh configured to allow me in
<clever>
Synthetica: so i could do the entire install remotely
<Synthetica>
... Nice
<Synthetica>
clever++
<{^_^}>
clever's karma got increased to 71
<goibhniu>
I just feel a bit bad about giving them a computer that they can't even install a package on. Although, I don't think they care so much.
jmgai has joined #nixos
<iqubic>
I feel like unstable should be updated more often than stable?
<Synthetica>
iqubic: Unstable tends to break more often
<goibhniu>
iqubic: unstable changes more often, so it has to do more work to get built
<clever>
a couple things broke on my machine with the last unstable update
<clever>
though it was build-time breakage, that forced me to just remove them from systemPackages, to even update
<iqubic>
i see.
<clever>
obs-studio and my qemu-user stuff
<iqubic>
Does unstable generally have newer versions of software than stable?
<goibhniu>
yep
<clever>
yeah
<iqubic>
except that master has even newer versions??
<goibhniu>
but stuff like Firefox (and I'd say Discord too), is backported to stable
jmgai has quit [Ping timeout: 240 seconds]
<clever>
iqubic: when master passes a certain set of tests, that version becomes the new unstable
<iqubic>
it's been a week or so since I've used the desktop client of Discord.
<goibhniu>
that's not terribly unusual, it's the downside of using unstable
<clever>
/build/source/plugins/obs-libfdk/obs-libfdk.c:266:27: error: 'AACENC_InfoStruct {aka struct <anonymous>}' has no member named 'encoderDelay'; did you mean 'nDelay'?
<{^_^}>
mstorsjo/fdk-aac#93 (by rgaufman, 19 weeks ago, closed): libavcodec/libfdk-aacenc.c:292:34: error: ‘AACENC_InfoStruct {aka struct <anonymous>}’ has no member named ‘encoderDelay’
worldofpeace has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.pytest-benchmark: 3.1.1 -> 3.2.2 (#54099) »: https://git.io/fhRbJ
<reilithion>
Suppose an application requires an invocation of `make` in its main directory to build the application itself, and then subsequent invocations of `make` in its plugin directories in order to build its plugins. How should this be treated in its `default.nix`?
cyounkins has joined #nixos
<aminechikhaoui>
How do I enable the serial console for libvirtd nixops backend
<aminechikhaoui>
I added console=ttyS0 to the kernelParams and see it in /proc/cmdline but I'm still not able to run `console <domain>` in virsh
<aminechikhaoui>
I think I'm missing something other than the kernel params, any idea ?
sanscoeu_ has joined #nixos
<reilithion>
I've thought of adding a `postBuild` script, but I don't know how to reliably `cd` into the plugin directories. (I think I should be doing something like `cd $sourcetree/plugins/one && make` then `$sourcetree/plugins/two && make`, but I don't think `$sourcetree` is right, and I don't know what would be)
<danbst>
nbp_: can we get something like NixOS imports = [] for overlays? E.g.: self: super: { imports = [ ./some/other/overlay]; }
<aminechikhaoui>
the error I get when trying `console <domain>` is internal error: cannot find character device
sanscoeur has quit [Ping timeout: 246 seconds]
<iqubic>
I can't believe that things take a long long long time to get backported.
<aminechikhaoui>
oh nevermind re:console issue I think I found the answer in the doc
reinhardt has joined #nixos
<fusion809>
What package provides the clangd executable? I've tried clang-tools, cquery, clang itself, clang-analyzer, and probably others I don't recall atm, yet none has added clangd to my PATH
<fusion809>
I need it for the ide-cpp package of Atom
<symphorien>
,locate bin clangd
<{^_^}>
Found in packages: llvmPackages.libclang
<fusion809>
Thanks
Jetien has quit [Ping timeout: 240 seconds]
freeman42x has joined #nixos
<jonaswouters>
is there a setting to use the power button of a desktop as as "sleep monitors" button?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.trio: 0.9.0 -> 0.10.0 (#54098) »: https://git.io/fhRNp
<ottidmes>
jonaswouters: if you would be able trigger this via some command then I think you should be able to disable the default behavior from systemd by setting those op the Ignore value and then you would use whatever keybinding program you like to bind the button to that command (since I do not believe you can set a custom command via systemd like that)
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « python37Packages.python-gitlab: 1.6.0 -> 1.7.0 (#54078) »: https://git.io/fhRA5
<danbst>
adisbladis: I want to add postgresql extensions as an overlay inside nixpkgs repo. I have to find out way to inject that into all-packages.nix (or some other way)
<adisbladis>
danbst: Ahh, right, so an overlay pulling in another overlay sort of?
<danbst>
adisbladis: this is an experiment, but why not - split all-packages into several overlays
<danbst>
adisbladis: right
alex`` has joined #nixos
bigvalen has quit [Ping timeout: 250 seconds]
xantoz has quit [Read error: Connection reset by peer]
cyounkins has quit [Remote host closed the connection]
<ottidmes>
danbst: I believe the most common way is like is done for Apache in all-packages.nix, search for "apacheHttpdPackagesFor"
cyounkins has joined #nixos
cyounkins has quit [Read error: Connection reset by peer]
cyounkins has joined #nixos
estrom has joined #nixos
sinner has joined #nixos
sinner has quit [Read error: Connection reset by peer]
sinner has joined #nixos
sinner is now known as Guest56116
<danbst>
ottidmes: I see. Maybe I should do this way, but this isn't exactly what I wanted (split all-packages.nix a bit, by using more overlays)
<fusion809>
Is there a way of disabling tests for dependencies installed for a nix-shell session? I'm running nix-shell -p gobjectIntrospection gtk3 '(python37.buildEnv.override { extraLibs = with python37Packages; [ matplotlib pygobject3 ]; ignoreCollisions = true; })' so that I can create Matplotlib plots under Julia, but the tests for python3.7-hypothesis is failing.
<danbst>
ottidmes: I discovered today that overlays are incredibly cool.
<fusion809>
And I'd like to disable the tests to firstly, speed up the setting up of the shell and secondly, fix this install failure.
Guest44358 has quit [Ping timeout: 268 seconds]
<ottidmes>
danbst: they indeed are, and I guess you actually could just implement them as such, but to my knowledge this is not yet being done for things like extensions, but I do not see why it would not be possible
acarrico has quit [Ping timeout: 240 seconds]
fresheyeball has joined #nixos
cyounkins has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
<cransom_>
gchristensen: re: pxebooting with a squashfs. do you recall (or have snippets around) on how you did that? isee the squashfs uses for cd baking and pxe, but the path to make a disk image with squash isn't quite clear to me.
moet has quit [Ping timeout: 250 seconds]
<fresheyeball>
ok folks
<gchristensen>
sure
<fresheyeball>
so I have a real problem
brachiel has joined #nixos
<fresheyeball>
my haskell program compiles fine with cabal in the nix-shell
<fresheyeball>
regardless, I don't understand looking at the generic builder
<fresheyeball>
what is making it so different from running cabal build in the shell
<fresheyeball>
I feel like those should match
<ottidmes>
fresheyeball: external influences (i.e. impurities) when using the shell, and probably sandboxing when using nix-build, those are the most common causes for differences to my knowledge
ym555 has quit [Ping timeout: 245 seconds]
<ottidmes>
danbst: interesting PR, I think it is a good idea, I am not particular happy about the solution, but I get the problem with the other suggetions, if I can think of any better solution I will place a comment.
<elvishjerricco>
fresheyeball: I wonder if cabal-install's optimisation level configuration option overrides any ghc-options in your cabal file. Maybe your nix build is just doing more optimizations?
<gchristensen>
cransom_: is that sufficient direction?
ddellacosta has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
<iqubic>
so is there any way that I can get notified as soon as the lastest version of Discord hits unstable?
ddellacosta has joined #nixos
<tilpner>
Yes, write a script that polls the unstable channel, checks against a version, and mails you when it matches the string you set
janneke has joined #nixos
periklis has quit [Ping timeout: 264 seconds]
<danbst>
ottidmes: thanks!
<iqubic>
tilpner: That sounds like a lot of work.
<tilpner>
A few lines, yes
<tilpner>
Like... three
<iqubic>
A few lines that I don't know.
<tilpner>
Great time for learning
<ottidmes>
danbst: your pythonPackages fix, how is that with others, do they have the same problem or was it python specific
<danbst>
ottidmes: actually, python fix was unrelated to original PR intent, it was that just python didn't use fixpoint correctly
jacereda has quit [Ping timeout: 246 seconds]
<danbst>
ottidmes: for example, the mentioned apacheHttpdPackagesFor wouldn't have such problem and would work "out of box"
acarrico has quit [Ping timeout: 268 seconds]
<ottidmes>
danbst: just thought of an alternative to marking them explicitly, why not just check for naming conventions? Naively, if it contains "Packages", but I guess it could lead to false positives
<danbst>
ottidmes: I mean, apacheHttpdPackagesFor packages
<timokau[m]>
iqubic: I'm using a script to poll hydra for breakage (since it won't email me...), that should be easy to adapt
<danbst>
ottidmes: this too strict. For example, python27 is an attrset AND a derivation
<danbst>
ottidmes: so I can hijack with _merge_python27 = true;
<cransom_>
gchristensen: it is. i just need to put in more effort because i think the squashfs enabling part is tailored a bit to the type of system it's being deployed for, so if i'm making amis, it's not going to fit nicely as is.
Makaveli7 has joined #nixos
<danbst>
ottidmes: in the end it all works flawlessly, I didn't even expect it would work. I'm currently doing this for postgresql packages, and it works flawlessly too
sanscoeu_ has quit [Remote host closed the connection]
<petersjt014>
any chance someone could help me w/ some disk resizing-ish stuff?
<gchristensen>
cransom_: I don't follow
<danbst>
petersjt014: just throw your problem, maybe someone knows a solution
dermetfan has quit [Read error: Connection reset by peer]
dermetfan has joined #nixos
<petersjt014>
I'm working on a nix file to write an aarch64 image with nilfs as the main filesystem, and I dont speak sfdisk or whatever it is
<ottidmes>
danbst: maybe python27Mergable = true to still be camel case and not having to change case for the thing itself like mergePython27 would
<danbst>
ottidmes: hm. I guess Mergable suffix isn't that bad. Well, if that can please niksnut then I'll rename that.
lord| has joined #nixos
labancle has joined #nixos
<ottidmes>
danbst: I have some ideas, but they would all involve having to evaluate at least part of nixpkgs, which is always too much, because even just evaluating just the names would probably be too much overhead, and my other ideas would incur even more
<danbst>
petersjt014: whoops, I don't speak sfdisk too :/
<cransom_>
gchristensen: i'm not sure i know either, let me get back to you on that.
<gchristensen>
ok, cool
<petersjt014>
s'alright. I'm not even sure if sfdisk is the correct tool here
<danbst>
ottidmes: why would name evaluation be bad? Isn't it done already?
<clever>
petersjt014: i usually use gparted (gui app) for paritition resizing
<clever>
danbst: reading the .name of a derivation involves first importing and parsing its default.nix
<danbst>
clever: ah, I thought ottidmes talked about attribute names
<clever>
petersjt014: there is an aws script that will automate expanding a partition, normally used on AMI's
<ottidmes>
danbst: I was actually (talking about just the attribute names), but it seems way faster than expected, it must have been something different causing the slowdown
<petersjt014>
the thing I'm looking for (in the gist above) is something to resize the root filesystem to fit the partition (which is a thing that's needed I guess)
<petersjt014>
the ext4 version starts with "echo ",+," | sfdisk -N2 --no-reread $bootDevice"
<petersjt014>
not sure if sfdisk does nilfs filesystems
<clever>
petersjt014: sfdisk does absolutely nothing to the filesystem, its purely a partition level tool
<clever>
so you must then run the right tool, like resize2fs, after expanding
<ottidmes>
danbst: is it correct to assume that every attrset with recurseForDerivations = true should be mergable? if so, I might be able to implement some trickery that might just determine that without the recursion issues
<mdash>
i'm trying to package a Python application. When doing stuff for my own use I've chiefly relied on pypi2nix; if I want to write something suitable for submitting to nixpkgs, what's the general plan for coping with version skew in dependencies? I see a couple things in nixpkgs patch requirements.txt
<petersjt014>
It does seem to do that--here's the line in context:
<disasm>
gchristensen: how's your wireless been with the QCA6174? any issues?
<petersjt014>
but now that I think about it, the fs I want to use (nilfs2) supports online resizing--so I think this might not even be necessary
<danbst>
ottidmes: it is correct. BUT. You can't know if something is attrset without evaluating things. There lots of functions in all-packages.nix, which you don't want to evaluate until it's time
<clever>
petersjt014: online resizing just means the `resize2fs` step can be done while its mounted
erhandsome has joined #nixos
<ottidmes>
danbst: I know that, hence me mentioning "implement some trickery" I am going to try if I can succeed
<gchristensen>
disasm: ... pretty good
<gchristensen>
disasm: sometimes it falls off the bus, though
<danbst>
ottidmes: oh. Magic begins :)
jacereda has joined #nixos
Guest56116 has quit [Ping timeout: 268 seconds]
<petersjt014>
clever: right. I chose this fs because it's running on a raspberry pi where I don't know how I would sanely or safely bring / offline to resize it
jmgai has joined #nixos
<clever>
petersjt014: for most filesystems, the arch doesnt matter when resizing
<clever>
petersjt014: so just shutdown, shove it into an SD<->usb adapter, and resize from another box
<clever>
petersjt014: or use an initrd level script to resize before mounting /
ym555 has joined #nixos
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmgai has quit [Ping timeout: 240 seconds]
<disasm>
gchristensen: what do you do when it falls of the bus? reboot or something else?
<gchristensen>
gdiyeah
<gchristensen>
disasm: yeah
<gchristensen>
sometimes Fn+PrtScr a few times works
<disasm>
oh, does that toggle wifi?
<gchristensen>
yeah
o1lo01ol1o has quit [Remote host closed the connection]
<disasm>
trackpad works great :) all the weird osx gestures I've gotten used to just work (right click/middle click)
<gchristensen>
yeah
<disasm>
that was my biggest worry :)
tmaekawa has joined #nixos
sinner has joined #nixos
<gchristensen>
:)
tmaekawa has quit [Client Quit]
sinner is now known as Guest69507
<disasm>
do you use any usb-c hub/dock at the desk?
<gchristensen>
yeah, I have a dell thunderbolt dock
<gchristensen>
works pretty well, though I've never had linux handle dynamic, multi-monitor setups well
<disasm>
yeah, but manually with xrandr works well?
<gchristensen>
yeah
<disasm>
can't believe it took me almost 4 hours yesterday to realize usb can only boot on the right port :)
<gchristensen>
I can't believe that is a real restriction!
rpg has joined #nixos
<disasm>
I was about to buy a mini-sd-card to see if that would boot :)
<ottidmes>
danbst: I could probably do it with the magic I had in mind, but things like python27.pkgs make it so that I have to import most files, which would simply be too much of an overhead for this feature
<danbst>
ottidmes: what's the magic then?
rpg has quit [Client Quit]
<ottidmes>
danbst: basically making it not evaluate any packages, so you just are building a nested attrset without any derivation attrsets
<ottidmes>
danbst: by overwriting some of the builtins of Nix
<ottidmes>
danbst: so you would do one pass to gather the necessary metadata, and then evaluate as normal
<danbst>
ottidmes: but how would recurse into attrset withou evaluating it?
<ottidmes>
danbst: by overwriting e.g. callPackage in such a way (through magic) that it will for example return {} or null, and then it would be harmless to evaluate the outer structure of nixpkgs (if the leafs are packages, just the branches if you will)
ncb^ has quit []
jacereda has quit [Ping timeout: 245 seconds]
mbauer has joined #nixos
Mr_Keyser_Soze has quit [Remote host closed the connection]
shibboleth has joined #nixos
halfbit has joined #nixos
<danbst>
ottidmes: well... maybe it can work. However python27 itself is called with callPackages, so you'll miss whole python27.pkgs
<ottidmes>
danbst: which I could patch with checking for Packages in the name, which would not be that bad if you give a nice error message if it was called Packages but is not mergable, but I doubt my magic would be acceptable to be included in nixpkgs anyway, so what you came up is probably the safest bad
<ottidmes>
s/bad/bet/
<labancle>
Hi all, does anyone know how to add symlinks to /bin from configuration.nix ?
<ottidmes>
labancle: you could write a systemd service that does this
<symphorien>
Probably systemd-tmpfiles can do that
<simpson>
labancle: Usually /bin is not changed by anything. What did you need in there?
Ralith_ has joined #nixos
<labancle>
I tried putting the shell code in environment.extraSetup, but get a "Permission denied" error when I do a rebuild
<labancle>
gchristensen: you're supposed to add an entry to tramp-remote-path, but it doesn't work for me for some reason
<{^_^}>
[nixpkgs] @matthewbauer pushed 0 commits to fix-49206: https://git.io/fh0JE
<{^_^}>
[nixpkgs] @Mic92 pushed 0 commits to raspberry-cross-fixes: https://git.io/fh0J2
<gchristensen>
yeah, but why is that necessary at all, when the tools are in the PATH when SSHing in?
sanscoeur has joined #nixos
<DigitalKiwi>
has anyone had problems with kde recently i updated and power management doesn't work anymore there's an error message and the screen brightness buttons don't work and also i had problems with the touchpad stopped working but that might be better now...
slack1256 has joined #nixos
<labancle>
gchristensen: don't know
<hodapp>
weird, I've not noticed this in TRAMP somehow
mjbauer has joined #nixos
matthewbauer has quit [Ping timeout: 250 seconds]
<gchristensen>
that is the other thing, TRAMP works fine for me
mbauer has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
reinhardt has quit [Quit: Leaving]
mjbauer has quit [Client Quit]
<fresheyeball>
elvishjerricco:++
<joko>
fresheyeball: remove the : :D
<fresheyeball>
elvishjerricco++
<{^_^}>
elvishjerricco's karma got increased to 10
<labancle>
gchristensen: have you tried doing a multi-hop from ssh to sudo ?
<gchristensen>
na
eadwu has joined #nixos
<fresheyeball>
elvishjerricco: trying that
<labancle>
gchristensen: what version of tramp are you using?
<fresheyeball>
I had no idea that was on be default
<labancle>
gchristensen: M-x tramp-version
<gchristensen>
2.3.3.26.1
<elvishjerricco>
fresheyeball: Yea that's a kind of recent change. I think 18.09 was the first release with that
<labancle>
ah, ok. Mine is 2.2.13.25.2
<labancle>
are you on emacs 26?
<gchristensen>
26.1
<fresheyeball>
elvishjerricco: other question while I got you
<gchristensen>
emacs from 18.09.1898.001b34abcb4
<fresheyeball>
I see my library compile twice when I nix-build
<labancle>
ok.. I'm using 25.2.2
<elvishjerricco>
fresheyeball: Yea, that's because of the profiling.
<labancle>
might have something to do with it
<fresheyeball>
do you have any idea why that is? why not compile once?
<fresheyeball>
oh right
<fresheyeball>
p_o
<fresheyeball>
I forgot
<elvishjerricco>
fresheyeball: Unfortunately you can't only build p_o files because they can't be used for TH
<fresheyeball>
yeah, I am using ekg, so that makes sense
<labancle>
gchristensen: was that from nixpkgs?
<gchristensen>
yea
<fresheyeball>
elvishjerricco: that didn't fix it
<elvishjerricco>
fresheyeball: But yea having profiling on by default is pretty nice. The exes aren't profiled by default, so they're exactly like normal. But having the libs built with profiling means you can always switch to building a profiled exe without rebuilding the world
<elvishjerricco>
fresheyeball: What did you try?
<fresheyeball>
enableLibraryProfiling = false;
jacereda has joined #nixos
<labancle>
gchristensen: OK, mine is from Ubuntu repos. I'm setting up a new nixos config on another machine from my Ubuntu machine.
o1lo01ol1o has joined #nixos
<labancle>
might try installing emacs using nix on ubuntu
<labancle>
anyway thanks for the info. I gotta go out for a while now
<elvishjerricco>
fresheyeball: So the error is occurring while building a .o file?
<elvishjerricco>
fresheyeball: In Nix, `"${x}"` checks if `x` is a string. If it's not, it checks if there's a `x.outPath` and interpolates that. So `outPath` is the field in a derivation that actually provides the path
<fresheyeball>
interesting
<reilithion>
In a build script, do I have access to a shell variable that expands to the directory of the source tree?
<elvishjerricco>
reilithion: $src?
matthewbauer[m] has joined #nixos
<fresheyeball>
elvishjerricco: I just got an empty vim
<elvishjerricco>
wut
<elvishjerricco>
try out instead of outPath
stew_ is now known as stew
<fresheyeball>
oic
<fresheyeball>
sorry trying again
<reilithion>
elvishjerricco, Is that the source tree? I was under the impression that that could refer to a tar.gz or other archive file.
<matthewbauer[m]>
gchristensen: you should be able to use tramp-own-remote-path
<elvishjerricco>
reilithion: Ah. Not sure then
_kwstas has joined #nixos
<gchristensen>
matthewbauer[m]: you are on IRC!
<gchristensen>
matthewbauer[m]: I wish you were here more often :)
<adisbladis>
gchristensen: How are you testing this? What are you trying to do?
<matthewbauer[m]>
yeah I've been away for a couple of months
<matthewbauer[m]>
should be more available now though...
<matthewbauer[m]>
We should set up a nix-mode channel though
<gchristensen>
I'm not doing anything
<gchristensen>
labancle was having trouble
<fresheyeball>
elvishjerricco: no dice
<fresheyeball>
do you just want the full output of nix-build?
<fresheyeball>
is that what this is intended to do?
drewr has joined #nixos
<elvishjerricco>
fresheyeball: Yea, but it makes sure the output from other builds doesn't clobber it up
<elvishjerricco>
But I guess that's probably not a factor in this case
<elvishjerricco>
still. Frustrating that `nix log -f default.nix` doesn't work
<gchristensen>
matthewbauer[m]: should we?
<gchristensen>
matthewbauer[m]: it'd probably only have a small few people in it :)
<adisbladis>
etu: ^
<fresheyeball>
elvishjerricco: can I just turn off all editorializing flags?
<elvishjerricco>
fresheyeball: editorializing?
<fresheyeball>
flags not needed for an artifact to be produced
<fresheyeball>
it compiles with cabal in the nix-shell
cyounkins has joined #nixos
<elvishjerricco>
fresheyeball: Yea you could try that. I doubt it'd help. I'd try two things: 1) Configure cabal with -O2 2) Add --ghc-options=-O0 to the nix build. I have a feeling this is a difference in optimization level
aleph- has quit [Ping timeout: 245 seconds]
<fresheyeball>
elvishjerricco: why? those flags are not being added by nix
fuk has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
<matthewbauer[m]>
gchristensen: yeah maybe not enough yet
<elvishjerricco>
fresheyeball: The flags Nix is adding are basically just the default settings of GHC. I'm pretty sure they mostly have zero effect.
<fresheyeball>
elvishjerricco: but if I build with cabal in the nix-shell
<fresheyeball>
it compiles fine
<fresheyeball>
all targets
<elvishjerricco>
fresheyeball: That's my point. I think Cabal is telling GHC not to do optimizations, while the Nix build is respecting the -O2 in your cabal file.
<elvishjerricco>
So you should try inverting those. Having cabal-install do optimizations, and have Nix not do them
<fresheyeball>
let's test that
<fresheyeball>
I am going into the shell
shibboleth has quit [Quit: shibboleth]
<fresheyeball>
ok I configured with -O2
<fresheyeball>
let's see if it fails the same way as nix-build
abaiste^ has joined #nixos
Soo_Slow has joined #nixos
<fuk>
Is Nixos the operating system used by whoever deleted all those emails for Mrs. Clinton?
<gchristensen>
...eh?
<fuk>
the name looks eerily similar to another word/name which is why i ask
<fuk>
was it invented by nixon?
<gchristensen>
fuk: it sure sounds like you're trolling. are you trying to troll us?
<fuk>
yes indeed, you fucking retard. how did you figure it out?
<gchristensen>
good guess, I reckon
<fuk>
i will insert things into ur cunt
fuk was banned on #nixos by gchristensen [*!*@177.54.149.227]
fuk was kicked from #nixos by gchristensen [fuk]
<fresheyeball>
gchristensen++
<cransom_>
well that was productive.
<{^_^}>
gchristensen's karma got increased to 63
<ottidmes>
well at least they were clear about it :P
* samueldr
usually catches up from new to old...
<samueldr>
that was quite climactic
<gchristensen>
it was nice of them to be honest about it
<LnL>
matthewbauer[m]: have you spent any more time on the 10.12 update?
<Soo_Slow>
hello, I have 3 questions (mostly regarding nix package manager, than nixos itself). Are there proprietary packages for nix? (personally, Im intrested in discord). Is there a way to install multiple versions of same package? And does old versions exist in repo? (lets say, I need some older wine, but I dont want to download it and compile manually from dev's site)
cyounkins has quit [Remote host closed the connection]
<samueldr>
they will not be listed in the list on the nixos.org website though, so you might need to use `nix search` to find unfree software
<fresheyeball>
elvishjerricco: I configured with -O2, and built, no problem
<simpson>
Some old versions of some specific packages, yes. But it depends. Usually we only carry old versions because they're dependencies of some more-desired package.
<samueldr>
^ but it's not really complicated to get an older version, there are a couple ways, and once more acclimatized to the nix way of life, the become pretty trivial
<LnL>
Soo_Slow: you can install old versions of software, but we don't continue to maintain multiple versions in most cases
jacereda has joined #nixos
<Soo_Slow>
simpson, but, if I've used to download older version while it existed in repo, then its got removed from there - will I still have it locally? (if I understand concept correctly) Or it will be replaced automatically on update?
<simpson>
Soo_Slow: Depends on what you've configured and how you perform updates. In general, you will not be broken by automatic updates.
<symphorien>
Soo_Slow: your local set of packages is append only; updates never replace the old packages
<__monty__>
I've actually wondered about the versions thing. It's always touted as a feature of nixos that it supports different versions side-by-side. And considering the expression for a certain version should continue to work basically forever, why doesn't nixpkgs just keep all the versions that have every been in nixpkgs?
<Soo_Slow>
can you make your own local packages (to be operated by nix package manager)?
<simpson>
Yep.
cyounkins has quit [Ping timeout: 268 seconds]
<Soo_Slow>
symphorien, but can you remove old versions at once, if you only need actual ones?
<symphorien>
yes, with garbage collection
<symphorien>
but by default, it is not automatic so until you don't run the gc you know you can rollback to previous versions
<samueldr>
__monty__: the "side-by-side" thing is a bit overblown imho, they can work on the same system, but not on the same scope
<adisbladis>
__monty__: It would take up a huge amount of space for not much gain. You can mix and match nixpkgs checkouts anyway.
<Soo_Slow>
can nix package manager be used on distro without systemd?
<samueldr>
yes
<adisbladis>
Soo_Slow: Yes, as a matter of fact we have binary packages for linux x86_64, linux aarch64 and osx x86_64
<Soo_Slow>
how often packages get updated? (e.g is it closer to arch or debian)
<samueldr>
the unstable channel is pretty rolling-release like
<samueldr>
the stable channels, cut every 6 month, are more debian-like
<samueldr>
and you can make use of more than one channel if you need to
<Soo_Slow>
but is unstable.. ugh... really unstable? :'D
<Soo_Slow>
or like arch-stable?
<timokau[m]>
Probably less stable. IIRC arch packages go through manual testing while nixpkgs-unstable is only tested automatically
<timokau[m]>
And not all automatic test failures stop the "release" (channel advancement)
<timokau[m]>
The upside is that you can revert to an earlier version at any time
<Soo_Slow>
I see
alex`` has quit [Ping timeout: 245 seconds]
<samueldr>
there is (1) good automation that tests some basics (e.g. does it boot, does the installer work) before updating and (2) many NixOS contributors use unstable daily on their machines
<samueldr>
[citation needed] (for the contributors using unstable)
<__monty__>
adisbladis: Would it? Version bumps are often very small diffs, no? So you could factor the expressions to make the extra data minimal.
<gchristensen>
my impression is most contributors stick to unstable, actually
<samueldr>
gchristensen: on a set of 2 contributors I *know* of, I know that 100% of them use stable :)
<gchristensen>
LOL
<Soo_Slow>
did anybody there try to make a mixed installation, btw? E.g something like devuan with basic stuff from their repos (so - you wont need to update it often), while the rest (packages, you need to be updated asap) - from nix packages? (
<immae>
Hi everyone! I have a bundlerEnv (with Gemfile and gemset generated) that fails to build because one of the gems has a build dependency on perl, and I tried to put the buildInputs in the bundlerEnv argument in vain, it’s everything as if it was not given, do you have an idea how I can add that dependency?
<symphorien>
Soo_Slow: you can always use nix on any linux distro
<Soo_Slow>
symphorien, but is it a good idea, generally?
<symphorien>
my experience of this is a mixed bag
knupfer has joined #nixos
<symphorien>
I was on an old ubuntu
<adisbladis>
__monty__: You probably could.. I wonder what the upside would be.
<timokau[m]>
Soo_Slow: Yes I used to do that, only issue I'm aware of is that you may run into problems with different QT versions
<gchristensen>
Soo_Slow: it isn't a bad idea
<symphorien>
the default theme was broken with the recent gtk apps from nix
<elvishjerricco>
Yes Nix has been a surprisingly portable way to install a lot of kinds of software for me
<symphorien>
because of gtk3
<elvishjerricco>
The only system dependency is basically the kernel abi
<adisbladis>
timokau[m]: QT is a cluster #!%@ when it comes to packaging :/
<adisbladis>
Too much runtime magic
<samueldr>
there are a lot of assumptions for things that it will be used on NixOS, without much care to keep it FHS/XDG compatible for other distros
<fresheyeball>
so I have tried reproducing this by configuring with -O2
<fresheyeball>
no dice
<__monty__>
adisbladis: The upside would be super easy access to any version you want. The downside seems nothing, really? Searching's a bit worse if you grep because of the duplication among versions. Unless nix can summarise output, i.e. (packagename [v1, v2, v3] description).
<elvishjerricco>
fresheyeball: Did you try with -j7?
<elvishjerricco>
I dunno if Cabal does parallel builds by default or not
<adisbladis>
Soo_Slow: I've used Nix on Debian, Ubuntu, Arch, Gentoo and RHEL
<gchristensen>
if it does, consider reducing -j to like, -j4 :P
rpg has joined #nixos
mounty1 has quit [Quit: Konversation terminated!]
<adisbladis>
__monty__: I wonder if this is something that could be accomplished easily through merging multiple channels somehow
<elvishjerricco>
gchristensen: Yea we gotta get that PR merged
<adisbladis>
samueldr: Nice <3
<fresheyeball>
elvishjerricco: I tried `cabal build -j7` and it built instantly
<fresheyeball>
I am doing a clean and trying the same command again
<samueldr>
adisbladis: I'm asking for reviews since this is pretty much a core change; this could royally break things as much as it could fix it if I get something wrong
<elvishjerricco>
fresheyeball: I think -j on the Cabal command line only affects package parallelism, not GHC parallelism
<elvishjerricco>
fresheyeball: --ghc-options=-j7
<adisbladis>
samueldr: I'll give it a go later tonight :)
<samueldr>
:)
<adisbladis>
It certainly _looks_ sane
<__monty__>
adisbladis: Actually, a practical use is you wouldn't have to jump through as many hoops when you run into a package being incompatible with dependency versions.
<gchristensen>
"waiting for locks or build slots..." I might die of old age before this finishes
<yl[m]>
w.r.t nixops_state it's a sqlite database. I can see that it hardcodes that nix expression path for every deployment, that means that I cannot share the state with my co-workers as the path won't match and everyone has to `nixops modify` anyway. If everyone had their own state file, would they have problem using nixops?
<samueldr>
I think I had three main concerns (whre it's been ages since I wrote this!) [1] I'm not a C++ nor a Qt dev; I could make silly mistakes [2] first setup-hook written, might be doing something wrong, but I don't really think [3] use of /nix/store/*/nix-support which I'm unsure is right
<Soo_Slow>
symphorien, but cant you setup different themes for system and nix'es software?
<symphorien>
yes sure, you can always spend time to fix things :)
<symphorien>
I mean, the interface between os global things and nix packages is not always perfect
<symphorien>
nix packages have trouble with opengl on not-nixos
<elvishjerricco>
gchristensen: It'd be interesting to see how much space / root takes most of the time
<samueldr>
(or maybe it won't happen) gchristensen is doing it the other way around, fresh zfs whatchamacallit at each boot for /
<reilithion>
I kinda feel like "I recently switched to tmpfs for /" is a UNIX-flavored joke about having trouble with your memory.
<adisbladis>
Hehe
<reilithion>
There are doctors for when old people switch to tmpfs for /
Soo_Slow has quit [Remote host closed the connection]
<samueldr>
I think in that specific use case, it makes sense to keep as much RAM free even if it's "peanuts" for /, since it might not be tradeable the other way around
<samueldr>
(in some cases) you can't just put memory on the filesystem
<reilithion>
Occasionally, I discover I've had /home mounted as tmpfs...
eadwu has quit [Ping timeout: 250 seconds]
<adisbladis>
Jokes aside, It's actually a really nice setup
<petersjt014>
I'm trying to create a nixfile to write an aarch64 sdcard image with nilfs as the root filesystem (I found f2fs to be less optimal), and I (ideally) would want the sfdisk resizing code to resize to half-capacity to leave room for swap
<adisbladis>
The only thing in my setup which is not really nice at the moment is the browser
<adisbladis>
Which I guess is always gonna suck
fendor has quit [Read error: Connection reset by peer]
<petersjt014>
but resizing to full size is okay too since nilfs can resize online
<samueldr>
adisbladis: :o tmpfs for home too?
<adisbladis>
samueldr: Yep
<samueldr>
now that's dedication :)
<adisbladis>
samueldr: With a few symlinks for persistent stuffs
<samueldr>
one of these days, I'll take the time to do something weird like that... not that I haven't done weird things
<samueldr>
echo /* -> /Users /Volumes
<samueldr>
echo ~ -> /Users/samuel
<samueldr>
petersjt014: I still don't know what you're looking for; is there a specific error? something going wrong?
strobelight has quit [Read error: Connection reset by peer]
<samueldr>
petersjt014: ^ among that you would need to figure out (sorry I won't know for sure) a way to make the fs (probably mkfs.nilfs) and then figure out a way to make the equivalent of the following for nilfs https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/make-ext4-fs.nix
<samueldr>
right now the way the sd-image-aarch64 is included it still makes use of that ext4 formatted fs
estrom has quit [Quit: Leaving]
<adisbladis>
gchristensen: Heh, just my /var/log is more than that after a day
<samueldr>
if it wasn't for the fact that usb booting aarch64 is annoying, when not impossible, I would suggest (unless you desire to make a reproducible image) booting via usb and installing to the device that way
<samueldr>
though, I guess you could sd boot, install to a usb-connected sd card reader
<gchristensen>
adisbladis: yikes, what is in there?
<samueldr>
logs
<petersjt014>
alright, I'll poke around the nilfs manuals and see if I can figure it out. Thanks!
<adisbladis>
samueldr: Thanks captain obvious ;)
<samueldr>
and it might be easier to, at first, modify a nixpkgs checkout instead of making the file independent, petersjt014
<adisbladis>
gchristensen: Docker logs mostly
<petersjt014>
I'll keep that in mind
<samueldr>
petersjt014: completely break and fix those bits in a branch until you figure out things right, then polish it back
<elvishjerricco>
I wonder if there's a file system that stores things on disk, but keeps some essential information in memory so that the disk is effectively reset on reboot without any explicit actions.
<gchristensen>
adisbladis: interesting
<elvishjerricco>
Like a tmpfs that doesn't use ram
<petersjt014>
cool, thanks
<Ralith>
elvishjerricco: a filesystem where all the metadata is in-memory
<elvishjerricco>
Ralith: Yea
<adisbladis>
gchristensen: Not surprising considering that what I'm doing atm is very docker-heavy
<gchristensen>
elvishjerricco: you can setup luks to do it, and NixOS's swap partition config supports it
<gchristensen>
elvishjerricco: using a random key
<elvishjerricco>
gchristensen: Yea that'd do it
<Ralith>
gchristensen: if there's on-disk metadata you still have to explicitly reformat, though
<gchristensen>
yeah, I suppose so
<elvishjerricco>
Oh right. Yea having to reformat would count as an explicit action.
<gchristensen>
teh nixos swap module supports it automatically
<gchristensen>
anyway, the reset is pretty lightweight, but it'd be nice to not have to pre set it up and just have it work automatically
<elvishjerricco>
gchristensen: I feel that way about all disk things :P I wish activation would handle the statefulness of formatting and setting up ZFS datasets
<gchristensen>
I 100% don't agree
<gchristensen>
(but I think reasonable people can disagree on this)
<elvishjerricco>
Oh? Why do you disagree?
<gchristensen>
mistakes happen, and automatic formatting is not a forgiving mistake
<elvishjerricco>
Yea that's a good point.
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « busybox: give priority of 10 »: https://git.io/fh0sz
<gchristensen>
I have mistakenly deployed super wrong nixos system configs to very different target systems (for example, deployed my media server to my router by mistake because the IPs got swapped)
__monty__ has quit [Quit: leaving]
<infinisil>
Haha
<gchristensen>
yeah, thankfully, it was just a haha
<infinisil>
Were you able to just rollback?
<gchristensen>
yep
<infinisil>
NixOS++
sinner has joined #nixos
sinner is now known as Guest22104
_kwstas has quit [Quit: _kwstas]
Guest69507 has quit [Ping timeout: 250 seconds]
<pbb>
Hi, on my freshly installed NixOS 18.09 server I'm getting this error:
<pbb>
DBI connect('dbname=/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite','',...) failed: unable to open database file at /run/current-system/sw/bin/command-not-found line 13.
<pbb>
somehow the store was not properly initialized?
<symphorien>
it is only the command-not-found handler
<symphorien>
run sudo nix-channel --update
<pbb>
thanks, that helped :-)
dsiypl4_ has joined #nixos
dsiypl4 has quit [Ping timeout: 246 seconds]
<adisbladis>
It's unfortunate that nix-channel is required
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
simukis has quit [Quit: simukis]
Soo_Slow has joined #nixos
<Soo_Slow>
is there a package for icecat?
knupfer has quit [Ping timeout: 264 seconds]
<simpson>
I don't think so. Do you want the branding, or do you just want a Firefox of some sort?
muvlon has joined #nixos
<Soo_Slow>
simpson, second. Icecat is kinda like "firefox without garbage" (yet based on stable releases, unlike palemoon)
<muvlon>
hi nixos users! i'm experiencing some weird behavior and i'm not sure if it's my own fault
<muvlon>
i'm doing declarative users/groups management (with users.mutableUsers = false;) and want to add a group
<simpson>
Soo_Slow: I don't know what "without garbage" means. `firefox` is an unbranded Firefox. `firefox-bin` is a branded (unfree) Firefox.
reilithion has quit [Quit: Leaving]
<muvlon>
so I did: `users.groups.gpio.members = [ "muvlon" ];`
<clever>
muvlon: group changes dont take effect until you relog
<muvlon>
after "nixos-rebuild switch", the group exists and muvlon is a member
<gchristensen>
firefox is branded, now, simpson
<muvlon>
yeah, when i relog, i am in the group
<Soo_Slow>
simpson, "without garbage" means there is no pocket and similar stuff in default installation
<muvlon>
but here is the weird part: if i reboot, the group is gone :/