Giter Club home page Giter Club logo

nix-config's Introduction

nix-config

This is the configuration making up my NixOS setup.

Usage

# set secrets
cp secrets.sample.nix secrets.nix
# test changes
sudo cp -r ./* /etc/nixos/; sudo nixos-rebuild test
# build, switch and commit
bash run.sh my-comment
# pull updates
sudo nixos-rebuild switch --upgrade

References

Install

  • ensure boot mode is set to UEFI in the BIOS (for me: on boot mash Del)
  • follow the default instructions
  • for bcachefs replace the mount step with:
bcachefs format	--label=nixos --error_action=panic --data_replicas=2 --metadata_replicas=3 --group ssd /dev/sdb1 --group hdd /dev/sda1 --foreground_target ssd	--background_target hdd	--promote_target ssd
mount -t bcachefs /dev/sda1:/dev/sdb1 /mnt
  • nano configuration.nix (add git)
  • after install:
cd /etc/nixos
git clone https://github.com/tycho01/nix-config.git
mv configuration.nix configuration_.nix
cp -r nix-config .
cp secrets.sample.nix secrets.nix
nano /etc/nixos/users/tycho.nix  # set password
nano /etc/nixos/profiles/os/tychotop.nix  # disable unneeded categories
nixos-rebuild switch
systemctl start display-manager.service
  • back up hardware conf to gist: cat /etc/nixos/hardware-configuration.nix
  • readd secrets from gist, set up ssh:
sudo chown -R tycho ~
vi /etc/nixos/secrets.nix
mkdir ~/.ssh
cp /etc/nixos/dotfiles/.ssh/id_rsa.pub ~/.ssh/id_rsa.pub
vi ~/.ssh/id_rsa
chmod 0600 ~/.ssh/id_rsa

more commands:

curl -L https://get.oh-my.fish | fish
omf install agnoster
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
sudo mkdir /etc/nixos/private
sudo mkdir /etc/nixos/public
# back up dotfiles
sudo mkdir /bkp
sudo cp -r ~/ /bkp
# rebuild
cd ~/Desktop
git clone [email protected]:tycho01/nix-config.git
cd nix-config
cp -r /etc/nixos .
git status
# copy dotfiles as per output

configure defaults:

  • firefox -> settings -> preferences -> auto scroll, search engine -> DDG, customize -> uncheck title bar
  • konsole -> settings -> edit current profile -> appearance -> solarized
  • bottom bar -> right click -> alternatives -> icons-only task manager
  • system settings -> input devices -> keyboard -> layouts -> switching policy -> application
  • system settings -> input devices -> keyboard -> advanced -> caps lock behavior -> make caps lock an additional Esc
  • // lockscreen slideshow: System Settings -> Desktop Behavior -> Screen Locking -> Appearance > Slideshow > Add Folder
  • // wallpaper: Right click the desktop > Configure Desktop > Wallpaper > Wallpaper Type > Slideshow > Add Folder
  • telegram -> night mode
  • systray -> keyboard -> Configure -> + -> uncheck Only Current -> Mozc, Pinyin

nix-config's People

Contributors

kiaragrouwstra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

michivi

nix-config's Issues

AppImage isn't working

from #21: AppImage

$ appimage-run /drogon/dl/etcher-electron-1.4.4-x86_64.AppImage
/nix/store/01l9kmlwylfachsqavwln9wpzczx9pq5-appimage-exec: line 19: cd: /home/tycho/.cache/appimage-run/8ff36aec4053bad0c80186d87571dc6eac8ad0263d54befb3a5d5c0fa71297c3//squashfs-root: No such file or directory
/nix/store/01l9kmlwylfachsqavwln9wpzczx9pq5-appimage-exec: line 27: /home/tycho/.cache/appimage-run/8ff36aec4053bad0c80186d87571dc6eac8ad0263d54befb3a5d5c0fa71297c3/AppRun: No such file or directory

sogou pinyin

So Sogou Pinyin as a proprietary product only offers a deb, despite being the only palatable input method for Mandarin Chinese.

Their open-source offering is described as only offering part -- seemingly the UI but not the actual IME.

I hope there is an open-source alternative out there of similar-ish quality... Because fcitx pinyin won't even come close.

The NixOS cheatsheet claims I can install .deb files through a Nix-installed dpkg, but for me this yields dpkg: error: unable to access dpkg status area: No such file or directory. I haven't found reports of other NixOS users trying and running into anything similar.

Google Pinyin seems more palatable.

debug holding middle click

Disclaimer: pressing middle click to open in new tab works fine.
What does not work is long-pressing or pressing and holding middle click for scrolling, a feature of Firefox and Chrome.

shell theme adapta nokto not showing at lock screen

see:

  • https://askubuntu.com/a/982631/332744
    • sudo ln -frs /usr/share/themes/Adapta-Nokto/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource
    • cd /usr/share/gnome-shell/theme && mv ubuntu.css ubuntu.css.ORIG && ln -s /usr/share/themes/Pop/gnome-shell/gnome-shell.css ubuntu.css
    • rt
  • https://github.com/adapta-project/adapta-gtk-theme/issues/454
    • GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme | sed "s/'//g")
    • cd /usr/share/themes/${GTK_THEME}/gnome-shell
    • sudo glib-compile-resources --target=/usr/share/gnome-shell/gnome-shell-theme.gresource gnome-shell-theme.gresource.xml
  • https://github.com/adapta-project/adapta-gtk-theme/issues/70
    • GTK_THEME=$(gsettings get org.gnome.desktop.interface gtk-theme | sed "s/'//g")
    • sudo cp -v --backup /usr/share{/themes/$GTK_THEME,}/gnome-shell/gnome-shell-theme.gresource

Now, shell theme is definitely affecting top/application bars.
The above come down to ensuring /usr/share/gnome-shell/theme/ubuntu.css is present and gnome-shell-theme.gresource.xml is compiled into gnome-shell-theme.gresource.
Unfortunately, /nix/store/0p5qswmbsf5gkdgqhcw1wbpimvdaxl94-adapta-gtk-theme-3.94.0.1/share/themes/Adapta-Nokto-Eta/gnome-shell already had gnome-shell-theme.gresource and a few css files...

stdenv-linux is not allowed to refer to openssl

Pinning on NixOS/nixpkgs@322b204, I get:

building '/nix/store/zrbwvf62yhbmyslny9z1vi0mlwqmhc88-stdenv-linux.drv'...
output '/nix/store/8kw2jpl2ycdfs2z6yybmbqwcxgkjqzbr-stdenv-linux' is not allowed to refer to the following paths:
      /nix/store/35pnww4fs64gk56kvn1ikzbl8as9l9b2-openssl-1.0.2o
output '/nix/store/rqwkqhc1c7nw991xkqbyy6ipk2mn2253-stdenv-linux' is not allowed to refer to the following paths:
      /nix/store/35pnww4fs64gk56kvn1ikzbl8as9l9b2-openssl-1.0.2o
cannot build derivation '/nix/store/f7z1i0d8m48gpnl78bcm837fcx1fm2zi-nix-2.0.4.drv': 1 dependencies couldn't be built

Trying lukego/blog#17, git bisect says the culprit is NixOS/nixpkgs@837ecc2.

use nicer emoji font 🥧❤🐈

  • in applications - tried ~/.config/fontconfig/fonts.conf -> fc-cache -f -v -- this allows me to successfully see the Noto font on this page. Trying blobmoji instead. Pressing install on the compat file copied it to ~/.local/share/fonts/, so now trying that manually on the main font. - this actually allowed me to see blobs, e.g. https://emojipedia.org/🤨/.
  • in terminal: still uses monochrome font, support elsewhere came from Ubuntu 18.04 / Gnome 3.26 (?) apparently due to some recent libcairo. fixed by setting emoji font above.
  • unformatted text results in huge emoji -- potentially due to the font. might try another as per above.

deb packages

The NixOS cheatsheet claims I can install .deb files through a Nix-installed dpkg, but...

$ sudo dpkg -i /drogon/dl/wget_1.18-5+deb9u2_amd64.deb
dpkg: error: cannot scan updates directory '/var/lib/dpkg/updates/': No such file or directory
$ sudo mkdir /var/lib/dpkg/updates/
$ sudo dpkg -i /drogon/dl/wget_1.18-5+deb9u2_amd64.deb
dpkg: warning: '/nix/store/bgii6n1si6za1ry0vbwnmiapzagcyrjm-coreutils-8.29/bin/rm' not found in PATH or not executable
dpkg: warning: '/nix/store/bgii6n1si6za1ry0vbwnmiapzagcyrjm-coreutils-8.29/bin/diff' not found in PATH or not executable
dpkg: warning: '/nix/store/jlvwk1ijr4z3zq0nw34kkd88bjwrp7zi-dpkg-1.19.0.5/bin/dpkg-deb' not found in PATH or not executable
dpkg: error: 3 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

I haven't found reports of other NixOS users trying and running into anything similar.

keep gsconnect daemon running

The standard way seems to be *.conf files to be run with systemd (which can be interacted with through systemctl), which has a bunch of nixos options, notably systemd.: mounts, paths, services, slices, sockets, targets, timers, units.

debug broken fcitx IME

Earlier I couldn't seem to use fcitx IME until a reboot, now I'm under the impression it works in some input areas (Firefox address bar) yet not in others (Telegram) anymore. Weird.

WebTorrent can't open from icon

$ ls /nix/store | grep torrent-desktop
$ cat /nix/store/yv8dpjqy6vy3qypnyw88140zbbppi8pf-webtorrent-desktop-0.20.0/share/applications/webtorrent-desktop.desktop
[...]
Path=/opt/webtorrent-desktop
Exec=/nix/store/yv8dpjqy6vy3qypnyw88140zbbppi8pf-webtorrent-desktop-0.20.0/bin/WebTorrent %U

These could come from a dynamic or a static file.

This Exec seems fine, but the Path=/opt/webtorrent-desktop doesn't exist, and appears used "to run the program in", whatever that means.

The nix seems to replace the desktop binary path:

      # Fix the desktop link
      substituteInPlace $out/share/applications/webtorrent-desktop.desktop \
        --replace /opt/webtorrent-desktop/WebTorrent $out/bin/WebTorrent

That seems to have gone right.

use nixpkgs master

Using a recent _module.args.pkgs errors for commits starting from NixOS/nixpkgs@7098b0f due to the removal of system.slice in systemd/systemd@d8e5a93:

building '/nix/store/8pzgi5p8cskvhvznr1pzdra34rmqxcfv-system-units.drv'...
missing /nix/store/dsw42cg2n5qh5v6vxm9i1qh279fa4bw2-systemd-239/example/systemd/system/system.slice
builder for '/nix/store/8pzgi5p8cskvhvznr1pzdra34rmqxcfv-system-units.drv' failed with exit code 1

journalctl: dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

journalctl -xe errors:
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use.

see https://serverfault.com/questions/617205/dnsmasq-failed-to-create-listening-socket-address-already-in-use

Questions:

  • what port is it using? -- /nix/store/y30wq9zxc2r7xmkj0qnj1cvcmxfpw9p6-dnsmasq-2.79/bin/dnsmasq --help | grep port: defaults to 53
  • what else is using this port?
$ sudo netstat -nlp | grep dnsmasq
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      1354/dnsmasq
tcp6       0      0 :::53                   :::*                    LISTEN      1354/dnsmasq
udp        0      0 0.0.0.0:53              0.0.0.0:*                           1354/dnsmasq
udp6       0      0 :::53                   :::*                                1354/dnsmasq
  • how to make it use a different one?
  • does anything else need to know it's on a different port?

So... it's already running?

debug usability uim ime

  • clicking the toolbar appears not to do anything - never mind, it got stuck under the toolbar.
  • I can switch between input methods with ctrl-shift, but can't seem to switch input within these, so can't seem to input Japanese/Chinese.

pinning: some android error

  • checkout minimal-local / minimal-remote branch or uncomment _module.args.pkgs on master
  • build:
error: attribute 'isCross' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/stage-1.nix:182:27

... or even just use sudo nixos-rebuild switch --upgrade...

rebuild yields libjansson error

warning: the following units failed: libvirtd.service

● libvirtd.service - Libvirt Virtual Machine Management Daemon
   Loaded: loaded (/nix/store/5ylqz5fmgf15mdfdc44pq898561kq3q7-libvirt-4.6.0/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
  Drop-In: /nix/store/0wh5cdvchvxgw19qqjkrj9pij5695hnm-system-units/libvirtd.service.d
           └─overrides.conf
   Active: failed (Result: exit-code) since Mon 2018-08-20 21:42:12 CEST; 21ms ago
     Docs: man:libvirtd(8)
           https://libvirt.org
  Process: 16022 ExecStart=/nix/store/5ylqz5fmgf15mdfdc44pq898561kq3q7-libvirt-4.6.0/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=1/FAILURE)
  Process: 15912 ExecStartPre=/nix/store/rhkz4lcx3kiddhjn0d3gldww3m2cm8cx-unit-script-libvirtd-pre-start (code=exited, status=0/SUCCESS)
 Main PID: 16022 (code=exited, status=1/FAILURE)

Aug 20 21:42:12 klink systemd[1]: Starting Libvirt Virtual Machine Management Daemon...
Aug 20 21:42:12 klink libvirtd[16022]: 2018-08-20 19:42:12.340+0000: 16022: info : libvirt version: 4.6.0
Aug 20 21:42:12 klink libvirtd[16022]: 2018-08-20 19:42:12.340+0000: 16022: info : hostname: klink
Aug 20 21:42:12 klink libvirtd[16022]: 2018-08-20 19:42:12.340+0000: 16022: error : virJSONJanssonOnceInit:66 : this function is not supported by the connection driver: libjansson.so.4 JSON library not available: libjansson.so.4: cannot open shared object file: No such file or directory
Aug 20 21:42:12 klink systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Aug 20 21:42:12 klink systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Aug 20 21:42:12 klink systemd[1]: Failed to start Libvirt Virtual Machine Management Daemon.
warning: error(s) occurred while switching to the new configuration

should be fixed in master soon, see NixOS/nixpkgs#45324

installing intero fails


warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
activating the configuration...

sudo cp -r /etc/nixos/dotfiles/. ./dotfiles/
sudo cp -r /etc/nixos/public/. ./public/
sudo cp -r /etc/nixos/private/. ./private/
git status

setting up /etc...
setting up tmpfiles
 /d/C/n/nix-config   master   bash run.sh intero
building the system configuration...
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
these derivations will be built:
  /nix/store/ric2gk5qic3mq208aksv1xkinjxkk50j-intero-0.1.32.drv
  /nix/store/qd7z0p6rlwzja2jxki3c5i2rhzd4cfgp-system-path.drv
  /nix/store/mx1dxd7sd35ljbqqdpnw201hby6vv97b-set-environment.drv
  /nix/store/0hscc0glxn4d8pwyzfk72lqygrpn7a8k-etc-nixos-env-preinit.fish.drv
  /nix/store/szig7mn94pfbib9jq055xmky1mxcwxz8-dbus-1.drv
  /nix/store/51rkq4z9irbql005d7k4xj643ffy09v6-unit-dbus.service.drv
  /nix/store/8sw9jd8bnspz5nlf59ylc2vrlx1a1pvh-unit-dbus.service.drv
  /nix/store/s5s1jray2gn9kmrc8h9jfvm894lgxwqa-unit-polkit.service.drv
  /nix/store/w27n69jwa8syixvbsnhc2b2n6j8rwkyh-unit-systemd-fsck-.service.drv
  /nix/store/85l8aj5sy2w9b8cc083mps40hih6i7sx-system-units.drv
  /nix/store/f1gnj38schg2ciz988dka3pv044jb5l5-etc-profile.drv
  /nix/store/lx36xjjzakk7kygr0n9zc4f7g7nmfnrq-etc-zshenv.drv
  /nix/store/n6l6f798yz7bmm8sspdzahfx5lj5vg7h-user-units.drv
  /nix/store/ar9vrvrqb4sfqs47r5i92660b0nffvaa-etc.drv
  /nix/store/xxdsp43jdib7hrrzvqxgfgzqzc504sw5-nixos-system-klink-18.09pre149415.8395f9aa85e.drv
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
building Nix...
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
building the system configuration...
warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
these derivations will be built:
  /nix/store/ric2gk5qic3mq208aksv1xkinjxkk50j-intero-0.1.32.drv
  /nix/store/qd7z0p6rlwzja2jxki3c5i2rhzd4cfgp-system-path.drv
  /nix/store/mx1dxd7sd35ljbqqdpnw201hby6vv97b-set-environment.drv
  /nix/store/0hscc0glxn4d8pwyzfk72lqygrpn7a8k-etc-nixos-env-preinit.fish.drv
  /nix/store/szig7mn94pfbib9jq055xmky1mxcwxz8-dbus-1.drv
  /nix/store/51rkq4z9irbql005d7k4xj643ffy09v6-unit-dbus.service.drv
  /nix/store/8sw9jd8bnspz5nlf59ylc2vrlx1a1pvh-unit-dbus.service.drv
  /nix/store/s5s1jray2gn9kmrc8h9jfvm894lgxwqa-unit-polkit.service.drv
  /nix/store/w27n69jwa8syixvbsnhc2b2n6j8rwkyh-unit-systemd-fsck-.service.drv
  /nix/store/85l8aj5sy2w9b8cc083mps40hih6i7sx-system-units.drv
  /nix/store/f1gnj38schg2ciz988dka3pv044jb5l5-etc-profile.drv
  /nix/store/lx36xjjzakk7kygr0n9zc4f7g7nmfnrq-etc-zshenv.drv
  /nix/store/n6l6f798yz7bmm8sspdzahfx5lj5vg7h-user-units.drv
  /nix/store/ar9vrvrqb4sfqs47r5i92660b0nffvaa-etc.drv
  /nix/store/xxdsp43jdib7hrrzvqxgfgzqzc504sw5-nixos-system-klink-18.09pre149415.8395f9aa85e.drv
building '/nix/store/ric2gk5qic3mq208aksv1xkinjxkk50j-intero-0.1.32.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3.
ignoring (possibly broken) abi-depends field for packages
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/n9kzin73hinhxsxdp42xhgrygnw6miz6-intero-0.1.32.tar.gz
source root is intero-0.1.32
setting SOURCE_DATE_EPOCH to timestamp 1530183294 of file intero-0.1.32/CHANGELOG
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --datadir=/nix/store/gmsji2md52r2r8fbmfh5dgddnp5vp7pz-intero-0.1.32-data/share/ghc-8.4.3 --docdir=/nix/store/xkg5f4hrjwhvkaf9234si0k8zz0c8knn-intero-0.1.32-doc/share/doc/intero-0.1.32 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/w8bxy3xrvrd1ci5772y7arkicj0q7x3h-ncurses-6.1/lib --extra-lib-dirs=/nix/store/d60s5bwv6r3hl6w8cg5j7znwaiva43n8-gmp-6.1.2/lib
Using Parsec parser
Configuring intero-0.1.32...
Dependency array -any: using array-0.5.2.0
Dependency base <5: using base-4.11.1.0
Dependency bytestring -any: using bytestring-0.10.8.2
Dependency containers -any: using containers-0.5.11.0
Dependency directory -any: using directory-1.3.1.5
Dependency filepath -any: using filepath-1.4.2
Dependency ghc >=7.8 && <=8.4.3: using ghc-8.4.3
Dependency ghc-boot-th -any: using ghc-boot-th-8.4.3
Dependency ghc-paths -any: using ghc-paths-0.1.0.9
Dependency ghci -any: using ghci-8.4.3
Dependency haskeline -any: using haskeline-0.7.4.2
Dependency hspec -any: using hspec-2.5.5
Dependency mtl -any: using mtl-2.2.2
Dependency network -any: using network-2.6.3.6
Dependency process -any: using process-1.6.3.0
Dependency random -any: using random-1.1
Dependency regex-compat -any: using regex-compat-0.95.1
Dependency syb -any: using syb-0.7
Dependency temporary -any: using temporary-1.3
Dependency time -any: using time-1.8.0.2
Dependency transformers -any: using transformers-0.5.5.0
Dependency unix -any: using unix-2.7.2.2
Source component graph:
    component test:intero-test
    component exe:intero
Configured component graph:
    component intero-0.1.32-2Rp7LXtMQoF8iuqxgh5uqn-intero-test
        include base-4.11.1.0
        include hspec-2.5.5-GKRJ7LuNeobLq85aZueOLR
        include temporary-1.3-2hb1hThMc1B5D7lzs355Og
        include process-1.6.3.0
        include transformers-0.5.5.0
        include directory-1.3.1.5
        include regex-compat-0.95.1-GpayP5pCY7oFkOLgNVrkag
        include filepath-1.4.2
    component intero-0.1.32-3zYWw9QS0RKKD5UzzuLxVk-intero
        include base-4.11.1.0
        include array-0.5.2.0
        include bytestring-0.10.8.2
        include directory-1.3.1.5
        include filepath-1.4.2
        include ghc-8.4.3
        include ghc-paths-0.1.0.9-BTJEJFO7ixU1hUjA8BfQ4h
        include haskeline-0.7.4.2
        include process-1.6.3.0
        include transformers-0.5.5.0
        include syb-0.7-9hcCk7rMk22LB0qkhYmgKN
        include containers-0.5.11.0
        include time-1.8.0.2
        include network-2.6.3.6-2g6VId0Xlc85XRtUcfQj0T
        include random-1.1-9LLJAJa4iQFLJiLXBOBXBV
        include mtl-2.2.2
        include ghci-8.4.3
        include ghc-boot-th-8.4.3
        include unix-2.7.2.2
Linked component graph:
    unit intero-0.1.32-2Rp7LXtMQoF8iuqxgh5uqn-intero-test
        include base-4.11.1.0
        include hspec-2.5.5-GKRJ7LuNeobLq85aZueOLR
        include temporary-1.3-2hb1hThMc1B5D7lzs355Og
        include process-1.6.3.0
        include transformers-0.5.5.0
        include directory-1.3.1.5
        include regex-compat-0.95.1-GpayP5pCY7oFkOLgNVrkag
        include filepath-1.4.2
    unit intero-0.1.32-3zYWw9QS0RKKD5UzzuLxVk-intero
        include base-4.11.1.0
        include array-0.5.2.0
        include bytestring-0.10.8.2
        include directory-1.3.1.5
        include filepath-1.4.2
        include ghc-8.4.3
        include ghc-paths-0.1.0.9-BTJEJFO7ixU1hUjA8BfQ4h
        include haskeline-0.7.4.2
        include process-1.6.3.0
        include transformers-0.5.5.0
        include syb-0.7-9hcCk7rMk22LB0qkhYmgKN
        include containers-0.5.11.0
        include time-1.8.0.2
        include network-2.6.3.6-2g6VId0Xlc85XRtUcfQj0T
        include random-1.1-9LLJAJa4iQFLJiLXBOBXBV
        include mtl-2.2.2
        include ghci-8.4.3
        include ghc-boot-th-8.4.3
        include unix-2.7.2.2
Ready component graph:
    definite intero-0.1.32-3zYWw9QS0RKKD5UzzuLxVk-intero
        depends base-4.11.1.0
        depends array-0.5.2.0
        depends bytestring-0.10.8.2
        depends directory-1.3.1.5
        depends filepath-1.4.2
        depends ghc-8.4.3
        depends ghc-paths-0.1.0.9-BTJEJFO7ixU1hUjA8BfQ4h
        depends haskeline-0.7.4.2
        depends process-1.6.3.0
        depends transformers-0.5.5.0
        depends syb-0.7-9hcCk7rMk22LB0qkhYmgKN
        depends containers-0.5.11.0
        depends time-1.8.0.2
        depends network-2.6.3.6-2g6VId0Xlc85XRtUcfQj0T
        depends random-1.1-9LLJAJa4iQFLJiLXBOBXBV
        depends mtl-2.2.2
        depends ghci-8.4.3
        depends ghc-boot-th-8.4.3
        depends unix-2.7.2.2
    definite intero-0.1.32-2Rp7LXtMQoF8iuqxgh5uqn-intero-test
        depends base-4.11.1.0
        depends hspec-2.5.5-GKRJ7LuNeobLq85aZueOLR
        depends temporary-1.3-2hb1hThMc1B5D7lzs355Og
        depends process-1.6.3.0
        depends transformers-0.5.5.0
        depends directory-1.3.1.5
        depends regex-compat-0.95.1-GpayP5pCY7oFkOLgNVrkag
        depends filepath-1.4.2
Using Cabal-2.2.0.1 compiled by ghc-8.4
Using compiler: ghc-8.4.3
Using install prefix:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32
Executables installed in:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32/bin
Libraries installed in:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32/lib/ghc-8.4.3/intero-0.1.32
Dynamic Libraries installed in:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32/lib/ghc-8.4.3/x86_64-linux-ghc-8.4.3
Private executables installed in:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32/libexec/x86_64-linux-ghc-8.4.3/intero-0.1.32
Data files installed in:
/nix/store/gmsji2md52r2r8fbmfh5dgddnp5vp7pz-intero-0.1.32-data/share/ghc-8.4.3/x86_64-linux-ghc-8.4.3/intero-0.1.32
Documentation installed in:
/nix/store/xkg5f4hrjwhvkaf9234si0k8zz0c8knn-intero-0.1.32-doc/share/doc/intero-0.1.32
Configuration files installed in:
/nix/store/c8092smkk8wcjd9vcnz0g1i1pwdl5l25-intero-0.1.32/etc
No alex found
Using ar found on system at:
/nix/store/gpc2wld1s0c6qzx9326cwn1wcx29xzsj-binutils-2.30/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.3.0 given by user at:
/nix/store/jlbpa06dm81jvbb9jklf5dgvxxad6lgd-gcc-wrapper-7.3.0/bin/gcc
Using ghc version 8.4.3 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/ghc
Using ghc-pkg version 8.4.3 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/hpc
Using hsc2hs version 0.68.3 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/5fdqc2253gi8mf8af5nasq4nqsdclqha-binutils-wrapper-2.30/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using runghc version 8.4.3 found on system at:
/nix/store/a0dr5x063v0zm8z0z5fwh8dldg10yl07-ghc-8.4.3/bin/runghc
Using strip version 2.30 found on system at:
/nix/store/gpc2wld1s0c6qzx9326cwn1wcx29xzsj-binutils-2.30/bin/strip
Using tar found on system at:
/nix/store/jndsxs0zwlr3yajpb4ms2l8gchaa089y-gnutar-1.30/bin/tar
No uhc found
building
Preprocessing executable 'intero' for intero-0.1.32..
Building executable 'intero' for intero-0.1.32..
[ 1 of 10] Compiling Intero.Compat    ( src/Intero/Compat.hs, dist/build/intero/intero-tmp/Intero/Compat.o )
[ 2 of 10] Compiling GhciTypes        ( src/GhciTypes.hs, dist/build/intero/intero-tmp/GhciTypes.o )
[ 3 of 10] Compiling GhciMonad        ( src/GhciMonad.hs, dist/build/intero/intero-tmp/GhciMonad.o )
[ 4 of 10] Compiling GhciTags         ( src/GhciTags.hs, dist/build/intero/intero-tmp/GhciTags.o )
[ 5 of 10] Compiling GhciInfo         ( src/GhciInfo.hs, dist/build/intero/intero-tmp/GhciInfo.o )
[ 6 of 10] Compiling GhciFind         ( src/GhciFind.hs, dist/build/intero/intero-tmp/GhciFind.o )
[ 7 of 10] Compiling Completion       ( src/Completion.hs, dist/build/intero/intero-tmp/Completion.o)
[ 8 of 10] Compiling Paths_intero     ( dist/build/intero/autogen/Paths_intero.hs, dist/build/intero/intero-tmp/Paths_intero.o )
[ 9 of 10] Compiling InteractiveUI    ( src/InteractiveUI.hs, dist/build/intero/intero-tmp/InteractiveUI.o )
[10 of 10] Compiling Main             ( src/Main.hs, dist/build/intero/intero-tmp/Main.o )
Linking dist/build/intero/intero ...
Preprocessing test suite 'intero-test' for intero-0.1.32..
Building test suite 'intero-test' for intero-0.1.32..
[1 of 1] Compiling Main             ( src/test/Main.hs, dist/build/intero-test/intero-test-tmp/Main.o )
Linking dist/build/intero-test/intero-test ...
running tests
Running 1 test suites...
Test suite intero-test: RUNNING...

Arguments parser
  :type-at "Foo Bar.hs" 1 1 1 1 FAILED [1]
  :type-at FAILED [2]
Basics
  :t 1 FAILED [3]
  :i Nothing FAILED [4]
  :k Just FAILED [5]
Load
  :l X.hs FAILED [6]
  :l X.hs; :extensions X FAILED [7]
  :l NonExistent.hs FAILED [8]
Types
  :type-at X.hs 1 1 1 1 x -- Char FAILED [9]
  :type-at X.hs 1 1 1 1 -- Char (string omitted) FAILED [10]
  :type-at X.hs 1 1 1 1 x -- [Char] FAILED [11]
  :type-at X.hs 1 11 1 12 x -- [Char] FAILED [12]
  :type-at X.hs 1 11 1 12 y -- [Char] (internal variable) FAILED [13]
  :type-at X.hs 1 1 1 1 f -- Num a => a FAILED [14]
  :type-at X.hs 1 1 1 1 x -- Char (oddly bounded selection) FAILED [15]
  :type-at half of 2 arguments within function call FAILED [16]
  :type-at funtion + half of its first argument FAILED [17]
  :type-at 2 arguments within a function call FAILED [18]
  :type-at 2 lines within a do bloc FAILED [19]
  :type-at part of a line within a do bloc (1) FAILED [20]
  :type-at part of a line within a do block (2) FAILED [21]
  :type-at with operator resolution FAILED [22]
All Types
  :all-types FAILED [23]
Uses
  :uses X.hs 1 1 1 1 x -- from definition site FAILED [24]
  :uses X.hs 1 11 1 12 x -- from use site FAILED [25]
  :uses X.hs 1 5 1 6 id -- package definition FAILED [26]
  :uses X.hs 1 5 1 6 id -- shadowed package definition FAILED [27]
  :uses on type constructor (in data decl) FAILED [28]
  :uses on type constructor (in sig) FAILED [29]
  :uses on data constructor (in expression) FAILED [30]
Definition location
  From definition site FAILED [31]
  From use site FAILED [32]
  To function argument FAILED [33]
  To pattern match FAILED [34]
  To other module FAILED [35]
  To unexported thing FAILED [36]
Bytecode
  :set -fobject-code ; :l X.hs; :set -byte-code; :l X.hs FAILED [37]
Completion in REPL
  :complete repl "put" FAILED [38]
  :complete repl "sor" FAILED [39]
Completion in module context
  :complete-at for put* FAILED [40]
  :complete-at for locally imported FAILED [41]
  :complete-at for module-locally defined FAILED [42]
  :complete-at for definition-locally defined FAILED [43]
Support GHC 8.2 better
  # PENDING: No reason given

Failures:

  src/test/Main.hs:516:3:
  1) Arguments parser :type-at "Foo Bar.hs" 1 1 1 1
       expected: "x :: Char\n"
        but got: ""

  To rerun use: --match "/Arguments parser/:type-at \"Foo Bar.hs\" 1 1 1 1/"

  src/test/Main.hs:524:3:
  2) Arguments parser :type-at
       expected: "<no location info>: Expected a span: \"<module-name/filepath>\" <start line> <start column> <end line> <end column> \"<sample string>\"\n"
        but got: ""

  To rerun use: --match "/Arguments parser/:type-at/"

  src/test/Main.hs:524:3:
  3) Basics :t 1
       expected: "1 :: Num a => a :: Num a => a\n"
        but got: ""

  To rerun use: --match "/Basics/:t 1/"

  src/test/Main.hs:71:15:
  4) Basics :i Nothing
       expected: "data Maybe a = Nothing | ... \t-- Defined in \8216GHC.Base\8217\n"
        but got: ""

  To rerun use: --match "/Basics/:i Nothing/"

  src/test/Main.hs:524:3:
  5) Basics :k Just
       expected: "Maybe :: * -> *\n"
        but got: ""

  To rerun use: --match "/Basics/:k Just/"

  src/test/Main.hs:97:15:
  6) Load :l X.hs
       expected: "[1 of 1] Compiling Main             ( X.hs, interpreted )\nOk, modules loaded: Main.\nCollecting type info for 1 module(s) ... \n"
        but got: ""

  To rerun use: --match "/Load/:l X.hs/"

  src/test/Main.hs:112:15:
  7) Load :l X.hs; :extensions X
       expected: ["ScopedTypeVariables"]
        but got: []

  To rerun use: --match "/Load/:l X.hs; :extensions X/"

  src/test/Main.hs:118:15:
  8) Load :l NonExistent.hs
       expected: "Failed, modules loaded: none.\n\n<no location info>: can't find file: NonExistent.hs\n"
        but got: ""

  To rerun use: --match "/Load/:l NonExistent.hs/"

  src/test/Main.hs:516:3:
  9) Types :type-at X.hs 1 1 1 1 x -- Char
       expected: "x :: Char\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 1 1 1 x -- Char/"

  src/test/Main.hs:516:3:
  10) Types :type-at X.hs 1 1 1 1 -- Char (string omitted)
       expected: " :: Char\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 1 1 1 -- Char (string omitted)/"

  src/test/Main.hs:516:3:
  11) Types :type-at X.hs 1 1 1 1 x -- [Char]
       expected: "x :: [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 1 1 1 x -- [Char]/"

  src/test/Main.hs:516:3:
  12) Types :type-at X.hs 1 11 1 12 x -- [Char]
       expected: "x :: [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 11 1 12 x -- [Char]/"

  src/test/Main.hs:516:3:
  13) Types :type-at X.hs 1 11 1 12 y -- [Char] (internal variable)
       expected: "y :: [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 11 1 12 y -- [Char] (internal variable)/"

  src/test/Main.hs:516:3:
  14) Types :type-at X.hs 1 1 1 1 f -- Num a => a
       expected: "f :: Num a => a -> a\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 1 1 1 f -- Num a => a/"

  src/test/Main.hs:516:3:
  15) Types :type-at X.hs 1 1 1 1 x -- Char (oddly bounded selection)
       expected: "f :: Char\n"
        but got: ""

  To rerun use: --match "/Types/:type-at X.hs 1 1 1 1 x -- Char (oddly bounded selection)/"

  src/test/Main.hs:516:3:
  16) Types :type-at half of 2 arguments within function call
       expected: "\" \" :: [Char] -> [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at half of 2 arguments within function call/"

  src/test/Main.hs:516:3:
  17) Types :type-at funtion + half of its first argument
       expected: "concat3 \"a :: [Char] -> [Char] -> [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at funtion + half of its first argument/"

  src/test/Main.hs:516:3:
  18) Types :type-at 2 arguments within a function call
       expected: "\"aa\" \"bb\" :: [Char] -> [Char]\n"
        but got: ""

  To rerun use: --match "/Types/:type-at 2 arguments within a function call/"

  src/test/Main.hs:516:3:
  19) Types :type-at 2 lines within a do bloc
       expected: "{{multiline}} :: IO ()\n"
        but got: ""

  To rerun use: --match "/Types/:type-at 2 lines within a do bloc/"

  src/test/Main.hs:516:3:
  20) Types :type-at part of a line within a do bloc (1)
       expected: " 1 :: IO ()\n"
        but got: ""

  To rerun use: --match "/Types/:type-at part of a line within a do bloc (1)/"

  src/test/Main.hs:516:3:
  21) Types :type-at part of a line within a do block (2)
       expected: "1 :: Integer\n"
        but got: ""

  To rerun use: --match "/Types/:type-at part of a line within a do block (2)/"

  src/test/Main.hs:516:3:
  22) Types :type-at with operator resolution
       expected: "1 :: Int\n"
        but got: ""

  To rerun use: --match "/Types/:type-at with operator resolution/"

  src/test/Main.hs:248:15:
  23) All Types :all-types
       expected: "X.hs:(2,1)-(2,2): String\nX.hs:(1,1)-(1,2): Integer\nX.hs:(2,5)-(2,9): Char -> String\nX.hs:(2,10)-(2,13): Char\nX.hs:(2,5)-(2,13): String\nX.hs:(1,5)-(1,8): Integer\n"
        but got: ""

  To rerun use: --match "/All Types/:all-types/"

  src/test/Main.hs:481:3:
  24) Uses :uses X.hs 1 1 1 1 x -- from definition site
       expected: "X.hs:(1,1)-(1,2)\nX.hs:(1,1)-(1,2)\nX.hs:(1,11)-(1,12)\n"
        but got: ""

  To rerun use: --match "/Uses/:uses X.hs 1 1 1 1 x -- from definition site/"

  src/test/Main.hs:481:3:
  25) Uses :uses X.hs 1 11 1 12 x -- from use site
       expected: "X.hs:(1,1)-(1,2)\nX.hs:(1,1)-(1,2)\nX.hs:(1,11)-(1,12)\n"
        but got: ""

  To rerun use: --match "/Uses/:uses X.hs 1 11 1 12 x -- from use site/"

  src/test/Main.hs:481:3:
  26) Uses :uses X.hs 1 5 1 6 id -- package definition
       expected: "base:GHC.Base\n"
        but got: ""

  To rerun use: --match "/Uses/:uses X.hs 1 5 1 6 id -- package definition/"

  src/test/Main.hs:481:3:
  27) Uses :uses X.hs 1 5 1 6 id -- shadowed package definition
       expected: "X.hs:(1,14)-(1,16)\nX.hs:(1,14)-(1,16)\nX.hs:(1,5)-(1,7)\n"
        but got: ""

  To rerun use: --match "/Uses/:uses X.hs 1 5 1 6 id -- shadowed package definition/"

  src/test/Main.hs:481:3:
  28) Uses :uses on type constructor (in data decl)
       expected: ["X.hs:(1,1)-(1,11)"]
        but got: []

  To rerun use: --match "/Uses/:uses on type constructor (in data decl)/"

  src/test/Main.hs:481:3:
  29) Uses :uses on type constructor (in sig)
       expected: ["X.hs:(1,1)-(1,11)"]
        but got: []

  To rerun use: --match "/Uses/:uses on type constructor (in sig)/"

  src/test/Main.hs:481:3:
  30) Uses :uses on data constructor (in expression)
       expected: ["X.hs:(1,1)-(1,11)"]
        but got: []

  To rerun use: --match "/Uses/:uses on data constructor (in expression)/"

  src/test/Main.hs:460:3:
  31) Definition location From definition site
       expected: "X.hs:(1,1)-(1,2)\n"
        but got: ""

  To rerun use: --match "/Definition location/From definition site/"

  src/test/Main.hs:460:3:
  32) Definition location From use site
       expected: "X.hs:(1,1)-(1,2)\n"
        but got: ""

  To rerun use: --match "/Definition location/From use site/"

  src/test/Main.hs:460:3:
  33) Definition location To function argument
       expected: "X.hs:(1,3)-(1,4)\n"
        but got: ""

  To rerun use: --match "/Definition location/To function argument/"

  src/test/Main.hs:460:3:
  34) Definition location To pattern match
       expected: "X.hs:(1,9)-(1,10)\n"
        but got: ""

  To rerun use: --match "/Definition location/To pattern match/"

  src/test/Main.hs:460:3:
  35) Definition location To other module
       expected: "./Y.hs:(1,8)-(1,9)\n"
        but got: ""

  To rerun use: --match "/Definition location/To other module/"

  src/test/Main.hs:460:3:
  36) Definition location To unexported thing
       expected: "X.hs:(2,1)-(2,21)\n"
        but got: ""

  To rerun use: --match "/Definition location/To unexported thing/"

  src/test/Main.hs:144:15:
  37) Bytecode :set -fobject-code ; :l X.hs; :set -byte-code; :l X.hs
       expected: "Ok, modules loaded: Main.\nCollecting type info for 1 module(s) ... \n"
        but got: ""

  To rerun use: --match "/Bytecode/:set -fobject-code ; :l X.hs; :set -byte-code; :l X.hs/"

  src/test/Main.hs:524:3:
  38) Completion in REPL :complete repl "put"
       expected: "3 3 \"\"\n\"putChar\"\n\"putStr\"\n\"putStrLn\"\n"
        but got: ""

  To rerun use: --match "/Completion in REPL/:complete repl \"put\"/"

  src/test/Main.hs:402:15:
  39) Completion in REPL :complete repl "sor"
       expected: ["\"sort\"","\"sortBy\""]
        but got: []

  To rerun use: --match "/Completion in REPL/:complete repl \"sor\"/"

  src/test/Main.hs:516:3:
  40) Completion in module context :complete-at for put*
       expected: ["putChar","putStr","putStrLn"]
        but got: []

  To rerun use: --match "/Completion in module context/:complete-at for put*/"

  src/test/Main.hs:516:3:
  41) Completion in module context :complete-at for locally imported
       expected: ["sort","sortBy"]
        but got: []

  To rerun use: --match "/Completion in module context/:complete-at for locally imported/"

  src/test/Main.hs:516:3:
  42) Completion in module context :complete-at for module-locally defined
       expected: ["modlocal"]
        but got: []

  To rerun use: --match "/Completion in module context/:complete-at for module-locally defined/"

  src/test/Main.hs:516:3:
  43) Completion in module context :complete-at for definition-locally defined
       expected: ["locally"]
        but got: []

  To rerun use: --match "/Completion in module context/:complete-at for definition-locally defined/"

Randomized with seed 1505310968

Finished in 5.1221 seconds
44 examples, 43 failures, 1 pending
Test suite intero-test: FAIL
Test suite logged to: dist/test/intero-0.1.32-intero-test.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for '/nix/store/ric2gk5qic3mq208aksv1xkinjxkk50j-intero-0.1.32.drv' failed with exit code 1
cannot build derivation '/nix/store/qd7z0p6rlwzja2jxki3c5i2rhzd4cfgp-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xxdsp43jdib7hrrzvqxgfgzqzc504sw5-nixos-system-klink-18.09pre149415.8395f9aa85e.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xxdsp43jdib7hrrzvqxgfgzqzc504sw5-nixos-system-klink-18.09pre149415.8395f9aa85e.drv' failed

firefox is not allowed to refer to gcc-wrapper

Trying to solve #34:

  • checkout pin-full
  • build with nix-build --attr system ./configuration.nix
  • error:
output '/nix/store/7nlc5p1i8jw11fxdy6jm223yg6lh6xpn-firefox-devedition-bin-62.0b17' is not allowed to refer to the following paths:
    /nix/store/9z650yzczx5zyhcw5n36ya6x4jq436mr-gcc-wrapper-7.3.0

Commenting Firefox options as suggested at NixOS/nixpkgs#44930 appears not to help for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.