<clever>
infinisil: i keep forgetting to file it, let me gist the repro files...
<clever>
infinisil: its a pretty weird bug, $NIX_BUILD_TOP isnt set right
<clever>
infinisil: there is a bug i recently found, that makes that statement non-true on non-nixos!
<clever>
i should get off to bed, its now 3:30 am!!
<clever>
snifffy: how does it differ from regular old luks?
<clever>
snifffy: "Warning: Development of TrueCrypt was discontinued on May 2014"
<clever>
wedens: the ssh hostkey for dropbear is also in plaintext, and an evil maid can just backdoor your /boot, or spin up a honeypot with the same keys, and wait for your pw to be typed in
<clever>
and the whole point of dropbear is usually to enter the luks pw for /, so /boot cant be encrypted
<clever>
though, your wifi password must now be in /boot, in plaintext
<clever>
and nix makes a modular initrd so much simpler, compared to when i cobbled one together in raw bash, lol
<clever>
if your booting via legacy, grub is still using the legacy (dos era) drivers to access the disk
<clever>
MichaelRaskin: grub has worse IO performance (due to the drivers it has)
<clever>
MichaelRaskin: i think its still IO expensive
<clever>
since lost the code though
<clever>
wedens: i know, because i was insane enough to re-implement firmware loading in bash once, to get nfs root over wifi, lol
<clever>
wedens: loading firmware requires a full udev (or a lot of hacky bash scripts), and most wifi cards need firmware to function
<clever>
ah
<clever>
MichaelRaskin: maybe the lava lamps dont even matter? and its just "art" infront of a webcam that only uses the lowest bits! lol
<clever>
MichaelRaskin: and that might be part of what the lava lamps are helping with
<clever>
although, which would generate more heat? lol
<clever>
MichaelRaskin: i have a feeling that the wall of lava lamps is likely still a higher bitrate source then a wall of sound cards
<clever>
(seriously, they use lava lamps as an rng source :P)
<clever>
MichaelRaskin: the lava lamps do a lot of the task that both a human and computer cant do!!
<clever>
danderson: programs.screen.screenrc is just a helper, to generate /etc/screenrc for you, and since its of type lines, nixos will merge things between multiple files
<clever>
hpfr[m]: not sure what else could be checked, try doing `nix-store -r /nix/store/foo` using something the remote machine has, but the local doesnt, and also not in the binary cache
<clever>
red[m]: directly in /run or a subdir? does it have an option to move it?
<clever>
red[m]: i made a typo when i showed the .user earlier
<clever>
red[m]: this generates a systemd service, which gets ran as a given user
<clever>
red[m]: the modules are just a handy way to organize things that a service needs to run, and provide a simpler way for a user to enable it all at once
<clever>
red[m]: there is basically no difference between configuration.nix and the modules in nixos
<clever>
red[m]: it works in either one
<clever>
red[m]: if you set ensureDatabases, then the script wont have to `su - postgres`, and can be ran without root
<clever>
hpfr[m]: like -vvv or maybe -vvvv
<clever>
hpfr[m]: try adding more -v's?
2019-10-11
<clever>
red[m]: nixos has options to do that for you
<clever>
so it never needs su, and never gains root
<clever>
red[m]: if you set systemd.services.serviceConfig.User = "foo"; then systemd will drop-root for you
<clever>
red[m]: that only triggers if you run the script as root
<clever>
red[m]: a: su, b: why does the service need su?
<clever>
red[m]: systemd will merge it with the other values
<clever>
red[m]: you must set systemd.services.foo.path = [ pkgs.gawk ];
<clever>
red[m]: systemd has a different default for PATH
<clever>
danderson: ahh, it doesnt really keep much state either, so not much lost
<clever>
AmandaC: i'll take another look at my code and see about fixign that
<clever>
danderson: what was the one thing that changed?
<clever>
danderson: ah yeah, thats a good catch
<clever>
danderson: if you remove or change the stateVersion without reading them, then you may break the things its meant to not break, but you could just go ahead, and then fix whatever is broken
<clever>
danderson: the release notes should have details on that kind of thing
<clever>
danderson: postgresql uses stateVersion to control the version of psql, so you can access your db, and you must manually export it to .sql, upgrade, then re-import
<clever>
danderson: sshd for example, at one point, it changed the type for ssh hostkeys, the upgrade is seamless, but it creates new hostkeys, causing mitm alerts for every single client, and nixos prefers to avoid causing such errors
<clever>
danderson: in general, you need to figure out what services you use, that care about stateVersion, and then investigate what changes it will cause
<clever>
AmandaC: oh, nice, thats much simpler then i thought
<clever>
fuzen: note, that you need a linux build slave to build the linux build slave...
<clever>
fuzen: just run `nix-build -A go` and then `./result` to boot it
<clever>
you can then just add 127.0.0.1:2200 as a linux build slave
<clever>
t
<clever>
fuzen: it will use the darwin build of qemu to do tha
<clever>
fuzen: this generates a script, that boots nixos under qemu
<clever>
fuzen: i generally use dockerTools.buildLayeredImage
<clever>
hpfr[m]: try `nix-build '<nixpkgs/nixos>' -A system -v` ?
<clever>
,profile
<clever>
as long as you never move those to a 32bit only cpu, yep
<clever>
AmandaC: for nixos, you must set nixpkgs.system, which is a nixos option
<clever>
AmandaC: not really
<clever>
AmandaC: pass system= to nixpkgs, any time you import <nixpkgs>
<clever>
AmandaC: that tells the darwin machine, that it is a linux machine, and is capable of running linux binaries
<clever>
AmandaC: --option system is your problem
<clever>
AmandaC: it should also understand that linux things cant run on darwin, what command are you using to do the build?
<clever>
AmandaC: can you pastebin the expression that is at fault?
<clever>
AmandaC: your trying to run a linux binary on darwin, i think
<clever>
AmandaC: it sounds like your mixing up linux and darwin binaries
<clever>
Squarism: probably
<clever>
yep
<clever>
AmandaC: i have notes somwehre, but id have to dig thru them
<clever>
Squarism: and use that to add both LambdaForms and servant-client-ghcjs
<clever>
Squarism: you need to do haskell.packages.ghcjs86.override { overrides = self: super: { .... }; };
<clever>
AmandaC: havent gotten that one solved yet, but i have seen signs that something related may already be in nixpkgs, need to look into that when i get a chance
<clever>
Squarism: can you pastebin it?
<clever>
Squarism: you need to add it with cabal2nix and an override
<clever>
Squarism: servant-client-ghcjs doesnt exist in haskellPackages
<clever>
correct
<clever>
catern: the shellHook is an attribute of the derivation, and impacts the hash of $out
<clever>
fresheyeball: if you are chaining several overrides, they wont
<clever>
fresheyeball: use old.shellHook, not drv.env.shellHook
<clever>
fresheyeball: it likely broke everything else :P
<clever>
fresheyeball: you must not add a ghc to the inputs