<Halian>
I just installed NixOS for the first time, and I have a question that makes me look every bit like the gormless noob I am: How do I change my default DE away from KDE (say, to MATE)?
<Henson>
is there a list of old NixOS release ISO images I can download? I want to try installing an old version and experiment with upgrading it to a newer version
<Henson>
found one
<mac10688>
hi all. I'm working to move my /home directory to another partition, but seem to be having issues. It keeps going into emergency mode. I'm doing something similar to what Gabriel439 describes but I keep getting sent to emergency mode
<mac10688>
Is there some trick to moving my /home directory to another partition that I don't know about?
gagbo has quit [Ping timeout: 248 seconds]
<Henson>
mac10688: are you updating /etc/nixos/hardware-configuration.nix to update the filesystem UUID?
gagbo has joined #nixos
<gratin>
anyone know how to change resolution or full screen using virtualbox?
<mac10688>
no Henson . I didn't know about this file
<mac10688>
checking it out!
<Henson>
mac10688: if /home started out on the same partition as your root filesystem, you'll probably have to create a new entry for the new drive and specify /home as being on that
<Henson>
gratin: can you elaborate a bit more?
<gratin>
i set up nixos using virtualbox with xmonad
<gratin>
and i'd like it to be bigger than 1024x768
<gratin>
like 1920x1080 instead
layus has quit [Ping timeout: 258 seconds]
<pie__>
clever, so i never know how this works, i did an mv insteda of a cp and half way through it failed because of a permissions error
<pie__>
does the original location still have all my files
<Henson>
gratin: is it the guest OS resolution you want to change, or the size of the virtualbox window on the host computer?
<clever>
pie__: mv inter-device moves are basically just cp + rm
<clever>
pie__: its more more obvious when you use mv -vi
<gratin>
the guest OS resolution
<pie__>
clever, is there a decent way i can check
<Henson>
gratin: are you able to change it within the guest OS? Are you running xmonad in the guest OS?
<gratin>
yeah xmonad in the guest os
<clever>
pie__: that tends to be a pain, but there is `diff -ru`
<gratin>
idk how i'd change it
<Henson>
gratin: look into "xrandr", that's the command-line tool to update your screen resolution.
<Henson>
gratin: I'm guessing, since you're running xmonad, you don't have access to any graphical system settings tools with which you can change the resolution?
<gyroninja>
gratin: Did you install the guest additions?
<Henson>
gyroninja: good point
<Henson>
gyroninja: would that even work with something like xmonad, though?
<clever>
the guest additions typically include "gpu" drivers for xorg
<gratin>
i think i installed the guest additions
<clever>
and then the resolution of the monitor will dynamically change to match the host window
<gratin>
i'm pretty sure
<gratin>
xrandr worked to change resolution
<clever>
and xmonad will just go along with it
<pie__>
clever, looks like there's no meaningful differences but the source files are all still there for some reason >.>
<Henson>
gratin: excellent!
<clever>
pie__: did you do the mv as root?
<gratin>
there is no 1920x1080 option though which is the size of my physical screen, only 1920x1440
<pie__>
clever, no
<clever>
pie__: root may have owned things in your home, and then mv failed to read them
<gratin>
also full screen ends up with glitchy artifacting and doesn't work so something smells fishy
<pie__>
clever, so it looks like theres nothing wrong but im not sure :c
<gratin>
i'm not sure it has a video driver
<pie__>
clever, that seems to be what happened
<Henson>
gratin: check to see if you've installed the guest additions and are using the display driver. Things should work very smoothly with the guest display driver. It looks like nixpkgs has a ton of different kinds of GuestAdditions packages
<clever>
Henson: you can now nix-env -iA foo.hello
<Henson>
clever: ok. Would that be just for that derivation? I tried using a file as an argument to "nix-channel --add" and it didn't work, but that's because the file:// URI needs THREE slashes instead of two. It appears now to have worked.
<clever>
Henson: this just bypasses nix-channel entirely
<clever>
you just create the above file, with 1 line of content
<clever>
and then nix-env can use it
<Henson>
clever: where "hello" is a derivation described by the default.nix file, and "foo" comes from the fact that it's in the "foo" directory? Does "test" need to be specified anywhere?
<clever>
Henson: the test part can be anything
<clever>
the foo part can be renamed, its just the name you use when dealing with nix-env
<clever>
when you do nix-env -iA nixos.hello, its using .nix-defexpr/channels_root/nixos/default.nix
toppler has quit [Ping timeout: 248 seconds]
<Henson>
clever: is this described somewhere? I'd like to learn more about it, but having some greater context would be helpful, and I don't wnat to ask you a whole bunch of questions.
<clever>
Henson: i read the source for nix-env
<Henson>
clever: without a greater context I'm liable to forget how this all fits together
<v0id72[m]>
Hi all, Can anyone point me to further information about nix-shell and running nix on macOS - or even some tutorials or something. I'm finding that there is a lack of info. Read the manual but would like to understand things more. Can anyone assist?
<Henson>
clever: so is that an alternative to doing an overlay?
<gyroninja>
Is there anyway to silence this message?
Ariakenom has quit [Quit: Leaving]
<gyroninja>
or maybe a better question would be how do I get tools.jar on opendjdk?
<gyroninja>
It doesn't seem to be included with any of the jdk packages minus oracle's
mexisme_ has joined #nixos
drakonis1 has quit [Quit: WeeChat 2.4]
<sveitser2>
Are the nixpkgs completions mentioned above (nix-shell -p python<tab><tab>) somehow available for fish shell?
jackdk_ has joined #nixos
<Henson>
v0id72[m]: do you mean running Nix in a virtual machine on MacOS, or installing Nix packages on native MacOS, or using Nix as a development mechanism for software in MacOS?
<gyroninja>
ls
<gyroninja>
wrong terminal
mexisme_ has quit [Ping timeout: 272 seconds]
layus has joined #nixos
<v0id72[m]>
Henson: nix packages on macOS - I know how to use NixOs on a VM. But want to just use nix-shell on macOS instead to save resources. Looking to later do dev with Nix. right now looking to get a solid grasp on it on macOS. Ran into an issue with installing Firefox and some other programs with it erroring because of dependencies etc. So would really like to get more info so I can solve my own issues.
<Henson>
v0id72[m]: if you just want to use Nix packages on native MacOS, I don't know if that's even possible, as all of the Nix packages are intended to be run in Linux, which is very different than MacOS.
<v0id72[m]>
i got it working. As spacemacs, cmus, gotop and a few other programs installed with no issue.
<Henson>
v0id72[m]: well, I stand corrected! Nix gets cooler and cooler every day as I learn more about it!
<Henson>
v0id72[m]: so, getting back to your original question of wanting more information: do you need more information specifically in a MacOS context, or just in how to use nix-shell and nix in general?
<v0id72[m]>
@Hens ya totally is. But the main issue I keep finding is getting more info.... I need more info - because asking other constantly makes me look terrible and inept.
<v0id72[m]>
lol oops Henson
drakonis has joined #nixos
gagbo has quit [Ping timeout: 245 seconds]
<v0id72[m]>
nix-shell and nix in general I guess. Im solid with macOS - so much so that I installed it on the beta of Catalina - just for the challenge of things.
<drakonis>
did it work?
<Henson>
v0d1ch: I started out reading the Nix pills, which I think were not too helpful, as they gave me an incorrect understanding of how to do certain things. Then I read the nix packages guide, which was quite helpful. Then I started building my own software in it and hanging out in here. The first things I tried to build were quite difficult and required a lot of unusual binary mangling, and then..
<Henson>
oops, directed that to the wrong user
<Henson>
v0id72[m]: I wanted to put all of my custom software in a private area, which required learning about overlays.
<Henson>
v0id72[m]: and then on and on. Now I'm moved on to NixOS and trying to deploy my packages on NixOS. That's a whole other learning curve.
<Henson>
v0id72[m]: nearly all of the things I've learned to do to solve my problems have been thanks to the people in here. The basics are written down, but the fancy stuff comes from experimenting, trying, failing, and not giving up until you get it, and reading the source code for some of the tools, then asking again and finally figuring it out.
<Henson>
v0id72[m]: I asked another person on here how they learned so much, and they said "by osmosis", and that's how it's been for me too.
<gyroninja>
Is there any documentation on how to create a channel? The manual and man pages aren't very specific
<v0id72[m]>
Henson: it's a good learning experience but I really wish that I could just find more info. Especially since I have an issue that tells me to do something like put a line in a file. I do it - but get the same error. It's like Nix is not reading from the directory it told me to have the file in.
<Henson>
v0id72[m]: I found a lot of my problems initially had to do with me not understanding Nix's philosophy of build purity. No unspecified outside side-effects, all dependencies are deterministically calculated and stored in special paths.
<Henson>
v0id72[m]: what's the issue you're having?
<v0id72[m]>
Henson: just booting the machine up.
drakonis has quit [Quit: WeeChat 2.4]
rprije has joined #nixos
<v0id72[m]>
Henson message about allowUnsupportedSystem = true; to the the config file located at ~/.config/nixpkgs/config.nix
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<Henson>
v0id72[m]: so you're trying to boot your Mac into something other than Mac OS?
<v0id72[m]>
no trying to install Firefox or even google-chrome
<rprije>
Does anyone know the story behind dhall-nix in nixos 19.03? I just upgraded and dhall-nix won't install because it's marked as broken. The only related issues I could find on github explained it was due to a hnix breakage but those issues were closed almost a year ago.
Matthieu_ has quit [Ping timeout: 248 seconds]
<clever>
rprije: if you set allowBroken = true; and see what breaks
<jackdk_>
sounds like a haskell package. A lot of those get marked broken to keep hydra moving, I guess? What I usually do if I trip over one go to a checkout of latest nixpkgs, do a `nix-build -E '(import ./. { config.allowBroken = true; }).haskellPackages.whatever'`
<jackdk_>
if that builds, then I fix pkgs/development/haskell-modules/configuration-hackage2nix.yml (there's a list of packages to mark as broken) and submit a PR
<rprije>
Cool, thanks jackdk_
acarrico has joined #nixos
<li_matrix>
anyone using flakes yet?
<Henson>
v0id72[m]: hmm, I don't know if I can be much help in the context of Mac OS :-(
<Henson>
v0id72[m]: nothing's coming to mind other than "did you follow the setup instructions carefully?", which I assume you have.
<v0id72[m]>
Henson: its a Nix issue not the macOS though :(
<v0id72[m]>
sure did :)
pie__ has quit [Quit: Leaving]
ricekrispie has joined #nixos
<Henson>
I would suggest coming back and asking another day at another time. Since Macs are such a common development platform for many people I know, I'm sure there's somebody here who's away from the keyboard who might be able to help you.
<v0id72[m]>
Henson:
<v0id72[m]>
cool thanks
<{^_^}>
[nixos-homepage] @ghuntley opened pull request #282 → corrected az cli instructions for nixos on azure → https://git.io/fjz5W
sir_guy_carleton has joined #nixos
<v0id72[m]>
Henson: Looks like I figured it out. :) Now to see if it gets built properly or errors.
* Henson
crosses his fingers
<v0id72[m]>
Henson: Lol error :( At least I got further this time. Odd that I keep getting dependency errors. As I thought that how I installed it should have found all the dependecies and installed them. Looks like libs are going to be the bain of my existence!!!
emacsomancer has quit [Ping timeout: 245 seconds]
<oborot>
for some reason `nix search ...` always returns "no results for the given search term(s)!"
<oborot>
I updated the cache
<v0id72[m]>
on the web or on your system?
<clever>
oborot: are you searching for non-free packages?
<v0id72[m]>
oborot: nix-env -I nix-index
<oborot>
Yes and no
<v0id72[m]>
-i
<oborot>
I tried the example they use in --help, e.g., blender and nothing
<v0id72[m]>
Henson:
<clever>
oborot: i just search via tab completion in `nix repl '<nixpkgs>'`
<v0id72[m]>
Hensonerror: build of '/nix/store/4f43h807pdk2qdq3ym3niw7jwisinxcw-alsa-lib-1.1.8.drv', '/nix/store/7cb0ih0471cicrdvc5x77md2nh40jyvb-systemd-239.20190219.drv', '/nix/store/81vmjz6qm7ws1bnh51dq1kwgz5bzsl11-speech-dispatcher-0.8.8.drv', '/nix/store/alj4a5h25bnbfcsml3vi1s1q7bc6w2y9-libcap-2.27.drv', '/nix/store/pa82k3d1vmdgxnyb9in55znpk9dxb2ar-google-chrome-stable_74.0.3729.157-1_amd64.deb.drv' failed
<oborot>
clever: hmm, I get an error from that
<oborot>
v0id72[m]: I tried that, but same results.
<v0id72[m]>
clever: well passed the one error. by installing librsvg but firefox then gave me cairo issues - installed it. Now I get this....https://pastebin.com/54YqkR5M
Rusty1 has quit [Quit: Leaving]
<clever>
v0id72[m]: the package was likely not tested on darwin, and doesnt support it
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<DigitalKiwi>
I have a hakyll project I use a shell.nix for. I want to bring purifycss into it. I was able to get node2nix to work on it but I don't know how to add that to the shell.nix. the docs for node2nix don't seem to say... anyone know? or know a project that has done it?
<v0id72[m]>
oh I thought it has - since the ticket was opened and the lib file was fixed.
<clever>
v0id72[m]: what is the content of config.nix?
pie__ has joined #nixos
ericsagnes has joined #nixos
<v0id72[m]>
just allowUnfree and Allowunsupport
<v0id72[m]>
as I could not find more documentation to show me whatelse I should have in it.
<clever>
v0id72[m]: Allowunsupport is your problem, its causing un-supported software to try to build anyways
<clever>
so your not seeing that firefox isnt supported on darwin
<v0id72[m]>
it told me to add it though :)
<clever>
thats if you want ignore the warnings
<DigitalKiwi>
it didn't say it would work though ;p
<Henson>
wow, NixOS is amazing. I just painlessly did an upgrade from 16.03 to 19.03 without any distribution upgrade hell that I experience nearly every time with Debian and Ubuntu. It's even better than rolling release upgrades like FreeBSD or Arch. You just upgrade right to where you want to be in a single step, and it just works. Amazing!
Supersonic has quit [Ping timeout: 252 seconds]
<clever>
Henson: yep :D
<Henson>
I think NixOS may have just replaced Debian as my favourite Linux distribution
<Henson>
now I gotta to go bed
* Henson
rubs his tired eyes
<DigitalKiwi>
lots of recovering arch users here
<v0id72[m]>
looks like I have an issue with videotoolbox.h
<Henson>
fasd: it doesn't look like that's specified as either a run time or build time dependency, so it shouldn't be pulled.
<Henson>
DigitalKiwi: I tried using Arch and got frustrated quite quickly. Even trying to configure a static IP address for an interface was an unpleasant experience.
<drakonis1>
ah, arch users.
<drakonis1>
the path of least resistance
jasongrossman has quit [Ping timeout: 248 seconds]
<drakonis1>
i have given it a shot for a few months.
<fabianhjr[m]>
brb gonna rebuild with the stable 19.03 channel DX
Henson has quit [Quit: goodnight everyone]
jasongrossman has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
dansho has joined #nixos
jasongro` has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.4]
<jasongrossman[m]>
fabianhjr (if you're back yet): pulseaudio is broken in unstable at the moment. It'll be fixed very soon.
jasongro` has quit [Remote host closed the connection]
jasongrossman has quit [Ping timeout: 258 seconds]
<drakonis1>
i've noticed
<drakonis1>
how did it break?
<drakonis1>
ah nvm
Glider_IRC_ has joined #nixos
Glider_IRC has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Glider_IRC__ has quit [Ping timeout: 272 seconds]
Glider_IRC_ has quit [Ping timeout: 258 seconds]
<DigitalKiwi>
drakonis1: do you have a link?
<gratin>
can some one tell me how to make this work?
<drakonis1>
wine has some choppy audio under certain applications
init_6 has joined #nixos
<drakonis1>
its probably unrelated.
alex``` has quit [Ping timeout: 245 seconds]
drakonis1 has quit [Quit: WeeChat 2.4]
alex``` has joined #nixos
drakonis1 has joined #nixos
drakonis1 has quit [Client Quit]
drakonis_ has joined #nixos
endformationage has quit [Ping timeout: 244 seconds]
drakonis has quit [Ping timeout: 252 seconds]
Arahael has quit [Ping timeout: 244 seconds]
oborot has quit [Ping timeout: 244 seconds]
<fabianhjr[m]>
> fabianhjr (if you're back yet): pulseaudio is broken in unstable at the moment. It'll be fixed very soon.
<fabianhjr[m]>
Oh ok, yeah I have been playing around so I wasn't sure if it was something I messed up. Decided to leave my config / system to track 19.03 and my user nix-env installs to track unstable.
<{^_^}>
error: syntax error, unexpected ')', expecting THEN, at (string):254:30
weedloser has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #62878 → mirrors: rename sourceforgejp to osdn → https://git.io/fjz55
Arahael has joined #nixos
ryantrinkle has joined #nixos
slack1256 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Arahael has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
Arahael has joined #nixos
arahael1 has joined #nixos
gAsPeR_sKaTe has joined #nixos
<gAsPeR_sKaTe>
yuju
Arahael has quit [Ping timeout: 246 seconds]
<gAsPeR_sKaTe>
soy mexicano
<gAsPeR_sKaTe>
algun mexicano por aqui eh paisas'
ryantrinkle has quit [Ping timeout: 248 seconds]
<gAsPeR_sKaTe>
un saludito para mi
<gAsPeR_sKaTe>
le he dado de albañil
<gAsPeR_sKaTe>
me gusta el futbol
<gAsPeR_sKaTe>
y eh leido libros ;)
<gAsPeR_sKaTe>
estudios
<gAsPeR_sKaTe>
jajaja :)
<gAsPeR_sKaTe>
yo te regalaba todo
<fabianhjr[m]>
Yo soy de la CDMX,
<gAsPeR_sKaTe>
un saludo para mi linda
<gAsPeR_sKaTe>
yo soy de sinaloa
<gAsPeR_sKaTe>
abrazos paisa
<gAsPeR_sKaTe>
tomen nota
<gAsPeR_sKaTe>
de un municipio que se llama culiacan
<gAsPeR_sKaTe>
que tambien es una ciudad
<gAsPeR_sKaTe>
eh viejon?
<gAsPeR_sKaTe>
fabian mucho gusto
<gAsPeR_sKaTe>
estamos para lo que se ofrezca
arahael1 has quit [Ping timeout: 245 seconds]
<gAsPeR_sKaTe>
gracias por el saludito
<gAsPeR_sKaTe>
41008
<gAsPeR_sKaTe>
y vives en mexico?
clacke_movim has left #nixos [#nixos]
<gAsPeR_sKaTe>
un homenaje a enrique peña nieto
<gAsPeR_sKaTe>
digo a andres manuel lopez obrador
<gAsPeR_sKaTe>
se lo merece
arahael1 has joined #nixos
<gAsPeR_sKaTe>
un reconocimieto pues notanto como un homenaje
<gAsPeR_sKaTe>
jajajaja x)
<gAsPeR_sKaTe>
ando feliz pues
<gAsPeR_sKaTe>
mis respetos para todos los mexicanos
<gAsPeR_sKaTe>
manos con callos y pies
<gAsPeR_sKaTe>
que conectamos asi quien lo iva a decir
<gAsPeR_sKaTe>
viva
gAsPeR_sKaTe has quit []
iqubic has joined #nixos
<Athas>
I'm not happy with the mesa package, because it explicitly disables OpenCL for some reason. What's the most proper way of using my own mesa package, apart from completely running my own fork of nixpkgs?
<Athas>
(Or is that the proper way?)
madhukar has joined #nixos
<li_matrix>
I prefer the fork method but you can use overrides
<fabianhjr[m]>
There are some attributes you can pass. Let me check
<madhukar>
Anyone have an idea why running `xcape -e 'Caps_Lock=Escape'` in the shell does nothing for me. I've used it succesfully with arch. I get no output/errors
<madhukar>
process exits with 0
dansho has quit [Ping timeout: 248 seconds]
<fabianhjr[m]>
Oh, nvm. the flag is hardcoded in the package.
<madhukar>
the behavior I'm trying to get is caps lock should be escape when tapped and control when corded
<madhukar>
I added this to configuration.nix displayManager.sessionCommands = '' setxkbmap -option ‘caps:ctrl_modifier’ xcape -e ‘Caps_Lock=Escape’ ''; };
<clever>
457 xserver = {
<clever>
458 xkbOptions = "caps:shiftlock";
palo1 has joined #nixos
<clever>
madhukar: if a preset is available for that, you can enable it like this
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 272 seconds]
Mateon2 is now known as Mateon1
palo has quit [Ping timeout: 248 seconds]
palo1 is now known as palo
<kuznero[m]>
How is it possible to have `adwaita-icon-theme` as a dependency to a gtk3 app? Full name for it is `gnome3.adwaita-icon-theme` and I have no idea how to reference it from my `stdenv.mkDerivation` clause. Please help!
<kuznero[m]>
I can referece `hicolor-icon-theme` though
<kuznero[m]>
But that is not enough
arahael2 has joined #nixos
<kuznero[m]>
I see I can define whole `gnome3` as a dependency and then use `gnome3.adwaita-icon-theme` in the `buildInputs` clause. But is not that a bit too much?
arahael1 has quit [Ping timeout: 248 seconds]
<madhukar>
clever: preset for the exact behavior I mentioned?
<clever>
madhukar: i dont know if a preset exists for that though
kvaster has joined #nixos
toppler has quit [Ping timeout: 268 seconds]
<madhukar>
clever: sure, which is why I have to use xcape. From what I understand xcape will send 'escape' on key up, which gives me desired behavior. For some reason xkb doesn't seem to be doing its job
arahael2 has quit [Ping timeout: 258 seconds]
<clever>
madhukar: you could maybe try xkbOptions = "caps:ctrl_modifier";
<Athas>
I want to write/modify the postInstall step for a large package. How can I see what's available at that stage? As in, where can I see the intermediate file tree produced?
madhukar has joined #nixos
<clever>
Athas: usually, the working directory is left at the root of the source tree
<madhukar>
clever: hah the blog I copied the commands from was using a different quote symbol for single quote, derp.
<clever>
madhukar: i have it when blogs do that
<clever>
madhukar: and now that you say that, i can see the differences
<madhukar>
sorry for wasting your time
<Athas>
clever: so is the normal procedure that I try to build the package outside of Nix, poke around to see where it leaves things, and then update the Nix definition?
<clever>
Athas: if you want to modify something in its output, just `nix-build '<nixpkgs>' -A thing` and see where the files are, and then use $out/thatpath in postInstall
<madhukar>
do you use nix-env commands? I barely skimmed the manual and got my system up and running quickly. Installation and config has been a breeze so far, I expect because I'm using packages which are already available
<Athas>
clever: ah, so by default all the generated files are installed in their standard location?
<clever>
Athas: the installPhase should copy everything to $out/bin and $out/lib for example
<clever>
and nix will set $out to the right path before starting the build
<madhukar>
The only question now is if I'll have trouble using the system for work. Install scripts and such developed by my colleagues will not work straight away, I expect?
<clever>
madhukar: i mostly stick to nix-build and nixos-rebuild
<Athas>
clever: sure, I understand that, but this package is so large that I'm not even sure *what* to copy. (I know what to copy *to*, but I have no idea where in the build directory the files will be located after the build.)
<clever>
Athas: ahh, then you want to either make it fail with `postInstall = "exit 1";` and build with --keep-failed
<clever>
Athas: or just build it under nix-shell '<nixpkgs>' -A thing
madhukar has quit [Quit: Page closed]
madhukar has joined #nixos
<Athas>
Thanks, I will try that.
iqubic` has joined #nixos
<rprije>
Is it possible to load packages from root channels other than the nixos channel in the nixos configuration?
<clever>
rprije: just `foo = import <channelname> {};` in a let block and then foo.hello somewhere
arahael3 has joined #nixos
iqubic has quit [Ping timeout: 248 seconds]
iyzsong has joined #nixos
<rprije>
clever, huh. I thought I'd tried that. Worked this time, anyway. Thanks!
arahael3 has quit [Excess Flood]
Notkea has quit [Read error: Connection reset by peer]
<pie__>
hm broke my boot configuration on a zfs setup somehow by importing and exporting and changing names, now i changed it back but it still wont boot, complains in grup about not being able to find root :/
<clever>
pie__: can you screenshot the error?
<pie__>
hold on i gotta unmount and boot it again but iirc its totally unhelpful and unspecific
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
arahael3 has joined #nixos
<pie__>
...where even is the grub config stored
<pie__>
nevermind found it
clacke_movim has joined #nixos
ee1943 has quit [Read error: Connection reset by peer]
ee1943 has joined #nixos
adamantium has joined #nixos
Anton-Latukha has joined #nixos
<pie__>
clever, failed to take a screenshot run into some kind of keyboard capturing junk, can probably work around but meh
<eyJhb>
When I set.. `services.xserver.videoDrivers = ["something"];`, does it then override anything else that might have been added to that? - And, how would I go about appending to lists
<pie__>
eyJhb, i *think* lists are merged for configuration.nix stuff (not sure how that works, probably mkOption related), unless youre doing something special in which case idk
<pie__>
but for the xorg thing i thiiiiink it shouldnt overwrite
<etu>
eyJhb: It's appended
<etu>
eyJhb: I think
<etu>
Normally it is
<eyJhb>
Fair, thanks! - Finally time for some cleanup in my main conf file
<pie__>
eyJhb, yay cleanup is good
<pie__>
eyJhb, just making sure:
<pie__>
you know that a.b.c = 1; a.b.d = 2; is equivalent to a.b = { c = 1; d = 2; }; right?
<clever>
grub-install is also responsible for embeding the correct drivers for the "boot" partition
<pie__>
because i cant figure out how what its looking for is different than what i have
kvaster has quit [Ping timeout: 258 seconds]
<pie__>
actually i have a wild guess...
<pie__>
ah no that cant work nvm
<pie__>
was thinking maybe the zpool root name is /root and thats what it cant find, but that wouldnt have worked well ever because of colliding with /root on the normal system
<clever>
pie__: ive not tried /boot on zfs yet
<clever>
pie__: let me poke around with justdoit
<pie__>
problem is the grub rescue menu is useles
<pie__>
and i dont know how to do anything in it
<eyJhb>
What is the most lighweight displaymanager? Slim isn't supported anymore, and lightdm seems.. "big"?
<pie__>
s/menu/console/
<clever>
pie__: insmod should still work
<eyJhb>
pie__ I know that feeling
<clever>
pie__: but it has no tab completion
<pie__>
exactly
<clever>
pie__: you need to load the core module from the boot fs
<dhess>
I'll try it out, just was curious if there was a workaround for mainline nixops. I think there isn't; it hangs trying to open a TCP connection to the target
<clever>
dhess: i worked around the issue differently
<dhess>
I can get it to proxy the connection via the bastion, just by putting ProxyJump in my .ssh/config, but then NixOps tries to connect directly on its own.
<clever>
dhess: wireguard on both the target machine, and also others in its LAN, and then i just mess with the deployip based on whatever is working at the time
<ajs124>
Anyone here ran into some steam games segfaulting in libopenal.so.1.19.1 in 19.03 (but not 18.09)?
<clever>
dhess: but that will run into trouble with any backend that does provisioning for you
<clever>
pie__: installed, booting but not...
fendor__ is now known as fendor_
<dhess>
clever: I don't provision in NixOps anymore so that bit is not a problem for me. Anyway I'm trying to avoid WireGuard in this case if possible.
<dhess>
I do have an elaborate WireGuard mesh for my own stuff but I'm trying to avoid that in new deployments. It's a bit of a PITA to maintain.
<clever>
dhess: ive also thought about how nixops should manage wireguard for you
<clever>
but i can see it still needing a backdoor for the initial deploy, to set it up
<dhess>
clever: yeah I saw someone talking about that in NixOps's issues I think
<clever>
pie__: if i ls the partition, i just get the type again, but if i tack a / on, i get all datasets within the pool (and an error), https://i.imgur.com/7yBnKpi.png
Arahael has quit [Ping timeout: 272 seconds]
<clever>
pie__: i believe @ is the root of the zfs pool, which would get mounted to /tank in my example
<{^_^}>
[nixpkgs] @aristidb pushed commit from @Tomahna to master « modidy-iris: 3.37.1 -> 3.38.0 (#62884) »: https://git.io/fjzbe
<pie__>
if i do zpool export in theory i can just remove the external usb hdd that is the pool right?
<clever>
pie__: i would think so, i would do a sync just to be paranoid
<dhess>
gchristensen: ok, so I just built NixOps using your patch from https://github.com/NixOS/nixops/pull/1024. With ProxyJump in my ~/.ssh/config, it successfully connected to my host via the bastion first time, whereas mainline NixOps would just hang on "waiting for SSH...". Whoot!
<dhess>
I'll test the ssh config file option in a bit
<dhess>
but this is already a great fix for my particular case, as I'll need the ProxyJump in my ~/.ssh/config anyway for my own use outside of NixOps.
<dhess>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 121
<{^_^}>
[nixpkgs] @aristidb merged pull request #62828 → nixos/wireguard: add peer service to interface dependencies → https://git.io/fjzzx
<{^_^}>
[nixpkgs] @aristidb pushed commit from @WilliButz to master « nixos/wireguard: add peer service to interface dependencies (#62828) »: https://git.io/fjzbJ
knupfer has joined #nixos
<eyJhb>
Is there a way to do something like... unpackPhase = old.unpackPhase.replace("1", "2")?
<clever>
pie__: i forgot to close my swap device on that last install, and couldnt close the swap luks device, did you check your swap?
<{^_^}>
[nixpkgs] @ajs124 opened pull request #62888 → exim: Fix build with MariaDB → https://git.io/fjzbk
<eyJhb>
Currently have ` unpackPhase = import (builtins.replaceStrings [old.version] [version] old.unpackPhase);`, and it replaces it somewhat fine, but I get `' doesn't represent an absolute path, at /home/eyjhb/projects/git/dot/dotfiles/nixos/overlays/displaylink.nix:24:21`
<clever>
eyJhb: why are you trying to import it?
<eyJhb>
Basically what I could see from the example yesterday with fetchurl :p
<clever>
import takes a path (not a bash script) and then returns the nix value within that file
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<pie__>
i dont have an lvm thingy name, and sudo lvscan doesnt seem to give anything
<pie__>
just /dev/sda: open failed: No medium found
<clever>
pie__: dmsetup ls, would have shown lvm anyways
<pie__>
which is my root disk...
<pie__>
ok
<clever>
luks and lvm both use device-mapper
<clever>
the luks header has multiple key slots, each can be encrypted with a different passphrase (or keyfile)
<clever>
all contain the same master key
<clever>
and once you decrypt the master key, it just tells device-mapper to handle the rest, with the offset for the ciphertext, and the masterkey
<pie__>
i think im gonna crash for a bit but damn i need to get this done tonight
<clever>
lvm headers contain the list of fragments, and which disk each fragment is on, and it just tells DM to piece it all together and handle the rest
<pie__>
sigh, thanks
<pie__>
clever, in case i havent stated: i renamed the zpool by export-import-export, and i renamed the dataset with zfs rename
<pie__>
that was what i did
<pie__>
and then did it again to undo it after it was borked
toppler has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed 410 commits to staging-next: https://git.io/fjzbg
<{^_^}>
[nixpkgs] @FRidh opened pull request #62889 → Staging next → https://git.io/fjzb2
<clever>
pie__: the name may be baked into the grub stage 1.5
<clever>
pie__: so it should be the original name to boot
<clever>
aha, so thats how you list un-imported pools, lol
<pie__>
clever, ya
<clever>
not sure what the temp2 refers to
<pie__>
not everything is clear ... lots of googling cuz u dunno what exists and why some things are the way they are, but this is actually listed as a command variant in the man page so its there
v88m has quit [Ping timeout: 258 seconds]
<pie__>
clever, thats the devmapper thing
<clever>
oh wait, i ran that test in the VM by accident, lol
<clever>
that explains why its just "root" there
<pie__>
that i was like "wtf" about
<clever>
on my real system, it doesnt list imported pools
<pie__>
this doesnt list already imported pools only unimported ones it found in the search path
<pie__>
which i think defaults to /dev (its in the man page somewhere)
<sphalerite>
Anybody using a WWAN modem successfully on nixos? If so, how? I've just installed one and linux is detecting it as a WWAN network interface and 5 USB TTYs, but network-manager doesn't seem to see it or aynthing
<andi->
sphalerite: did you start / configure modem manager?
<sphalerite>
andi-: started yes, configured no. How do I configure it? :)
<andi->
usually through network manager :D
<sphalerite>
right, I'd like to do that but I see nothing at all about the modem in nm
arahael1 has quit [Ping timeout: 268 seconds]
<andi->
I had issues with WWAN on my x250 last year (haven't used since). Restarting modem manager after each suspend fixed it :/
<sphalerite>
nmcli dev doesn't list it, although `ip l` does
<{^_^}>
alex```: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<alex```>
how does it work
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @turboMaCk opened pull request #62899 → Elm tooling initial version → https://git.io/fjzxT
dftxbs3e has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
Matthieu_ has quit [Ping timeout: 272 seconds]
arahael1 has joined #nixos
<immae>
alex```: "callPackage" will inspect the arguments of th efunction and autofill them with elements from pkgs (when possible)
Matthieu_ has joined #nixos
travelion6 has joined #nixos
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #62900 → mysql55: fix build under clang 6 (and newer) → https://git.io/fjzxG
arahael1 has quit [Ping timeout: 248 seconds]
arahael1 has joined #nixos
toppler has quit [Ping timeout: 272 seconds]
rprije has quit [Ping timeout: 248 seconds]
arahael1 has quit [Ping timeout: 248 seconds]
mthst has joined #nixos
arahael1 has joined #nixos
toppler has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nixos
<{^_^}>
[nixpkgs] @globin merged pull request #62887 → php: Upgrade to php73 as default php → https://git.io/fjzFX
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<reverend>
Hey all, anyone have any luck installing NixOs on a precision 5520 keeping the GPT scheme? Literally every other distro works just fine unfortunately. It seems like the installer is having trouble finding the right volume to mount.
<lassulus>
what did you try? I'm not sure I get what "finding the right volume" means
<mthst>
what are mkDefault, mkForce, mkIf etc. ? where are they documented?
<reverend>
I tried the full-blown graphical installer, as well as the minimal cd. Played around with the options but I believe it tried to mount the usb volume and failed. Dropping into a shell failed with the same error, continuing resulted in kernel panic
<reverend>
I didn't write down the proper error message, unfortunately, but I can reboot and give it another shot
<tilpner>
Or that, but you said you couldn't use dd, so I assumed that wasn't possible
<heath>
build error on osx: dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib Referenced from: /nix/store/naqkzg617irnxzxq84jskczbc6544l5j-Libsystem-osx-10.11.6/lib/libSystem.B.dylib Reason: image not found
Jackneill has quit [Remote host closed the connection]
<heath>
nix (Nix) 2.2.2
<reverend>
Honestly just converting an arch install to NixOs seems like a fine way to go if I can't get the installer working (I'm installing WSL right now so we'll see if dd does the trick).
<tilpner>
But I mentioned two better ways...
<tilpner>
Oh well, your installation
<hyper_ch>
how is wsl and dd related to Nixos and arch? oO
<reverend>
I mean obviously I have a preference for getting a nixos install "cradle to grave" but it's just good to know I have options
v0|d has quit [Ping timeout: 272 seconds]
<jonreeve[m]>
I'm confused about which commands to run as root, and which to run as a normal user. I get different things when I run `nix-channel --list` as a normal user and with sudo
<PyroLagus>
because channels are per-user
<hyper_ch>
because the user can have different software installed
<jonreeve[m]>
Ah. So, I'm guessing I should use sudo to do `nixos-rebuild`?
<__monty__>
Does that still hold with daemonized nix? I've removed my user's channels because nix-env wouldn't pick them up anyway.
<hyper_ch>
jonreeve[m]: if you want to rebuild your system run as root/sudo
<hyper_ch>
nixos-rebuild boot --ugprade
<PyroLagus>
__monty__: it does
<__monty__>
PyroLagus: Then why wouldn't nix-env pick up my user's <nixpkgs> channel?
<PyroLagus>
make sure that your shell sources ~/.nix-profile/etc/profile.d/nix.sh
<PyroLagus>
which should be the case on NixOS
<marek>
my NetworkManager is overrited my dns resolf file while connected to openvpn, any idea how to solve it? where to point th eup script?
<__monty__>
PyroLagus: I'm not on nixos but that was sourced at the time. Either clever or srhb helped me solve the problem, by getting rid of my personal channels.
v88m has quit [Read error: Connection reset by peer]
<laalf>
clever: nope. wine: WINEARCH set to win64 but '/home/lars/.Warframe' is a 32-bit installation." when executing WINEARCH=win64 WINEPREFIX="$HOME/.Warframe" winetricks -q d3dx9 xact
<laalf>
yes, i deleted that folder before
Matthieu_ has joined #nixos
pareidolia has joined #nixos
<clever>
nix-build '<nixpkgs>' -A wineWowPackages.stable
<clever>
wine: WINEARCH set to win32 but '/home/clever/test-prefix' is a 64-bit installation.
<clever>
laalf: that is the 64bit wine, i suspect that winetricks is running the 32bit wine on you
<laalf>
clever: oh, so id need to modify the winetricks input?
<laalf>
nix-shell -p --pure winetricks wineWowPackages.stable --run 'WINEARCH=win64 WINEPREFIX="$HOME/.Warframe" winetricks -q d3dx9 xact' is what i try to run
<clever>
ive found proton to work well within steam
<clever>
but havent tried warframe
<clever>
bbl
<drakonis>
it should work fine from a graphical standpoint tho
<drakonis>
the rest seems to be "audio is borked"
<laalf>
i dont play many games. warframe is pretty much my only game now
<drakonis>
the reports vary
ekleog_ is now known as ekleog
<laalf>
that guy on arch says with xaudio installed it works
<laalf>
there doesnt seem to be a xboxdrv service in nixos
<laalf>
ill just build it myself
<drakonis>
the package exists
<laalf>
not the service
<Gopal[m]>
so guys, umm, `greeters.enso` doesn't work on unstable?
<Gopal[m]>
Xorg fails to start if I enable the greeter
<Gopal[m]>
using the intel driver btw
<hyper_ch>
has anyone used DisplayPort on nixos?
steve-chavez has joined #nixos
alp has joined #nixos
<Ralith>
routinely
<Ralith>
works great, though i3 seems to be utter garbage at display hotplugging
<drakonis>
its a connector, it shouldn't be any more trouble than hdmi
<laalf>
hyper_ch: yes, that works with intel and amd fine
<laalf>
also with nouveau
<laalf>
its just a port
<hyper_ch>
Ralith: i3? with 1 displayport (usb type-c 3.1 with DP functionality): can I attach 2 screens to it?
<hyper_ch>
I'm pondering about getting a thinkpad x1 extreme... it does have 1x hdmi but it also has displayport
<Ralith>
hyper_ch: that depends on the resolution and refresh rate of the displays
<hyper_ch>
(also I'm pondering if I should get that usb-c docking station)
<Ralith>
display interconnects are ridiculously bandwidth-intensive
<hyper_ch>
Ralith: 2x 24" fullhd
zupo has joined #nixos
<Ralith>
"fullhd" means 1080p?
<hyper_ch>
yes, on my current notebook I have 1x vga and 1x hdmi attached
<Ralith>
1080p at 60Hz is nothing, you should be absolutely fine there
<hyper_ch>
oh wait..... I think it does not have DP.... it's 2 x USB-C Thunderbolt™ 3
<hyper_ch>
:(
<Ralith>
that might be a superset? I'm not clear on the terminology here
<hyper_ch>
I was also looking at the thinkpad p52... that one has DP
<hyper_ch>
Mini DisplayPort 1.4
<laalf>
get old thinkpad reee
<hyper_ch>
laalf: ?
<Gopal[m]>
also if anybody is running their primary system on unstable, can you please tell me how much trouble it is / package breakage you have to face on a daily basis?
<hyper_ch>
Gopal[m]: no problem at all
<drakonis>
hardly
<laalf>
hyper_ch: newer thinkpads arent worth the price anymore.
<hyper_ch>
Gopal[m]: because upgrades are atomic
<laalf>
Gopal[m]: hardly any issues. i take some packages from stable
<hyper_ch>
if something goes wrong, just boot into an older genertion
<drakonis>
only pulseaudio broke so far and i just backtracked to my previous generation
<drakonis>
this is great.
<Gopal[m]>
<Gopal[m] "so guys, umm, `greeters.enso` do"> laalf: > so guys, umm, greeters.enso doesn't work on unstable?
<pacman99>
If I dont enable xserver my system just hangs at the last boot message and doesnt go into the login console. How do I get it to go to the login console?
<imalison>
Is there an easy way to export the haddock docs generated by a haskell nix build together with all of the dependencies it might link to?
<imalison>
i guess i just want nix-store --export
<imalison>
?
<pie__>
elvishjerricco, any idea where hostid is even set
veske has quit [Quit: This computer has gone to sleep]
<elvishjerricco>
pie__: What do you mean?
<pie__>
whelp <DeHackEd> that's not how an export works. exporting eliminates the need for a hostid
<pie__>
so still no idea what the hell broke
<pie__>
elvishjerricco, i wanted to read the hostid out of the pool
<pie__>
and or set it manually
<pie__>
to test whether that was the problem
<eyJhb>
pie__ is it your main system or your VM??
<pie__>
eyJhb, migrating main system via VM
<eyJhb>
Which of them can't boot?
<pie__>
i booted a vm off an external disk, gonna try to sync my data and boot the real machine off the external disk
<eyJhb>
Ahh
<pie__>
after that works ill dd over the external data
<pie__>
or at least thats the plan
<pie__>
it boots now
<eyJhb>
Yay :D
weedloser has quit [Ping timeout: 258 seconds]
<pie__>
still not sure what the hell the problem was
<pie__>
and that makes me unhappy
<eyJhb>
There needs to be some magic in your life sometimes... ;)
<{^_^}>
[nixpkgs] @steve-chavez opened pull request #62907 → pg-safeupdate: init at 1.2 → https://git.io/fjgeW
Matthieu` has joined #nixos
Matthieu_ has quit [Ping timeout: 248 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
timon37 has quit []
marusich has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjgew
peacememories has joined #nixos
Olgierd has joined #nixos
Olgierd has joined #nixos
Olgierd has quit [Changing host]
alp has quit [Ping timeout: 248 seconds]
ddellacosta has quit [Quit: WeeChat 2.2]
ym555 has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
<Profpatsch>
peterhoeg[m]: hoi
<Profpatsch>
I’m trying to install d1x-rebirth-full
emilsp has quit [Quit: be gentle, I'm learning]
<Profpatsch>
But I can’t find the asset file on GOG
lempis has joined #nixos
<Profpatsch>
GOG has 1.4a, but the d1x assets want 2.0.0.7
<m1crOman>
Hi folks. I'm trying to add the 1.14.2 version to the minecraft-server package. I cloned repo and edited the module to add the version, but when I run nix-env to list the contents of my local repo it doesn't show that version. What else do I have to do? I assume there's a way to local test a package like this.
lempis is now known as emilsp
<Profpatsch>
m1crOman: You have to change the hash of the source.
<Profpatsch>
The name of the source is not relevant to nix, only the hash is.
<exarkun>
Anyone have experience dealing with "[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun" on nixos?
<Profpatsch>
m1crOman: One simple way is to change one digit of the hash and trying to install, then it should show you the actual hash.
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
<m1crOman>
Which hash are you referring to? The one in that module, under "sha256"?
<Profpatsch>
m1crOman: exactly
Soo_Slow has quit [Remote host closed the connection]
<Profpatsch>
That’s the contents of the files nix should download. If the hash is the same as one it already has, nix doesn’t try to download anything
<Profpatsch>
So if you keep the hash of the files of the old version, nix happily uses the old files.
<Profpatsch>
It’s content-addressed
<pie__>
clever, finally managed to unmount the luks, i think i had a bash open somewhere maybe
<m1crOman>
Yeah ok so I did that - maybe I should commit to a fork and let you see it http://u.m1cr0man.com/sd/wpo the hash matches that of the jar file.
<clever>
pie__: lsof should show working dirs
<pie__>
clever, true
<pie__>
clever, dunno then
<pie__>
just did cryptsetup close and it worked i think
<clever>
pie__: and bash would be holding an FS open, so it would have shown in mount
<pie__>
hm.
<Profpatsch>
how the heck did you answer pie__ in less than 10s?
<Profpatsch>
As if you waited for pie__ to write sth :)
<clever>
Profpatsch: fast typer
<pie__>
Profpatsch, 30 seconds for me
<clever>
2019-06-09 17:21:53 < pie__> clever, finally managed to unmount the luks, i think i had a bash open somewhere maybe
<clever>
2019-06-09 17:22:03 < clever> pie__: lsof should show working dirs
<clever>
exactly 10 seconds on this end
<pie__>
oh damn
<pie__>
wiat no same im dumb
<Profpatsch>
clever: Yeah, but you have to read and parse the sentence as well in that timea
<Profpatsch>
And think about what you want to answer.
<clever>
Profpatsch: and also remember the context from hours ago, and i have slept since then, lol
<Profpatsch>
Ah, okay :)
<clever>
my brain is just weird
<pie__>
Profpatsch, its a lie he went back and reread the context in 10 seconds too
<Profpatsch>
m1crOman: Ah, my bad then
<Profpatsch>
m1crOman: Usually people forget to change the hash, but in your case you added a whole clause
<Profpatsch>
m
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<m1crOman>
I'm using this command to check it: `nix-env -f $NIXPKGS -qaP '*' | grep -i minecraft`
<m1crOman>
uh just realized I don't need that grep haha
<clever>
m1crOman: nix-build $NIXPKGS -A minecraft
<clever>
no need to search when the name is known
<Profpatsch>
yeah, try to nix-build instead
<Profpatsch>
nix-env has a lot of things that can go wrong, depending on your system’s state
<clever>
pie__: if you `exit` at the grub command line, it will signal to the bios that the boot has failed on this device, and the bios will just move on to the next entry in the boot order
<clever>
pie__: so you could add a "try next bios entry" option to the grub menu
<clever>
pie__: the bootloader will `int 0x18` to signal that the boot failed, i believe
<clever>
and the bios will then try the next boot device in your config
<pie__>
meanwhile im hoping this rebuild boot didnt brick my loader, even though i know it shouldnt have
<pie__>
freaks me out every time
<pie__>
should have probably just run it in the vm
<pie__>
looks like it worked though
<clever>
my NAS (with multiple tb of storage) still has /boot on a 64mb usb stick, lol
<pie__>
clever, random sidenote, i googled on how to organize my zfs stuff and found an article saying i should use a globally unique root per thing...probably saved my butt a few times already
<pie__>
its unnerving to think about what if i didnt do this so early lol
<clever>
i set the pool name to the hostname
<clever>
so i dont get dups when im recovering the drive in another box
<pie__>
sure, im just using some counter
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie__>
woohoo boots
o1lo01ol1o has joined #nixos
fendor has quit [Quit: Leaving]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
freeman42y has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
steve-chavez has quit [Quit: #haskell]
xkapastel has quit [Quit: Connection closed for inactivity]
<clever>
and (hd0,gpt3)/@/ is just the root of the dataset
o1lo01ol1o has joined #nixos
<pie__>
clever, pats are weird and f* knows how grub is sposed to work
<mac10688>
i've been setting stuff as root and I'm trying to get a proper user setup. When i change the password for the user everything is fine but when I reboot, it doesn't work anymore. How can I make the changed password persist between boots?
<PyroLagus>
F* is pretty cool, but i don't think it knows how grub works
<clever>
mac10688: is /boot correctly mounted when you run nixos-rebuild switch?
<mac10688>
clever: I think so. Everything has been booting up right for a while now. But I haven't been using nixos-rebuild switch after i change password. I use command line `passwd <username>`
<gyroninja>
is there any documentation anywhere on how to make your own channel?
<m1crOman>
Hey me again. Totally different question. Would there be much point to installing NixOS on a bootable USB key, and reserving the internal disks for the store + general storage on ZFS? This is for a server deployment. I'm wondering if this is supported too.
<clever>
gyroninja: just make an http server that contains 2 files, nixexprs.tar.xz and binary-cache-url
<gyroninja>
Yeah, but what goes in nixexprs.tar.xz?
<clever>
gyroninja: all of your nix files
<gyroninja>
Should they be in a folder?
<clever>
gyroninja: dont think they need to be
<gyroninja>
And then how would you go about installing a package from it
<gyroninja>
Would it require a custom config.nix?
<clever>
gyroninja: nix-env -iA foo.hello will search for a channel called foo
<clever>
and then load the default.nix in that channel, and expect it to return an attrset containing hello=
mexisme has quit [Ping timeout: 258 seconds]
arahael1 has quit [Ping timeout: 246 seconds]
rfold has joined #nixos
<Matthieu`>
Hi, how are managed preferences in nixos, like default editor, default media player and so on ?
<clever>
Matthieu`: for console texit editors, you can set the env var EDITOR easily
<clever>
that sets the variable, and sets up some aliases so vi maps to vim
arahael1 has joined #nixos
<PyroLagus>
those are usually per-user, no? xdg-settings
<gyroninja>
clever: So in your default.nix you could have "{ hello = import ./hello/default.nix; world = import ./world/default.nix; }"?
tsrt^ has quit [Ping timeout: 248 seconds]
<gyroninja>
Though I assume you could write some nix to automate that
<clever>
gyroninja: yeah, but you usually want to load <nixpkgs> once and pass it to both of them
<gyroninja>
with callpkg?
<clever>
gyroninja: yep
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<gyroninja>
*callPackage
<clever>
PyroLagus: most of my machines are single-user, so i just set it system-wide
<gyroninja>
okay thanks
tsrt^ has joined #nixos
tsrt^ has quit [Max SendQ exceeded]
<PyroLagus>
clever: fair, but is there a way to set xdg settings as root?
tsrt^ has joined #nixos
<clever>
PyroLagus: not sure, havent really looked into it
<Matthieu`>
clever: yes, I know that, and for other file types ?
<Matthieu`>
I was using galternatives on debian
<clever>
Matthieu`: i typically just dont install duplicate tools, so there is only one choice for most file types
<PyroLagus>
also xdg-mime obviously
<Matthieu`>
well
<Matthieu`>
A typical example
<Matthieu`>
I want to open a pdf
<Matthieu`>
I have zathura installed
<Matthieu`>
default app : libreoffice
<clever>
i just run evince directly on the pdf file
<clever>
i dont really use the gui file browser much
<Matthieu`>
I press enter in mc (depending on the cases)
<mac10688>
clever: i guess that was it. after running `passwd <user>` and nixos-rebuild switch it worked. I didn't know i would have to rebuild for it to work
<clever>
mac10688: it normally shouldnt
<clever>
mac10688: if you reboot, does the user still exist in /etc/passwd ?
<mac10688>
i don't know. i just rebooted and it worked fine though. The password persisted and everything
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjgfK
<clever>
PyroLagus: you could probably make a systemd one-shot service to just run that on bootup
<PyroLagus>
yeah
<PyroLagus>
hook it into the dm or whatever
<m1crOman>
actually based on the docs it looks like it would be safer and easier to run nixos without ZFS on a memory key. Is it possible to then put the nix store on a different device?
<clever>
PyroLagus: session commands are ran before starting the full DM
arahael1 has joined #nixos
<clever>
in this example, i have an exec at the end, so i hijacked the script and the real DM never launches
mexisme has joined #nixos
<clever>
m1crOman: you can put /nix on any device you want, as long as its present when booting
<m1crOman>
interesting ok :)
o1lo01ol1o has quit [Remote host closed the connection]
<PyroLagus>
ah yes, that would be the ideal way to do it
<clever>
m1crOman: nixos-generate-config will create the right setup in hardware-configuration.nix
o1lo01ol1o has joined #nixos
<clever>
m1crOman: my nas just has /nix/store in the same zfs pool as everything else
<clever>
m1crOman: and most of my other machines have a tank/nix dataset for /nix
<m1crOman>
yeah that's exactly what I want to do :) and do you have the actual OS on a different media?
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
m1crOman: all on the same raidz1 array
<PyroLagus>
you could either call xdg-mime a bunch of times or write ~/.config/mimeapps.list manually
<clever>
m1crOman: currently, the only thing not in the raidz1, is the /boot partition, because i didnt want to mismatch the partition sizes and waste space
<clever>
m1crOman: thats plain ext4, on a 64mb usb stick from over a decade ago, lol
<m1crOman>
That makes sense yea. I could do the same.
<clever>
m1crOman: i have since added an nvme device to the nas, and am considering making it handle /boot duties
<clever>
but id need to check if the firmware supports that
<m1crOman>
yeah that might be an issue
<clever>
my laptop boots with only an nvme
<clever>
my desktop has the rootfs on nvme, with /boot on spinning rust
<PyroLagus>
since nix actually has an ini generator, you could go crazy and define it as a set, generate ini in store, and then symlink on WM start if not exists
<clever>
i currently dont trust grub with /boot on zfs, and my testing in a VM today shows it to be very buggy
<clever>
m1crOman: i had originally written this for installing nixos on remote boxes you lack access to
<clever>
so you can boot into any linux rescue shell, upload a tar, kexec into the installer, and then justdoit
<clever>
and the automation prevents mistakes
arahael1 has quit [Ping timeout: 245 seconds]
toppler has quit [Ping timeout: 246 seconds]
abaiste^ has joined #nixos
<pie__>
so in theory after this sync i should be able to just rebuild switch and boot into the other dataset i just synced
<pie__>
clever, ever thought of / seen something to make grub use a previous nixos config if boot failed
<pie__>
random quesion
<clever>
pie__: ive thought of that, and there is some support for it in grub
<clever>
pie__: the loadenv part in the cfg
juliusdeane has joined #nixos
<clever>
pie__: read the first 20 lines of grub.cfg
imalison has quit [Ping timeout: 248 seconds]
<pie__>
loadenv is just an empty file for me
rfold has quit [Ping timeout: 245 seconds]
<clever>
basically, in each menu entry, ou want to mess with the default boot entry
<clever>
so when you boot it, it changes the default, and saves it to the grubenv file
__monty__ has quit [Quit: leaving]
<clever>
and then if boot sucessfully finishes, it undoes that
<pie__>
i was thiking kind of in the other direction, change something if it fails - so if your boot doesnt work anymore for some reason it can retry older boots
<pie__>
though i guess a working boot shouldnt normall start failing
arahael1 has joined #nixos
<pie__>
and automatically reverting might cause other problems
<clever>
its hard to react to something failing like that
<samueldr>
and when it fails to boot, how do you manipulate it to boot?
<clever>
samueldr: exactly
<pie__>
samueldr, oh right good point
Cale has quit [Ping timeout: 248 seconds]
<clever>
its much simpler to change the default right as you choose the current option
<samueldr>
btw, fedora has a feature relevant
<clever>
and then when it successfully boots, undo that
<pie__>
watchdog in the first possible stage?
<pie__>
(would have to do something about not losing error messages though)
<clever>
pie__: it may be broken too badly to be able to safely edit /boot/
<pie__>
right
<clever>
also, /boot cant be on zfs when doing this
<clever>
since grub lacks zfs write support
<pie__>
i dont think this is reasonably posible, but thought i might as well ask
<m1crOman>
clever, Just gone down a rabbit hole here and discovered the NixOps hetzner support. Now I've never used nixops, but is there any reason I wouldn't use that?
Lears has joined #nixos
<clever>
m1crOman: nixops also makes managing remote servers a lot simpler
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juliusdeane has quit [Read error: Connection reset by peer]
oborot has quit [Ping timeout: 246 seconds]
wfranzini has quit [Remote host closed the connection]
jackdk has joined #nixos
wfranzini has joined #nixos
mac10688 has joined #nixos
<pie__>
doh, im an idiot, clever :D
<pie__>
i did the rebuild switch and then switched the mount settings for zfs to the new migrated fs
<m1crOman>
clever, Ah I meant more in the sense as why not use it for deployment - but I think from researching more it doesn't support zfs right?
<pie__>
of course on reboot the bootloader is now looking for things in the nix store that dont exist in that dataset
<clever>
m1crOman: nixops doesnt support using zfs at install time, but if you have an existing install on zfs, and use the "none" backend, you can just shove all the zfs config into your nixops files
<pie__>
ah! but rollbacks work at this point!
<clever>
m1crOman: i'm managing my nas like that
<m1crOman>
Yeah that all makes sense now :) Thanks a mil for answering all my questions ;D
<clever>
m1crOman: nixops doesnt know about the remote config, so you have to copy the remote hardware-configuation.nix and configuration.nix over, and merge them all into your nixops files
<mac10688>
I want to download xmobar and when i search online for nixos packages, it has an attribute name of haskellPackages.xmobar. Do I type out all of that to install xmobar or is something else going on? It feels like it might go somewhere else in the config file.
karetsu has joined #nixos
<mac10688>
i've been getting packages and putting everything in environment.systemPackages
schjetne has quit [Ping timeout: 258 seconds]
<clever>
mac10688: yeah, just put haskellPackages.xmobar into the systemPackages
<mac10688>
ok cool. I wonder why it has such a weird attribute name compared to the others
arahael2 has quit [Ping timeout: 272 seconds]
ericsagnes has joined #nixos
arahael2 has joined #nixos
<karetsu>
I seem to have messed something up getting xmonad working, I can't compile my xmonad.hs -- do I have to set it up with a shell.nix/cabal?
<clever>
karetsu: i'm running this on a dedicated machine, hooked up to my tv
<clever>
karetsu: the --tv --fullscreen, makes it behave like the plex app on a lot of embedded devices
<clever>
and it runs that on bootup, without any login prompt
<clever>
so you can just set-it, and forget-it
<lambda-11235>
Anyone else having trouble updating unstable's libreoffice-fresh? When compiling it can't seem to find mysql.h.
<karetsu>
oh nice, this PC is my main work PC so I usually just have some stuff on in the background - but I have another one I can do that to, my child will thank you :D
<clever>
karetsu: you can also install the same package and just run it without those flags, to get a windows native player
<karetsu>
clever: you have a *lot* of config files :o
<clever>
windowed*
<karetsu>
stealing that then
<karetsu>
tyvm
<karetsu>
I've only been using nix and nixOS for 2 weeks so trying to get to grips with everything, I have a feeling your repo is going to inform a lot of mine
m0rphism has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @joachifm pushed commit from @kmein to release-19.03 « maintainers: add kmein »: https://git.io/fjgJ1