Giter Site home page Giter Site logo

ners / trilby Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 8.0 358 KB

๐Ÿ‘’ Trilby is a NixOS-based operating system that is modeled after Fedora Linux. It provides new users with sensible defaults and a great out-of-the-box experience.

License: Other

Nix 49.02% Shell 0.35% Lua 5.75% Haskell 43.35% Python 1.54%
nix nixos nixos-configuration

trilby's People

Contributors

ners avatar twesterhout avatar linschlager avatar chysi avatar ejmount avatar

Stargazers

Jeremy Stucki avatar Rusty avatar Zzy Wysm avatar  avatar  avatar Auguste Baum avatar  avatar Henrik avatar Miguel Carino avatar David Costa avatar MartiniMoe avatar Wayne Kearns avatar Mike Nason avatar Connor Azzarello avatar Bo-Wei Chen avatar  avatar Saroj Mahato avatar Sean Klein avatar  avatar  avatar  avatar  avatar Bryan Honof avatar BEMZlabs avatar

Watchers

Viktor Kleen avatar  avatar  avatar  avatar

trilby's Issues

line 4: node: command not found when building (aarch64)

After #24 I got another error when building

log shows the following:

@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
unpacking source archive /nix/store/6j3x5c97ndcpd0l6vq9m0xwk9rr1jz5a-neovim-4.10.1.tgz
unpacking source archive /nix/store/2ldh5f7qc6m3gbip1bk10wz4yk4y8g24-colors-1.6.0.tgz
unpacking source archive /nix/store/6cahhy3qfd5qk6hsdg1xxsq7rfk1salq-diagnostics-2.0.3.tgz
unpacking source archive /nix/store/ab2hpzidzcfkfa89z1sdljrxrqxy1dpm-msgpack-2.8.0.tgz
unpacking source archive /nix/store/wvc2ji9z9sf32n4mmf5pzpbws19jzmhh-triple-beam-1.3.5.tgz
unpacking source archive /nix/store/6nr7cvhh49cfl3jwc7w02bls7w2nvw46-async-3.2.5.tgz
unpacking source archive /nix/store/qk63v74k8jk8kgjl0w9lqz5a0djf3nbk-color-3.2.1.tgz
unpacking source archive /nix/store/5hkvvgzr3vmwq1c8fsdhbabnyymk0gds-color-convert-1.9.3.tgz
unpacking source archive /nix/store/l0xf7qzqbnpcvhq2640w8m4daapigcf1-color-name-1.1.3.tgz
unpacking source archive /nix/store/zxphayfjkspjz8rbily8h1lwhjmzh981-color-string-1.9.1.tgz
unpacking source archive /nix/store/6k78grz80nbw1xlqs3rx08f1yz55zhg3-colorspace-1.1.4.tgz
unpacking source archive /nix/store/gwlxfzr567zjadhi3hy1xbqph8z0f8d4-enabled-2.0.0.tgz
unpacking source archive /nix/store/qbxs0bdsb0srxicdk9lfr3j51a38wx0j-fecha-4.2.3.tgz
unpacking source archive /nix/store/kl0vk98dilq3fsafcivw3ad9app6vrnf-fn.name-1.1.0.tgz
unpacking source archive /nix/store/azvzr4mg5gc3av5b7jr3wzs20ldjrkxz-inherits-2.0.4.tgz
unpacking source archive /nix/store/5xdlmfc1zcmd50vcsad1wlijp15xiim7-is-arrayish-0.3.2.tgz
unpacking source archive /nix/store/wyyz1fvik77wpyli3lpcv35kqz73lhsf-is-stream-2.0.1.tgz
unpacking source archive /nix/store/8akfkywp64rgzaqbx3246vydhlasvqy0-kuler-2.0.0.tgz
unpacking source archive /nix/store/pk08hi76g74h7zw8my38x4v96x6myjma-logform-2.6.0.tgz
unpacking source archive /nix/store/fn9vj7k5mkmj1mp9z1r3ghgsyi84ajd2-lru-cache-6.0.0.tgz
unpacking source archive /nix/store/nyjhgv4dh970fs5d125nbn7sc3dzxjzx-ms-2.1.3.tgz
unpacking source archive /nix/store/6yzw2lxadk444sw90r4fz16bhi17bp77-one-time-1.0.0.tgz
unpacking source archive /nix/store/g9w34xzij2l2s19j80b2p75zc3yf8551-readable-stream-3.6.2.tgz
unpacking source archive /nix/store/9cnrb44a4pgbfjpnc9v1045972vnndmw-safe-buffer-5.2.1.tgz
unpacking source archive /nix/store/hxlkkhinwvlw8l445h3lbicf9gz8i75m-safe-stable-stringify-2.4.3.tgz
unpacking source archive /nix/store/kz7ndzv284ir4na86awslhg4b7z9ws7c-semver-7.5.4.tgz
unpacking source archive /nix/store/k5pify4r94mn6yiy1m709fjwrczvrvif-simple-swizzle-0.2.2.tgz
unpacking source archive /nix/store/w6mj78kighdgamdix8j7hi84g983k486-stack-trace-0.0.10.tgz
unpacking source archive /nix/store/b0dc9j47q4lbp5rwcqbzsz68p9f1n9xp-string_decoder-1.3.0.tgz
unpacking source archive /nix/store/64gcs2wf1z7k8kajzmndqk8wix9ds3xz-text-hex-1.0.0.tgz
unpacking source archive /nix/store/l13z7lc0l5a84lbwijsn12h7lr9hwliq-triple-beam-1.4.1.tgz
unpacking source archive /nix/store/7ng54ba9614fvjak8537rm1gcj6vzwwm-util-deprecate-1.0.2.tgz
unpacking source archive /nix/store/n3h2sjszsm2zjjj594phajgs5kj6w1qx-winston-3.3.3.tgz
unpacking source archive /nix/store/94651q0fsjxrndmc36wnjp70kf7fkcs6-winston-transport-4.6.0.tgz
unpacking source archive /nix/store/4aznbgn0ysywd3yxbhnan1x9mzn4lvq0-yallist-4.0.0.tgz
pinpointing versions of dependencies...
/build/.attr-15dhb26v5nfdpwqlxzm6hnavmmp7kcjb3jivxnf2y23z897fryb3: line 4: node: command not found

I have no idea where this comes from specifically

trilby-cli: update remote hosts

trilby update uses nixos-rebuild to build and update the current system. We can extend it to support updating remote hosts.

Add the optional [HOST...] positional parameter to the CLI options. A HOST can either be a <hostname>, or <username>@<hostname>. (SSH syntax)

If no hosts are given, we can fall back to the current default behaviour, or use the localhost hostname.

Then, for each HOST:

  • nixos-rebuild build --target-host <HOST> --flake <flakeRef>#<hostname> - to locally build the toplevel derivation of the host, then copy it to the host system over SSH
  • ssh <HOST> unbuffer nvd diff /run/current-system $(readlink ./result) - to present the user with the usual colourful list of changes from the host's current system to the new one
  • resolve opts.action seperately for each host, e.g. with nixos-rebuild <action> --target-host <HOST> --use-remote-sudo ...

convert: command not found when building | failed with exit code 127 (aarch64)

After temporally fixing #22 using the following workaround thanks to @ners:

comment line 5 of modules/profiles/network.nix , disabling network manager

And trying to build the image again:

nix build .#trilby-server-unstable-aarch64-isoImage

i get the following error:

trilby_error
that says the following (acording to a image to text ai):

nix build .$trilby-server-unstable-aarch64-isoImage
warning: Git tree '/home/nicksos/Documents/Github/public/trilby' is dirty
error: builder for /nix/store/ylqy42zc7y28sxcis6q859zz3g4ucny8-trilby-grub2-theme.drv' failed with exit code 127: last 1 log lines:
> /build/.attr-012nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 4: convert: command not found 
For full logs, run 'nix log /nix/store/ylqy42zc7y28sxcis6q859zz3g4vcmy8-trilby-grub2-theme.drv'.
error: 1 dependencies of derivation '/nix/store/yg6qd318010pi5kc44n20ap9kc7fi0wb-trilby-server-24.05-aarch64.iso-aarch64-unknown-linux-gnu.drv' failed to build 

this error is referencing this line of code :

convert ${../../../assets/Trilby.png} -geometry x100 $out/logo.png
that is inside modules/overlays/trilby-grub2-theme/default.nix

Mismatched Qt dependencies error when building (aarch64)

after enabling cross compilation in my x86_64-linux system via adding the following to my configuration.nix:

boot.binfmt.emulatedSystems = [ "aarch64-linux" ];

After rebooting, so the emulated system applies, I executed the following:
nix build .#trilby-server-unstable-aarch64-isoImage

and after 2 hours and 40 minutes, the following build error appeared:

error: builder for '/nix/store/dxqp9zx67g9jdp657gwnamfld0bvdivm-qtsvg-5.15.12.drv' failed with exit code 1;
       last 3 log lines:
       > Error: detected mismatched Qt dependencies:
       >     /nix/store/y6k52y5mc4ddr8dzqmjmyhpvv7if9dsw-qtbase-5.15.12-dev
       >     /nix/store/k6bzgbksd210zbmazf1ax5f37nq9b92y-qtbase-5.15.12-dev
       For full logs, run 'nix log /nix/store/dxqp9zx67g9jdp657gwnamfld0bvdivm-qtsvg-5.15.12.drv'.
error: 1 dependencies of derivation '/nix/store/wg4ppv5ylf97h3d9qmsjmm8palpil84p-python3.11-PyQt5-5.15.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x7hckx3y3mp5npfhifxnkyiqrp94aiz5-ffado-2.4.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0i2h82km1xk3knmnvkcl2qxl6k8fr54a-pipewire-1.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jd95xq46l8lir0p8nj56mxn7583pzq6w-SDL2-2.28.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4xr0w5vzm9qx97v00xaqah35w2965dpw-openal-soft-1.23.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pck3zj7awmwlc0ym542gh24w5fx6mvvn-gst-plugins-bad-1.22.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hm9v8h4ipw4zv00xrhahqi7md6h660i4-gtk4-4.12.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1gb1kz09l61wy2m38plrgv50s8h60rdd-wrap-gapps-hook.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-openldap-aarch64-unknown-linux-gnu-2.6.7.drv-0/openldap-2.6.7': Directory not empty
error: 1 dependencies of derivation '/nix/store/kcjcq6ck32nljz7jwnqbhdmyk5h9fnqf-gcr-aarch64-unknown-linux-gnu-4.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/87lx3qsl2v0xxh172c7a75fj0jxfyy82-libnma-aarch64-unknown-linux-gnu-1.10.6.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g9asih9c4mbship06il4rcq5mih0zszh-libnma-aarch64-unknown-linux-gnu-1.10.6.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b5vfrh10nw5s0jb8mkqqipl3kgcfa3nw-NetworkManager-fortisslvpn-gnome-1.4.0-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b0qijw5j8gywh19xp4ywkgb01km4zcqn-NetworkManager-iodine-gnome-unstable-2019-11-05-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/whgigj5dnd15biydmhvlwyh2s9y1mc3y-NetworkManager-l2tp-gnome-1.20.10-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vbiir2cn9c9n75pjjishvvdbbbbiibwv-NetworkManager-openconnect-aarch64-unknown-linux-gnu-1.2.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p33kk2mp5zwg2fiv362xk9yxllzh01zp-NetworkManager-openvpn-aarch64-unknown-linux-gnu-1.10.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x258432k31i4dvknrlc0iydbg17r49ch-NetworkManager-sstp-gnome-unstable-2023-03-09-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5nigid011bxbw8kc56libkw16sxlqry8-NetworkManager-vpnc-aarch64-unknown-linux-gnu-1.2.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/84dlbf08yabfaqmbrkz30sxd4f718c1p-etc.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-dbus-aarch64-unknown-linux-gnu-1.14.10.drv-0/dbus-1.14.10': Directory not empty
error: 1 dependencies of derivation '/nix/store/a4wkzvgdg0bw2g5raz7k26a9c0p6nmlk-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/za17kgs68nacmqsz0iiwakm3k3yksxss-trilby-server-unstable-aarch64-isoImage.drv' failed to build
error: 1 dependencies of derivation '/nix/store/57m0zidka1xfi4ybpxac9bbh6cp4hskz-closure-info-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7193hnqazc95lqn0wd8lgl8v6944l68x-efi-directory.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-vala-aarch64-unknown-linux-gnu-0.56.14.drv-0/vala-0.56.14': Directory not empty
error (ignored): error: cannot unlink '/tmp/nix-build-x265-aarch64-unknown-linux-gnu-3.5.drv-0/x265_3.5/source': Directory not empty
error: 1 dependencies of derivation '/nix/store/ycg4gjrkyi273xscdsxsww8yck4y5xbw-trilby-server-24.05-aarch64.iso-aarch64-unknown-linux-gnu.drv' failed to build

running nix log /nix/store/dxqp9zx67g9jdp657gwnamfld0bvdivm-qtsvg-5.15.12.drv outputs the following:

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/dxqp9zx67g9jdp657gwnamfld0bvdivm-qtsvg-5.15.12.drv^*'
Error: detected mismatched Qt dependencies:
    /nix/store/y6k52y5mc4ddr8dzqmjmyhpvv7if9dsw-qtbase-5.15.12-dev
    /nix/store/k6bzgbksd210zbmazf1ax5f37nq9b92y-qtbase-5.15.12-dev

trilby-cli fails to build on <=23.05

Currently trilby-cli uses a function of Turtle (isAbsolute) that was not present at the library version that exists in nixos-23.05.

I see a few possible solutions:

  • replace isAbsolute with not . isRelative
  • use ifdefs on package version to conditionally define isAbsolute
  • drop support for nixos-23.05

Of the three, the last seems the most attractive. We could make the upcoming 23.11 release the first official Trilby release as well.

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.