2019-07-14
04:54
<
clever >
efiInstallAsRemovable = true; is required if efi vars are not available
04:54
<
clever >
you must boot via efi to configure efi vars
04:52
<
clever >
your trying to configure it to both legacy and efi at the same time
04:51
<
clever >
oborot: then you want device = "nodev";
04:49
<
clever >
oborot: does sda have a bios boot partition?
04:49
<
clever >
device = "/dev/sda";
04:41
<
clever >
oborot: the only problem i can see is that the uuid isnt set correctly for the luks device, but it is the right uuid
04:40
<
clever >
oborot: the uuid for / is correct
04:38
<
clever >
nixos cant find it with only a uuid and nothing else
04:38
<
clever >
oborot: and the luks uuid, should be in the form you have commented out
04:37
<
clever >
oborot: what is the uuid for sda1 and vg-root?
04:27
<
clever >
oborot: and what uuid is nixos-generate-config giving wrongly?
04:26
<
clever >
oborot: what exactly did mount say for those 2 devices?
04:25
<
clever >
and what does blkid /dev/sda1 say?
04:25
<
clever >
why is it showing 2 devices?
04:24
<
clever >
blkid /dev/mapper/vg-root
04:24
<
clever >
oborot: mount | grep mnt
04:21
<
clever >
oborot: what does mount say is at /mnt ?
04:17
<
clever >
oborot: did you run nixos-generate-config with the right --root, after mounting the rootfs?
04:17
<
clever >
oborot: it should be the uuid of the filesystem inside the luks, not the luks device itself
04:03
<
clever >
oborot: yeah, that should use the uuid
04:03
<
clever >
oborot: ^^
04:03
<
clever >
orivej: boot.loader.grub.device ?
04:00
<
clever >
mostly personal preference
03:58
<
clever >
not very often
03:58
<
clever >
hyper_ch: what part should i look at?
03:53
<
clever >
then you just need to tell the bios what to boot
03:52
<
clever >
so the legacy MBR works, and the efi binaries in the ESP work
03:52
<
clever >
if you set both boot.loader.grub.devices and enable efi support, then grub installs both at once
03:52
<
clever >
for extra redundancy, you can do both efi and legacy
03:52
<
clever >
both will work the same
03:50
<
clever >
i dont really trust grub's zfs support, so i always make /boot either fat32 or ext4
03:49
<
clever >
grub can do the same thing, with both efi and legacy
03:48
<
clever >
and then you can put kernels there, and the bootloader wont need to know zfs
03:48
<
clever >
any time your doing efi, you must have a vfat ESP, that is in cleartext
03:48
<
clever >
systemd-boot doesnt support zfs
03:47
<
clever >
efi fails at a lot of things
03:46
<
clever >
systemd-boot is efi only
03:46
<
clever >
boot.loader.grub.devices is legacy boot only
03:45
<
clever >
systemd-boot doesnt have very many options
03:42
<
clever >
but only grub supports it
03:42
<
clever >
it names the files specially, so it works without efi vars
03:42
<
clever >
boot.loader.grub.efiInstallAsRemovable is what i would use in that situation
03:40
<
clever >
so if that partition is lost, efi cant find the bootloader
03:40
<
clever >
the efi vars contain the gpt partition uuid for the efi system partition
03:37
<
clever >
adamantium: nixos-rebuild switch --install-bootloader
02:07
<
clever >
oborot: so your better off just doing a legacy grub install
02:07
<
clever >
oborot: i think adding uefi to coreboot would require reflashing the coreboot image
00:33
<
clever >
but not-os is booting under qemu x86 on my hydra
00:33
<
clever >
not recently
00:32
<
clever >
so i can now make nixos services run together in a docker image
00:32
<
clever >
i also recently made some nix code, to run systemd.services entries, under runit, under docker
00:31
<
clever >
i was trying to make a minimal image, without systemd
00:23
<
clever >
so once you can ssh into the machine, simply run justdoit, and it does it
00:23
<
clever >
and it will bake those options into a shell script called justdoit
00:22
<
clever >
aveltras: it defines some options, which you can set in kexec/configuration.nix
00:22
<
clever >
aveltras: justdoit, in the kexec directory
00:17
<
clever >
aveltras: you could even do it from the rescue environment
00:17
<
clever >
aveltras: yeah, it can be done on any machine with nix installed
00:13
<
clever >
aveltras: nope
00:08
<
clever >
ive not experimented with the cheaper options much
00:05
<
clever >
packet.net has an option to install nixos for you
00:04
<
clever >
aveltras: what special needs do you need at install time?
00:03
<
clever >
for baremetal, i'm using OVH and packet.net
00:02
<
clever >
aveltras: yeah
00:01
<
clever >
aveltras: and youll want to make sure your ssh key is in configuration.nix
00:00
<
clever >
aveltras: check session.md for an example of how it works
00:00
<
clever >
aveltras: yep
2019-07-13
23:53
<
clever >
aveltras: kexec is your simplest option
23:03
<
clever >
ah, i'm using x11
22:59
<
clever >
try changing focus style back to normal just to see what happens?
22:59
<
clever >
that part works for me
22:58
<
clever >
so when you right click, you have to quickly move the mouse to where the menu will be, or it closes itself
22:58
<
clever >
alexarice[m]: when steam itself gets focus, it cancels the right click menu
22:57
<
clever >
alexarice[m]: do you have your window manager set for focus follows mouse?
16:54
<
clever >
oborot: the same way you installed, nixos-install --root /mnt/
16:33
<
clever >
oborot: if you mount the right things and re-run nixos-install, it will only change what has been modified
15:55
<
clever >
oborot: or just reboot and go into the bios
15:55
<
clever >
oborot: hwclock and date are the only commands you need, check their man pages
15:50
<
clever >
Thra11: nix-store --query --roots /nix/store/path
15:50
<
clever >
oborot: fix the date, then `rm ~/.cache/nix/binary-cache*` and try again
15:50
<
clever >
oborot: it thinks the ssl certs have expired, so it doesnt trust any website!
15:49
<
clever >
oborot: yes
15:48
<
clever >
oborot: what does `date` say the date is?
15:47
<
clever >
oborot: you should look into why ssl is broken before continuing
15:47
<
clever >
oborot: that sounds like the binary cache is broken, so its trying to build EVERYTHING from source
15:45
<
clever >
oborot: re-run nixos-install, it will go directly to the failing part
15:45
<
clever >
oborot: what is the error above that?
13:33
<
clever >
ajs124: yeah
13:33
<
clever >
ajs124: yes
12:08
<
clever >
why-depends needs a finished build
12:08
<
clever >
Thra11: on failure, it will be a single path from the failure to what you requested
12:06
<
clever >
Thra11: when the build fails, it gives the whole dependency chain
2019-07-12
20:44
<
clever >
colemickens: tree doesnt follow symlinks, so thats not complete
20:06
<
clever >
timokau[m]: your welcome
20:01
<
clever >
timokau[m]: same :P
20:01
<
clever >
eval-time problems are trivial compare to darwin-only build problems
20:01
<
clever >
it has had 13 revs left for hours
20:01
<
clever >
and this is the 2nd python thing i'm bisecting now, the other one is still stuck in mass-rebuild territory :P
20:00
<
clever >
Bisecting: 13 revisions left to test after this (roughly 4 steps)
20:00
<
clever >
who wants to make a PR? :D
20:00
<
clever >
and as a result, the $out depends on how you fetched nixpkgs
19:59
<
clever >
so it inherits the wrong version
19:59
<
clever >
and they forgot a rec
19:58
<
clever >
somebody put an override in, that does inherit version;
19:58
<
clever >
timokau[m]: ive yet to use `git bisect run`, lol
19:57
<
clever >
28554b17a93db76db7b303a7808e57a3f0c6babb is the first bad commit
19:56
<
clever >
Bisecting: 16742 revisions left to test after this (roughly 14 steps)
19:56
<
clever >
its a race!
19:55
<
clever >
already prepared for that
19:55
<
clever >
"scipy-19.09pre-git.tar.gz"
19:55
<
clever >
[clever@amd-nixos:~/apps/nixpkgs-scipy]$ nix-instantiate --eval -A pythonPackages.scipy.src.name
19:55
<
clever >
yeah, i would also expect this to not do that
19:53
<
clever >
yeah, thats just scipy.src
19:52
<
clever >
pkgs/development/python-modules/scipy/default.nix: pname = "scipy";
19:51
<
clever >
i have a feeling something is very wrong here...
19:51
<
clever >
nix-repl> pythonPackages.scipy.src
19:51
<
clever >
«derivation /nix/store/falq08s2a2yxzw13zqfrsbg9qyy1jj7c-scipy-19.09pre-git.tar.gz.drv»
19:51
<
clever >
+ /nix/store/r2y9igc1w62r0cql6wklmjif8b4ihdcy-python2.7-scipy-1.2.1.drv:{out}
19:51
<
clever >
- /nix/store/zacsph0qf2dli7lrwiab2wgdzh1vzqzz-python2.7-scipy-1.2.1.drv:{out}
19:51
<
clever >
timokau[m]: run `nix-store -q --binding src` on both scipy .drv files
19:50
<
clever >
timokau[m]: the src= on the scipy dont match
19:24
<
clever >
that should answer things
19:24
<
clever >
timokau[m]: if you are getting 2 different .drv files for the same nixpkgs rev, run nix-diff on both drv files
19:22
<
clever >
timokau[m]: so, uhhh, what was the original problem? lol, i didnt see it
19:15
<
clever >
infinisil: maybe
19:13
<
clever >
used to how hydra-eval-jobset works, where -I is the only thing it can access
19:12
<
clever >
what does the error say?
19:10
<
clever >
timokau[m]: also, diff -ru between the 2 copies of nixpkgs
19:10
<
clever >
timokau[m]: -I . to allow it
19:08
<
clever >
it disables using NIX_PATH and other things
19:08
<
clever >
timokau[m]: its also a nix-instantiate arg i believe
19:07
<
clever >
timokau[m]: what is the storepath for the thing its trying to build?
19:06
<
clever >
timokau[m]: --pure?
19:06
<
clever >
timokau[m]: nix-store --verify --check-contents ?
19:05
<
clever >
git status?
19:04
<
clever >
timokau[m]: git diff --staged ?
19:01
<
clever >
timokau[m]: nix-instantiate -E '(import ./. { overlays = []; config = {}; }).sage'
17:38
<
clever >
toppler: then have a keeper package using runCommand or buildEnv, to merge the 2 together
17:37
<
clever >
toppler: you could have one derivation called keeper-unwrapped, that contains just the raw game, then something like keeper-assets or keeper-map, that uses requireFile to download it
15:46
<
clever >
«derivation /nix/store/aivx4wy6sk1xs0w77aay923p3bx0dwrq-Nuget-3.4.3.drv»
15:46
<
clever >
nix-repl> pkgs.dotnetPackages.Nuget
15:44
<
clever >
ldlework: have you tried tab completion in `nix repl '<nixpkgs>'` ?
14:52
<
clever >
arcnmx: and sadly, the failure is darwin only!
14:52
<
clever >
arcnmx: bisect is getting stalled in some mass-rebuilds
14:33
<
clever >
look at the rev for nixpkgs
14:33
<
clever >
for both the failing and passing one, click the inputs tab
14:31
<
clever >
Bisecting: 574 revisions left to test after this (roughly 9 steps)
14:31
<
clever >
arcnmx: and with the nixpkgs rev on the green build, its in the binary cache
14:30
<
clever >
arcnmx: i can reproduce the failure on master
14:25
<
clever >
arcnmx: dont think so yet, that will just confirm it
14:22
<
clever >
in a checkout of nixpkgs master
14:22
<
clever >
arcnmx: try nix-build pkgs/top-level/release.nix -A perl528Packages.StringShellQuote.x86_64-darwin
13:59
<
clever >
nakkle: i usually start with pinning nixpkgs to whatever i'm currently on
13:50
<
clever >
sauyon: i'm not sure what the right way is to get both 32 and 64 at once
13:41
<
clever >
sauyon: pkgs.pkgsi686Linux is the 32bit version of nixpkgs, so pkgs.pkgsi686Linux.callPackage and pkgs.pkgsi686Linux.stdenv will just give you 32bit everything
13:01
<
clever >
grabb0id: that will dynamically create a wan and ipvt interface, that use vlans from the enp4s2f0 interface
12:55
<
clever >
that will always print it in my zone, and ignore whatever zone your in
12:55
<
clever >
TZ='America/Moncton' date
12:54
<
clever >
abathur: the TZ env var can override /etc/localtime
10:04
<
clever >
__monty__: --show-trace?
09:15
<
clever >
no-n: you generally want to do that with configuration.nix
08:41
<
clever >
abbec: possiblt
08:31
<
clever >
abbec: nix-instantiate the drv, then nix-copy-closure that drv
08:28
<
clever >
cachix does something similar, and could be used on travis
08:28
<
clever >
hydra knows to upload each part of the closure as it builds
08:28
<
clever >
abbec: ah, thats the kind of problem hydra and cachix can solve
08:26
<
clever >
abbec: you can run it on the main drv, and it will copy the closure for you
08:24
<
clever >
abbec: i think you want nix-copy-closure --include-outputs, with the .drv file
08:20
<
clever >
but not all of the inputs are in buildInputs
08:19
<
clever >
abbec: nix copy will only get the runtime deps, but not all of the build time deps
2019-07-11
22:45
<
clever >
spaark: not sure on the nix-channel --update problem, but you can just clone the nixpkgs repo, and `nix-env -f ~/nixpkgs -iA vim`
22:45
<
clever >
spaark: ahh
22:44
<
clever >
spaark: why are you building nix from source?
22:43
<
clever >
spaark: .nix-defexpr/channels is fixed the first time you run nix-channel --update
22:43
<
clever >
spaark: .nix-profile is automatically fixed when you firs tinstall something with nix-env
19:06
<
clever >
it will silence the errors about "i am aarch, but wanted armv6"
19:06
<
clever >
Thra11: extra-platforms in nix.conf, is a list of extra nix systems to claim suppot for
19:05
<
clever >
Thra11: just have to deal with the odd purity issue, and set one nix flag
19:00
<
clever >
$$ is the pid of busybox itself, and /proc/PID/exe shows the real binary behind a given pid
19:00
<
clever >
$ ls -l /proc/$$/exe
19:00
<
clever >
lrwxrwxrwx 1 clever users 0 Jul 11 16:00 /proc/13752/exe -> /nix/store/w4mlkxdflgrdi1cgdc3v42g9q1kmw3j2-qemu-user-arm-3.1.0/bin/qemu-arm
18:59
<
clever >
./sh should then attempt to run it
18:59
<
clever >
Thra11: this will fetch a pre-build busybox, for armv6l and make an sh symlink to it
18:59
<
clever >
nix-build '<nixpkgs/pkgs/stdenv/linux/bootstrap-files/armv6l.nix>' -A busybox -o sh
18:58
<
clever >
Thra11: if your not running nixos on the aarch64 host, you will need to read this, and manually configure the kernel to know where qemu-user-arm is
18:57
<
clever >
Thra11: some aarch64 cpu's can run armv6l code natively
18:55
<
clever >
Thra11: and the tables at lines 6-19, plus
18:54
<
clever >
i can also reproduce your issue with x86-64 host
18:54
<
clever >
builder for '/nix/store/0c8xyv10gklav6isrib8i6chbn15l8ny-glib-2.60.3.drv' failed with exit code 1
18:54
<
clever >
ERROR: Got argument default_library as both -Ddefault_library and --default-library. Pick one.
18:54
<
clever >
Thra11: i once emulated x86_64 on a v7, lol
18:53
<
clever >
Thra11: ive not tried that yet, but with the right archmap, it should work
18:52
<
clever >
Thra11: oh, your trying to emulate v7 on aarch64?
18:50
<
clever >
Thra11: and there is already an entry in the overlay for aarch64
18:50
<
clever >
Thra11: it obeys $TMP
18:08
<
clever >
Thra11: emulating a 32bit guest on a 64bit host has performance costs, so its faster to do 32bit on 32bit
18:07
<
clever >
Thra11: it also loads the arm qemu from pkgsi686Linux, so its based on a 32bit gcc and 32bit libc
18:05
<
clever >
Thra11: and the arch_map converts from guest arch to host arch
18:05
<
clever >
Thra11: qemu's configure script has a --cpu= flag, that takes a host cpu arch
18:00
<
clever >
matt`: and that gets into the stdenv bootstrap stuff, which is tricky to mess with
18:00
<
clever >
matt`: it would also need to exclude everything ccache depends on
17:59
<
clever >
Thra11: building...
17:57
<
clever >
matt`: i think its only for use with nix-shell, to make ccache work when in a nix-shell
17:55
<
clever >
matt`: and the sandbox for nix wont allow it to actually access to the cache directory, so you likely wont benefit from it any
17:55
<
clever >
matt`: the problem, is that ccache itself is built using stdenv, so now you need ccache to build ccache
17:51
<
clever >
Thra11: checking...
17:49
<
clever >
matt`: that will just make performance worse for you, it will force nix to rebuild EVERYTHING from source, starting from gcc
17:48
<
clever >
Thra11: what nixpkgs rev are you on?
13:39
<
clever >
sbj: nix-instantiate --find-file nixpkgs/nixos/modules/installer/cd-dvd/system-tarball-pc.nix
13:37
<
clever >
sbj: so just kill that entire line in system-tarball-pc.nix
13:36
<
clever >
sbj: boot.crashdump.kernelPackages was removed in oct of 2017
13:35
<
clever >
sbj: we must both be missing something, because kernelPackages isnt an option here
13:34
<
clever >
sbj: line 52 and 53 will need adjustment, to build a 2nd initrd, against the new kernel
13:34
<
clever >
then you can freely modify that copy to support new features
13:34
<
clever >
sbj: youll need to use disabledModules to disable this, then put a copy into /etc/nixos, and imports = [ ./crashdump.nix ];
13:33
<
clever >
sbj: dang, no, it currently just loads /run/current-system/kernel
13:33
<
clever >
sbj: it already supports changing the kernelPackages
13:25
<
clever >
dminuoso: run unpackPhase
13:20
<
clever >
sbj: search the nixos manual for disabledModules
12:47
<
clever >
Zer0xp: enabling is based on the directDelivery flag
12:47
<
clever >
Zer0xp: no enable option exists
12:22
<
clever >
tjg1: basically every nixos module is an example of that
12:19
<
clever >
tjg1: you could also define your own helper module, that creates an inputs type, and then sets extraConfig.inputs based on the result
12:19
<
clever >
tjg1: the nixos module will need to be restructured to support defining inputs as its own nixos option, and can then merge multiple inputs for you
12:18
<
clever >
tjg1: the problem, is that only extraConfig is an option, and it doesnt support merging of any attrs below that level
09:20
<
clever >
Taneb: i dont think the fix has hit nixpkgs yet, so its simplest to just wait
09:16
<
clever >
Taneb: thats a bug that has been fixed in the latest nix
08:50
<
clever >
hpfr[m]: nixos also has dedicated options to set env vars for you
08:50
<
clever >
hpfr[m]: ive found it a bit confusing, one file is sourced on login shells, another is source for non-login shells
08:34
<
clever >
nix, nixpkgs, nixos, nixops
08:34
<
clever >
it can be confusing to have the info split over 4 manuals
08:33
<
clever >
when you reboot, just re-run nix-shell, make modules, and continue
08:32
<
clever >
then just unload and reload until it works, or the machine crashes hard due to a silly typo
08:32
<
clever >
dminuoso: so you just nix-shell into the kernel, make oldconfig after copying it over from /proc/config.gz, and them `make modules` to build the modules
08:31
<
clever >
dminuoso: just rmmod ; insmod
08:31
<
clever >
dminuoso: ah, you dont even have to reboot then, sometimes
08:29
<
clever >
dminuoso: i would just boot it under qemu in that kind of situation
08:28
<
clever >
dminuoso: building the package under nix-shell lets you keep the intermediate files, but it cant install to /nix/store/
08:27
<
clever >
dminuoso: nix cant cache a partial build, and will start over from the begining
08:27
<
clever >
cizra: zfs on nixos is somewhat better then other distros, the modules just automatically deal with building out-of-tree kernel stuff, and the kernel has even been patched to support zfs, which some other distros arent doing
08:26
<
clever >
dminuoso: thats only possible if the nix-build is running under something like screen
08:25
<
clever >
cizra: i also prefer zfs, because / and /home share the free space, and i dont have to resize things constantly
08:24
<
clever >
depends on if you want to keep some undo's available or not
08:24
<
clever >
`nix-collect-garbage -d` just deletes EVERY generation your not using
08:24
<
clever >
cizra: these 2 commands let you safely remove a single generation of system
08:24
<
clever >
removing generation 505
08:24
<
clever >
[root@amd-nixos:~]# nix-env --profile /nix/var/nix/profiles/system --delete-generations 505
08:23
<
clever >
[root@amd-nixos:~]# nix-env --profile /nix/var/nix/profiles/system --list-generations
08:23
<
clever >
cizra: so you can check each mono, and see which one you can maybe GC
08:23
<
clever >
cizra: another factor, is that you might have 6 copies of mono, from rollbacks
08:22
<
clever >
colemickens: ah
08:21
<
clever >
cizra: to see why a given root depends on something
08:21
<
clever >
cizra: and also nix why-depends /some/root /nix/store/fat-package
08:19
<
clever >
cizra: nix-store --query --roots /nix/store/foo
08:16
<
clever >
cizra: nix-store --query --tree /nix/store/foo
08:16
<
clever >
colemickens: also, i think you want (nixpkgs + "/nixos/lib/make-disk-image.nix") to make it obey the right nixpkgs version
08:16
<
clever >
pkgs/lib for ex
08:16
<
clever >
colemickens: make-disk-image.nix is meant to be opened with callPackage, and that will supply most of the args for you
08:14
<
clever >
colemickens: looking...
08:12
<
clever >
turion: nix-store -qR ~/.nix-profile
08:10
<
clever >
colemickens: how did you make it use a custom nixpkgs?
08:06
<
clever >
mtp76: nixos-rebuild --install-grub
08:06
<
clever >
mtp76: you can also force it without changing it back and forth
08:04
<
clever >
mtp76: if sda is using gpt, you must also have a bios boot partition, 1mb, not formated, not mounted
08:04
<
clever >
mtp76: if you set boot.loader.grub.device = "/dev/sda" it will install to the MBR of sda
07:07
<
clever >
hpfr[m]: depends on if you want to manage it with networkmanager, or raw wpa_supplicant.conf
07:04
<
clever >
hpfr[m]: network manager handles wireless itself, which conflicts with networking.wireless.enable
06:18
<
clever >
busybox is mainly just a quick&dirty way to test qemu-user
06:14
<
clever >
file -L sh` will show its aarch64