<disasm>
lol... just had 3 internal drives and 2 external drives all go bad in the last 48 hours (all are older than 5 years). I'm down to 1 copy left of my backups :(
<infinisil>
Oh snap..
<rawtaz>
uh, that's just too unlikely to even happen :P what did you do to them?
<rawtaz>
are they in a raid of some sort?
<rawtaz>
five drives dont randomly die within 48 hours unless there's some additional factor involved
<rawtaz>
(unless you have lots and lots of drives, of course)
<rawtaz>
disasm: quick, grab restic.net and make yourself a fresh backup just in case ;)
<{^_^}>
[nix] @shlevy merged pull request #1906 → nix search: tests and fix #1893 and part of #1892 → https://git.io/vArBZ
<disasm>
rawtaz: just bad luck, not even raid, just rsyncs. 2 are system drives (old 320 gb WD SATA), a seagate external, a wd external, and a 128 gb ssd I salvaged from an old desktop in the attic stopped responding that i was trying to replace the 320 gb root
<MichaelRaskin>
If you try to do something, please do it in a place with a different power source…
Arcaelyx_ has joined #nixos
<disasm>
MichaelRaskin: 4/5 of them are clicking like the heads crashing into the spindles, so I doubt it's the power source
Arcaelyx has quit [Ping timeout: 252 seconds]
<disasm>
rawtaz: I looked at tarsnap, but $500 /mo + initial transfer of $500 for 2 TB of data is a little pricey. Ordering a bunch of stuff off of amazaon and searching for another 2 tb disk to get at least one copy (I know have one around here somewhere)
hamishmack has joined #nixos
me421 has joined #nixos
<ottidmes>
I really should update my hardware, my laptop, desktop and external drives are > 8 years old, but so far I have been in luck it seems, never had a disk fail on me, or any hardware except ear plugs, the accu of my first smartphone (started to swell), and the accu of my laptop (old age)
justanotheruser has quit [Quit: WeeChat 1.9.1]
<disasm>
ottidmes: wow, never??? not even an old 4 GB drive from 20 years ago?
me421 is now known as cx405
<MichaelRaskin>
Drives from 20 years old are actually harder to kill
<ottidmes>
disasm: No, I stopped using those before they could break on me
<cx405>
I am trying to resolve the basic sound issue the whole day without improvement. The phonon in kde has no plugins and does not work. I am affected by both #27050 (this one has my cfg.nix) and #10559. Can someone help, I am absolute newbie trying to get desktop system working. :(
justanotheruser has joined #nixos
justanotheruser has quit [Client Quit]
<ottidmes>
disasm: So I guess they too should still function, I have some laying around, although I really have no use for them anymore
justanotheruser has joined #nixos
<MichaelRaskin>
Nice. I have learnt to create a PDF viewable in Evince but not Zathura
<tobiasBora>
Hello again,
<Guanin>
can someone help me setting up snapper? services.snapper.configs requires something like "name" = {some = "set";};, but I want to use map to build multiple similar configs
<gchristensen>
any French or French-connected people around who love food?
<tobiasBora>
Just a question, if I compile/install nix from git, will it change anything concerning the version of the channel I'll follow?
<tobiasBora>
gchristensen: sure
<tobiasBora>
why?
<gchristensen>
I have this recipe for a pot pie of chicken, pancetta, and green olives. It always comes out super dry and a bit too salty, but I like the flavors. any suggested recipes?
pkill9 has quit [Ping timeout: 256 seconds]
<Guanin>
So I have a list ["foo" "bar" "baz"] and want to build something like "foo" = {something = "/path/foo";}, "bar" = {something = "/path/bar";} and so on
ryanartecona has quit [Quit: ryanartecona]
<disasm>
gchristensen: wash the olives so you don't get too much salt out of brine
<ottidmes>
tobiasBora: Updating nix should not also update your channel.
<gchristensen>
Guanin: you probably want ave this recipe for a pot pie of chicken, pancetta, and green olives. It always comes out super dry and a bit too salty, but I like the _ideas_ of the recipe. any suggested recipes?
<Guanin>
The recipe itself does not sound that bad, too :)
<tobiasBora>
Guanin: ahah ^^ I never saw a pot pie in France ;) But if you first cook your chicken in the bake, do you regularely come and put the oil in the bottom of the "plate" on the top of the chicken ? ;)
justanotheruser has joined #nixos
<tobiasBora>
But if you want a french receipe for a pot pie, they will just tell you that they don't do pot pie :P
<tobiasBora>
ottidmes: ok thank!
<gchristensen>
hmm the washing is worth thinking about, disasm. I only somewhat pre-cook it. perhaps cutting that in half might help. hah! fair
maximiliantagher has joined #nixos
<Guanin>
gchristensen, thanks, it works flawless instantly :)
maximiliantagher has quit [Read error: Connection reset by peer]
<gchristensen>
perfect!
maximiliantagher has joined #nixos
Lisanna has joined #nixos
<tobiasBora>
I try to compile nix, but the .configure fail on the manual part:
<tobiasBora>
I think to remember that I need to do something for that
<cx405>
I am trying to resolve the basic sound issue the whole day without improvement. The phonon in kde has no plugins and does not work. I am affected by both #27050 (this one has my cfg.nix) and #10559. Can someone help, I am absolute newbie trying to get desktop system working. :(
<{^_^}>
[nixpkgs] @dtzWill opened pull request #36948 → glibc: don't use bootstrap libgcc_s → https://git.io/vxTP8
<gchristensen>
cx405: :( that sucks :(
<gchristensen>
I'm sorry
<ottidmes>
cx405: I have no experience with KDE, all I can suggest is trying to change to the unstable branch, see if it is fixed there. Or if you can live without KDE, trying a different desktop manager until this issue is resolved
<cx405>
gchristensen: ottidmes: thanks guys
<{^_^}>
[cabal2nix] @kmicklas opened pull request #337 → Display cabal file parsing errors to user → https://git.io/vxTPw
chessai has joined #nixos
hakujin has joined #nixos
MP2E has quit [Remote host closed the connection]
<cx405>
I think this is about path, where phonon plugins are stored, but I have no experience how to change them.
<disasm>
cx405: are you just using phonon for controlling pulseaudio?
<tobiasBora>
I may found the problem, let's try
<cx405>
disasm: well, I dont exactly understand unfortunately. I have a regular kde install, kde uses (should use) gstreamer as backend. For kde applications trying to play media, its gstreamer>phonon>pulse>alsa.
swolffs has quit [Ping timeout: 256 seconds]
<tobiasBora>
hum no in fact it's during the make that the manual fails to be build
<tobiasBora>
I think this is why: " These are part of the libxml2 and libxslt packages, respectively. You also need the DocBook XSL stylesheets and optionally the DocBook 5.0 RELAX NG schemas."
newhoggy_ has quit [Remote host closed the connection]
<disasm>
tobiasBora: might I suggest installing nix from binaries, and building within a nix-shell, then replacing nix with your own? Depending on OS libraries for building NixOS sounds painful.
<ottidmes>
tobiasBora: Can't you just look at nix/default.nix and use that?
newhoggy has joined #nixos
Judson has joined #nixos
<coconnor>
cx405: what is your configuration.nix?
Judson is now known as Guest67981
<tobiasBora>
disasm: ottidmes : The thing is that I'll like to create a very general way to install nix from a place where a user has no root access
<tobiasBora>
so I can't use the prebuild binaries "as it"
<abathur>
cx405: no context for whether my config applies in your case, but I was able to get audio working with, I think, two things; adding pavucontrol to systemPackages, and enabling hardware.pulseaudio with the package set to pkgs.pulseaudioFull
<tobiasBora>
and for now I do a funny trick that basically download a minimalist alpine repo, "chroot" (in fact it's proot) into it, then install the deps, compile, and copy on the host
<tobiasBora>
after now the only problem is the manual
maximiliantagher has quit [Remote host closed the connection]
<tobiasBora>
actually, if I use the tar version it compiles really nicely
<tobiasBora>
I just need to figure out why the tar does not work
maximiliantagher has joined #nixos
aarvar has left #nixos [#nixos]
<cx405>
abathur: thank you. I have those in pkgs list though.
<coconnor>
cx405: I also have a working KDE + pulseaudio config
<coconnor>
try nixos-option sound.enable to see the current value
<abathur>
cx405: k. Not sure. Don't know much about it, but I don't think I needed any of the other packages to get sound running.
<ottidmes>
cx405: All I can think of is to check if it actually is somewhere in your nix store to begin with, then you know if it is just the path, or some missing install. So the brute force check would be: find /nix/store -name 'phonon4qt5_backend' (or if it is a file for sure, also -type f), then you could try and symlinking that location in one of the paths shown in the list of paths it checks. That is no real fix,
<ottidmes>
but would tell you something at least
<cx405>
coconnor: I think its defaults to true, but I'll try pasting it and checking...
<cx405>
coconnor: value true, default true
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marusich has joined #nixos
<abathur>
so I don't have phonon, I don't have the support32Bit=true, etc; also no explicit sound.enable in my config, fwiw
<coconnor>
Ah weird. mine is default false. (I have a bunch of sound related patches tho)
<cx405>
abathur: I have tried various things, kmix, removing streamer etc - to no avail.
maximiliantagher has quit [Ping timeout: 246 seconds]
justanotheruser has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
<abathur>
not sure if kernel would matter there; I do have mine set to latest due to stability problems with ryzen on 4.09 or whatever is default
<ottidmes>
abathur: I loved the fix, "disabled IRQ #7" (or something) "nobody cares" :P
<abathur>
haha, yeah
<abathur>
I was really confused the first time I tried to install nix, because it was as I was building the ryzen system
Synthetica has quit [Quit: Connection closed for inactivity]
<abathur>
so my initial boot, I went afk while it was coming up and came back to a screenfull of those messages
<abathur>
meaning I missed the message about how to launch the gui
<ottidmes>
abathur: I could not even use the installer, I kept getting spammed with those errors, so that was the first time for me building a custom NixOS installer, which luckily was very easy to do
<abathur>
I was able to use it once I launched the gui, but it was very hard to type at the initial console with those messages interruping all of my input
justanotheruser has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
disasm has quit [Quit: WeeChat 2.0]
<ottidmes>
abathur: I believe, echo 1 > /proc/sys/kernel/printk, should have made it shut up about it within the login shell, but I did not dare continuing at the time, with clearly something being amiss
<la_putin>
in patchelf how is the STRTAB read to get the DT_NEEDED's with --print-needed as i keep getting "ELF"
<ottidmes>
time to sleep, goodnight
<la_putin>
"DT_NEEDED This element holds the string table offset of a null-terminated string, giving the name of a needed library. The offset is an index into the table recorded in the DT_STRTAB entry."
maximiliantagher has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
roconnor has quit [Ping timeout: 256 seconds]
jtojnar has joined #nixos
roconnor has joined #nixos
Meizikyn has joined #nixos
aarvar has joined #nixos
<Meizikyn>
I'm getting a strange error "Permission Denied" as root, when attempting to write a file in cgroups (/sys/fs/cgroup/systemd/machine.slice/<example_machine>/<file_to_be_written>)
<Meizikyn>
I would call this systemd default behavior, however a few forums indicate that this is non-default behavior
<Meizikyn>
is this something implemented by NixOS?
Meizikyn_ has joined #nixos
<Meizikyn_>
if any responded, sorry intermittent disconnect
Guest67981 has quit [Ping timeout: 240 seconds]
Sonarpulse has quit [Ping timeout: 260 seconds]
<coconnor>
whoa. nix wiki looks nicer than last I checked
Meizikyn has quit [Ping timeout: 260 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
<samueldr>
:)
mbrgm has joined #nixos
<samueldr>
if you have any (quick) questions about the wiki, you can ask, for longer and more involved, there is also a dedicated IRC channel at #nixos-wiki
<rawtaz>
what's going on in there? i daren't look >_<
<samueldr>
on the wiki channel? not much most of the time, but we do get notified when there is activity on the wiki
maximiliantagher has joined #nixos
<samueldr>
(I say not much, but there somtimes are discussion about recently modified articles, about the contents, and at other times discussions about styleguide and operation on the wiki)
<rawtaz>
o :)
<rawtaz>
k
oahong has quit [Ping timeout: 252 seconds]
oahong has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
maximiliantagher has quit [Ping timeout: 248 seconds]
maximiliantagher has quit [Ping timeout: 264 seconds]
loonquawl has quit [Quit: loonquawl]
Meizikyn_ has quit [Ping timeout: 260 seconds]
MP2E has joined #nixos
johnsonav has quit [Ping timeout: 268 seconds]
asuryawanshi has joined #nixos
hakujin has joined #nixos
johnsonav has joined #nixos
Tobba has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 256 seconds]
chessai has quit [Remote host closed the connection]
blonkhart has joined #nixos
jadsh has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 240 seconds]
blonkhart has quit [Quit: WeeChat 1.9.1]
boomshroom has quit [Quit: WeeChat 2.0]
schoppenhauer has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
peterzky has joined #nixos
disasm has joined #nixos
yorick has quit [Ping timeout: 256 seconds]
maximiliantagher has joined #nixos
<disasm>
Well managed to find an SSD laying around that works, albeit a little small. Got my root system running on that, got /var rsynced to the new disk aside from prometheus metrics which are being stored on my 2 TB disk. Got a full backup of the 2 TB disk to another external I found laying around, and have a booting EFI/root fs. ran `nixops deploy -d home` and it was like the catastrophe never happened :)
<disasm>
Although the one disappointing thing was I tried switching to grub efi from systemd-boot and my motherboard failed to recognize it as bootable. switched back to systemd-boot and everything is fine. Not planning on debugging that one any further.
maximiliantagher has quit [Ping timeout: 240 seconds]
<disasm>
brand new 240 GB SSD, and two 4 TB ironwolf drives (mirrored ZFS) arriving soon to replace this limping along server, lol.
<Rusty1_>
good for another 20 years
<disasm>
Rusty1_: exactly :)
<Rusty1_>
:-)
Rusty1_ has quit [Quit: Konversation terminated!]
peterzky has quit [Ping timeout: 245 seconds]
peterzky has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar pushed 31 commits to gnome-3.28: https://git.io/vxT7G
<{^_^}>
→ f9b36b5d by @jtojnar: gnome3: automated update
<{^_^}>
→ ee1aba6b by @jtojnar: gnome3.gnome-backgrounds: fix build
<{^_^}>
→ 56ef61ba by @jtojnar: gnome3.geocode-glib: fix build
hamishmack has quit [Quit: hamishmack]
orivej has quit [Ping timeout: 260 seconds]
oahong has quit [Ping timeout: 260 seconds]
oahong has joined #nixos
Poca has joined #nixos
blankhart has quit [Ping timeout: 264 seconds]
maximiliantagher has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
muzzy has joined #nixos
jun1 has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar pushed 14 commits to gnome-3.28: https://git.io/vxT5r
<{^_^}>
→ 9357339e by @jtojnar: gnome3.gnome-characters: fix build
<{^_^}>
→ 7228b5c5 by @jtojnar: gnome3.four-in-a-row: fix build
endformationage has quit [Quit: WeeChat 1.9.1]
<{^_^}>
→ e95a0430 by @jtojnar: gnome3.gnome-chess: fix build
<clever>
garbas: i checked the irc logs for context around line 3, but nothing useful
<elvishjerricco>
garbas: I've had pretty good success with it. For the most part it works just like `file://` stores
<clever>
elvishjerricco: how does it know which accesskeys to use?
<elvishjerricco>
clever: Apparently it just assumes the role of the user running the nix command. i.e. it just uses your `~/.aws/credentials`
<clever>
ah
<elvishjerricco>
I think that's generally a good model
<elvishjerricco>
I like that `builtins.fetchgit` does that
<clever>
so conflicts will arise if i need to use multiple accounts and all the tools require ~/.aws/credentials
<clever>
nixops at least has a ~/.ec2-keys that lets you store and name several
<elvishjerricco>
clever: I think there's a way to specify which access key to use
<elvishjerricco>
.aws/credentials lets you list multiple, under different symbolic names
<elvishjerricco>
I think there's an environment variable or something you can set to choose one of them for Nix.
<clever>
yeah, ive seen that in some docs
<silver_hook>
clever: Thanks :)
<garbas>
elvishjerricco: is there a way to have a more verbose output to see what it actually tries to do?
<elvishjerricco>
garbas: No idea, sorry
<clever>
garbas: does -vvvv have any effect?
<silver_hook>
clever: The reason I’m asking is very silly. I want to create a test print systemd “cronjob” and for that I need access to /nix/store/*-cups-filters-*/share/cups/data/testprint
<garbas>
clever: it actually does, -v -> nothing, -vv -> nohing, -vvv -> nothing ... but then -vvvv gives some output :)
rauno has joined #nixos
<clever>
silver_hook: ah, for that, you can work in the other direction, `nix-store -q --tree /run/current-system`
<clever>
silver_hook: see what refers to cups-filters, and then find its nix expressions
<silver_hook>
I don’t really care much which version of the `testprint` I run through `lpr`, but the longer-term issue will be that at some point the actual file in /nix/store will be garbage collected.
<clever>
it will likely be within nixos/modules
<clever>
silver_hook: if you gist the --tree output, i can skim over it
<silver_hook>
clever: Sure, but if on a normal POSIX I could simply do `lpr /usr/share/cups/data/testprint`, on NixOS I’m still a bit lost as to where I could find a pointer like that (esp. to put it into the systemd cronjob in the configuration.nix)
<hyper_ch2>
"Due to changes or a bug in the Debian package, some packages were uninstalled from the servers during the routine update. "
<hyper_ch2>
"Affected: All webhosting packages and all managed servers"
thc202 has joined #nixos
<sphalerite>
huh. They're very clear about what the actual bug was :p
<knedlsepp>
Hi! I was wondering if someone got any tips on doing CI of overlays. I know that I could generate a jobset where I explicitly list all attributes I override or define within the overlay, but I would like this 'extraction' part to be done automatically.
<sphalerite>
I'm guessing you meant blunder, not plunder?
<hyper_ch2>
sphalerite: same thing ;)
paraseba has quit [Ping timeout: 246 seconds]
knupfer has quit [Ping timeout: 265 seconds]
henrytill has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #36971 → sshuttle: fix build on i686-linux → https://git.io/vxkJ9
<silver_hook>
clever: Aaaah, that makes a lot more sense. Thanks :)
<silver_hook>
It would surprise me if there wasn’t something like that already in there.
paraseba has joined #nixos
henrytill has joined #nixos
<silver_hook>
It evals to: "/nix/store/vmbhh6x3b67jy8wxm84ml7f2iw0rbd74-cups-filters-1.16.0/share/cups/data/testprint"
<hyper_ch2>
rnhmjoj[m]: I wrote several replies to your flexget PR
<the-kenny>
Has anyone experienced systemd user-timers failing after some time? I've got a timer to fetch my mail and every few days it stops working (NEXT and LEFT stay n/a, LAST is the last time it executed)
<{^_^}>
→ f161fe06 by @volth: sshuttle: fix build on i686-linux
<{^_^}>
→ ca1921eb by @Mic92: shuttle: disable buggy test on darwin
<{^_^}>
→ 97c60ab3 by @Mic92: Merge pull request #36971 from volth/no-pandoc-on-i686
<srhb>
the-kenny: More information necessary. Could be any number of things. Did the service fail or time out?
<the-kenny>
srhb: the timer dies. The service itself works fine (it's Type=oneshot)
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vxkki
<{^_^}>
→ fd6d464c by @volth: sshuttle: fix build on i686-linux
<{^_^}>
→ 136a39ee by @Mic92: shuttle: disable buggy test on darwin
<the-kenny>
postbote.timer is configured to run postbote.service every few minutes. This works fine for days, then it stops working. list-timers gives the following output (in the error case): https://p.tarn-vedra.de/systemd-timer.html
<Mic92>
404 for the url
asuryawanshi has quit [Ping timeout: 260 seconds]
<Mic92>
ah
<the-kenny>
huh
<srhb>
the-kenny: And what's the status for the service?
<{^_^}>
→ a73c91c9 by @ryantm: chunksync: 0.3 -> 0.4
<{^_^}>
→ e14bea96 by @Mic92: Merge pull request #36968 from ryantm/auto-update/chunksync
<Mic92>
evangeline: nix repl
<Mic92>
or nix-repl on stable
<the-kenny>
Mic92: no, it isn't. It's just a one-off script that should run every few minutes. Type=oneshot. Would RemainAfterExit=yes make sense there?
<Mic92>
the-kenny: it would have explained, why it would not be restarted.
<Mic92>
but if it is still in the Activating state, this might be also the error
<Mic92>
then it depends on the kind of service
<the-kenny>
The script never exited. gmailieer got stuck. Killing the gmailieer process (therefore making the script exit with error) fixes the timer
<Mic92>
I mean what it starts
<silver_hook>
clever: It seems to have at least built. Let’s see if it triggers as well :)
<the-kenny>
I'll throw a timeout in there and call it a day
<{^_^}>
→ 619af3dc by @volth: graalvm8: dontFixup = true
<{^_^}>
→ 7b0ae82c by @Mic92: Merge pull request #36974 from volth/patch-116
<bryanRobson>
its just an uuid
<Yaniel>
but something else that was conected when you installed maybe
<srhb>
Meh
<clever>
bryanRobson: is that uuid listed in /etc/fstab ?
<bryanRobson>
you really are clever! yes it is, for some reason
<bryanRobson>
strange
<bryanRobson>
these should be added from hardware.nix right?
<clever>
bryanRobson: what does fstab say about it? can you paste that line here
archaeron has joined #nixos
<bryanRobson>
its saying its a swap, but the actual swap is listed under it
<bryanRobson>
maybe I enabled a different swap during installation?
<srhb>
Hmm, I don't know of any swap changes to the installer recently, there shouldn't be any by default.
<srhb>
That would do it, yes.
<clever>
bryanRobson: go into the hardware-configuration.nix and remove the extra swap and it should be good
<ottidmes>
If I have a package that I always want to be build on a specific machine, how would I realize this in Nix 2.0? I thought about specifying the machine as a builder and using requiredSystemFeatures, but does this prevent the local machine from building it? Or might it still start building it itself?
<bryanRobson>
thanks for the help!
<clever>
ottidmes: i think requiredSystemFeatures is ignored when building locally
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « netsurfPackages.libcss: fix build by -Wno-error=implicit-fallthrough. »: https://git.io/vxkGf
reber has joined #nixos
<reber>
hi all
<ottidmes>
clever: I guessed as much, so it would potentially build it locally if there is not much to be build (i.e. it will not offload it to the builder it should)
<clever>
ottidmes: ive also found nix to be rather eager to offload things to slaves, and it only builds locally if all the slaves are busy
<clever>
ottidmes: though in your case, if the one slave you dedicated to the job happens to be busy with anything
<clever>
ottidmes: why do you want to build it there?
<{^_^}>
[nixpkgs] @7c6f434c pushed to release-18.03 « netsurfPackages.libcss: fix build by -Wno-error=implicit-fallthrough. »: https://git.io/vxkG8
<Taneb>
I'm using nix with a makefile to build a C++ program. Is it possible it's removing debug flags?
<ottidmes>
clever: I do not like the impact on my desktop of big builds, while I have a local server that can easily handle it
<clever>
ottidmes: ah, if you set something like nix.maxJobs = 0; then it just never builds locally
bryanRobson has quit [Ping timeout: 260 seconds]
<ottidmes>
clever: I guess I could just do that, too bad you cannot specify that you want to keep doing trivial builds (or whatever they are called, the configs and such)
<Taneb>
Debug symbols/the -g flag, I mean
<clever>
ottidmes: maxJobs = 1; may allow that, but yeah, its a bit of a pain
<ottidmes>
But then again, they are trivial, so it is not as if it really matters
<{^_^}>
[nixpkgs] @xeji opened pull request #36978 → [WIP] SELinux libs and tools: 2.4 -> 2.7 → https://git.io/vxkGg
<LnL>
Taneb: hardeningDisable = [ "fortify" ];
<clever>
ottidmes: ive found that the trivial ones are often slower with slaves
<clever>
ottidmes: for example, the system-path derivation, is just scanning to see what files exist, and making a symlink tree, quick&easy
<clever>
ottidmes: for a build slave to do that, you must copy over ALL systemPackages to the slave, 2-3gig of files
<ottidmes>
clever: yikes!
<LnL>
Taneb: otherwise it will use -O2
<clever>
ottidmes: yep
<ottidmes>
clever: I guess I will just try and use maxJobs = 1 with the builder, and hope that in practice is never builds locally, otherwise I will just have to prebuild it on the builder before starting the local build
<layus>
Is there a way to get the closure of a derivation within nix, to mimic what nix-shell does ?
<clever>
layus: what exactly are you trying to do?
ma27 has quit [Ping timeout: 246 seconds]
xcmw has joined #nixos
<layus>
To make a nix-shell whose path is "cleaner"
<clever>
layus: nix-shell --pure already does that
<layus>
I want my path to look like "/somewhere/nix-shell-buildEnv/bin:/run/current-system/sw/bin:/home/layus/.nix-profile/bin"
Ross has quit [Ping timeout: 246 seconds]
<clever>
layus: that will likely break the gcc include path for most things
asuryawanshi has quit [Ping timeout: 256 seconds]
Ross has joined #nixos
<layus>
clever: Well, maybe indeed
goibhniu has quit [Ping timeout: 248 seconds]
xcmw has quit [Client Quit]
fendor has joined #nixos
the-kenny has joined #nixos
<clever>
layus: the gcc search path works by having scripts in the stdenv iterate over everything in $buildInputs (a bash variable) and adding the include subdirs to the -I path via a gcc wrapper
fendor has quit [Remote host closed the connection]
<layus>
Okay, as long as it does not use $PATH, I can still bundle it.
<layus>
I mean that I could make my trick of bundling all the paths in $PATH and not break gcc
<layus>
I tried `buildEnv { paths = myDerivation.buildInputs; }`
xcmw has joined #nixos
<Myrl-saki>
Does mkDerivation do something that the $out/share disappears?
<layus>
But buildInputs is not the build inputs closure, and misses all the implicit build inputs likes the one reffered to in strings and such
Ross has quit [Ping timeout: 246 seconds]
<Myrl-saki>
Or maybe there's no $out/share from the very start?
<clever>
Myrl-saki: it probably never existed to begin with
<layus>
clever, It seems that accessing the real inputs closure is only available in cpp, and not exported to nix language. A pity
xcmw has quit [Client Quit]
<clever>
layus: yeah
<clever>
layus: recursive nix would allow that to work
<clever>
kolb: a: hydra wont really work when installed with nix-env enless you want to do a lot of configuring by hand, b: the build was recently broken on nixos-unstable, you may need to update your channel
<clever>
Myrl-saki: only improvement i can say, is to add exec on line 11
<clever>
without exec, the shell on line 10 hangs around waiting for the server to quit
<clever>
which costs you a bit of ram and a pid
<Myrl-saki>
Makes sense.
jtojnar has joined #nixos
<Myrl-saki>
clever: I love it. I can even have the port as an argument.
<Myrl-saki>
I'll have to apply srhb's suggestion now.
<clever>
you could parse $* within that bash script, and accept flags to override the port
<clever>
or you could just "$@" at the end of line 11, passing all flags to the server, and then allow the haskell to accept 2 -p's, so the later ones override
<Myrl-saki>
True.
<Myrl-saki>
Yeah, that's pretty clean. Let me try it out.
<warbo>
d'oh! turns out that this package is already available as rPackages.Exact (with a capital "E")!
goibhniu has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed 15 commits to release-18.03: https://git.io/vxkEZ
<{^_^}>
→ beccfcd7 by @dotlambda: pythonPackages.tunigo: move expression
<{^_^}>
→ 11d8ea3f by @dotlambda: pythonPackages.tunigo: fix tests
<{^_^}>
→ fed17ce2 by @dotlambda: pythonPackages.virtual-display: move expression
<srid>
gchristensen: would love to look at your nix config :)
<gchristensen>
one sec
<tobiasBora>
espacially I don't understand the "You also need the DocBook XSL stylesheets and optionally the DocBook 5.0 RELAX NG schemas."
<srid>
i'm tired of forgetting to change mode before unplugging my laptop and then being welcome by black screen
<ottidmes>
srid: I just always use a keyboard shortcut to refresh my screen setup
<clever>
srid: i use xfce and it just auto-detects that without any fuss
<srid>
i would like to automate this, really
* srid
uses xmonad
<srid>
so everything is done by hand :P
<clever>
srid: but you could add code to the xmonad config file to manage this!
<srid>
once i rebound my xmonad quit keybinding to something else. then i realized i had no way to quit xmonad. ended up killing lightdm in order to exit x session
<Synthetica>
srid: I run the xfce settings daemon under i3, works as a charm
<fearlessKim[m]>
is there a way to get nix-shell works as a sandbox ? I don't have the same failures (most things work in the nix-shell while they fail on nix build ) so it's harder to debug the build
<clever>
srid: its haskell, so i would expect you to be able to ffi into pretty much anything, and then hook the right events
<srid>
in nix how would you add a haskell package dependency to xmonad?
<gchristensen>
ssh: Could not resolve hostname github.com: Device or resource busy
<gchristensen>
lol ...
fendor has quit [Ping timeout: 246 seconds]
<clever>
srid: you may also want to look into the xmonad source and figure out what library it uses to hook into X to begin with, so you can stay compatible with that
<gchristensen>
srid: all the generated-configs were made by arandr
<ottidmes>
Synthetica: Do you need to do anything special to make that work? I am already using a big portion of xfce applications. I assume I have to add pkgs.xfce.xfce4settings? And then just start whatever executable is associated with that at boot or something?
<clever>
srid: ah, sounds like its at least using the same module i linked
asuryawanshi has quit [Ping timeout: 256 seconds]
<clever>
srid: so you could trivially add an xmonad binding that activates hard-coded xrandr profiles
<clever>
and depending on the api, auto-detect&switch
pie_ has joined #nixos
Ross has joined #nixos
<Synthetica>
ottidmes: And then in my i3conf: `exec --no-startup-id xfsettingsd &`
<srid>
gchristensen: ah, you are patching autorandr
<gchristensen>
yeah ... should probably upstream that ...
<Synthetica>
But that's prolly different for xmonad
<srid>
gchristensen: does it auto switch mode based on monitor connect/disconnect event?
<gchristensen>
srid: it does
<srid>
gchristensen: would love to see it as a 1 or 2 line nix config (`xserver.autorandr.switch = true`) :-)
<gchristensen>
me too
<clever>
also, auto-config doesnt work so well on my desktop, my monitors are laid out in the 1,3,2 order
<gchristensen>
maybe you'd like to upstream that patch? :)
<ottidmes>
Synthetica: Ah thanks, I checked the source of xfce nix desktop environment and I have already what I needed except that one package, the rest I do not want (I have a hybrid desktop, a bit from everything), but I guess adding pkgs.xfce.xfce4settings and running xfsettingsd will do, thanks!
gammarray has joined #nixos
tilpner_ has joined #nixos
<gammarray>
i'm not sure what caused it, but after a recent nixos-rebuild i'm experiencing page crashes in chromium anytime i copy text. i've disabled extensions and the issue persists. anyone got a clue?
civodul has quit [Ping timeout: 246 seconds]
civodul has joined #nixos
tilpner has quit [Ping timeout: 248 seconds]
tilpner_ is now known as tilpner
trevorcook has joined #nixos
<manveru>
Archaeron: yo
asuryawanshi has joined #nixos
<manveru>
seems a bit odd
asuryawanshi has quit [Remote host closed the connection]
<gammarray>
ya i also tried uninstalling and reinstalling.
asuryawanshi has joined #nixos
warbo` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<gammarray>
i'd been testing on the unstable channel, then switched back to stable to reinstall. still not fixed. :/
<disasm>
gammarray: did you try removing the profile and recreating?
<rawtaz>
hm, videos not playing in Falkon, could that be due to missing ffmpeg or similar in the system?
<gammarray>
is that something i can do for just chromium or would that remove all my other customizations?
<Synthetica>
ottidmes: Did that work?
<etu>
gammarray: Should be a directory in ~/.config named chromium that contains the chromium profile
<gammarray>
etu: ah, thx. will try that
<Synthetica>
I might also switch to that
<trevorcook>
Hi all, I'm running into a problem using copy-closure, to a linux system. nix-store is not found; the nix path environments are not set. I tried copying the "source .../nix.sh" statement found in ~/.profile to ~/.bashrc, /etc/bash.bashrc and probably a few others, but nothing works. Any suggestions?
<{^_^}>
→ 240eb10f by @jtojnar: gnome3.gnome-system-monitor: fix build
<{^_^}>
→ 2e9631e1 by @jtojnar: enchant2: init at 2.2.3
<gammarray>
looks like i'm running Chromium 65.0.3325.146 (Developer Build)
<{^_^}>
→ 48f2a024 by @jtojnar: gnome3.gspell: fix build
<manveru>
Archaeron: to get the Gemfile.lock and gemset.nix, remove `env env.wrappedRuby` from the buildInputs, run `bundix -l`, and then add them again. that should work, just make sure you do everything in that nix-shell
<elvishjerricco>
Does nixos-rebuild update the kernel in place or warn you that kernel upgrades need a reboot?
<bgamari->
Is there any way to get nix-shell to not override your shell configuration?
<gchristensen>
neither elvishjerricco
<gchristensen>
elvishjerricco: one or both of those would be very nice
<bgamari->
I find I use it quite a bit, but it annoyingly removes all of the shell customization that makes it feel like home
<elvishjerricco>
gchristensen: hm. A warning would probably be a good idea...
<elvishjerricco>
bgamari-: The new `nix run` keeps your shell configuration but doesn't do the same thing as nix-shell
<manveru>
bgamari-: direnv
knupfer has quit [Ping timeout: 260 seconds]
rardiol1 has joined #nixos
<manveru>
bgamari-: install direnv, then use `direnv edit .` in the directory with your shell.nix, then write `use nix` in it, save, and you should be done
<srid>
clever: xmonad doesn't receive any x11 event for monitor plug/unplug
<gchristensen>
elvishjerricco: agreed
gammarray has quit [Quit: Leaving]
<clever>
srid: it may need to ask xorg to send them first via some api
<Ke>
xmonad is a lib for writing window managers, you can make it watch whateevr you want
<trevorcook>
clever: added the echo to .bashrc. no echo on ssh, nix-store: command not found. I take it that this is the usual method to get it to work? I might have to check in with my sysadmin to see if he's doing anything
<clever>
trevorcook: try again with .profile
<Ke>
or more precisely, you can make your own wm watch whatever you want
<Ke>
I was actually also interested in solution to make xmonad do stuff on monitor plug, but haven't bothered yet to figure out, how that works
<clever>
srid: does 'xev' show anything when you plug in a monitor?
<tokudan[m]>
could someone look at the firefox-bin PRs #36921 #36922 and #36923 and merge them? firefox shows warnings that it cannot download updates, these PRs fix that.
<srid>
clever: I think I probably should instead write a simple haskell daemon that listens for events and invokes autorandr, instead of baking it into xmonad.
<clever>
srid: and it does support this event, so you just have to convince xorg to send it
<bgamari->
elvishjerricco, yes, so I've noticed
fendor has quit [Remote host closed the connection]
<bgamari->
manveru, hmm, interesting
<clever>
srid: ive been pretty weird with xmonad, i come up with fun and whacky ideas on how it can do abnormal things
<gammarray>
tested chromium in xterm/i3 instead of plasma. still unable to copy text. the crash causes this error: validation failed for clipboardhost requestvalidator [validation_error_unexpected_null_pointer (null field 3)]
<clever>
srid: yet ive never once ran xmonad, nor any tiling window manager more complex then ratpoison
<trevorcook>
clever: moved .bashrc echo to top of file... now shows. Noticed a case statement for "return if interactive". included the source command. Working, thanks!
<clever>
trevorcook: nice
<clever>
trevorcook: anoyingly, ive discovered that a mac will never source a file from $HOME when on non-interactive shells
<clever>
trevorcook: or rather, from /etc, i mean
<clever>
so every single user must have a .bashrc, and there is no way to configure it globally
<{^_^}>
[nixpkgs] @limeytexan opened pull request #36983 → perlPackages.Config-IniFiles: init at 2.94 → https://git.io/vxkii
<tobiasBora>
Everyone can confirm that there is no link to the latest tar version right?
ashgillman has quit [Ping timeout: 256 seconds]
<trevorcook>
can I copy a closure of my build result, or does it have to be installed?
<electrocat>
is it safe to use nix 2.0 while the system uses an older version?
<clever>
elvishjerricco: but its only really an issue for non-interactive shells
<clever>
elvishjerricco: interactive ones still source a thing in /etc, so they work fine
<avn>
Folks, does anyone experienced problems with webrtc in recent builds of mozilla/chromium?
<elvishjerricco>
clever: Unfortunately, non-interactive shells are somewhat important :P
<clever>
electrocat: a few things may not work when using nix2 without root and nix 1.11 as the daemon, but nothing that major
<tobiasBora>
And by the way, if I compile nix, will nix be updated wen a more recent version will be available on the channel ?
oahong has quit [Quit: 暂离]
<clever>
elvishjerricco: also, you may want to clean the echo's up, they can break things like scp
<elvishjerricco>
trevorcook: What are you trying to achieve? Copying a closure just puts it in the file system. If you want its commands available on the path you'll need to install it somehow
<electrocat>
clever: ok tnx
maximiliantagher has joined #nixos
ixxie has quit [Ping timeout: 264 seconds]
ixxie has joined #nixos
oahong has joined #nixos
<CrazedProgrammer>
is there a way i can add the lz4 package to the PATH when compiling the kernel without modifying something in the nixpkgs tree? i want to compress the kernel image with lz4 but after a long process of compiling the kernel it fails because the program `lz4c` is not found. i tried adding pkgs.lz4 to nativeBuildPackages in the override but it did not
<trevorcook>
elvishjerricco: ultimately: run a server which I'm developing locally on a server in my lab. proximally: getting my first copy-closure to go. Following or conversation from #reflex-frp, trying 'copy-closure --include-outputs user@host result'
<trevorcook>
current error: 'path â.bashrcâ is not in the Nix store at ..'
<clever>
CrazedProgrammer: can you gist your current override?
<roconnor>
what's the new nix command to replace pp-aterm?
<elvishjerricco>
trevorcook: Ah. Yea so once you copy it over you can `nix-env -i /nix/store/path`
gammarray has quit [Quit: Leaving]
<srhb>
CrazedProgrammer: Where'd you get nativeBuildPackages from?
<trevorcook>
elvishjerricco: that will be my next step, any idea what the copy-closure error i posted above means?
<elvishjerricco>
trevorcook: Wait that error happened during nix-copy-closure?
Mateon3 has joined #nixos
<trevorcook>
elvishjerricco: yes
<elvishjerricco>
whoa. Never seen that. Not sure what it means
<clever>
trevorcook: can you gist the exact command you ran and its output?
<srhb>
roconnor: show-derivation I think
<CrazedProgrammer>
shrb: it was just a guess, overrideAttrs didn't work.
<trevorcook>
clever: perl must have sourced my .bashrc, and that echo must have been appended to the set of paths
<clever>
CrazedProgrammer: but i dont see a clear way to add lz4, and the config vanishes when you .overrideDerivation
<clever>
trevorcook: i think when it ssh'd into the remote machine, it ran bash to execute nix-store --serve
<johnhamelink[m]>
Hey folks! I'm having an issue with zsh which I'm trying to figure out: `programs.zsh.interactiveShellInit` is perfect - if I run its contents manually in a terminal I get ZSH setup just as I want it to, but for some reason when I open a new terminal the contents of `programs.zsh.interactiveShellInit` doesn't seem to be ran?
<clever>
trevorcook: and then bash sourced .bashrc, and printed out text, which confused the nix protocol
<CrazedProgrammer>
clever: yeah, I just wanted to refrain from that because using my own nixpkgs doesn't seem very streamlined with the rest of my system. if i can't figure out how to add the config back i'll fork nixpkgs :)
<clever>
CrazedProgrammer: ahh, i think the passthru and .features are being lost
<clever>
CrazedProgrammer: so the kernel does have those flags, but nixos cant auto-detect them
<clever>
so nixos thinks the kernel isnt capable of running nixos
<CrazedProgrammer>
ahh
<clever>
CrazedProgrammer: try .overrideDerivation instead of .overrideAttrs
<clever>
and you may need to switch buildInputs to nativeBuildInputs
<{^_^}>
[nixpkgs] @jtojnar pushed 12 commits to gnome-3.28: https://git.io/vxkD5
<{^_^}>
→ 90d0974c by @jtojnar: atk: port to meson
<{^_^}>
→ 2ab32224 by @jtojnar: gnome3: switch to Vala 0.40
<{^_^}>
→ bb1961a1 by @jtojnar: gnome3.mutter: fix build
<{^_^}>
→ 883b26b9 by @vcunat: Merge #36788: nextcloud-client: restrict to linux
<{^_^}>
→ b619881a by @badi: nextcloud-client: restrict platform to linux
<{^_^}>
[nixpkgs] @vcunat pushed to release-18.03 « Merge #36788: nextcloud-client: restrict to linux »: https://git.io/vxkyY
<tokudan[m]>
could someone look at the firefox-bin PRs #36921 #36922 and #36923 and merge them? firefox shows warnings that it cannot download updates, these PRs fix that.
<{^_^}>
[nixpkgs] @vcunat merged pull request #36788 → nextcloud-client: restrict platform to linux → https://git.io/vxeJW
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #36985 → treewide: get rid of platforms.allBut → https://git.io/vxkyi
<clever>
tobiasBora: adding arm-linux isnt that much more complex
<tobiasBora>
clever: it does not work because it needs access to /nix that you don't have when you're a non root user
<clever>
tobiasBora: ah right, thats where the nix-installer.nix i recently wrote comes in
ryanartecona has joined #nixos
<tobiasBora>
Then, what I try to do it to chroot (in fact proot) into the alpine linux, install all the deps, compile nix with a custom /nix folder, and then copy back the files on the host system
<clever>
tobiasBora: this uses arx to package up ${archive} and it will run ${startup} after unpacking it
<clever>
the end result is a "bash" script (with a tar appended to it), that will unpack itself to a tmpdir, and run the command hard-coded into it
hakujin has joined #nixos
<clever>
nix-bundle uses it to run a staticly linked namespace helper against the nix/store in a tar
<clever>
but you can just skip the namespace, and run a bash script and proot instead
knupfer has joined #nixos
<clever>
or have it copy things to ~/nix/store/ so the store actually persists
<tobiasBora>
clever: does this happened only during install, or at each single step ?
<clever>
the arx file it generates is basically a self-extracting tar file
alexteves has quit [Ping timeout: 248 seconds]
<clever>
so it unpacks to a tmpdir every time you run it
<clever>
in the nix-installer.nix i linked above, i only use arx for the "installer", and it copies the full store into ~/nix-install/nix/store/
<tobiasBora>
ok. So proot is used only during install
<tobiasBora>
it's really interesting...
thefloweringash has quit [Quit: WeeChat 1.9.1]
<clever>
you would also need proot after the install, like i still need the namespace utils
<clever>
but the installer would generate a bash script, that runs proof/namespaceutil against the fake root dir in $HOME
<tobiasBora>
Do you have a full how-to to run this? With all comands run on the initial computer, and all commands run on the host ?
<clever>
and the user runs that to enter the root
<tobiasBora>
clever: grr, my goal is to avoid proot for efficiency reasons
<tobiasBora>
and that's why basically I try to recompile a new nix
<clever>
the problem there, is that the compile only works in /home/clever/nix
<clever>
and it wont work in /home/tobias/nix
<clever>
so every user has to have their own custom build
<tobiasBora>
yes sure
<clever>
proot or namespaces get around that issue
<clever>
also, https://nixos.org/nix/install doesnt really need root, if the admin simply does `mkdir /nix && chown tobias /nix`, you can install with zero sudo access
<tobiasBora>
that's why for now I proot into alpine, to create for each new user a new build, and try to install it back on the host
<srhb>
I'm wondering if a slightly nicer (though still annoying) solution to the nixos kernel feature check above would be to let pkg = super.linux_whatever; in pkg.overrideAttrs (oa: { passhtru = pkg.passthru; ... })
<tobiasBora>
so ultimately I would like a script that first: 1) tries to use namespace 2) if not available, compiles a new nix version (on alpine for example), install it on the host, and in parallel provide a proot instance for people that would like to have a quick install of a tool
<srhb>
It's a bit weird to rely on passthru at build time.
<srhb>
Or well, in the NixOS build rather.
<clever>
so: i think overrideAttrs shouldnt break passthru
<tobiasBora>
clever: and yes, I know about the fact that just one folder needs to be created... But I don't want to realy on any sys admin... and I like this kind of challenge
<srhb>
CrazedProgrammer: ^
<srhb>
At least that way you get to avoid overrideDerivation, but meh.
<clever>
srhb: i have no idea who so is, but my tab-completion likes him, lol
<srhb>
clever: Agreed...
<srhb>
hehe :-) I thought it was just a "So, blah ..."
<tobiasBora>
clever: but for now the problem is that when I compile nix into alpine, the nix-env interpreter is the alpine interpreter (different from my debian interpreter), so I can't bootstrap it. Do you know how I could make it use another interpreter in the nix store ?
<clever>
tobiasBora: that will generate a nix that expects the store to be at that path
<clever>
tobiasBora: combine it with NIX_STORE=local?root=/home/clever/nix/store and you can build it in that path
<tobiasBora>
clever: will it also change the /lib/ld-linux-x86-64.so.2 interpreter into /home/clever/nix/store/.../ld-linux... ?
<clever>
tobiasBora: yep
maximiliantagher has quit [Remote host closed the connection]
<tobiasBora>
clever: isn't it supposed to do the same thing as ./configure --disable-doc-gen LDFLAGS="-static" --enable-static --prefix="${PREFIX}" --with-store-dir="${NIX}/store" --localstatedir="${NIX}/var" ?
<manveru>
any ideas why fetchGit is so insanely slow?
<clever>
tobiasBora: the NIX_REMOTE part will put everything, including glibc, into that new path
jlle[m] has joined #nixos
<clever>
manveru: git doesnt allow you to fetch a specific revision, so it has to fetch a specific branch, and then work its way backwards in history
<tobiasBora>
clever: I don't see what you mean. Where do you see NIX_REMOTE?
<clever>
tobiasBora: i mis-typed NIX_REMOTE as NIX_STORE
<clever>
tobiasBora: and some of those args may need tweaking, i havent used them in a while
<manveru>
clever: doesn't it just clone the repo?
<woffs>
Hi. How to make PDFs in X11 open with mupdf-x11 instead of firefox?
<tobiasBora>
clever: ok thanks... So this is an env variable? Should I define it before running the compilation ?
<clever>
manveru: it has to clone the given ref (maybe the default one), then checkout the commit you want, and deal with all the history
<clever>
the NIX_REMOTE one still needs proot to function
<roconnor>
do I set buildInputs to include libsodium or libsodium.dev ?
<clever>
roconnor: libsodium, the stdenv handles the rest for you
<tobiasBora>
clever: you mean at compile time?
<clever>
tobiasBora: with NIX_REMOTE=local?root, it basicaly fakes a chroot, during the nix build, so the build expects that path to become / at runtime, requiring proot
hyper_ch2 has quit [Quit: Page closed]
<roconnor>
clever: if I don't have a configure file do I have to set -I${libsodium.dev}/include by hand?
<clever>
roconnor: no, the stdenv handles that
BenceF has joined #nixos
zzamboni has quit [Quit: Leaving.]
<roconnor>
Hmm I have a build error ...: undefined reference to `randomebytes_buf` which is in include/sodium/randombytes.h
<tobiasBora>
clever: hum wait I'm lost, the good one is NIX_STORE or NIX_REMOte?
alexteves_ has quit [Remote host closed the connection]
<clever>
tobiasBora: not sure yet, still testing things
<BenceF>
hi, I added a module to `boot.kernelModules' but I don't see it in lsmod and can't load it with modprobe. Am I missing a step?
<clever>
roconnor: undefined reference is a link-time failure, you need to pass -lsodium to the linker
<roconnor>
clever: oh crap you are right. TY!!
<johnhamelink[m]>
Anyone able to help me with the zsh issue above? :)
blankhart has quit [Remote host closed the connection]
<tobiasBora>
clever: ok thanks. So if I follow correctly *at compile time*, the NIX_REMOTE variable and the /nix folder should point to the same folder right ?
<clever>
tobiasBora: this changes where nix searches for nix.conf
jtojnar has joined #nixos
<clever>
building '/home/clever/nix/store/40brlg8zm8r6z5m3cnppaicrqwzhvs5f-binutils-2.28.1.tar.bz2.drv'...
<clever>
tobiasBora: it is now building the world, at this new path
<tobiasBora>
clever: you are amazing, I'm so exiting to test it
zzamboni has joined #nixos
<clever>
tobiasBora: also, i think debian can be fixed with: sudo sysctl -w kernel.unprivileged_userns_clone=1
<tobiasBora>
clever: I know, but I want to build a solution as general as possible, included sys admin that disabled unprivileged users
<clever>
the only remaining issue with the above, which i might be able to solve
pkill9_ is now known as pkill9
<clever>
is that you have to replicate the $HOME of the target
<clever>
i think i have a fix for that too
<tobiasBora>
clever: I just want to make sure you agree with the build receipe. 1) proot into alpine 2) download and compile git nix 3) fake the /home/clever (or whatever) on the alpine part 4) run your amazing command using the newly build nix 5) copy back the /home/clever folders on host 6) hope
<clever>
i think i can do the entire thing with nix, on any machine with nix
alexteves has joined #nixos
<tobiasBora>
clever: yes, but I need alpine to have nix right?
<clever>
why?
<tobiasBora>
clever: well on a fresh system, nix isn't installed
<clever>
building '/home/tobias/nix/store/14dp8ydgcxzfsa3k2pihjsw9lr4sc6pf-bash-4.4.tar.gz.drv'...
<clever>
i am now generating a store, for an example home, that doesnt exist
<srhb>
johnhamelink: Missing the init stuff on purpose?
<krey>
I just did a nixos-rebuild switch and seem to have lost 10GB of disk space in the process
<krey>
any leads on how to reclaim it?
<clever>
krey: to start with, try just a normal `nix-collect-garbage` and see how much you regain
alexteves has quit [Remote host closed the connection]
<johnhamelink[m]>
srhb: I don't think so :D What am I missing? :)
<{^_^}>
[nixpkgs] @hschaeidt opened pull request #36988 → stabber: init at 2017-11-09 → https://git.io/vxkxW
<srhb>
johnhamelink: I'm a bit puzzled. As far as I can see ohMyZsh doesn't even enable programs.zsh on its own, so I'm wondering where you saw the final zshrc file
<krey>
clever: I just ran it with -d, about 1 GB freed
<clever>
krey: with or without root?
<krey>
clever: without
<srhb>
johnhamelink: I mean I don't see programs.zsh.interactiveShellInit in your gists.
<clever>
krey: -d with root will delete more
<johnhamelink[m]>
srhb: I ran `nixos-option programs.zsh.interactiveShellInit` to see what the value was?
<krey>
clever: ooh, didn't know there was a difference
<srhb>
johnhamelink cat /etc/zshrc please
<johnhamelink[m]>
srhb: I'll send you the output of that command :)
<johnhamelink[m]>
srhb: sure
<srhb>
The fact that it even exists has me puzzled. I wasn hoping it didn't, because then it was a simple matter of programs.zsh.enable = true; :P
blankhart has joined #nixos
<srhb>
I was*
<johnhamelink[m]>
srhb: `cat: /etc/zshrc: No such file or directory`
<clever>
krey: it stops garbage collection after it deletes 5gig of garbage
<johnhamelink[m]>
srhb: for sure! I'll comb through that. Thanks for your help ⭐
<tobiasBora>
clever: I tried you last command (for now on my main computer with nix installed), but I get an error: error: invalid setting for NIX_REMOTE, ‘local?root=/home/leo/rootfs/’
Sonarpulse has joined #nixos
<tobiasBora>
(I replaced clever with leo in the command)
Ross has joined #nixos
<clever>
tobiasBora: thats a nix 2.0 command
<tobiasBora>
good point
<tobiasBora>
clever: and if I want to run it on alpine (that has nix2), then I think that I wrongly configured the paths after the compilation because I get some errors like
<tobiasBora>
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
<tobiasBora>
do you know how I can set it up? I tried make install after make, but it does not exist...
chessai has quit [Ping timeout: 264 seconds]
digitus has joined #nixos
<clever>
tobiasBora: you still need to setup NIX_PATH via nix-channel
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #36990 → pixman: fix on Darwin → https://git.io/vxkhF
<johnhamelink[m]>
I can make my terminal usable by adding `export TERM=xterm-256color` or any other $TERM which is in the terminfo directory
<johnhamelink[m]>
(but if I do I still get those errors when the terminal opens)
<tobiasBora>
clever: hum... I've no idea how to do that... for now I've just a bunch of exec files in /tmp/nix/src/nix-<name of exec>/<name of exec>. I tried to mimic my nix.sh profile by using export PATH=$NIX_LINK/bin:$NIX_LINK/sbin:$PATH, but it does not change anything
<clever>
tobiasBora: download nixpkgs somehow (git clone, or nix-channel), and then point NIX_PATH at it
<srhb>
johnhamelink: Oh, if it's not there at all.. Hmm.
<jtojnar>
can I just sed binary files to replace /nix/store with /usr/store (for use within chroot)
<srhb>
johnhamelink: How did you install it again?
<johnhamelink[m]>
srhb: 2 secs I'll get you a definitive answer :)
<srhb>
johnhamelink: If you're okay with a global install, it could be as simple as adding termite.terminfo to your systemPackages
<tobiasBora>
clever: ok thank you, I'll try it
<srhb>
johnhamelink: But honestly I'm a bit shaky on how the terminfo stuff works
<srhb>
johnhamelink: (Actually, that will probably put you square in that issue linked previously, :|)
<srhb>
Sorry, I don't know enough here.
<johnhamelink[m]>
srhb: sorry I'm trying to figure out where zsh is coming from 😂
<coconnor>
34 pages of pull requests on github for nixpkgs project. Whew.
c00kiemon5ter has joined #nixos
<gchristensen>
whew that is a lot
<coconnor>
2k+ issues. Aye. A lot on both counts.
<gchristensen>
844 ... we need to step up our game, we've only merged 1,330 in the last 30 days!
<gchristensen>
(I say, kidding, extremely thrilled we've merged 1,330PRs in 30 days)
<srhb>
johnhamelink: In order for the terminfo (termite.terminfo pkg) to be available to the system, you'll need to add it to your systemPackages. That *should* propagate to /run/current-system/sw/share/terminfo -- I think! However, I'm unsure from that issue whether that'll actually be in TERMINFO_DIRS at the right time
<srhb>
johnhamelink: But I think it's cheaper to just try it out rather than figure out the internals. :)
<coconnor>
cool! I'll be curious what impact auto-merge will have.
<roconnor>
I'm irritated that htop doesn't run properly in konsole.
krey has quit [Remote host closed the connection]
<gchristensen>
coconnor: to be clear this is _unattended_ merge, not "auto-merge"
<srhb>
Eh, one step at a time. :-)
<johnhamelink[m]>
srhb: agreed! Let me give it a go and see what happens :D I should add `termite.terminfo` to my global packages as opposed to my user's packages, right?
<gchristensen>
I don't plan to ever build something to merge a PR which hasn't been looked at
raynold has joined #nixos
<srhb>
johnhamelink: Yes. Though honestly I'm pretty sure installing it in your user packages will populate ~/.nix-profile/share/... too -- but not sure that's sufficient.
<srhb>
Ideally it should be, obviously.
Judson has joined #nixos
<johnhamelink[m]>
srhb: I just added it to my user's packages and it seems to have fixed it! :)
<srhb>
woo
<srhb>
Apparently I'm too much of a pessimist. Who would have thunk :)
Judson is now known as Guest96958
maximiliantagher has joined #nixos
<johnhamelink[m]>
srhb: thank you for your help! :D One quick question though - why are the termite and termite.terminfo packages separate?
<srhb>
johnhamelink: I imagine you could want the terminfo on a remote headless system where the application itself is nonsensical.
* srhb
waves hands
<johnhamelink[m]>
srhb: aah, I guess that does make sense
<srhb>
I'm basically just saying words that are vaguely terminal related. You should look for an authoritative source. :P
<johnhamelink[m]>
srhb: I think I might send the maintainer an email to see if they could fill me in :)
<gchristensen>
coconnor: probably the next thing after this will be the ability to put a merge command in the body of the PR by a trusted user, so the PR can be opened, checked, merged automatically
<srhb>
johnhamelink: I think it's recurring for just about every terminal that has its own terminfo :)
<srhb>
johnhamelink: And split packages are usually good! It means you can easily get subsets of packages.
<srhb>
johnhamelink: (This, for instance, is why we often don't have -dev packages like other distros. Instead, we just have separate outputs)
<johnhamelink[m]>
srhb: I'm all for that, but how would I discover that package exists? If I search on https://nixos.org/nixos/packages.html#termite I don't see this (same for options). So how would I discover this package if not for this amazing channel? :D
[Leary] has joined #nixos
<coconnor>
gchristensen: what are your thoughts on an implicit merge command for PRs by trusted users with low impact (defined by number of packages rebuild count)?
jtojnar has quit [Quit: jtojnar]
<srhb>
johnhamelink: Yes, that's an issue. Ideally it should fold out and show you all the outputs I guess.
<gchristensen>
coconnor: bad
<srhb>
johnhamelink: You can follow the link to the definition though
<johnhamelink[m]>
srhb: out of interest, how did you find that package? Are you doing things differently to me?
<gchristensen>
a PR can be low impact on purpose or by mistake, implicitly merging low-impact PRs means disregarding the author's intentional decision to leave out the merge command
<johnhamelink[m]>
Ahh I see :)
<coconnor>
gchristensen: understood
<srhb>
johnhamelink: Though if I'm reading that correctly, the default output already links in the terminfo. Hmm.
<srhb>
Oh, no, I misread.
<srhb>
Nevermind :)
<krey>
are people using 18.03?
MinceR has quit [Ping timeout: 264 seconds]
<srhb>
krey: iiish.
<srhb>
krey: Honestly I'm on NixOS-frankenOS
<srhb>
>>
<gchristensen>
really? going teh michaelraskin route?
<srhb>
gchristensen: If by that you mean #YOLO -- yeah!
<gchristensen>
nice
<krey>
srhb: huh?
<srhb>
I mean every part of this hardware is already falling apart, so if the OS crashes and burns, meeh.
<srhb>
krey: I do pull in a few things from 17.09 and -unstable as well
MinceR has joined #nixos
<krey>
srhb: ah, same here
marusich has quit [Ping timeout: 252 seconds]
<coconnor>
Have a CI that pulls master and nixos-rebuild on success. Latest and most on fire for me!
<srhb>
:o
<srhb>
I feel outclassed.
alexteves has joined #nixos
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<coconnor>
go go jenkins plus dangerous hacks
marusich has joined #nixos
<sphalerit>
johnhamelink: o/
alexteves has quit [Remote host closed the connection]
<srhb>
reber: nix the language, nix the package manager, NixOS (the system). Sorry, I was unclear. I mean there's several manuals, depending on what you want specifically :)
<coconnor>
srhb: seriously tho, the setup has collected years of detrious. Cleaning it up then will publish a bit on it. "an alternative approach" kinda thing
<tobiasBora>
clever: ok, so step by step, I go further
<tokudan[m]>
could someone look at the firefox-bin PRs #36921 #36922 and #36923 and merge them? firefox shows warnings that it cannot download updates, these PRs fix that.
<tobiasBora>
now the build fails on "error: cloning builder process: Operation not permitted
<clever>
tobiasBora: you may need namespace support to build it, and i suspect proot makes it worse
<tobiasBora>
it is because on debian, CAP_SYS_ADMIN is not enabled I thikn
<LnL>
reber: if you're looking for information on the cli you'll probably find more in the nix manual, there's also this if you are familiar with apt https://nixos.wiki/wiki/Cheatsheet
<reber>
i'm looking for a (very) old version of firefow
<tobiasBora>
clever: I do need namespace support to build it? And I think to remember that even without proot it also fails... So there is no way to avoid namespace when I want to build with nix??? :'(
<tobiasBora>
clever: or is it just because we do some strange tricks in this command that we can't use namespaces ?
<clever>
tobiasBora: i suspect that the NIX_REMOTE=local?root= uses namespaces to get the job done
<clever>
tobiasBora: if you remove that, and create the /home/$X/ it would work without them, i think
<srhb>
reber: How old approximately?
<tobiasBora>
clever: indeed, when I remove the options it goes a little bit further
<tobiasBora>
(then it segfault, but it's another question I guess)
dan_b has quit [Ping timeout: 246 seconds]
<srhb>
reber: (Note that you'll probably have to rebuild the world, including the standard tool chain, in order to do this. But it'll be transparent at least.)
rardiol1 has quit [Ping timeout: 264 seconds]
<tobiasBora>
I hate segfaults...
<LnL>
srhb: the cache has versions all the way back to 31.0
<srhb>
LnL: That's, like, 2014!
<tobiasBora>
and I'm pretty sure it's due to proot builder for '/home/leo/nix/store/gkmndl1ji3w2pqll766g2vq7dwh2hl04-0001-Fix-missing-build-dependency-for-pods.patch.drv' failed due to signal 11 (Segmentation fault)
<alhariel>
so ive downloaded the image with the kde interface, created partitions etc, but despite being able to connect to wifi networks i cant access the internet, no pages will load in firefox
<alhariel>
ill be afk for a few mins so thanks in advance for any replies
<rawtaz>
alhariel: start by the basics - can you `ping 8.8.8.8` ?
fendor has quit [Ping timeout: 260 seconds]
maximiliantagher has joined #nixos
<rawtaz>
if yes, you probably dont have DNS resolution set up correctly. if not, it might be a lacking default gateway, in which case you should still be ablet o ping your default gateway's IP. if you cant even do that, then the networking problem is more fundamental, you might not even have an IP on the wifi network (check using `ip a`)
zzamboni has quit [Ping timeout: 264 seconds]
<srhb>
I think I recall having to kick the dhcp client on manual wifi setup, but not sure about the kde livecd.
<srhb>
(I assume it's just networkmanager underneath that)
rogue_koder has joined #nixos
peterzky has quit [Quit: WeeChat 2.0]
maximiliantagher has quit [Ping timeout: 240 seconds]
<Ralith>
still got some weird random bugs with things that can't find it (especially pinentry-curses) but zsh works fine
maximiliantagher has quit [Ping timeout: 240 seconds]
<johnhamelink[m]>
Ralith: srhb we did - I'm intrigued to know if you had the same issue and if you solved it the same way?
<Ralith>
johnhamelink: the `termite` package should implicitly bring in the terminfo, though, the separate output is only there for when you *only* want the terminfo
<Ralith>
mine's not installed explicitly
<johnhamelink[m]>
Ralith: interesting...
<Ralith>
my original issue was a bug in zsh, which got fixed
<Ralith>
these days I just have `programs.termite = true` in my home-manager config
<srhb>
reber: Substitute commithash for the actual hash of the revision
<Ralith>
srhb: from my skimming like johnhamelink was somehow managing to install termite without its terminfo, which shouldn't be possible
<Ralith>
it sounded like*
<srhb>
Agreed.
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<johnhamelink[m]>
Ralith: I suspect its something to do with the fact I installed termite as a package for my user as opposed to installing it globally (by adding to `users.users.john.packages`)
<Ralith>
johnhamelink: that should work fine
<johnhamelink[m]>
Ralith: yeah... its just the only thing that might be seen as out of the ordinary in my config (from my very limited experience of using Nix for the past 5 or 6 days, lol)
<srhb>
reber: That will drop you into a shell in which that version of firefox is available.
<alhariel>
rawtaz: i can ping 8.8.8.8
<Ralith>
hm, looks like the `terminfo` output is indeed the sole source of the file; I don't really understand the logic for when you get all the outputs of a package and when you get just `out` but perhaps it's what you're running afoul of
<srhb>
Ralith: I think it's just meta.outputsToInstall
<jtojnar>
What is the best way to copy nix store closure into a chroot directory? I want the folders to be writable so I can clean up later. At the moment I just cp -r and then chmod +w all directories later.
<reber>
in wich directory is it installed ?
<rawtaz>
alhariel: then check your DNS configuration
<srhb>
reber: Everything is always in /nix/store/somehash-program/...
<srhb>
reber: "Install" is tricky in Nix
<Ralith>
srhb: surely that doesn't contain "terminfo" by default, and yet my environment works
<srhb>
Ralith: I'm probably mistaken then. :/
<clever>
jtojnar: with nix2, you can `nix copy --no-check-sigs --to local?root=/home/clever/chroot/ /nix/store/foo`
<clever>
jtojnar: that will create a new store in the chroot directory, with the complete closure
<srhb>
reber: In this case (nix run), it will simply live there until you garbage collect your nix store.
<rawtaz>
alhariel: you can also try `ping www.google.com` and `host -va google.com` if you have the latter
<srhb>
reber: The command helpfully sets up your PATH in that shell in order to have the /nix/store path available.
<Ralith>
on another subject, what's the proper way to update a 17.09 install to nix2? is that a good idea to do or should I just wait for 18.03?
<clever>
Ralith: you can just nix.package = pkgs.nixUnstable; in configuration.nix
<srhb>
Ralith: I believe it's just nixpkgs.package -> nixUnstable on 17.09
<srhb>
Oh, right, nix.package...
<srhb>
Ralith: Whether or not your should upgrade... It Should Be Safe. :-)
<reber>
it's installed how can i run it ?
<alhariel>
rawtaz: ping www.google.com worked, but still couldnt get firefox to load pages, so i closed & reopened and everything works fine.. go figure
<srhb>
reber: Simply firefox :)
<rawtaz>
alhariel: nice
<reber>
o.O
<srhb>
reber: And only until you exit that shell will it point to that firefox.
<reber>
i already have firefox installed o.O
<srhb>
reber: Think of it as a completely ephemeral environment
<jtojnar>
clever: that will still not make the directories writeable but it is nice
<srhb>
reber: Sure, but look at: echo $PATH
hotfuzz_ has joined #nixos
<srhb>
reber: You should see a long path at the very start of it
<reber>
ah ok true :)
<reber>
yeah
<reber>
and if i want to restart it after i close this shell ?
<srhb>
reber: Open the shell again
<srhb>
reber: Same command.
<reber>
o.O
<Ralith>
srhb: does that get me a reasonably recent version or do I need to pull it in from a different channel?
<reber>
really ? (what a pain)
<srhb>
reber: It doesn't redownload or anything if it's already present
<srhb>
reber: You can also just point directly at the store path
<reber>
course yes but ... o.O
<srhb>
/nix/store/.../bin/firefox
<reber>
aye
<reber>
better
<srhb>
Or you can install it in a _different_ sense, but how will you manage collissions then?
<srhb>
I think you're better off with a shell script that holds onto the command for you :-)
<srhb>
Because that way, you get isolation.
<srhb>
Ralith: Lemme check...
hotfuzz has quit [Ping timeout: 265 seconds]
<srhb>
Ralith: It's still some pre-blah version on 17.09
<srhb>
Ralith: iirc it's not very old though. Perhaps even identical.
<Ralith>
kay, will have a go
<slabity[m]>
Hey guys. For some reason nearly every nix action I try to perform fails with "has '' has wrong length for hash type 'sha256'"
<slabity[m]>
This only started happening after I did a nixos-rebuild, and I can't seem to revert back
<clever>
slabity[m]: what does `sudo nix-channel --list` report?
<slabity[m]>
No configuration changes, just a system upgrade
<srhb>
slabity[m]: You should be able to rollback by manually invoking the activation script, worst case.
<coconnor>
which would have included a nix upgrade IIRC. difference in nix 2.0 behavior?
__Sander__ has quit [Quit: Konversation terminated!]
<clever>
slabity[m]: or just picking an older generation in the grub menu
<srhb>
coconnor: The activation script?
<slabity[m]>
clever: the only channel is nixos-unstable
<clever>
slabity[m]: what about something simple like `nix-build '<nixpkgs>' -A hello --arg config '{}'`
<gchristensen>
slabity[m]: maybe include --show-trace and paste the whole log
<slabity[m]>
clever: same issue. I'll print the full trace in a moment
Slabity has joined #nixos
<reber>
thanks for your help srhb :)
<reber>
very reactive, lots of helps and explanations, thanks a lot :)
<gchristensen>
slabity[m]: also include `nix-info -m`'s output in the pastebin
<{^_^}>
→ 9a10c55a by @xeji: pythonPackages.nevow: fix build, 0.14.2->0.14.3
<{^_^}>
→ c8a7aa1e by @dotlambda: Merge pull request #36944 from xeji/nevow
hariel has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @xeji to staging « pythonPackages.nevow: fix build, 0.14.2->0.14.3 »: https://git.io/vxIcI
<reber>
srhb, do you think i can chroot to have a clean ~/ dir
<reber>
?
* reber
thinking of this solution...
Ross has quit [Ping timeout: 276 seconds]
alhariel has quit [Ping timeout: 276 seconds]
<woffs>
Slabity, clever what if you set sha256="" ?
<gchristensen>
woffs: that isn't permitted
<gchristensen>
IIRC it was for a time due to a bug
<clever>
woffs: there was a bug in nix that allowed it, i suspect Slabity's problem is because it was fixed
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @xeji to release-18.03 « pythonPackages.nevow: fix build, 0.14.2->0.14.3 »: https://git.io/vxIca
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #37000 → glm: fix darwin build → https://git.io/vxIc1
reinzelmann has joined #nixos
<Slabity>
So... Why can't we allow disabling hash checking manually?
<ottidmes>
clever: Pff, I just had a kexec loop on all my remaining generations, luckily I had sshd running in the background so with carefull killing of processes I managed to break it, ah well, managed to fix quite a few edge cases I missed before
<clever>
ottidmes: heh
Ross has joined #nixos
<srhb>
reber: I'm sure you could script that :)
<clever>
Slabity: builtins.fetchTarball doesnt need a hash
jensens has quit [Ping timeout: 248 seconds]
<srhb>
reber: easier might be to just check if it respects $HOME and just set that.
<rnhmjoj[m]>
what is nixpkgs policy on using external libraries bundled with the source? should it be avoid entirely or it's just preferable to build with system libraries when possible?
<reber>
aye true
<coconnor>
I mean.. Jackrabbit for 18.09 is great and all but I was hoping for Jackalope XD
<srhb>
rnhmjoj[m]: There's definitely examples of packages with included libraries, so I'd say it's a strong preference to have them in-tree as real derivations.
<hariel>
is there something else i have to set before including vista-fonts
<srhb>
hariel: At a guess, it's unfree,
<gchristensen>
hariel pkgs.vista-fonts maybe?
<ottidmes>
hariel: pkgs.vistafonts
<srhb>
Oh, that simple... :-)
<hariel>
i see
<hariel>
thanks
<gchristensen>
srhb: unfree shouldn't cause undefined var errors
<srhb>
Really? I must have forgotten.
<srhb>
Does it give an actual unfree warning then?
<gchristensen>
yeah
<jtojnar>
ryantm: could you not update the GNOME 3.28 apps?
tmaekawa has joined #nixos
<srhb>
Too easy. We'll be mainstream in no time.
<gchristensen>
srhb: lol
ClashTheBunny has joined #nixos
<tokudan[m]>
reber: firefox -ProfileManager, create a new profile for the old version
<hariel>
how did you find out it was vistafonts tho
<reber>
so that the older version doesn't know anything about the whole system ?
tmaekawa has quit [Quit: tmaekawa]
<tokudan[m]>
reber: isolating the process probably wont help, as firefox checks if there is already a firefox window in the same x server. i'm sure there is a way around that, but i don't know the details
<reber>
wow :(
<gchristensen>
browsers: more magic than you expected
<hariel>
rxvt_unicode_with-plugins and rxvt_unicode-with-plugins, whats the difference?
shabius has quit [Quit: Leaving]
<tokudan[m]>
reber: what firefox does actually makes sense to avoid having 20 firefox processes on a system, but in your case it throws you some sticks and stones
knupfer has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #37004 → teamspeak_client: use qt56 → https://git.io/vxIly
<Orbstheorem[m]>
Hi. So, I'm making a package and testing it with nix-build -E '... callPackage ./pk.nix', Is there any way I can run until configurePhase and be dropped in a shell to see why it won't compile?
<Orbstheorem[m]>
I kinda want git-rebase -i 'edit', but when building not rebasing :P
oahong has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @LnL7 merged pull request #36930 → Fix qca-qt5 build on darwin → https://git.io/vxTYj
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #37008 → pythonPackages.pycurl: Fix darwin build → https://git.io/vxIRq
<boomshroom>
Hello!
rardiol1 has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<robstr>
coconnor: thank you, i will try next time it freeze again - sometimes problems move to others .... hopefully :D
<boomshroom>
One thing that's been bugging me since installing NixOS on my laptop has been the trackpad. 1. How can I increase the mouse speed and 2. how can I enable right click?
<Izorkin_>
how to change in file nixos/modules/system/boot/loader/grub/install-grub.pl parametrs "terminal_output gfxterm" to "terminal_output console"
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<coconnor>
Izorkin_: checkout nixpkgs; change the file; build using updated checkout
contrapumpkin has joined #nixos
<boomshroom>
coconnor: I have a synaptics sections in my configuration.nix and under additionalOptions, am attempting to set corner buttons, but the right click still doesn't work.
<Izorkin_>
coconnor: is there no automatic way?
<boomshroom>
It specifically has `Option "RBCornerButton" "1"`
<coconnor>
boomshroom: are you using KDE or such? I think there is a also a GUI configurator that will reload from a preference file.
<boomshroom>
coconnor: No, I'm using i3.
<reber>
tilpner, tokudan[m] srhb yay it worked \o/ : mkdir ~/testuser; firefox HOME=~/testuser; firefox --no-remote
<coconnor>
boomshroom: are you sure the trackpad is synaptics? There is also the services.xserver.multitouch driver that might help.
<reber>
thanks for all
<boomshroom>
Looking at the ArchWiki, they're claiming that synaptics is being deprecated in favour of libinput, which NixOS also supports.
<reber>
-firefox in my line
<coconnor>
boomshroom: ah! in which case check out hte services.xserver.libinput options :)
<boomshroom>
coconnor: I know that 2-finger scrolling works, and that's set in my synaptics configuration.
maximiliantagher has quit [Remote host closed the connection]
<hariel>
ive read it said somewhere that "only applications should be installed into profiles", that libs like boost shouldnt be included in configure.nix, is that correct?
cx405 has joined #nixos
<neonfuz>
isn't there a cli flag or something to do a "more pure" nix build?
<neonfuz>
idr what it is
<boomshroom>
`Whether to enable touchpad support. Deprecated: Consider services.xserver.libinput.enable.` Looks like NixOS agrees with ArchLinux.
<hakujin>
anyone familiar with "access to path '/nix/store/invgs35iq21m5nqrfin2zq9i9s3shiy2-github-pulls-sorted.json' is forbidden in restricted mode" via a hydra eval?
<hakujin>
using nixpkgs HEAD
John882 has quit [Ping timeout: 246 seconds]
<Orbstheorem[m]>
Is there a standard way to manage doxygen output? (ie. the project I'm packaging provides doxygen documentation)
<{^_^}>
→ 1e822343 by @ryantm: certstrap: 1.0.1 -> 1.1.1
<{^_^}>
→ b60cd4be by @joachifm: Merge pull request #35586 from ryantm/auto-update/certstrap-1.0.1-to-1.1.1
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #37012 → Make "localizations" sane again → https://git.io/vxIEF
<goibhniu>
hariel: hrm, I'm not sure about that ... IIRC it can be sensitive to Qt paths etc. ... but editors would typically be installed outside of nix-shell
<Guanin>
is there any setting I can use to prevent systemd from killing a mounting process? I asked in #btrfs a few minutes ago, I have a 32TB btrfs volume (on mdadm) and it times out on boot
<{^_^}>
→ c7f69d04 by @ryantm: aj-snapshot: 0.9.7 -> 0.9.8
<hariel>
goibhniu also about clang, it can be used as an application (compiler) or as a library, so if it can be used as an application should it not be in configure.nix?
<{^_^}>
→ 809057ce by @joachifm: Merge pull request #36422 from ryantm/auto-update/aj-snapshot
<{^_^}>
→ 6edbf98d by @ryantm: calc: 2.12.6.3 -> 2.12.6.6
<{^_^}>
→ d703988c by @joachifm: Merge pull request #36483 from ryantm/auto-update/calc
<MichaelRaskin>
Heheh
<gchristensen>
joachifm: let me know when you're tired and I can turn it back on :)
<hariel>
i see
peciolo has quit [Ping timeout: 260 seconds]
<hariel>
im getting some warning upon running nixos-install "warning: in configuratioin file '/etc/nix/nix.conf': unknown setting 'signed-binary-caches'"
loonquawl has joined #nixos
<ottidmes>
hariel: You probably did update to nix 2.0?
<hariel>
im just installing for the first time on physical machine, no updates
<kini>
I did `nix-env -i gcc`, and that pulled in the gcc-7.3.0-man derivation, but symlinks to gcc man pages don't seem to have been installed into ~/.nix-profile/share/man
<kini>
am I doing something wrong?
<ottidmes>
hariel: What does nix-daemon --version return?
<hariel>
1.11.16
<cx405>
ottidmes: hai! I have tried various things. It looks like both phonon4 and phonon5 are installed. I have tried pulling unstable phonon. Still nothing.
<hariel>
im running this from the image with kde, not from the installation
<cx405>
ottidmes: #27050 is the bug
<cx405>
ottidmes: I have tried adding both phonon-gstreamer and phonon-vlc, but nothing showed up.
<ottidmes>
hariel: Anyway it should be harmless, that setting has been replaced by require-sigs, which is enabled by default
<hariel>
i see, thanks
jarth has joined #nixos
<ottidmes>
hariel: Once nixos 18.03 is out it will no longer add this setting to the nix.conf
maximiliantagher has joined #nixos
<ottidmes>
hariel: For now you could set nix.requireSignedBinaryCaches = false; to prevent it from adding this setting, but I would not recommend using it, because I believe in 18.03 this affects the require-sigs setting, which you probably want to keep at true!
<ottidmes>
cx405: I know the issue, but did you try my "solution" (more of a temp hack)
<maurer>
Anyone familiar with carnix? I'm getting:
<ottidmes>
cx405: But for the solution to work, I need to know where phonon4qt5_backend is located in your nix store, hence my question
<maurer>
ERROR 2018-03-14T19:46:59Z: carnix: Could not resolve some sources
<maurer>
when trying to use packages located in a git repository
robstr has quit [Remote host closed the connection]
<ottidmes>
cx405: Did you manage to find the phonon4qt5_backend file in your nix store?
robstr has joined #nixos
<cx405>
ottidmes: one second
maximiliantagher has quit [Ping timeout: 264 seconds]
chessai has quit [Remote host closed the connection]
<LnL>
maurer: pretty sure git sources are not supported (yet)
knupfer has joined #nixos
<maurer>
Hrm, OK.
<cx405>
ottidmes: but I dont understand many things. Why I have qt4 backends? Why gstreamer has qt4 AND qt5 backend?
robstr has quit [Ping timeout: 240 seconds]
<maurer>
I guess I could cut an 0.1.0 release of my crate, just don't want to clutter up crates.io with stuff that isn't especially suited to general use yet
<ottidmes>
cx405: That seems pretty problematic, you can fix the paths all you want, but if the file is not installed somewhere to begin with, that is the first problem you would have to fix
ryanartecona has joined #nixos
<cx405>
ottidmes: I tried to explicitly pull both, so both files must be present
<ottidmes>
cx405: I just checked my own store, I do have /nix/store/ykzwxnwkczz2smwmjsgqdq4b571f1m5y-phonon-qt5-4.9.1/lib/libphonon4qt5.so, maybe it is an alias for that file?
hakujin1 has joined #nixos
<neonfuz>
can I manually set $out while testing a nix build?
<neonfuz>
I can't figure out how to do it
<neonfuz>
so I can test a package installing (nix-shell fails during installPhase because of no write permissions to /nix/
<MichaelRaskin>
Yes, and you probably want to do it as early as possible
<cx405>
ottidmes: when you go to system settings > multimedia (bottom) > sound and video (bottom) > backend (on far right), do you see any backends?
hakujin has quit [Ping timeout: 240 seconds]
reinzelmann has quit [Quit: Leaving]
<cx405>
ottidmes: also, may I ask if you have pulseaudio installed?
<ottidmes>
cx405: I do not use KDE, only some Qt applications
<MichaelRaskin>
neonfuz: or use user namespaces…
<ottidmes>
cx405: I do have pulseaudio enabled, generally a good idea
<hariel>
so i have a working system but xmonad default keybindings do not seem to work
<neonfuz>
MichaelRaskin: do I just set $out? I tried that and it didn't work
maximiliantagher has joined #nixos
<MichaelRaskin>
I would expect it to work if done before any build steps
<cx405>
ottidmes: what I find strange, is that NixOS images are shipped with KDE desktop and have this bug.
<ottidmes>
cx405: /nix/store/9nh2mg8kd14qa6c2hw0cw81lm494qig6-phonon-backend-vlc-qt4-0.9.0/lib/kde4/plugins/phonon_backend/phonon_vlc.so is the most likely candidate for the file you are looking for, since if I google for the file actually being looked for, they all contain phonon_vlc.so as well, e.g. (from random snippet on the internet): /usr/lib64/qt5/plugins/phonon4qt5_backend/phonon_vlc.so
shabius has quit [Quit: Leaving]
<neonfuz>
I ran "out=$(pwd)/out genericBuild" and it failed at install phase trying to write to /nix/...
<neonfuz>
so it somehow still wanted to build as if I didn't set out
<neonfuz>
btw this is a cmake built program
<mpickering>
How do I get the ability to add labels to issues on the issue tracker? It seems silly to read an issue but not be able to add tags to it
<MichaelRaskin>
Hmmmm
Drakonis[m] has quit [Changing host]
Drakonis[m] has joined #nixos
Drakonis[m] has joined #nixos
<neonfuz>
this is important because currently my build fails at install phase
hakujin2 has joined #nixos
<MichaelRaskin>
Maybe hooks have set cmake flags before you had a chance to override anything…
<ottidmes>
cx405: So what if we make some derivation that copies over that lib from its actual package and places it in one of the locations being searched for, worth a try, let me see if can write on quick
shabius has joined #nixos
<neonfuz>
yeah i should look at the cmake hook maybe
<MichaelRaskin>
neonfuz: I would just run it inside an unshare
<cx405>
ottidmes: I think its not required, friend..
<ottidmes>
cx405: What do you mean, you doubt that that is causing the bug, or what?
<cx405>
ottidmes: I think I have done my best to report the problem. Lets hope that maintainer pings back.
shabius has quit [Remote host closed the connection]
<cx405>
ottidmes: I don't want you to invest time unnecessary, for workarounds, if you can understand.
<neonfuz>
the problem is this program has nested builds "in the project root and also in ./external/<thing>/", and somehow the external builds are failing because they think their root is the main project root
shabius has joined #nixos
<neonfuz>
this might be a problem with the program btw, not really sure why it's happening
shabius has quit [Remote host closed the connection]
maximiliantagher has quit [Ping timeout: 264 seconds]
hakujin1 has quit [Ping timeout: 264 seconds]
shabius has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
<hariel>
does anyone here have xfce+xmonad working?
<nand0p>
im usually able to isolate the broken package, and either comment it or fix it (sometimes resulting in PR), but this time i am a bit stuck. any help would be appreciated. im not clear if i should open a github issue, or if this is user error ( i need to declare a package i am missing?)
<mpickering>
is that the full log?
<nand0p>
the log file specified in output does not exist
shabius has quit [Client Quit]
<mpickering>
use -K to keep the build directory and it will be in there
John882 has joined #nixos
<nand0p>
ok i will try that. further up in the output, i see:
<elvishjerricco>
hariel: I think the default display manager is SLiM. On top of that being obsolete (i.e. you should switch to something like lightdm), you have to press F1 to choose the right session
<gchristensen>
oh! botbot is back!
maximiliantagher has quit [Remote host closed the connection]
orivej has joined #nixos
maximiliantagher has joined #nixos
<ottidmes>
cx405: I think I might have solved your issue, add these to your systemPackages: libsForQt5.phonon-backend-gstreamer libsForQt5.phonon-backend-vlc
<CrazedProgrammer>
clever: so, using overrideDerivation worked. it compiled but when booting it could not mount the root filesystem. it was the same issue when trying to apply the kernel_gcc_patch. i'll do some digging in the compile log to see what went wrong. thanks anyways!
<nand0p>
mpickering: looks like log file is over 3000 lines,... too big for pastebin and github gist. how can i provide useful output? perhaps you only need the latter half of log file?
<hariel>
elvishjerricco i have lightdm, but there is not option to change sessions, i think this happens when theres only 1 option?
<infinisil>
Why don't we switch to a non-obsolete window manager as default? I think that's worth considering eventually
<infinisil>
display-manager i mean
<gchristensen>
I thought we were going to switch to lightdm by default?
<elvishjerricco>
hariel: there should be an option; left-most button in the top right corner.
<ottidmes>
cx405: Although I do see it refers to qt5.9 and not qt5 in your list of paths, but that might be us having different environment (lets hope so, otherwise that is the bug)
<infinisil>
Looks really sweet, but I couldn't do it
<infinisil>
Maybe a bit unnecessary though heh
<infinisil>
it's just a display-manager after all
<cx405>
brb
<boomshroom-away>
Got libinput running. So smooth...
cx405 has quit [Quit: Konversation terminated!]
<infinisil>
boomshroom-away: with a touchpad?
boomshroom-away is now known as boomshroom
<boomshroom>
infinisil: Yup.
<coconnor>
boomshroom: did you remove/disable services.xserver.synaptics?
<infinisil>
I haven't had a a great experience with libinput
<boomshroom>
I can even right click!
<boomshroom>
coconnor: I commented it out.
<elvishjerricco>
infinisil: I just switched to it and it has WAY better defaults than synaptics
<boomshroom>
Which is something I can say only because this is NixOS. :D
<boomshroom>
I suppose I should have just disabled it and left the configuration there.
maximiliantagher has quit [Remote host closed the connection]
<MichaelRaskin>
Well, commenting out the driver configuration in Xorg.conf would work on other distributions…
hakujin2 has quit [Ping timeout: 256 seconds]
<boomshroom>
MichaelRaskin: Yes, but on other distrobutions, commenting does not equal uninstalling.
<MichaelRaskin>
boomshroom: I guess on the last iteration of my A/B LFS that I used before NixOS, I would have a possibility to comment out as in temporary uninstall. Would just need to reconfigure the huge magic unionfs
<boomshroom>
MichaelRaskin: Funny you should mention LFS. My latest LFS installation was interupted by the realisation that what I was doing was already done in Nix. I then installed NixOS and haven't looked back.
<boomshroom>
Though the manualness is still cool.
newhoggy has joined #nixos
tertle||eltret has joined #nixos
<MichaelRaskin>
I actually used A(utomated)/B(eyond), still got the transparency and configurability
<cx405>
ottidmes: unfortunately it backends are not there. nixos-rebuild switch has added libva and vlc, I rebooted the machine and on reboot did nix-collect-garbage, yet they are still missing in settings/multimedia.
<cx405>
ottidmes: this has an effect, that firefox is muted for example, but some applications output through alsa plugin, like freeorion or palemoon.
shabius has quit [Quit: Leaving]
newhoggy has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
shabius has joined #nixos
<boomshroom>
MichaelRaskin: I've actually considered building an LFS-like installation using Nix, but without using Nixpkgs.
<ottidmes>
cx405: Add this to your systemPackages and it should hopefully work: https://pastebin.com/7j6mjv3J I just tested it with one of your paths and it works
timon37 has quit [Read error: Connection reset by peer]
shabius has quit [Remote host closed the connection]
<MichaelRaskin>
boomshroom: briefly used at SimplyMEPIS after my third and last ABLFS iteration (the unionfs one), just to look at the opposite side of the spectrum. It mutated into effectively Debian unstable over a short time, and then I stumbled upon NixOS…
<ottidmes>
ls /run/current-system/sw/lib/qt-5.9/plugins/phonon4qt5_backend (copied from your issue comment) now returns: phonon_gstreamer.so phonon_vlc.so (yay! that is, if this is all that is needed)
shabius has joined #nixos
jensens has joined #nixos
<infinisil>
Ah I see there are more options since last time I used the libinput nixos option
<cx405>
ottidmes: do I need to relogin or reboot after switch? Its building now.
<cx405>
ottidmes: I can read through expression and understand most of it, although I still can't write my own.
newhoggy has joined #nixos
<ottidmes>
cx405: It should just work after nixos-rebuild switch, but you might need a restart/relogin for everything to properly work (some apps might not try again to look for the lib for example)
<cx405>
ottidmes: YAY!
<ottidmes>
cx405: it works? :D
<cx405>
ottidmes: :) worked without loging out! I am gonna publish the changes in the ticket using your name, if you are not against!
johannjohann has joined #nixos
rardiol1 has quit [Ping timeout: 240 seconds]
<cx405>
ottidmes: yes, both of plugins now list in the dialog. Its probably true that paths are hardcoded. However, I dont understand why did maintainer close the bug...
maximiliantagher has quit [Ping timeout: 276 seconds]
<cx405>
ottidmes: thank you very much!
jtojnar has quit [Read error: Connection reset by peer]
<ottidmes>
cx405: Sure go ahead, the proper fix would be to patch those 2 libs to point to qt5 as well, but I leave that to the maintainer (I am not familiar enough with the packages)
maximiliantagher has joined #nixos
jtojnar has joined #nixos
aborsu has quit [Quit: aborsu]
maximiliantagher has quit [Remote host closed the connection]
zzamboni has joined #nixos
newhoggy has quit [Ping timeout: 246 seconds]
timon37 has joined #nixos
<cx405>
ottidmes: ok, done #27050
asuryawanshi has quit [Ping timeout: 246 seconds]
<cx405>
ottidmes: thank you very much again!
asuryawanshi has joined #nixos
reber has quit [Remote host closed the connection]
cx405 has quit [Quit: Konversation terminated!]
risciii has quit [Read error: Connection reset by peer]
<manveru>
Profpatsch: that's how the new vgo dependecy file looks like
marusich has quit [Ping timeout: 276 seconds]
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
<gchristensen>
akshay!
<johannjohann>
hey everyone--i have a java program attempting to bind to an address using "::" is getting a 'protocol family unavailable' exception. am i right in thinking that this means my system isnt allowing ipv6 addrs to be bound?
<Profpatsch>
manveru: I think we just have to live with two lines per dependency.
<Profpatsch>
*transitive dependency.
sanscoeu_ has joined #nixos
<Profpatsch>
And build our package wrappers in a way that nix produces the same packages from the same sources.
<Profpatsch>
At least that gives us deduplication on the store-level.
asuryawanshi has quit [Client Quit]
marusich has joined #nixos
<manveru>
johannjohann: what does `ip addr show lo` say?
<johnhamelink[m]>
Hey again folks! I'm trying to hook up mopidy with Pulseaudio. When I play a track I don't see a source in `pavucontrol`. When I run `sudo systemctl status mopidy` I see errors like this in the log output: `[pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11`.
<boomshroom>
Does anyone here have experience with xargo? The rust cross-compilation tool?
<boomshroom>
I'm tempted to reimpliment its functionality in Nix.
humanoyd has quit [Quit: WeeChat 2.0.1]
newhoggy has joined #nixos
<Synthetica>
How do I override a non-toplevel package?
deepfire has quit [Ping timeout: 248 seconds]
<infinisil>
Synthetica: Specifically what? It depends
<Synthetica>
xorg.xorgserver
deepfire has joined #nixos
winem_ has joined #nixos
viric has quit [Quit: mirar]
John882 has quit [Ping timeout: 264 seconds]
<infinisil>
Synthetica: I think this should be just xorg.xorgserver.override { ... }
<infinisil>
not tested though
shabius has quit [Quit: Leaving]
Izorkin_ has quit [Ping timeout: 268 seconds]
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
szicari has quit [Quit: szicari]
zzamboni has quit [Quit: Leaving.]
<boomshroom>
Synthetica: infinisil is right. There's no real diference between top-level and non-top-level packages. xorg.xserver evaluates to an overridable package just like any other.
<boomshroom>
As far as I know
<Synthetica>
Oh, yeah, should've been more clear, I can't assign it back to xorg.xserver for some reason
<Synthetica>
I get the same error when I just try to just do `xorg.xorgserver = optimizeForThisHost pkgs.xorg.xorgserver;`
<Synthetica>
`error: assertion failed at /nix/store/7y4wqpqzh58k9a5rysvkmwgfq993h6q6-nixos-18.03pre130932.cc4677c36ee/nixos/pkgs/development/libraries/dbus/default.nix:4:1`
ryanartecona has quit [Quit: ryanartecona]
<infinisil>
Oh optional dependencies, these always confused me, I don't even know if there's a standard way in nixpkgs to do them
<infinisil>
I just looked at this line in the file in the error btw
Ridout has joined #nixos
endformationage has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
viric has joined #nixos
ryanartecona has joined #nixos
shabius has joined #nixos
<Synthetica>
Turns out `xorg = lib.mapAttrs (name: value: optimizeForThisHost value) pkgs.xorg;` works
<Synthetica>
That's also fine
shabius has quit [Remote host closed the connection]
<hariel>
so when i installed nixos it didnt ask me for a root password..
<tilpner>
And now you can't login?
<hariel>
i can, just cant su
newhoggy has quit [Ping timeout: 264 seconds]
<Synthetica>
Can't you do something like set /bin/sh as init script in grub/systemd-boot to get a root shell?
lord| has joined #nixos
<Synthetica>
Set a password from there
<tilpner>
That's possible, if tedious, assuming that editor is enabled on your system
Ridout has quit [Ping timeout: 248 seconds]
<hariel>
i disabled it, as recommended
johannjohann has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
<Synthetica>
Hmm
<tilpner>
Another option would be to redo the install from the live ISO. It won't rebuild/download everything, but it should let you set a password
<tilpner>
Just mount things into place, and you get another try
hiratara has quit [Ping timeout: 240 seconds]
<hariel>
just by running nixos-install?
<tilpner>
I think so, yes (but I haven't done this myself)
Ridout has joined #nixos
<hariel>
its just weird that it didnt ask me for a password the first time
<hariel>
er i remember pressing the middle mouse button by mistake while the installer was running
<hariel>
must have pasted some random stuff in there
hiratara has joined #nixos
peciolo has joined #nixos
<hariel>
oh well
zzamboni has joined #nixos
MP2E has joined #nixos
<tilpner>
Did you disable mutable user accounts?
<hariel>
yes
<tilpner>
Then everything is working as intended, you just intended the wrong thing :/
zzamboni has quit [Client Quit]
<tilpner>
(At least according to nixos-install comments)
ryanartecona has quit [Quit: ryanartecona]
<hariel>
it doesnt ask for a password when users are non-mutable?
<tilpner>
# Ask the user to set a root password, but only if the passwd command
<tilpner>
# exists (i.e. when mutable user accounts are enabled).
<tilpner>
That's from nixos-install
<hariel>
oh
<hariel>
so theres no root? thats weird
<symphorien>
non mutable users means everything is declarative, so asking would defeat the purpose
<tilpner>
There is root, but you didn't set a password for it? I'm not sure
Ridout has quit [Ping timeout: 256 seconds]
shabius has joined #nixos
<hariel>
it makes sense, but still weird
<tilpner>
It would have worked if you had set a password for root in your configuration
mahalel_ has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
mahalel_ has quit [Remote host closed the connection]
<gchristensen>
there is a root, but the password must be set by setting the hash within the config file
<tilpner>
I agree it's a little dangerous, I still haven't activated that option myself
<ottidmes>
In user-groups.nix they check for this: "If mutableUsers is false, to prevent users creating a configuration that locks them out of the system, ensure that there is at least one "privileged" account that has a password or an SSH authorized key. Privileged accounts are root and users in the wheel group."
mahalel_ has joined #nixos
<gchristensen>
I always turn it on from the first install so there is no danger
mahalel_ has quit [Remote host closed the connection]
infinisil has joined #nixos
<hariel>
yeah i can sudo, just can su
<tilpner>
Oh
<tilpner>
You could have said that :/
<hariel>
lol sorry
<hariel>
cant su*
newhoggy has joined #nixos
<tilpner>
Then you don't need to reinstall, that's good
<joepie91>
er, that was meant to be a link to the post, but I guess the tweet works too..
<hariel>
i was just about to lol
mahalel_ has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
<tilpner>
What happens when you try to use su?
coot has quit [Quit: coot]
<tilpner>
You can try setting users.users.root.hashedPassword, then rebuilding with sudo
<ottidmes>
joepie91: Nice to know that they now support wildcard certificates, I did not know. You make a good point in your post, something to keep in mind :)
coot has joined #nixos
vidbina has quit [Quit: #timewarrior]
<hariel>
tilpner it asks for root passord
vidbina has joined #nixos
Unode has quit [Ping timeout: 276 seconds]
<tilpner>
joepie91 - Another reason to avoid wildcards with specifically LE: they require dns-01 verification, which is really scary to automate, so many people will provide API credentials for the entire domain
<tilpner>
hariel - You can try setting users.users.root.hashedPassword, then rebuilding with sudo
<hariel>
yup will do
rardiol1 has joined #nixos
ClashTheBunny has quit [Ping timeout: 260 seconds]
<joepie91>
tilpner: right, but that's a solvable problem :P
<joepie91>
I'm just focusing on the inherent risk here, of the concept
Unode has joined #nixos
Ridout has joined #nixos
<tilpner>
(pm, this is offtopic)
maximiliantagher has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
maximiliantagher has joined #nixos
<MichaelRaskin>
Hey, there's #nixos-chat specifically for that!
ryanartecona has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<tilpner>
An activation script sets permissions of a directory in my setup, but I just encountered a state where "sudo /run/current-system/activate" altered those permissions. Any ideas?
<tilpner>
I didn't change those activation scripts recently, but I did just upgrade to nixos-18.03. Is there any way that (+ a reboot) could cause an activation script to not... run? Or an old one, maybe?