<clever>
astk: installing things with nix-env merges them into ~/.nix-profile/
<clever>
astk: nix-env would merge them together anyways
<clever>
astk: if you install them with nix-env, yes
<clever>
astk: each .cabal file will have its own bin dir, you can then either install of them with nix-env, or merge them with buildEnv
<clever>
astk: when nix-build is done, youll have a regular ELF binary in a bin dir, just like any c/c++ project
<clever>
astk: nope
<clever>
astk: you would either need to use cabal2nix to generate a .nix file for each component, or try using haskell.nix
<clever>
that will copy the entire thing over
<clever>
astk: after you compile the binary with `nix-build`, just do `nix-copy-closure ./result --to root@machien`
<clever>
astk: you can also use nixops to deploy nixos to aws
<clever>
astk: yeah, avoiding conflicts like that is half the reason to use nix
<clever>
yep
<clever>
astk: yeah, you would have nix installed on both ends, and nix just uses its own version of glibc
<clever>
astk: if you build a binary using `nix-build`, then nix will keep track of everything it depends on, and you can use `nix-copy-closure` to deploy that to another machine
<clever>
astk: nix will copy the required one for you
<clever>
astk: if you properly copy the closure (using nix-copy-closure), then the glibc version wont matter
<clever>
rsoeldner: there is an argument to change the lock file dir, i cant remember which one, check the man page
<clever>
rsoeldner: yeah, you could manually run the postgres daemon, and pass it flags to change all of the dirs
<clever>
rsoeldner: you need to enable the postgresql service globally
<clever>
jbit: --option substituters ''
2020-01-26
<clever>
jakubgs: `nix repl '<nixpkgs/nixos>'`
<clever>
thomashoneyman: pkgs.fetchurl
<clever>
xavierzwirtz[m]: add a derivation that has a etc/passwd, etc/group, and etc/shadow
2020-01-25
<clever>
scheming_around: basically, nix will just turn the entire $out into a single string (like `tar $out > foo.tar`, and then grep that string for every input path
<clever>
kalbasit: so direnv can change all defaults
<clever>
kalbasit: and $NIX_CONF_DIR can override the location of nix.conf
<clever>
kalbasit: you can then use bash to join things together
<clever>
kalbasit: there is also `nix show-config` which can read the current values
<clever>
kalbasit: you can add all public keys to nix.conf, and then use extra-substituters to actually then the cache on/off
<clever>
Raito_Bezarius: do they both produce the same $out?
<clever>
does it boot from sdb1?
<clever>
you had to rename the .efi file ot match windows
<clever>
because the bios is hard-coded to the filename windows used
<clever>
i have seen cases where it refuses to even boot linux
<clever>
then vendors go and screw up the implementation :P
<clever>
the design can be very powerful
<clever>
uefi is a giant mess
<clever>
trevthedev: looks like that bios is just completely ignoring the os, youll just have to reboot and see what happens
<clever>
you want to look at the next entry in bootorder
<clever>
trevthedev: that says that the top priority for booting, is your cdrom
<clever>
can you pastebin the output from both>
<clever>
do they match?
<clever>
trevthedev: and then compare the uuid of boot0006, with `blkid /dev/sdb1`
<clever>
trevthedev: the bootorder line from `efibootmgr -v`
<clever>
trevthedev: what does bootorder say?
<clever>
trevthedev: in the output from `efibootmgr -v`
<clever>
trevthedev: and there should be a boot0006 line
<clever>
trevthedev: and is the one at the start of bootorder, matching up with the uuid of your new /boot?
<clever>
trevthedev: oops, -v
<clever>
trevthedev: double-check `efibootmgr -V` and see if it looks good
<clever>
trevthedev: efi variables are in /sys/firmware/efi/efivars
<clever>
trevthedev: efi variables arent on sdb1
<clever>
trevthedev: why cant you pastebin?
<clever>
trevthedev: what does `fdisk -l /dev/sda` report?
<clever>
trevthedev: how are you resizing it?
<clever>
trevthedev: does it give an error?
<clever>
trevthedev: only if you delete the partition home is on
<clever>
trevthedev: more, that if your new ssd doesnt boot, you cant just go back to the old one, if the old /boot is toast
<clever>
trevthedev: also make sure to save anything in /etc that may be of value
<clever>
trevthedev: you could do that resizing first, but then there is no undo
<clever>
trevthedev: if you mount your home partition to /mnt/home, nixos-generate-config will put the right entry into hardware-configuration.nix for you
<clever>
Raito_Bezarius: not sure, never tried it on a symlink
<clever>
it sounds like the script is never actually being patched
<clever>
Raito_Bezarius: /usr/bin/env doesnt exist when the sandbox is on
<clever>
Raito_Bezarius: thats why
<clever>
Raito_Bezarius: is your sandbox enabled?
<clever>
Raito_Bezarius: is the script actually being patched?
<clever>
Raito_Bezarius: dont think it can really fail, but it can not do what you want
<clever>
trevthedev: thats basically all `move /mnt/home/home/trevthedev to /mnt/home/trevthedev` is doing, once you delete the other stuff
<clever>
trevthedev: ah yeah, youll want to move /mnt/home/home/trevthedev to /mnt/home/trevthedev after you mount it
<clever>
trevthedev: once you confirm the new disk can boot, you can delete the old stuff
<clever>
trevthedev: and then procede with the install as normal
<clever>
trevthedev: id say the simplest option, is to boot the nixos livecd, format and mount sdb1 to /mnt, and then mount sda4 to /mnt/home
<clever>
neeasade: you want $out not ${out}
<clever>
zgrep: nixos-rebuild test should do that
<clever>
neeasade: can you paste the configuration.nix file?
<clever>
neeasade: then its not using what you put into the pastebin
<clever>
neeasade: does it list an installPhase?
<clever>
neeasade: you almost never need a builder.sh file
<clever>
neeasade: it should give the path to a .drv file that is failing to build, what does `nix show-derivation` say about that drv?
<clever>
shyim: you may also want to check `smartctl -a /dev/sda`
<clever>
shyim: an improper shutdown can result in data not being saved, and a failing disk can just corrupt anything
<clever>
shyim: and then follow up with a `nix-store --verify --check-contents`
<clever>
shyim: `rm /nix/var/nix/profiles/per-user/shyim/profile-13-link /nix/var/nix/profiles/per-user/shyim/profile` should completely reset the profile
<clever>
s/buf/buf/
<clever>
shyim: that sounds like a different buf, what does `ls -l /nix/var/nix/profiles/per-user/shyim/profile-13-link` say?
<clever>
shyim: exactly as i typed it
<clever>
shyim: what about `ls -l`?
<clever>
shyim: does it point to profile, or directly to profile-13-link?
<clever>
shyim: `ls -l ~/.nix-profile` ?
<clever>
shyim: thats a common issue from an improper shutdown after a nix-env -i/e
<clever>
shyim: what is the exact error? what does `nix-env --list-generations` output?
<clever>
shyim: try `nix-env --rollback`
<clever>
Raito_Bezarius: there is a cancel non-current builds on the admin menu
<clever>
Raito_Bezarius: cleanSourceWith will detect if its being ran on itself, and compose the filters for you
<clever>
Raito_Bezarius: ah, never seen that before
<clever>
Raito_Bezarius: i would expect cleanSource to work in hydra, check github for hydra and see if any issues exist
<clever>
the problem i find, is when you get haskell involved, and it decides to build 3 copies of ghc at eval time
<clever>
but node2nix is usually fairly fast
<clever>
Raito_Bezarius: not really
<clever>
Raito_Bezarius: hydra does technically handle IFD, but it runs the derivations at eval time, which can lead to the eval alone taking 4 hours, with zero progress
<clever>
Raito_Bezarius: at eval time, cleanSource will recursively copy the path, and run the nix to figure out what to include/exclude
<clever>
Raito_Bezarius: i believe its limited to only paths specified with -I
<clever>
not sure about the restricted mode error
<clever>
Raito_Bezarius: trackPureSource = gitignoreSource minimalTrackSrc; should have the same effect
<clever>
Raito_Bezarius: trackPureSource is basically a no-op
<clever>
Raito_Bezarius: if your just changing the release.nix, you can eval the jobset directly
<clever>
Raito_Bezarius: only if you change the config for a jobset, or add more
<clever>
but the jobsets otherwise work as normal
<clever>
Raito_Bezarius: declarative jobsets is just an automated way to create a jobset, and it disables the edit/delete buttons in the gui