Skip to content

Instantly share code, notes, and snippets.

~/code/mobile-nixos-blueline mobile-nixos-blueline !1 ---------------------------------------------------------------------------------- 5s 20:59:52
> fastboot flash bootloader ~/Downloads/blueline-qq3a.200705.002/bootloader-blueline-b1c1-0.2-6374987.img
< waiting for any device >
Sending 'bootloader_b' (8537 KB) OKAY [ 0.430s]
Writing 'bootloader_b' (bootloader) Flashing Pack version b1c1-0.2-6374987
(bootloader) Flashing partition table for Lun = 0
(bootloader) Flashing partition table for Lun = 1
(bootloader) Flashing partition table for Lun = 2
(bootloader) Flashing partition table for Lun = 4
(bootloader) Flashing partition table for Lun = 5
warning: Git tree '/home/cole/code/nixcfg' is dirty
warning: --- bashInteractive --- nix-shell
file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I); will use bash from your environment
+ unset NIX_PATH
+ cd /home/cole/code/nixcfg
+ mode=default
++ hostname
+ host=xeep
+ builderargs=()
+ [[ flakes != '' ]]
resolved search path element '/nix/store/yvj3yj43bdj46k50j9c5gk9arh10d7ym-nix-2.4pre20200622_334e26b/share/nix/corepkgs' to '/nix/store/yvj3yj43bdj46k50j9c5gk9arh10d7ym-nix-2.4pre20200622_334e26b/share/nix/corepkgs'
checking access to '/nix/store/yvj3yj43bdj46k50j9c5gk9arh10d7ym-nix-2.4pre20200622_334e26b/share/nix/corepkgs/derivation.nix'
evaluating file '/nix/store/yvj3yj43bdj46k50j9c5gk9arh10d7ym-nix-2.4pre20200622_334e26b/share/nix/corepkgs/derivation.nix'
warning: Git tree '/home/cole/code/nixcfg' is dirty
acquiring global GC lock '/nix/var/nix/gc.lock'
acquiring read lock on '/nix/var/nix/temproots/2318'
acquiring write lock on '/nix/var/nix/temproots/2318'
downgrading to read lock on '/nix/var/nix/temproots/2318'
got tree '/nix/store/p1vl4p8xnjwpw0anixqw598m6zbghqip-source' from 'git+file:///home/cole/code/nixcfg'
checking access to '/nix/store/p1vl4p8xnjwpw0anixqw598m6zbghqip-source/flake.nix'
~/code/overlays/nixpkgs-wayland flakes !1 -------------------------------- direnv | cole@xeep impure nix 18:04:02
> nix --experimental-features 'nix-command flakes' eval .#all --json
warning: Git tree '/home/cole/code/overlays/nixpkgs-wayland' is dirty
{"x86_64-linux":"/nix/store/c7hsln334cvc2wixvsmbpqz8dpr2ax3y-nixpkgs-wayland"}%
~/code/overlays/nixpkgs-wayland flakes !1 -------------------------------- direnv | cole@xeep impure nix 18:04:04
> nix --experimental-features 'nix-command flakes' build .#all
warning: Git tree '/home/cole/code/overlays/nixpkgs-wayland' is dirty
error: --- Error ------------------------------------------------------------------------------------------- nix
flake output attribute 'all' is not a derivation
error: while evaluating the attribute 'config.system.build.toplevel' at /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/nixos/modules/system/activation/top-level.nix:280:5:
while evaluating 'foldr' at /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/lists.nix:52:20, called from /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/nixos/modules/system/activation/top-level.nix:130:12:
while evaluating 'fold'' at /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/lists.nix:55:15, called from /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/lists.nix:59:8:
while evaluating 'showWarnings' at /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/trivial.nix:302:28, called from /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/nixos/modules/system/activation/top-level.nix:127:10:
while evaluating 'foldr' at /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/lists.nix:52:20, called from /nix/store/fdf9i9ad4bqzm8fb3fghmrrc1kn9ggkf-cmpkgs/lib/trivial.nix:302:33:
while evaluating 'fold'' at /nix/s
warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
+ unset NIX_PATH
+ cd /home/cole/code/nixcfg
+ mode=default
++ hostname
+ host=xeep
+ [[ legacy != '' ]]
+ mode=legacy
+ shift
+ legacy local
{ pkgs, ... }:
{
enable = true;
style = pkgs.lib.readFile ./waybar-config.css;
systemd = {
enable = true;
withSwayIntegration = true;
};
settings = [{
> nixup legacy local
warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
+ unset NIX_PATH
+ cd /home/cole/code/nixcfg
+ mode=default
++ hostname
+ host=xeep
+ [[ legacy != '' ]]
+ mode=legacy
+ shift
Traceback (most recent call last):
File "/nix/store/gqfpc10drmfv614acrqrn425793yfh19-homeassistant-0.112.0/lib/python3.7/site-packages/homeassistant/config.py", line 780, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/nix/store/gqfpc10drmfv614acrqrn425793yfh19-homeassistant-0.112.0/lib/python3.7/site-packages/homeassistant/loader.py", line 322, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/nix/store/fcd1g2a9hmihsk4vvb9sklbswdz0zsp4-python3-3.7.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
# <investigate>
# looks like: regression when copying aarch64 derivs from x86->aarch64!!!
# - the first command fails
# - the second one succeeds, doesn't seem right
# first error:
# + nix --experimental-features 'nix-command flakes' --pure-eval --show-trace copy --to file:///tmp/colemickens-nixtmp /nix/store/7dmhqf7a0w0y128gz1xv3wy55ankcrwm-nixos-system-raspberry-20.09.git.drv
# error: --- Error ---------------------------------------------------------------------------------------- nix
# a 'aarch64-linux' with features {} is required to build '/nix/store/9psjdx08hy7wbm3hap4lcsgagam8p660-hm_.configzsh.zshrc.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
nix copy --to "file://${t}" "${drv}" &>/dev/stderr || true
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz -p nix --command "nix copy --to file://${t} ${drv}"