<michas_>
Hi, I need to access an old web page build with java applets... What are my options on Nixos? I already installed palemoon and icedtea8_web, but I'm not sure how to tell palemoon about icedtea. Or is there a better way
<michas_>
?
<ajs124>
michas_, just download the jnlp file and start it with javaws
<michas_>
ajs124: its not a webstart application but a real applet contained in a web page.
<lunik1>
Hi, if I specify neworking.firewall.allowedTCPPorts multiple times, are the lists merged?
<joepie91>
lunik1: yes; but you can only specify it once per .nix module/file
<joepie91>
however, it is totally fine to specify it in multiple different files, eg. if you have different presets for system configuration, or custom packages
<lunik1>
ok thanks, I knew I read something about that but couldn't remember where
ng0 has quit [Quit: Alexa, when is the end of world?]
revskill has joined #nixos
kyren has quit [Read error: Connection reset by peer]
kyren has joined #nixos
thc202 has quit [Ping timeout: 256 seconds]
aanderse-laptop has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNzjf
_habnabit has left #nixos [#nixos]
sigmundv_ has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 256 seconds]
<elvishjerricco>
Hm. I was hoping to use SHLVL to change the color of my bash prompt depending on how deeply nested my shell is
<elvishjerricco>
Problem is, the "base" shell is at SHLVL=3
<elvishjerricco>
By "base", I mean the one that I get by opening my terminal emulator on my desktop
<elvishjerricco>
However if I ssh into the desktop, I get SHLVL=1
<elvishjerricco>
So I'm not sure what adjustment to SHLVL I can do to get how many nested I am relative to my terminal emulator.
<clever>
elvishjerricco: strange, i'm seeing 4 on a shell inside screen, hmmm
<clever>
its already 3 on a bare xfce-terminal
<elvishjerricco>
clever: Looking at `pstree -p $$`, I can see why it's so nested
<elvishjerricco>
So I can't complain about the SHLVL being 3, but I can't seem to find a way to work around it
<ajs124>
It's 2 for me in tmux in some vte terminal
<samueldr>
.profile parsing?
<clever>
note that you can peek at env vars of any process in /proc
<samueldr>
one shell script for the graphical session, one level for profile...
<elvishjerricco>
So I think you can escape some bash and PS1 will execute it, i.e. the `\$primaryColor`
<clever>
hmmm
halfbit has quit [Ping timeout: 256 seconds]
<elvishjerricco>
Anyway, I think I need to decide what I want SHLVL to be relative to, figure out how to calculate that relative thing, then subtract it from SHLVL
<elvishjerricco>
Any ideas?
<clever>
elvishjerricco: yeah, just a \$SHLVL in PS1 is enough
<clever>
it will dynamically read the current value on every printing
<clever>
$SHLVL will read the current value and insert that into the export command, \$SHLVL will insert a literal $SHLVL into PS1, and then re-eval it again on each cmd
<elvishjerricco>
Hm. Environment variables between the terminal and its child process aren't that different. Seems difficult to find any meaningful change to detect...
<elvishjerricco>
Maybe I should just have my terminal manually set SHLVL?
<clever>
i'm thinking maybe patch the xinitrc stuff to reset it to zero?
<clever>
so the gui terminals start at 1
<elvishjerricco>
clever: That's a good idea
<elvishjerricco>
actually maybe I can just do it in the xsession script
<elvishjerricco>
There is a NixOS option for this :P
<clever>
elvishjerricco: this is the xsession script from above, it has an SHLVL of 1, its child (xinitrc in xfce) is 2, and then the gui terminals are 3
spear2 has joined #nixos
<clever>
elvishjerricco: the problem, is that it gets incremented after this point, twice
<clever>
elvishjerricco: so maybe SHLVL=-1 ?
<elvishjerricco>
clever: Do you remember why it gets incremented?
<elvishjerricco>
Maybe I should set it in my xmonad config instead of xsession script?
<clever>
xsession runs xinitrc (from xfce4), and the xinitrc bash script incremented it to 2, which is where all gui programs run
hamishmack has joined #nixos
<clever>
gui terminals then increment it once more in their shell, resulting in 3 for gui terminals
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco>
clever: Alright. I'd almost rather just set it to 0 in my xmonad config, but I'd like this to still work if I change my window manager, so I'll just do -1 in my xsession
<elvishjerricco>
huh. I don't think -1 actually works
<clever>
wasnt sure if it would or not
<elvishjerricco>
That's a shame
<clever>
what if you just unset it entirely?
<elvishjerricco>
0 brought it down one level, at least
<clever>
will the next process be 0?
<elvishjerricco>
clever: Hm. That's a good idea
<elvishjerricco>
No dice. Still one level too high
kyren has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
kyren has quit [Client Quit]
the has joined #nixos
the has joined #nixos
the has quit [Changing host]
<elvishjerricco>
clever: Oh, xmonad is just always incrementing the shlvl
<elvishjerricco>
or rather, children of xmonad always have SHLVL equal to one greater than the SHLVL of xmonad itself
lambdamu has quit [Ping timeout: 256 seconds]
aanderse-laptop has quit [Ping timeout: 265 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<angerman>
elvishjerricco: how is plan-to-nix coming along?
kyren has joined #nixos
ac has joined #nixos
ac is now known as Guest93643
Guest93643 is now known as f5190c
<f5190c>
Anyone here work on the go support for nixpkgs ?
<f5190c>
more specificially, im wondering if anyone has tried making a go module to nix converter
<gchristensen>
go2nix?
<f5190c>
nah, the next release of go is using a new package system
<f5190c>
perhaps that tool has started though, i'll have a look
<elvishjerricco>
angerman: Haven't really worked on it since the last time we talked about it unfortunately.
<angerman>
elvishjerricco: all good :-)
<elvishjerricco>
angerman: I've been focusing primarily on WebGHC and secondarily on my dotfiles :P
<elvishjerricco>
We've had some great progress. Lots of Haskell is able to run on wasm now
<angerman>
great!
n0qqe has joined #nixos
ericsagnes has quit [Ping timeout: 264 seconds]
noqqe has quit [Ping timeout: 264 seconds]
n0qqe is now known as noqqe
Supersonic has quit [Ping timeout: 265 seconds]
Fare has joined #nixos
astrofog has quit [Quit: Quite]
Supersonic has joined #nixos
Jason_Grossman has quit [Ping timeout: 240 seconds]
mconstant has quit [Ping timeout: 240 seconds]
hakujin1 has joined #nixos
ericsagnes has joined #nixos
hakujin1 has quit [Ping timeout: 256 seconds]
sir_guy_carleton has joined #nixos
<neonfuz>
recommended way to fetch from sourceforge?
<neonfuz>
oh yeah, I wonder how much of the url I can chop
<neonfuz>
currently it's "mirror://sourceforge/projects/eureka-editor/files/Eureka/${version}/eureka-${shortversion}-source.tar.gz"
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
<neonfuz>
btw, I need to be able to turn 1.21 into 121 for this filename, right now I'm using version and shortversion, any suggested function to do this transform?
<gchristensen>
just use two different strings
<neonfuz>
aight
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmeredith has quit [Quit: Connection closed for inactivity]
djtyml has joined #nixos
<djtyml>
hi, all~ a newbie needs some help....Is anyone familiar with "*** found zero or more than one cabal file ([]). Exiting."?
<clever>
djtyml: in general, you shouldnt be installing any haskell things with nix-env
ajs124 has left #nixos ["Machine going to sleep"]
<clever>
all haskell must be done in nix-shell, and it will then have the same versions
<djtyml>
clever: I didn't. Or do I?
<elvishjerricco>
clever: Turns out xmonad's `spawn` command runs stuff through `sh`, which was causing the SHLVL increment. Swapped it out with `spawnSafe`, which preserved the SHLVL=0 that I set in `displayManager.sessionCommands`
<clever>
djtyml: you also shouldnt run the cabal binary, but Setup.hs
<clever>
elvishjerricco: aha, system() is to blame
<clever>
elvishjerricco: outside of nix-shell, what does `type cabal` print?
alexteves has quit [Remote host closed the connection]
<elvishjerricco>
clever: Mhm. Works now. I have a nice bash array of colors and I just index it with SHLVL - 1
<clever>
djtyml: oops, ^^^
<elvishjerricco>
cabal is /run/current-system/sw/bin/cabal :P
<clever>
elvishjerricco: cabal shouldnt be installed on nixos, it tends to cause version conflicts down the road
<djtyml>
clever: I don't know why import reflex-platform would cause running cabal2nix. I do jailbreak because when I depend snap, it install a heist version that can't use aeson version in nixos-unstable
<clever>
djtyml: reflex platform is running callCabal2nix on every source directory you give it, to auto-generate nix files for each
<{^_^}>
haskell/cabal#5116 (by hvr, open): RFC consider including identifying infos from `ghc --info` in nix-style hash
<clever>
elvishjerricco: i prefer using the cabal library nix-shell provides, via Setup.hs
<clever>
and just dont use new-build at all
<elvishjerricco>
clever: Not really an option for cabal.project files with multiple packages listed
<clever>
elvishjerricco: and i properly define all modules in nix :P
<elvishjerricco>
clever: But then you can't get incremental building across your packages. Huge pain when you've got multiple cabal packages you're working on in one project
<clever>
elvishjerricco: i have plans for a tool that will just sum together several cabal files
<djtyml>
clever: I see. So you mean I should build-depend reflex in my cabal, instead of a submodule?
<clever>
elvishjerricco: so you can nix-shell into that summed.cabal, and it will have all src and executables
<elvishjerricco>
clever: Getting the right nix shell of deps isn't the problem.
<clever>
djtyml: i'm not that familiar with what reflex-platform is doing with all of its nix files, they seem to be trying to automate a lot of the tricky stuff, but that also makes it harder to debug anything
<elvishjerricco>
We've already got shellFor which can do that crudely
<clever>
elvishjerricco: the summed cabal file will have all of the cabal projects in one shell, and `cabal build` will just treat it as one massive blob for incremental building
<elvishjerricco>
clever: Oooh
<elvishjerricco>
I do not like that :P
<clever>
i would make it such that you dont have to do EVERYTHING in one
<clever>
you can select which ones it needs
kyren has quit [Remote host closed the connection]
<elvishjerricco>
djtyml: To `doJailbreak` heist, you'd use the `overrides` argument to `project`
<clever>
Lears: i have heard of it, but havent tried it yet
<elvishjerricco>
Lears: Yea, but that doesn't seem relevant. It doesn't use cabal files
<djtyml>
:elvishjerricco That's what I am doing right now..haha...I am just adding servant-reflex to it, so I need snap....ok let me look at overrides now. Thanks!
<djtyml>
elvishjerricco: where should I put this code?
<elvishjerricco>
djtyml: `packages` is for just declaring directories that you want to turn into haskell packages; it'll run cabal2nix for you. `overrides` is for doing derivation changes to the haskell package set.
<elvishjerricco>
You'd put that in your default.nix, below the packages section.
<clever>
ah, that makes sense
<Lears>
I haven't looked at snack that closely myself, I just figured if incremental builds across haskell projects without cabal problems is what you want then it seems like the answer.
<elvishjerricco>
Lears: Eh. It's definitely too immature to call it the answer to anything yet
<{^_^}>
[nixpkgs] @ryantm pushed commit from @xaverdh to master « android-file-transfer: init at 3.4 »: https://git.io/fNgJ3
<djtyml>
elvishjerricco: thanks! I misunderstood. Now it's compiling snap now. Thank you, elvishjerricco and clever, you guys saved my day! or days!
<elvishjerricco>
djtyml: Great :)
sbdchd has quit [Ping timeout: 260 seconds]
<elvishjerricco>
djtyml: FYI, the #reflex-frp channel may be of interest to you. You'll find more people familiar with the reflex-platform infrastructure over there
<djtyml>
elvishjerricco: I see. Thanks for the info. I should come up IRC sooner!
<adelbertc>
what does `@$` do in Nix, in the context of bash?
<adelbertc>
looking at a Nix expression w/ a bash script that has `--mtime="@$SOURCE_DATE_EPOCH"`
<samueldr>
@$ or $@?
<samueldr>
ah
<Myrl-saki>
adelbertc: That just seems to be @$foo
<Myrl-saki>
Like, @, followed by the value of foo.
Jason_Grossman has quit [Ping timeout: 248 seconds]
<adelbertc>
ahhh
<Myrl-saki>
Like x$foo, where x = @
<adelbertc>
nothing special
<Myrl-saki>
I might be wrong though.
<adelbertc>
hmm
<samueldr>
it's probably sometimes to do with *that command*
<samueldr>
--mtime="@____" where mtime means something else when there is or isn't @ before
<adelbertc>
yeah looking
<adelbertc>
(it's `tar`)
<samueldr>
Set mtime for added files. DATE-OR-FILE is either a date/time in almost arbitrary format, or the name of an existing file. In the latter case the mtime of that file will be used.
<samueldr>
that manpage isn't that helpful :S
<vaibhavsagar>
is there a way for me to get a list of all dependencies of a derivation?
<infinisil>
vaibhavsagar: nix-store -qR on the drv path
<vaibhavsagar>
no, I mean as a nix expression
<infinisil>
Nope, not really
<clever>
adelbertc: oh, i think @1 in mtime, says its a raw unix timestamp, and to not try to parse it as a date/time
<infinisil>
You could get a part of it by looking at buildInputs, propagatedBuildInputs, etc.
<vaibhavsagar>
e.g. I can do `drv.env.nativeBuildInputs`
<infinisil>
But that's not all deps
<vaibhavsagar>
yeah, why isn't there a function that just concatenates all of them
<vaibhavsagar>
lib.getAllInputs
<clever>
vaibhavsagar: some of them are only known at buildtime, via $out/nix-support
<infinisil>
,context vaibhavsagar
<{^_^}>
vaibhavsagar: Nix strings can have a context representing a set of derivations this string depends on. E.g. "foobar ${pkgs.hello}" has the hello derivation in its context, "foobar" doesn't have any context.
<clever>
vaibhavsagar: if you use the runhaskell from "${(callCabal2nix "name" ./path {}).env}/bin/runhaskell" then it will have the deps path/name.cabal wanted
IRCsum has quit [Remote host closed the connection]
<clever>
actually, its not that exact path
<vaibhavsagar>
ooh, let me try this
<clever>
the derivation `callCabal2nix "name" ./path {}).env` will have a runhaskell in its $PATH
<clever>
not sure how to get the path to that from nix
IRCsum has joined #nixos
<vaibhavsagar>
I see
<vaibhavsagar>
so what I tried to do was to add it to the buildInputs of my other derivation
igo95862 has joined #nixos
<vaibhavsagar>
and it seems to work for now
<clever>
but each runhaskell is tailored to the deps of a single derivation
<clever>
and you have to use absolute paths if you want to force 2 into the same env
<clever>
if you use buildInputs, then only the first will work
<vaibhavsagar>
I only have one runhaskell
<vaibhavsagar>
I'm not merging multiple haskell packages together
<clever>
vaibhavsagar: so you need to yank the ghc-with-packages out of .env's inputs
<vaibhavsagar>
okay, that's nativeBuildInputs
iqubic has joined #nixos
orivej has joined #nixos
igo95862 has quit [Quit: igo95862]
igo95862 has joined #nixos
Have-Quick has joined #nixos
<sir_guy_carleton>
are there any current projects for improving the nixos installation process? (i'm asked on the dev channel, but i've gotten no response)
<Jason_Gr`>
For me by far the hardest part of installation was partitioning and getting a boot manager to work. Which is not NixOS specific.
<samueldr>
calamares is a god anchor word for this
<samueldr>
Jason_Gr`: right, exactly
<samueldr>
which is why it may be possible to work with an existing installer framework
<Jason_Gr`>
Sounds good!
<Jason_Gr`>
Just the documentation should be sure to warn newbies that they're going to find themselves staring at configuration.nix in a text editor before long.
<iqubic>
getting the boot manager to work does require a bit of NixOS know how because you have to set the right options in configuration.nix.
<samueldr>
joepie91: yes, and question based for the flavour
<samueldr>
iqubic: efi vs. legacy
<iqubic>
samueldr: Oh. I was thinking of Grub vs Systemd-boot.
<samueldr>
if you want a grubby ol' boot or a systemy systemd-boot :)
<joepie91>
iqubic: where to dump the bootloader :)
<samueldr>
yeah, that one would either need a basic default, or a question
<joepie91>
samueldr: honestly, I don't think that should be an installation question
igo95862 has quit [Quit: igo95862]
<Jason_Gr`>
Manjaro has a super-nice installer IMO.
<iqubic>
I think you could also ask the user what DE/WM they want and set that up too.
<samueldr>
joepie91: depends on if the idea is to wizardify some options for the configuration
<joepie91>
installation should only ask the things it _needs_ to ask, and probably have an option to generically edit configuration.nix
<Jason_Gr`>
FWIW.
<Jason_Gr`>
I agree with joepie91.
<joepie91>
otherwise you're left with a very lengthy installation process and you'll fail to capture the "don't care, just show me the thing" crowd
<samueldr>
joepie91: exactly
<samueldr>
something like "show me more options"
<joepie91>
bonus points for an editor that shows configuration.nix and the options reference side-by-side
igo95862 has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<iqubic>
Also, if you have the user create an account, then you can just place the proper settings into configuration.nix .
<samueldr>
the options could very well be profiles, or common scenarios
<samueldr>
^ the questions in the wizard could be common scenarios*
<joepie91>
problem is that then 1) you start bikeshedding over what is 'common' and 2) you start optimizing for who is already using it, not who might want to use it
<joepie91>
:)
<samueldr>
I want a minimal i3 vs. kde and activate everything I could ever think I want
<joepie91>
"only ask what is necessary" is a fairly bikeshed-immune cutoff
<samueldr>
joepie91: sane defaults that are easily bikesheddable :)
<samueldr>
because you will also have users that want the next next questions
<iqubic>
The choice of Login Manager is simple. Don't ask the user, just go ahead and configure LightDM.
<samueldr>
iqubic: why not sddm?
<sir_guy_carleton>
samueldr: i was thinking of just a simple console based installer that would allow people to make chanages to the default configuration.nix
<samueldr>
sir_guy_carleton: oof, so configuration management, not the steps up to?
<tertle||eltret>
is it simply nouveau?
<samueldr>
tertle||eltret: put nouveau
<samueldr>
instead of nvidia
<joepie91>
LightDM would be a good default, primarily because it works everywhere
<samueldr>
:)
<tertle||eltret>
oksy just making sure
<samueldr>
joepie91: I was playing devil's advocate against even myself :)
<joepie91>
pretty much every "desktop manager fails to start / glitches out" question on the tracker has LightDM as a workaround
<joepie91>
:P
<clever>
tertle||eltret: and when changing video drivers, you usually have to reboot to fully apply it
<samueldr>
tertle||eltret: IIRC this list is safe, if you put something that doesn't exist the build will fail
<iqubic>
samueldr: Does the average user know enough about the differences between the two login managers to chose between LightDM and sddm? Dose the average user even care about that choice?
<clever>
tertle||eltret: so you should do `nixos-rebuild boot` since switch is likely to break
<iqubic>
Hell, I don't even know the differences between LightDM and sddm.
<joepie91>
I've seen SDDM break too often
<samueldr>
iqubic: in that case, the default should not come from the installer, but from whatever is currently the default on nixos
<tertle||eltret>
im trying to install the rt kernel from musnix, but nvidia doesnt play nice with those
<samueldr>
this shouldn't be something that's to discuss about the installer
<tertle||eltret>
wish me luck
<{^_^}>
Tashi delek! Que vaiga bien! Eme nenyo! Good luck!
<tertle||eltret>
building with all core now as well
<joepie91>
... new bot command?
<joepie91>
lol
<iqubic>
tertle||eltret: Why do you want the rt kernel from musnix?
<sir_guy_carleton>
what i'm thinking as 'first step' is a simple shell script that do call the various other nixos install script and would modify the configuration.nix on the mounted partition
<samueldr>
sir_guy_carleton: write something, both code and RFC
<clever>
sir_guy_carleton: have you seen justdoit?
<tertle||eltret>
iqubic: well, mainly i just like to tinker about and see if it works, and also for possibly recording music with this PC
<samueldr>
I've seen talks of it for about a year, but almost nothing concrete :/
<samueldr>
writing bad code is bound to nerd snipe someone that will fix yer stuff :D
<samueldr>
(I'm actually doing this right now)
<clever>
sir_guy_carleton: this will format the disk with GPT, for either legacy or uefi booting, with or without luks+lvm, and then format the rootfs with zfs, and install nixos
<joepie91>
lol
<tertle||eltret>
need to reboot brb
<samueldr>
proof, I wrote nix-top, and clever cleverly gave tips for improvemet
<samueldr>
improvement* he didn't give me tip for improved typing :(
<joepie91>
tips*
<joepie91>
:P
<tertle||eltret>
so, nixos-rebuild boot will suffice for a reboot?
<clever>
tertle||eltret: yeah
<samueldr>
(when I'm tired my fingers only graze the keys, so most of the mistakes are actually missed takes ;))
<tertle||eltret>
nice
<joepie91>
samueldr: for me, grazing my keys is enough to type...
<joepie91>
:P
<iqubic>
tertle||eltret: Did you ever get sound working when not using sudo?
<tertle||eltret>
iqubic: yeah it did start working after the initial musnix update
<tertle||eltret>
seem that rt worked as well
<tertle||eltret>
Linux nixos 4.9.35-rt25 #1-NixOS SMP PREEMPT RT Thu Jun 29 11:00:49 UTC 2017 x86_64 GNU/Linux
<adelbertc>
clever: ah yeah that looks like the case, thank you! samueldr
mariatsji has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 244 seconds]
mariatsji has joined #nixos
blankhart has joined #nixos
iqubic has quit [Quit: rebooting]
tzemanovic has joined #nixos
mariatsji has quit [Ping timeout: 260 seconds]
tzemanov_ has quit [Ping timeout: 256 seconds]
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
Have-Quick has joined #nixos
lutzmor has joined #nixos
lo_mlatu has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
<lutzmor>
morning is there anyway to prevent nixos-rebuild switch --upgrade from building a new kernel? i use an older patched kernel and the build takes age on this device :)
tzemanovic has quit [Ping timeout: 244 seconds]
crmlt has joined #nixos
<lo_mlatu>
hi, when wrting a configurations.nix, can I override a options which has been defined in a imported configuration?
<Lisanna>
you should be able to use mkForce for that
Lisanna has quit [Quit: Lisanna]
FRidh has joined #nixos
djtyml has quit [Remote host closed the connection]
<lo_mlatu>
Thanks! Lisanna
lo_mlatu has quit [Quit: Page closed]
<juhe>
lutzmor: there should be ways to do that, though it is not practial probably. I asume the reason for rebuild is updated kernel derivation (e.g. new kernel version) or updated dependencies. Unless you get those to original ones used to build your existing kernel, you are out of luck. An option might be to "disconnect" your kernel from the dependencies/changes in kernel package somehow, but I'd say it's not worth of the effort...
tzemanovic has joined #nixos
tzemanovic has quit [Read error: Connection reset by peer]
ersran9 has joined #nixos
ersran9 has quit [Changing host]
ersran9 has joined #nixos
Lisanna has joined #nixos
crmlt has quit [Ping timeout: 264 seconds]
blankhart has quit [Ping timeout: 265 seconds]
FRidh has quit [Quit: Konversation terminated!]
Fare has quit [Ping timeout: 244 seconds]
eeva has quit [Remote host closed the connection]
Fare has joined #nixos
eeva has joined #nixos
eeva has quit [Remote host closed the connection]
eeva has joined #nixos
agander has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
katyucha has joined #nixos
agander_ has joined #nixos
agander has quit [Read error: Connection reset by peer]
Fare has quit [Ping timeout: 256 seconds]
blankhart has joined #nixos
mariatsji has joined #nixos
lo_mlatu has joined #nixos
agander_ is now known as agander
blankhart has quit [Ping timeout: 260 seconds]
blankhart has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to master « coqPackages.category-theory: revert "Add equations as a buildInput" »: https://git.io/fNgIQ
<{^_^}>
[nixpkgs] @peti pushed 177 commits to haskell-updates: https://git.io/fNgId
lo_mlatu has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
lo_mlatu has joined #nixos
<lo_mlatu>
Hi, can you launch a virtualbox shortcut? I can start a virtual machine from the virtualbox manager but can't launch it directory using the shortcut created by virtualbox, which says `Effective uid is not root`
jperras has quit [Ping timeout: 256 seconds]
palo has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
<lutzmor>
@juhe need to watch at this, the last times i observe it rebuild the kernel everytime i did an update, even if i set the kernel to a special version so no kernel update was done.
<rembo10>
Is anyone else using atom on nixos-unstable? It crashes for me when I try to open a file or project (no gsettings schemas installed), and I'm not sure if it's because I'm using zsh as my shell, or if it needs the wrapGAppsHook
kiloreux has quit [Ping timeout: 260 seconds]
tzemanovic has joined #nixos
timon37 has joined #nixos
agander has quit [Ping timeout: 264 seconds]
<d1rewolf>
anyone know why this would fail: nix-shell -p sqlite --command "which sqlite"
<d1rewolf>
?
<d1rewolf>
I don't get any error from nix-shell. I've entered the shell myself, but sqlite doesn't exist
<d1rewolf>
ah...sqlite3. never mind :-/
kiloreux has joined #nixos
agander has joined #nixos
jperras has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
crmlt has joined #nixos
revskill has quit [Ping timeout: 265 seconds]
Thra11 has joined #nixos
lutzmor has quit [Remote host closed the connection]
worldofpeace_ has joined #nixos
nly has joined #nixos
<nly>
what does the '...' stand for in "{ config, pkgs, ... }:" in /etc/nixos/configuration.nix
<tilpner>
nly - It matches any unnamed other arguments in the passed attrset
<tilpner>
(They have names of course, but are not named in this pattern)
crmlt has quit [Quit: Lost terminal]
toby1851 has quit [Ping timeout: 260 seconds]
tinco has quit [Remote host closed the connection]
teh[m] has joined #nixos
<nly>
i just found out that my router's settings are accessible through the internet! behind a password but still!
<tinco>
hi! I just upgraded from nixos 17.03 to 18.03, and now it won't resolve domain names any longer, ping irc.freenode.net says name or service not knonwn
<tinco>
but ping 149.56.134.238 works perfecrtly
<Myrl-saki>
tinco: `cat /etc/resolv.conf`
thc202 has joined #nixos
<tinco>
# Generated by resolvconf
<tinco>
options edns0
<tinco>
that's all
<Myrl-saki>
Ah, no wonder.
<Myrl-saki>
tinco: Add this as the first line.
<Myrl-saki>
nameserver 8.8.8.8
<tinco>
ah that's google's dns server right?
<Myrl-saki>
Yep.
<Myrl-saki>
That's just a temporary fix. :P
<tinco>
why dwas it cleared?
<Myrl-saki>
I have no idea.
<Myrl-saki>
Have you tried a reboot?
<tinco>
no, I was hopoing to avoid the reboot :P
<Myrl-saki>
tinco: Ah. :P
<tinco>
sorry for the typos, I'm on the new macbook, and I have heavy lag :P
<juhe>
tinco: does systemd-resolved run (or is there an intention to run it?)
spear2 has quit [Quit: Leaving]
<steveeJ>
tilpner: :-O
<tinco>
juhe: `systemctl list-unit-files |grep resolved` yields nothing, should I use a different command?
<tinco>
it's not in `ps aux` either
<juhe>
tinco: systemctl status systemd-resolved
<tinco>
ah Loaded: not-found (Reason: No such file or directory)
<tinco>
it's dead
<juhe>
tinco: ok, question is if you want to run it... It's known to not be very secure... On the other hand, I use it because then containers using systemd-nspawn work better. So...
<juhe>
tinco: If you want to run it, use "systemd.resolved.enabled = yes" in your configuration.nix
<tinco>
ok :P so what's missing from my system that it just generated an empty resolv.conf? surely that's not the default? or do have an outdated nixos configuration?
<tinco>
is systemd-nspawn nice? I just made a systemd unit file for each container
nly has quit [Remote host closed the connection]
nly has joined #nixos
<juhe>
tinco: I had some legacy containers so use directly machinectl to manage them after copying them to /var/lib/machines/ folder...
worldofpeace_ has quit [Ping timeout: 256 seconds]
<juhe>
tinco: and added one generic /etc/systemd/network/containers.network file to handle all such containers
<tinco>
ah, they're not docker containers
<tinco>
jeez, I'm on crete, and their internet is super shitty
<tinco>
I wonder if they even can play multiplayer videogames :P
<juhe>
tinco: You're brave updating when on holidays :-)
<juhe>
tinco: However, when I enabled systemd-resolved, I have had an issue with secure dns; systemd-resolved tries secure dns resolution by default, this doesn't work on many places (missing secure dns configuration at ISP's side) so there were timeout. The fix is to use "services.resolved.dnssec = false".
<{^_^}>
[nixpkgs] @FRidh pushed 59 commits to staging-next: https://git.io/fNgOE
<tinco>
yeah >_> I wanted to do some devving, and the pipe is just too small to get stuff done locally, so I thought lets do it on my server, but then it turned out the dev tools were outdated on my server, so now I'm upgrading my server...
<nly>
1. Is it possible to deploy builds to a machine Y from a machine X, such that compilation takes place on X. Or 2. better if machine Y distributes its builds to machine X, and use ssh to access machine Y?
<{^_^}>
[nixpkgs] @FRidh opened pull request #44173 → Staging next → https://git.io/fNgOg
<nly>
machine Y is super slow with 768mb ram
<nly>
lol
<tilpner>
nly - Definite yes to 1, 2 should be possible as well (but I haven't done it yet)
<nly>
1 is preferred ofcourse
<juhe>
tinco: ok, If you don't need systemd-resolved, use the default (not sure what it is, maybe dnsmasq?)
<tinco>
right, so I was wondering why didn't it do the default anyway, is that something that has to be set explicitly in my nixos config?
<juhe>
tinco: I don't think so. It should "just" work.
logzet has joined #nixos
<nly>
tilpner is it also possible to change the configuration.nix options?
<juhe>
tinco: default is dhcpcd - I see I had it disabled at the time of switch to systemd-resolved
<tilpner>
nly - From where? For what?
<nly>
case no. 1
<juhe>
tinco: so check if you have dhcpcd running
<tilpner>
nly - Your question is still not clear. It is possible to have a configuration.nix on X, build that entirely on X, then push it to Y and activate it there
<nly>
yes that's what i think i need tilpner
<nly>
Y is already running nixos
b has joined #nixos
<tinco>
yeah, dhcpcd is running, maybe I should just restart that..
<nly>
but Y can't compile anything because of hardware limitations, and so i can't really upgrade, install from there
<tinco>
argh, nix-env -u threw an OOM
<tilpner>
nly - Try passing --target-host to nixos-rebuild
<juhe>
tinco: if your server is getting IP via DHCP, the dhcpcd should setup also DNS if DHCP server side sends it.
<tilpner>
nly - If that doesn't work, there are nixops, nix-deploy, and a small custom wrapper I could show
__monty__ has joined #nixos
<tinco>
juhe: right, so maybe digital ocean messed up in not sending me a dns server, or dhcpcd missed it for some reason
<juhe>
tinco: systemctl restart dhcpcd.service could help... (or you loose your IP and you are cut off your server...)
<nly>
i'll try it tilpner
<tinco>
:D
<juhe>
juhe: :-D
<juhe>
tinco: but you could manually add an backup IP address to the interface with ip command before the restart
<tinco>
why did I give this node only 1gb of ram.. I'm so cheap :\
<tilpner>
tinco - At Hetzner Cloud you get 2GB for less money, if you want to be cheap
<tilpner>
(Not that 2GB is enough for all system evals...)
<tinco>
we used hetzner at my previous employer, they're great, but I prefer the user interface of digital ocean
<tilpner>
DO has a great interface, indeed. Note though that Hetzner Cloud does not use the Robot interface you're used to
<tinco>
ah
<tinco>
do they also have DC's outside the EU? I like to run some of my sites in the US because most devs are there
__monty__ has quit [Ping timeout: 240 seconds]
<tilpner>
No, I don't think so
__monty__ has joined #nixos
silver_hook has quit [Ping timeout: 268 seconds]
silver_hook has joined #nixos
silver_hook has quit [Changing host]
silver_hook has joined #nixos
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
nly has quit [Ping timeout: 250 seconds]
ersran9 has quit [Ping timeout: 256 seconds]
revskill has joined #nixos
xy2_ has joined #nixos
agander has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @Zimmi48 opened pull request #44175 → mustache-go: init at 1.0.1 → https://git.io/fNg3P
hakujin1 has joined #nixos
<cocreature>
which package contains the man page for "man ascii"?
blankhart has quit [Read error: Connection reset by peer]
<infinisil>
,locate man ascii
<{^_^}>
Found in packages: ascii, manpages
blankhart has joined #nixos
<viric>
ah, nice ,locate
<infinisil>
cocreature: ^
hakujin1 has quit [Ping timeout: 265 seconds]
<cocreature>
infinisil: hm I tried "nix-shell -p ascii" but that gives me a man page for the ascii tool not the one that lists all ascii characters. and nix-shell -p manpages doesn’t seem to have any ascii manpage
Thra11 has joined #nixos
<infinisil>
,locate man7/ascii.7.gz
<{^_^}>
Found in packages: manpages
<infinisil>
Maybe try installing it it your nixos or user profile, i remember there being problems with nix-shell and man pages at some point
vcunat has joined #nixos
<infinisil>
Or check that your manpages version actually contains that file
<cocreature>
infinisil: ah indeed, adding it to systemPackages helped. thanks!
<infinisil>
Nice, no idea why that is still
<infinisil>
Oh, probably it's in the "man" output of the package
<infinisil>
Which was the reason for nix-shells man problems
logzet has quit [Remote host closed the connection]
logzet has joined #nixos
jperras has joined #nixos
yorick has quit [Quit: WeeChat 2.0]
agander has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
aanderse-laptop has joined #nixos
mariatsji has joined #nixos
ajs124 has joined #nixos
smolboye has joined #nixos
<smolboye>
helo
<smolboye>
i installed nixos, but it takes like 16 seconds to boot. can anyone help me diagnose it?
<smolboye>
dhcpcd service takes 5 seconds, it was 9 seconds before this but i added noarp, noipv6 and ipv4only
<smolboye>
systemd-logind takes 5 seconds, why is this so?
<tilpner>
smolboye - Have you run systemd-analyze critical-chain?
<smolboye>
and can i shave some time off dhcpcd? i tried network manager as well and its around the same time
<smolboye>
you can still open the link in a browser ;)
<smolboye>
why would anyone sane have an username called "the" smh
<TheBrayn>
Where can I see the make options for compiled packages like
nly has joined #nixos
<TheBrayn>
number of jobs and so on
nuncanada has joined #nixos
stanibanani has joined #nixos
<smolboye>
y
<smolboye>
uh my bad
mariatsji has quit [Remote host closed the connection]
<smolboye>
but i sound like an idiot asking to speed up a 16 second boot. it is because i use an ssd and it usually boots within 5-6 seconds on other distros
nly has quit [Remote host closed the connection]
nly has joined #nixos
<Yaniel>
is your home on a network disk?
<Yaniel>
the critical chain looks a bit like it
<smolboye>
no but i do have a disk that im loading through sshfs
<Yaniel>
(or some other partition)
<Yaniel>
you could try deferring connecting that disk
<smolboye>
wait let me show you the options i have on it
<Yaniel>
something like noauto,x-systemd.automount could work
<smolboye>
Yaniel: the archwiki that you linked to, ive done all of it tbh
foldr has joined #nixos
<smolboye>
also i want to remove it as a boot networking service and install it as a user service instead
<foldr>
Hi, I have a derivation using nixpkgs.haskell.packages.${compiler}.mkDerivation. Now when I do nix-build, it will build my package using cabal. But when I do nix-shell, ghc-pkg list does not include all the packages listed in libraryHaskellDepends, and cabal build fails with missing dependencies.
ng0 has quit [Quit: Alexa, when is the end of world?]
ambro718 has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
grp has joined #nixos
<smolboye>
worldofpeace: faster boot xd
<smolboye>
its not a big deal tbh
Fare has joined #nixos
<smolboye>
im probably just making a big fuss out of this. a spoilt brat who has spent a lot of time using runit and openrc which are definitely way faster than this
<smolboye>
i just want to see how much faster it can get tbh
<smolboye>
i also have another problem. I have set allowUnfree to true but i still dont see spotify in the repo
<smolboye>
this is what i want to put in the config
vcunat has quit [Ping timeout: 256 seconds]
<smolboye>
ignore the last device section, i got that covered
<grp>
strange, I've been running nix-env --list-generations for the last 3 nixos-rebuild, and the output is completely empty
<smolboye>
symphorien: i actually just want dhcpcd to start as a user service rather than a boot time service. so disabling it and then adding a custom userService for it is the way to go?
<worldofpeace>
smolboye: You want to add to the screenSection and the monitorSection of xorg.conf I think maybe
<symphorien>
this is a solution yes, but here in this case services.dhcpd4.enable = false should be enough
vcunat has joined #nixos
<symphorien>
smolboye: "as a use service" : doesn't dhcpd run as an unprivileged user ?
<symphorien>
*user
<smolboye>
it actually starts at boot
jasongrossman has joined #nixos
<symphorien>
then some other module may put this option to true
<symphorien>
you can mkForce it to false
<smolboye>
ok thanks a lot
<jasongrossman>
Here's the answer to a question I asked in this channel a couple of days ago. How can I change the maximum ARC size for ZFS on NixOS? Answer: environment.etc."modprobe.d/zfs.conf".text = "options zfs zfs_arc_max=12884901888"; # should set ZFS arc max to 12 GB
<jasongrossman>
<symphorien>
to check the current value, you can use nixos-option
<smolboye>
worldofpeace: thank you, will heck it out
<smolboye>
check**
<gchristensen>
cool, thanks jasongrossman!
<jasongrossman>
gchristensen: No worries! Yay for NixOS being easy in this case.
<sphalerite>
jasongrossman: or you can put it on the kernel command line as "zfs.zfs_arc_max=12884901888" I think
<jasongrossman>
sphalerite: Thanks. Interesting.
<sphalerite>
so boot.kernelParams = ["zfs.zfs_arc_max=12884901888"];
<jasongrossman>
sphalerite: I guess that's neater than using a file in /etc.
<gchristensen>
can you change this at run time?
<jasongrossman>
gchristensen: I seem to remember changing it at run time, but I've never tried that in linux.
<{^_^}>
[nixpkgs] @danieldk opened pull request #44178 → liblinear: init at 2.20 → https://git.io/fNg83
<jasongrossman>
gchristensen: So I think it's possible in principle, yes. But I doubt that it's well tested in linux. IIRC, ZFS's memory management in linux is not yet optimised, so if you decrease it you might not get the memory back, at a guess.
<jasongrossman>
I'm going to test sphalerite's suggestion, probably tomorrow. Does anyone care enough for me to report back here?
<sphalerite>
jasongrossman: gchristensen: you can change it at run time by writing to /sys/modules/zfs/params/zfs_arc_max
<jasongrossman>
gchristensen: Right, I should do that. Thank you for making me do the right thing!
<sphalerite>
might be worth writing a module for it
<jasongrossman>
sphalerite: Excellent!
<sphalerite>
then again, not sure if changing it at runtime via nixos config is something that would be needed often enough to justify the effort
<d1rewolf>
guys, nixos-rebuild is now often taking 45 second for me on one machine and is freezing on "restarting the following units: polkit.service". clever mentioned I should try to see what process is blocking things, but so far it appears the polkit process is the only thing with a lock (ps STAT of "Ssl"). Any idea how to track this down?
<sphalerite>
I sometimes set it to free up RAM, but wouldn't use nixos config for it
Tiez has joined #nixos
<sphalerite>
d1rewolf: you could try stracing the process (strace -p $pid) to check what it's up to
smolboye has quit [Quit: WeeChat 2.0]
<jasongrossman>
Changing zfs_arc_max at runtime doesn't seem to be working anyway.
<jasongrossman>
I expect there's a way to fix it but it might not be easy.
<jasongrossman>
sphalerite: Oh, it's working for you? That's interesting.
<sphalerite>
yes, if you set it to a lower value it will immediately free up RAM
<jasongrossman>
I just set it and then did
<jasongrossman>
cat /proc/spl/kstat/zfs/arcstats
<jasongrossman>
smolboye has joined #nixos
<sphalerite>
if you raise it, it won't immediately fill the newly available space
<sphalerite>
only as new stuff is read
<snajpa>
jasongrossman: you can tune zfs parameters in /sys/module/zfs/parameters, it is well tested ;)
<jasongrossman>
sphalerite: Lowering it isn't freeing any RAM for me. I wonder what's different.
* snajpa
running 20+ prod nodes w/ ZoL
<jasongrossman>
snajpa: I wonder why it's not working for me. Maybe it's not immediate? But for sphalerite it is immediate.
<smolboye>
ugh so i added stuff to monitorSection and screenSection and now i dont have a displaymanager working
<snajpa>
can you post your arcstats somewhere pls?
<jasongrossman>
I have to log off in a sec but I can paste a couple of lines here.
<jasongrossman>
root@core ~# cat zfs_arc_max
<jasongrossman>
1000000000
<jasongrossman>
<jasongrossman>
And 01:26.42 ~> cat /proc/spl/kstat/zfs/arcstats | grep c_max
<jasongrossman>
c_max 4 12884901888
<jasongrossman>
<smolboye>
worldofpeace: what should i do? i think im just gonna get rid of the displaymanager
<jasongrossman>
01:27.28 ~> free -h
<jasongrossman>
total used free shared buff/cache available
<snajpa>
are you running a recent version of ZoL? when over metadata limit, older versions wouldn't take the newly set values into account until the cache cleaning was done so the limits were met
<jasongrossman>
snajpa: I'm on NixOS unstable. Logging off for the moment though. Ciao for now.
<sphalerite>
oh yeah actually it isn't taking effect immediately for me either anymore
<sphalerite>
I do think it used to
<snajpa>
well then someone must have broken it :)
<d1rewolf>
sphalerite, i'll give that a shot. thx
<snajpa>
or there's a new reason why the values aren't updated internally
<tazjin>
is there a nix function that creates a nix store? i.e. a derivation, the output of which actually contains the `/nix/store` structure of all inputs (fully copied, not linked)
<tazjin>
and if not, is there something that would stop one from writing such a function?
<sphalerite>
tazjin: there's stuff like make-tarball. The only reason I could think of why you wouldn't want to do that is that it would retain references to all the paths you have in it
agander has joined #nixos
<sphalerite>
s/all/most of/
<tazjin>
sphalerite: thanks, I'll take a look at that
<gchristensen>
if I didn't have loads of other projects perpetually taking my time, I'd love to redo this machine with zfs
<azazel>
hi
<smolboye>
ok so the displaymanager wont start at all on boot, wtf
<smolboye>
it just boots into command line
<worldofpeace>
smolboye: can you paste how you did it somewhere? And when you say, 'no displaymanager` what do you mean? That could be x refusing to start.
<smolboye>
uh actually slim wont start, booting puts me into tty
<smolboye>
one sec let me send you my config
<sphalerite>
gchristensen: can recommend :D
<sphalerite>
gchristensen: backups have never been so fast
<d1rewolf>
sphalerite, seems to be hung at "restart_syscall(<... resuming interrupted poll ...>". The polkit process
<azazel>
what's the best way to avoid errors like "attribute 'hostname' missing" while building the configuration?
<sphalerite>
d1rewolf: I think that means it's waiting for something else
<worldofpeace>
smolboye: hmm, I don't think slim works to great IIRC
<gchristensen>
sphalerite: at this rate I'm pretty sure I'll just do it next time I get a new laptop.
<azazel>
or better, how to resolve attribute assignement dependency?
<{^_^}>
[nixpkgs] @gnidorah opened pull request #44179 → twilight, kde2-decoration: add myself to maintainers → https://git.io/fNg8d
<gchristensen>
azazel: add networking.hostName = "..."; to your configuration.nix
<sphalerite>
azazel: where are you getting this?
tusj has joined #nixos
<sphalerite>
gchristensen: it just defaults to "nixos", I don't think that's the problem here
<gchristensen>
o
<worldofpeace>
smolboye: yeah slim was abandoned in like 2013 so maybe use something else too
<smolboye>
multiple identifier lines
<smolboye>
hm weird
<azazel>
gchristensen: I had it, but then a module from 'imports' using it gave me that error... so I tried to move that definition in nother submodule... but I'm still getting the error
<sphalerite>
smolboye: worldofpeace: while slim was abandoned upstream, it is still the default in 18.03 and using it shouldn't be a problem
Fare has quit [Ping timeout: 256 seconds]
<worldofpeace>
smolboye: can you get the journal like sphalerite suggested too?
<gchristensen>
sphalerite: why haven't we made it not the default?
<gchristensen>
time & energy?
<worldofpeace>
hmm that gives me ideas gchristensen
<sphalerite>
gchristensen: we have in unstable iirc
<gchristensen>
nice
<smolboye>
worldofpeace: i saw that in the journal, and now that i see the config it is messed up. weird
<smolboye>
i just did like you asked me to, i put stuff in the screenSection and monitorSection
<smolboye>
aaaahh i am in a tty right now cant really open links
<smolboye>
wait let me boot into the older generation
<snajpa>
sphalerite: the only reason it wouldn't update is that it is stuck somewhere there
smolboye has quit [Quit: WeeChat 2.0]
<sphalerite>
smolboye: I don't know how this is supposed to work tbh, but it basically generates the line `Identifier "Monitor[0]"` before your monitorSection
FRidh has quit [Quit: Konversation terminated!]
smolboye has joined #nixos
<smolboye>
ok so
<smolboye>
i should just remove the identifier line?
<sphalerite>
yeah, you can refer to the first Monitor section using the identifier Monitor[0]
<sphalerite>
it's kind of a stupid setup though :/
<smolboye>
ah alright
<smolboye>
thanks
<smolboye>
can i just override the entire config somehow instead?
<smolboye>
do i need to turn slim.enable to false or just setting sddm.enable to true is enough?
<sphalerite>
just enabling sddm should do
orivej has joined #nixos
<sphalerite>
I think
igo95862 has quit [Quit: igo95862]
<worldofpeace>
files fetched with `fetchFromGitHub` hashes shouldn't just change right?
wangoe has quit [Quit: WeeChat 2.1]
<sphalerite>
worldofpeace: if they use a commit hash for rev, definitely not
<sphalerite>
worldofpeace: if they use a branch name, they typically will.
<sphalerite>
If they use a tag name, they really shouldn't but that's up to the owner of the repo.
<worldofpeace>
I'm thinking maybe the owner might have messed with the tag but it seems like something they would never do
<worldofpeace>
I'm hoping it's not like a (M/W/etc)ITM
wangoe has joined #nixos
<sphalerite>
It's accessed via HTTPS. If you're being targetted by someone who's compromised a CA or github you're likely well be screwed whatever way you look :p
<sphalerite>
s/well/to/
<worldofpeace>
I don't know if I should make me feel better or worse :P
<sphalerite>
Do you think you're a valuable enough target for someone to risk their compromise of such big things being exposed to attack you?
wucke13 has quit [Quit: WeeChat 2.0]
<sphalerite>
Most likely scenario is upstream has screwed with their tags.
<sphalerite>
Most likely malicious scenario, I suppose, is that someone has compromised upstream and put something malicious there (i.e. not MITM and not targetting you specifically)
<sphalerite>
But I'd still guess it's harmless.
<worldofpeace>
Now I feel better :)
<worldofpeace>
And I think the attacker would prefer If you didn't assume their gender so (M/W/etc)ITM
<worldofpeace>
:P
smolboye has quit [Quit: WeeChat 2.0]
<sphalerite>
well I'm saying a MITM is unlikely. A *ITM is obviously more likely. 😉
<worldofpeace>
hah
<samueldr>
isn't it meanie in the middle?
<sphalerite>
Or maybe the M stands for malefact(or|trix) 😉
<sphalerite>
samueldr: ooooh yes I like that
<worldofpeace>
We can't assume their aweful deep down though
<worldofpeace>
They might be nice somewhere else
mekeor has joined #nixos
<sphalerite>
worldofpeace: they are doing a bad thing, which makes them a malefactor by definition. Not sure about meanie though ;/
<sphalerite>
You could also pester upstream to ask if they have been doing Bad Things™
<worldofpeace>
This reminds me of the need for this #43233
<smolboye>
it just hangs on my bspwm screen instead of going back to sddm
<sphalerite>
smolboye: how are you running it?
<sphalerite>
it might be that your session still has a process running which needs to exit before it will return to sddm
<smolboye>
?
<smolboye>
how am i running it?
<smolboye>
system boots into sddm, then i login, press cmd+alt+esc. instead of going back to sddm it just gets stuck on my bspwm screen. i can use mouse but nothing else works. i can switch ttys
<sphalerite>
you might be able to find out more by looking at `systemctl status user-$UID.slice` to see if any processes are still hanging out in your session scope
<sphalerite>
and killing them one by one to see if that brings back the login screen
<smolboye>
oh
<smolboye>
alright
grp has joined #nixos
<sphalerite>
gchristensen: why would that change frequently?
<gchristensen>
as IDs are added, dropped, updated, etc
knupfer has quit [Remote host closed the connection]
<samueldr>
that file is evergreen, it's not stable to a specific version of the key
<sphalerite>
gchristensen: do they often change the ID set?
<gchristensen>
sphalerite: some people change their it super regularly
<sphalerite>
oh right so it's on a person-by-person/org-by-org basis
smolboye has quit [Quit: WeeChat 2.0]
smolboye has joined #nixos
<smolboye>
ok
<smolboye>
there are processes that i need to kill yeah
<smolboye>
what do i do now
<sphalerite>
what are the processes?
<smolboye>
killing sxhkd and bspwm gets me back to the sddm screen
<sphalerite>
so it's bspwm failing to exit
<smolboye>
but why is this not getting killed by cmd+alt+esc
<sphalerite>
you have that bound using sxhkd?
<smolboye>
yeah
<smolboye>
bspc quit
<smolboye>
oh
<smolboye>
it is supposed to kill sxhkd with it though
<pie_>
fpletz, can i poke you about zfs?
init_6 has quit [Ping timeout: 260 seconds]
<sphalerite>
smolboye: well usually the session should just end when the session process (probably bspwm) exits
<sphalerite>
smolboye: what if, for testing purposes, you bind it to `pkill bspwm` rather than `bspc exit`?
<smolboye>
ok let me try that one sec
<pie_>
ah wait, clever you said you use zfs right?
smolboye has quit [Quit: WeeChat 2.0]
alex`` has quit [Quit: WeeChat 2.2]
<sphalerite>
pie_: any particular reason not to ask the whole channel or maybe #zfsonlinux?
smolboye has joined #nixos
<smolboye>
hm na still the same
<sphalerite>
smolboye: and if you bind it to `pkill 'bspwm|sxhkd'`?
<pie_>
sphalerite, not really, mainly just wondering if there's anything i should know
grp has quit [Ping timeout: 265 seconds]
<smolboye>
oh one sec let me try that
<pie_>
the nixos wiki page on zfs may or may not be stuck in 2015
<pie_>
*2014
grp has joined #nixos
smolboye has quit [Client Quit]
lunik1 has quit [Quit: WeeChat 2.1]
mekeor has joined #nixos
smolboye has joined #nixos
<smolboye>
na
<smolboye>
oh wait i forgot the quotes
<smolboye>
aaaaaaaa
smolboye has quit [Client Quit]
smolboye has joined #nixos
<smolboye>
yes that worked, yeah. i forgot quotes
<mekeor>
any idea why i can `curl 'http://127.0.0.1'` but `curl -6 'http://[::1]'` doesn't work ("no route to host")?
alex`` has joined #nixos
<worldofpeace>
mekeor: How does this relate to nixos?
<sphalerite>
mekeor: works for me
<mekeor>
worldofpeace: my question was whether you think i'm missing a nixos-configuration
<worldofpeace>
Sounds like there's just no ipv6?
<mekeor>
hmm, what does that mean?, worldofpeace
<sphalerite>
mekeor: I don't have any special configuration
smolboye has quit [Quit: WeeChat 2.0]
<mekeor>
sphalerite: what works for you? is it `curl -6 http://[::1]` that works for you?
<sphalerite>
mekeor: yes
Have-Quick has quit [Quit: Have-Quick]
<sphalerite>
mekeor: what does `ip a show dev lo` say?
smolboye has joined #nixos
<worldofpeace>
::1 is the loopback interface ipv6
knupfer has joined #nixos
<{^_^}>
[nixpkgs] @uri-canva opened pull request #44181 → bazel: fix darwin build on hydra → https://git.io/fNgu8
mariatsji has joined #nixos
<sphalerite>
worldofpeace: yes, which is why it's very strange that it would report "no route to host"
<smolboye>
uh yeah so i followed the path for XSetup
mariatsji has quit [Remote host closed the connection]
<smolboye>
and i can see xrandr there
<worldofpeace>
at this /nix/store/7r8w1p3mfq42jyrw81a3m11p0g7h027w-Xsetup
<smolboye>
yeah
<smolboye>
i can see it
<smolboye>
xrandr
mariatsji has joined #nixos
<smolboye>
and if i go to that location i can see xrandr
astrofog has quit [Quit: Quite]
<worldofpeace>
the full store path right?
<smolboye>
yeah
<worldofpeace>
weird, would those commands work normally?
<smolboye>
let me check
<smolboye>
yeah it works
<smolboye>
i mean the command works when i run it
hotfuzz_ has joined #nixos
<worldofpeace>
do `journalctl -u display-manager.service -xe` and see if maybe there is any errors? also paste your config again so someone else can look in case I missed something
i-am-the-slime has quit [Ping timeout: 256 seconds]
hotfuzz has quit [Ping timeout: 256 seconds]
aanderse-laptop has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @danieldk opened pull request #44182 → cargo-asm: init at 0.1.16 → https://git.io/fNgzZ
mariatsji has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 248 seconds]
<worldofpeace>
This is on the higher res monitor right?
grp has joined #nixos
<smolboye>
no it looks excellent on the big monitor but goes out of screen on my macbook
<worldofpeace>
that's LVDS1
<smolboye>
yes the macbook screen is lvds1
<smolboye>
the other one is hdmi1
<Thra11>
sphalerite: Do I need to override NIX_PATH *after* running ~/.nix-profile/etc/profile.d/nix.sh, otherwise it will append its NIX_PATH to mine?
grp has quit [Ping timeout: 268 seconds]
<sphalerite>
Thra11: it doesn't really matter — it will always use the first entry it can find, so having the standard one appended to yours shouldn't cause any trouble
<Thra11>
sphalerite: ok. thanks
Have-Quick has joined #nixos
<smolboye>
worldofpeace: the logs dont show anything. journalctl that is. it says "running display setup script"
<smolboye>
and it runs that
grp has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
<worldofpeace>
smolboye: what graphics? (i.e running out of ideas :P )
phreedom has quit [Ping timeout: 250 seconds]
<Thra11>
env|grep NIX_PATH: NIX_PATH=nixpkgs=/home/thrall/nixpkgs However, 'nix-env -i ghc' gives a different result to 'nix-env -i ghc -f /home/thrall/nixpkgs'
<smolboye>
then i will need to change stuff for other things as well
<smolboye>
lvds1 becomes lvds-1
<smolboye>
and like that for all displays
<smolboye>
its a lot of hassle
<smolboye>
i probably will need to enable glamor as well
alex`` has quit [Ping timeout: 244 seconds]
alex`` has joined #nixos
<worldofpeace>
glamor is default enabled I think. This might just be a problem with sddm. In that case you could report a bug. Or try lightdm (IIRC won't be much better).
<smolboye>
ok so um
<smolboye>
can i wait for 4 mins? its almost half time
<smolboye>
im gonna finish watching this game and then get back
<smolboye>
thanks for your help!
<worldofpeace>
lol, ok
agander has joined #nixos
knupfer has joined #nixos
<smolboye>
ok one sec
smolboye has quit [Quit: WeeChat 2.0]
smolboye has joined #nixos
<smolboye>
ok that didnt help
<smolboye>
its still the same thing
<smolboye>
do i need to reboot or just switch is enough?
<smolboye>
i logged out and logged back in, still the same
<worldofpeace>
reboot maybe to be safe.
<smolboye>
ok sec
smolboye has quit [Client Quit]
MP2E has joined #nixos
Have-Quick has joined #nixos
smolboye has joined #nixos
<smolboye>
still the same
<smolboye>
i think i need to add "modesetting"
smolboye has quit [Client Quit]
smolboye has joined #nixos
<smolboye>
ok um
<smolboye>
so
<TheBrayn>
why does nixos have nscd enabled by default?
<smolboye>
the screens look good
<smolboye>
but
<smolboye>
the thing is, the lvds screen overlaps on the hdmi screen on sddm
<worldofpeace>
I would say that's an improvement
<smolboye>
but it doesnt look good lol
<smolboye>
i mean both the screen look ok
<smolboye>
let me see if theres a fix
arianvp2 has joined #nixos
<arianvp2>
does nix 2.0 have an nix-env equivalent?
<worldofpeace>
no
<arianvp2>
is there a reason for that? the universal and predictable CLI for nix 2.0 is a breath of fresh air
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}>
sddm/sddm#805 (by guoyunhe, open): Overlap on multiple screen with different resolutions
<symphorien>
TheBrayn: I am not sure, but I think this is because glibc is not able to know where nss libraries are (because of nix, you would have to recompile everything if you change which nss libraries are available) so glibc goes to nscd and nscd can be configured the way you want without recompiling everything. But again, I am not sure at all.
<worldofpeace>
smolboye: Yeah, that usually doesn't work very well
<smolboye>
it looks like that for me
<smolboye>
did u see the image there?
<TheBrayn>
I'm confused. Are we talking about the same nscd? Name Service Cache Daemon
<worldofpeace>
smolboye: yeah
<worldofpeace>
smolboye: The only solution for that at this point is to not use sddm
<smolboye>
lol
<smolboye>
i remember having similar problem on other distro cant remember which one tbh
Have-Quick has quit [Quit: Have-Quick]
Have-Quick has joined #nixos
<worldofpeace>
You could try lightdm - maybe it'll be different.
<arianvp2>
I saw that nix 2.0 supports the --store parameter when the user has no access to /nix/store
<arianvp2>
I'm trying to use this to get nix running on our scientific cluster
<arianvp2>
however, there seems to bit of a bootstrap problem
Have-Quick has joined #nixos
<arianvp2>
-bash-4.2$ ./nix-2.0.4-x86_64-linux/store/0d60i73mcv8z1m8d2m74yfn84980gfsa-nix-2.0.4/bin/nix run --store ./nix-2.0.4-x86_64-linux/ -bash: ./nix-2.0.4-x86_64-linux/store/0d60i73mcv8z1m8d2m74yfn84980gfsa-nix-2.0.4/bin/nix: /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
<arianvp2>
to run nix, such to set /nix/store to ./nix-2.0*/store,, I need to have /nix/store
<arianvp2>
howabout would I get this to work?
katyucha has quit [Ping timeout: 264 seconds]
phreedom has joined #nixos
<arianvp2>
build nix from source, and link to libc manually?
<Thra11>
When specifying --builders, the manual says I need to provide a whitespace separated list of 7 elements of which only the first (the uri) is required. However, if I want to provide the 4th element, do I need to provide all the previous elements so that it knows it's the 4th element I'm trying to specify?
sbdchd_ has joined #nixos
<telent[m]>
Dsssdce y ex. eu
Have-Quick has quit [Quit: Have-Quick]
<Thra11>
Also, are the speed factors relative to the local machine? i.e. the local machine, while not in the list of builders (I don't have to put the local machine in the list, do I?), is considered to have a speed factor of 1.
smolboye has joined #nixos
katyucha has joined #nixos
Have-Quick has joined #nixos
Anton-Latukha has quit [Ping timeout: 260 seconds]
<smolboye>
helo
<smolboye>
so im gonna set it up to run without a display manager
katyucha has quit [Ping timeout: 248 seconds]
blankhart has joined #nixos
<TheBrayn>
why?
lutzmor has quit [Ping timeout: 255 seconds]
<smolboye>
cause display manager is stupid and it doesnt really do what i want it to do lol
<worldofpeace>
Do you know why slim wasn't working?
<smolboye>
idk let me try again
<smolboye>
lol
ajs124 has quit [Ping timeout: 268 seconds]
<smolboye>
also hm
<smolboye>
weird as i was using arch before this and was using arch
<smolboye>
so sddm worked fine there
<smolboye>
was using kde*****
<smolboye>
uugghhhh sorry
Fare has quit [Ping timeout: 244 seconds]
<smolboye>
was using kde on arch before this
Anton-Latukha has joined #nixos
ajs124 has joined #nixos
<Thra11>
Got distributed builds setup :) 7 interleaved streams of build output is a bit chaotic though!
<smolboye>
are there any themes preinstalled on this?
<smolboye>
for sddm that is
<worldofpeace>
That's a different monster I think. I'm not sure the kcm module works.
<worldofpeace>
Hmm you said sddm was working fine there...
<smolboye>
yeah
<worldofpeace>
If you could reproduce that in arch then it would mean it's a nixos thing then
<worldofpeace>
yes but I guess you can still use it
<TheBrayn>
but why when you can just use one of the alternatives
<smolboye>
i need to check slim
<smolboye>
one min
<TheBrayn>
just use lightdm
<samueldr>
TheBrayn: why not use something that works, if it works?
<TheBrayn>
last commit for slim was 5 years ago on github
<smolboye>
my problem is with multiple monitors the theme looks weird
<smolboye>
actually
<smolboye>
the monitors overlap each otehr
<samueldr>
*if*
<worldofpeace>
I'm not sure if lightdm would actually improve that
<TheBrayn>
because bugs and security issues are not getting fixed anymore
<samueldr>
TheBrayn: if there are
<samueldr>
(I don't actually know)
<worldofpeace>
TheBrayn: tell this to nixpkgs :P
<ajs124>
I'm trying to mount a fuse filesystem (sshfs) via fstab, but it can't find sshfs in it's path, despite having added it to environment.systemPackages. any ideas?
<samueldr>
I'm assuming that there aren't if it's not yet been marked as unsafe
<samueldr>
it's the most common use case of using startx at the VT that I have seen
<daveo>
Hello. I want to do a dual boot with Ubuntu. Any tips?
<Dezgeg>
yes, doesn't classical Xinit run with the setuid bit?
<samueldr>
alas, I don't have the full knowledge required to answer properly (or implement)
<Dezgeg>
my arch linux laptop has: -rwsr-xr-x 1 root root 11K Jan 26 2018 /usr/lib/xorg-server/Xorg.wrap*
igo95862 has quit [Quit: igo95862]
<Dezgeg>
but maybe someone has it figured out
<worldofpeace>
I think this is actually a WIP in nixpkgs (at least for DE's)
tinco has quit [Quit: Lost terminal]
Have-Quick has quit [Quit: Have-Quick]
Fare has joined #nixos
katona has quit [Quit: Connection closed for inactivity]
<daveo>
I'm thinking boot from the NixOS install media and resize a partition then install my second OS (looks like I'm going to do Pop! not straight Ubuntu) from its install media....
<daveo>
I have a LUKs encrypted volume I want to install on... hope that doesn't complicate things... What are the risks? I'm installing it to a secondary drive that really just handles data and NixOS is on a separate SSD
<daveo>
ajs124: UEFI ... I think! Please help me know for sure....
grp has quit [Ping timeout: 240 seconds]
<daveo>
From experience I know not to set Bios to 'legacy mode' when trying to boot from the install media. That caused some major headaches last time I did that...
lunik1 has joined #nixos
<samueldr>
daveo: if you're running linux, `lsmod | grep -i ^efi` should return a couple results
<lunik1>
Hello. My NixOS system hangs at "Started notify NFS peers of a restart", and google shows similar problem on other distros. Anybody had the same problem?
kyren has joined #nixos
smolboye has joined #nixos
jmeredith has joined #nixos
<logzet>
daveo: Yes
kyren_ has quit [Ping timeout: 265 seconds]
Fare has quit [Ping timeout: 264 seconds]
<logzet>
daveo: Regarding your luks question: Its just the a little bit more complicated partitioning and it works (at least for me)
shabius has quit [Remote host closed the connection]
<smolboye>
so
<smolboye>
didnt work
<smolboye>
tried lightdm, slim, sddm
<smolboye>
everything looks the same
<smolboye>
is this loss?
shabius has joined #nixos
Have-Quick has joined #nixos
<logzet>
daveo: I'd back up the luks header and then the risks should be similar to an unencrypted installation
<symphorien>
there is still gdm ?
<smolboye>
no
<smolboye>
gdm sucks
<symphorien>
¯\_(ツ)_/¯
<worldofpeace>
It does though :P
<worldofpeace>
I've had like 4 gdm's running
<logzet>
smolboye: What was your problem btw, boot times?
<smolboye>
no that one i fixed
<smolboye>
so what happens is
<smolboye>
i have multiple monitors
<lunik1>
so if I wait for 20 minutes, the boost process might continue
<smolboye>
and the display manager overlaps on both screen
Have-Quick has quit [Remote host closed the connection]
<smolboye>
like i have a macbook screen, and on top of it i have this ultrawide screen.
<smolboye>
all display managers are overlapping
<clever>
smolboye: i just fix the settings in xfce after i login, and dont care about the login page
<logzet>
So the UI shown on the ultrawide leaks to the macbook screen?
<smolboye>
but i use bspwm
<daveo>
logzet: for backup does `cryptsetup luksHeaderBackup /dev/sda2 --header-backup-file=/mymedia/luks-header` work?
<smolboye>
actually the display manager prefers the ultrawide screen, so the "enter password" part on my macbook screen goes far to the right and only appears in half on the screen
Have-Quick has joined #nixos
<logzet>
daveo: Dunno, kinda procrastinating this myself and never had to restore my header.
<logzet>
daveo: I suppose that you setup the lvm inside /etc/nixos/configuration.nix and then the lvm config is generated. Unlike other distros where you are configuring it directly through /etc/lvm
<daveo>
logzet: so I guess I did not manage it in the configuration.nix... there was a whole manual setup LVM section.then later I pasted uuids for the disks in the configuration.nix...
<daveo>
there is an initrd that contains keyfiles that I probably need to back up... Glad I found this page again
<clever>
daveo: nixos-generate-config would put the uuid's into hardware-configuration.nix automatically
<daveo>
clever: that's awesome
<clever>
but it doesnt understand luks, so you still need to tell configuration.nix how to open the luks device
<daveo>
clever: and the way it should be... The guide did not have that for some reason...
<daveo>
clever: guess that is why. I wouldn't know how to tell configuration.nix how to open the luks device exactly. All the commands to do that are in the guide to make a script to do that, but I'm not sure what hooks there are/when you do it in the configuration/etc
<smolboye>
is there a way for me to control the media play/pause forward/backward on spotify?
<ejpcmac>
Hi! Newbe question: if I set root’s `nixos` channel to unstable but let `system.stateVersion = "18.03"`, does this mean that my packages will be at the cutting edge version except for the ones like PostgreSQL that require a mutable state?
<smolboye>
i never found anything else mpc but its just for mpd
<clever>
ejpcmac: yeah
<ejpcmac>
Ok, so that’s a good setting for a dev environment, isn’t it?
<clever>
ejpcmac: and the pgsql will probably still get security patches, as long as ones are available for the older version
<clever>
ejpcmac: if you dont care about the data in the database, you can try updating the stateVersion, it will probably loose the whole db
<clever>
ejpcmac: and you always have the option to export it to sql files, update, then import it again
<lunik1>
it looks like NFS wasn't the problem, mergerfs is. Anybody here used mergerfs, anybody here used it on nixos?
smolboye has joined #nixos
<smolboye>
fixed sddm
<lunik1>
and is it ok to specify fuse filesystems in configuration.nix?
<smolboye>
turned off one display hah
<ajs124>
clever, about the xorg thing. what about services.xserver.exportConfiguration? doesn't that fix the problem with the xorg config being in the displaymanager unit?
<clever>
ajs124: that fixes the xorg.conf itself, but several other flags will be missing
ambro718 has quit [Quit: Konversation terminated!]
<smolboye>
ok y'all might wanna know what my smart ass just fixed
<smolboye>
sddm
<smolboye>
with both screens
<smolboye>
worldofpeace: ^
smolboye has quit [Client Quit]
<lunik1>
aha, running mount -a suggets that the mergerfs binary can't be found
<clever>
lunik1: it may need to be added to systemPackages
smolboye has joined #nixos
smolboye has quit [Client Quit]
tzemanovic has quit [Remote host closed the connection]
<lunik1>
clever: it already is, I can use it from my shell
<clever>
lunik1: you probably need to use an absolute path in the fs config, check the link above
smolboye has joined #nixos
<smolboye>
yes i fixed it
<ejpcmac>
Also, can I have a stable channel system-wide and unstable user-wide? If yes, should it be name `nixos` too user-wide?
<clever>
ejpcmac: the channels must have unique names
<lunik1>
an absolute path for what? the devices and mount point already are...
<clever>
ejpcmac: and when you do nix-env -iA nixos.foo, it looks for a channel called nixos, so you can just use a different name
<clever>
lunik1: absolute path to the mergefs binary
Anton-Latukha has quit [Quit: Leaving.]
<ejpcmac>
clever: Ok. And do you know how home-manager works? What channel the `pkgs` variable in the `home.nix` does point to?
<clever>
ejpcmac: no idea
<lunik1>
hm ok I think I see
__monty__ has quit [Quit: leaving]
vcunat has quit [Quit: Leaving.]
<lunik1>
hey, it worked. thanks clever
<clever>
yep
<lunik1>
I dodn't know you could specify I binary path like that in fstab
<worldofpeace>
smolboye: So complex too :P
<clever>
lunik1: i found that in google a few months ago
<clever>
lunik1: i think the key is that the fstype is fuse, so mount just runs mount.fuse
<clever>
lunik1: and then mount.fuse handles the binary path and doing non-standard things
<lunik1>
yeah
<smolboye>
worldofpeace: i will let you know what i did, give me a min
smolboye has quit [Quit: WeeChat 2.0]
<lunik1>
I was specifying the fstype as fuse.mergerfs, but that won't work on NixOS
<johnazoidberg[m]>
Is it possible that I override my haskell package to add a package which i only need in my shell.nix (liquidhaskell) and not to build the project itself?
<samueldr>
what could be awesome is reproducing through build-vm, and then with a copy of your config, reduce the test case :)
<samueldr>
(that was for coconnor)
sbdchd has joined #nixos
<worldofpeace>
I think that's defacto way to do things if you want to be really nice. But you could always document it then do it later :P
tzemanovic has joined #nixos
<coconnor>
I'll add it to my queue :)
sbdchd has quit [Remote host closed the connection]
blankhart has quit [Ping timeout: 265 seconds]
<samueldr>
(that was also me gushing about how nixos makes it so easy to reproduce systems)
sbdchd has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
<drakonis>
samueldr, gush some more
<drakonis>
for it is time to do nix install parties
<samueldr>
those would be boring :o
<drakonis>
starting with my own computer :V
<drakonis>
i got tired of running debian, so nix it is again
<drakonis>
my pain tolerance is high
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sbdchd_ has joined #nixos
sbdchd has quit [Ping timeout: 260 seconds]
kyren has joined #nixos
dfa345 has joined #nixos
szicari has quit [Ping timeout: 256 seconds]
kyren has quit [Client Quit]
szicari has joined #nixos
<gchristensen>
I had to use ansible & centos yesterday & it nearly drove me crazy with terror
<gchristensen>
I don't think people realize how scary those tools are
<clever>
?
<coconnor>
oh heck yea: nixos is the best for reporoducable. I'm sitting here switching between KDE and gnome installed individually like nothing
<clever>
coconnor: i trivially downgraded from nixos-unstable to nixos-17.09 last week, and then went back to unstable
<clever>
when confirming if something had been broken recently in the channel
<coconnor>
I don't know another os has a "revert to previous" that actually works
<clever>
i had GC'd my rollback options
<clever>
so i just changed the channel, and nixos-rebuild
<samueldr>
gchristensen: after the first time I used puppet, I realized I was safer with a bunch of ad-hoc bash scripts :/
<gchristensen>
solaris w/ zfs snaps, coconnor :)
<coconnor>
OK. the activiation script of NixOS is a giant unsafe effect, but, at least it's well contained
<samueldr>
(until I used and learned nixos)
<coconnor>
ah yea. zfs is great
<clever>
coconnor: ive seen somebody try to do network in the activation script, that results in nixos failing to find systemd at bootup, lol
<joepie91>
clever: in the right context, that would be seen as something positive
<joepie91>
:P
<gchristensen>
coconnor: and not _so_ giant
<gchristensen>
not "here's 20kloc of ansible"
<clever>
joepie91: :D
sbdchd_ has quit [Remote host closed the connection]
blankhart has joined #nixos
WSPR0 has joined #nixos
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
WSPR0 has quit [Remote host closed the connection]
lambdamu has quit [Ping timeout: 260 seconds]
revskill has quit [Ping timeout: 256 seconds]
<jasongrossman>
coconnor: To combine two of your points, you can rollback another OS fairly nicely using ZFS. I've done a lot of that. It's not AS nice as rolling back using NixOS, though, IMO.
<jasongrossman>
coconnor: I mean almost any other OS, not just solaris.
<clever>
jasongrossman: ive used virtualbox images on zfs to do a rollback of any os
<jasongrossman>
I *suspect* that ansible and puppet are basically well-meaning con jobs. Is that right, or is it not that extreme?
<gchristensen>
ansible and puppet are answer to "how do I make my bash scripts better?"
<jasongrossman>
Yes, good. But I've been thinking today about how it's usually misguided to add layers of abstraction.
<jasongrossman>
I know NixOS adds layers of abstraction! But they're very well thought through.
<drakonis>
i have mixed feelings about zfs
<jasongrossman>
If you can't use a functional system then ... well, I'm not at all sure about this, but I suspect it's better to have your own hand-written provisioning scripts which you understand fully, even if they're suboptimal in some ways.
<drakonis>
so much complaining about ZoL being terrible next to illumos and freebsd
<jasongrossman>
Drakonis: I haven't heard any of that recently. ZoL has come along in leaps and bounds in the last few years.
<drakonis>
then there's long term adaptability
<clever>
Drakonis: ive found that swap on a zvol is unstable, but the rest seems fine
<drakonis>
ie: run it on non standard setups
<jasongrossman>
I can no longer imagine relying on a file system that's not COW. I guess something better will come along eventually, but there isn't much COW competition for ZFS, is there?
<drakonis>
SSDs and the hot new non volatile ram storage
<drakonis>
there is
betaboon has quit [Quit: WeeChat 2.1]
<drakonis>
other than btrfs, there's stratis/xfs, NOVA, bcachefs
wangoe has quit [Quit: WeeChat 2.1]
<jasongrossman>
Early days for most of those. Do you recommend a particular one?
<gchristensen>
tbh I still am +1 on ext4
<drakonis>
NOVA is built for the *announcer voice* STORAGE OF THE FUTURE
<jasongrossman>
:-)
alex`` has quit [Ping timeout: 240 seconds]
<drakonis>
bcachefs looks like a tough competitor
<drakonis>
will be upstreamed soon, possibly within 4.19
<jasongrossman>
I'm looking forward to it being upstreamed and tested properly. That'll take a while though.
<jasongrossman>
The problem with file system bugs (excuse me if this is obvious) is that you can have really bad corruption that you don't notice until years later.
<clever>
jasongrossman: many years ago, i discovered some duplicate files, that didnt have matching hashes
<drakonis>
its built on top of bcache, so most of the heavy lifting is already done
<clever>
jasongrossman: so i hexdump'd both 300mb files (creating files in the gigs range) and ran diff -u on them, lol
<clever>
jasongrossman: they had 1 or 2, sometimes 3 flipped bits
<jasongrossman>
clever: Huh, yes.
<clever>
but those files had passed thru at least 4 or 5 computers, ntfs, fat32, ext4, xfs, nfs, samba
<clever>
when did they get a flipped bit?
<drakonis>
betting pool?
<jasongrossman>
clever: I assume that's a rhetorical question. :-)
<clever>
jasongrossman: yeah, theres no way to know
<clever>
at least with zfs, it has checksums on all blocks, so such things are harder to go un-noticed
<jasongrossman>
EXACTLY
<jasongrossman>
Problems still happen but they're much less likely to go unnoticed for years.
<jasongrossman>
I feel lucky that there are people who will put a lot of effort into testing filesystems.
dfa345 has quit [Quit: Page closed]
<clever>
the only real problem ive had, is mostly hardware to blame
<gchristensen>
I have a fancy HD here I've been wanting to get going, but I don't think I can get the drivers
<clever>
sometimes my sata drive just doesnt respond to a read command, and the io call blocks
<clever>
and zfs doesnt really timeout, so then zfs hangs
<jasongrossman>
BTW, I know one big problem with ZFS, which is easily avoided once you know about it, but it believes that atomic transactions have finished when the drive tells it they have, and on USB that is often false and can lead to unnoticed corruption on any scale.
<jasongrossman>
So just don't use it over USB.
<jasongrossman>
clever: That's interesting.
<clever>
jasongrossman: as long as the usb drive doesnt re-order writes, the immutable and ring based natures of zfs would just cause it to revert to an older state
<jasongrossman>
gchristensen: How fancy?!
<clever>
jasongrossman: but yeah, if the usb drive re-orders writes, i could see that corrupting things
<jasongrossman>
clever: I believe the USB often fails to complete a write, but tells ZFS that it's completed, and then ZFS is happy until it finds a problem later, and can't recover. This has happened to me several times, before I stopped using it with USB.
<gchristensen>
jasongrossman: virident flashmax II, 4TB
<jasongrossman>
gchristensen: Interesting.
<clever>
jasongrossman: ive also had problems where linux tends to allow a massive write buffer for usb drivers
<clever>
jasongrossman: so things can "finish" rather fast, and then a sync call or umount will hang for 20mins
<jasongrossman>
It's possible I'm confusing failure to complete a write with re-ordering writes.
<jasongrossman>
clever: Ah yes, I've seen that symptom.
<clever>
jasongrossman: if you `grep Dirty /proc/meminfo` you can see how much remains
<clever>
prior to discovering that, i just forced shutdown and corrupted things :P
<gchristensen>
jasongrossman: I have a closet of fancy hw which I can't afford to run (power requirements) or can't get drivers for
<jasongrossman>
gchristensen: How did that happen? (Maybe take to #nixos-chat?)