nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

can't set up font #359

Closed plchldr-jm closed 1 month ago

plchldr-jm commented 1 month ago
-bash-5.2$ cat .config/nixpkgs/nix-on-droid.nix
{ config, lib, pkgs, ... }:

{
  # Simply install just the packages
  environment.packages = with pkgs; [
    # User-facing stuff that you really really want to have
    #vim # or some other editor, e.g. nano or neovim
    ed
    nano

    dejavu_fonts

    # Some common stuff that people expect to have
    #diffutils
    #findutils
    #utillinux
    #tzdata
    #hostname
    #man
    #gnugrep
    #gnupg
    #gnused
    #gnutar
    #bzip2
    #gzip
    #xz
    #zip
    #unzip
  ];

  # Backup etc files instead of failing to activate generation if a file already exists in /etc
  environment.etcBackupExtension = ".bak";

  # Read the changelog before changing this value
  system.stateVersion = "23.11";

  # Set up nix for flakes
  #nix.extraOptions = ''
  #  experimental-features = nix-command flakes
  #'';

  # Set your time zone
  #time.timeZone = "Europe/Berlin";

  # After installing home-manager channel like
  #   nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
  #   nix-channel --update
  # you can configure home-manager in here like
  #home-manager = {
  #  useGlobalPkgs = true;
  #
  #  config =
  #    { config, lib, pkgs, ... }:
  #    {
  #      # Read the changelog before changing this value
  #      home.stateVersion = "23.11";
  #
  #      # insert home-manager config
  #    };
  #};

  terminal.enable = true ;
  termimal.font= "${pkgs.dejavu_fonts}/share/fonts/truetype/DejaVuSansMono.ttf";
}

# vim: ft=nix

-bash-5.2$ nix-on-droid switch
Building activation package...
error:
       … while evaluating a branch condition

         at /nix/store/r12551skwqbc06aqc401c782vrykkp4n-nix-on-droid-23.11.tar.gz/nix-on-droid/modules/default.nix:30:5:

           29|   module =
           30|     if failedAssertions != [ ]
             |     ^
           31|     then throw "\nFailed assertions:\n${concatMapStringsSep "\n" (x: "- ${x}") failedAssertions}"

       … while calling the 'map' builtin

         at /nix/store/r12551skwqbc06aqc401c782vrykkp4n-nix-on-droid-23.11.tar.gz/nix-on-droid/modules/default.nix:27:22:

           26|
           27|   failedAssertions = map (x: x.message) (filter (x: !x.assertion) rawModule.config.assertions);
             |                      ^
           28|

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: The option `termimal' does not exist. Definition values:
       - In `/data/data/com.termux.nix/files/home/.config/nixpkgs/nix-on-droid.nix':
           {
             font = "/nix/store/zxi6gnf49w58v6hhr23z548wlcz7p1f6-dejavu-fonts-2.37/share/fonts/truetype/DejaVuSansMono.ttf";
           }
-bash-5.2$
``
t184256 commented 1 month ago

terminal.enable = true ;

This one does not exist.

plchldr-jm commented 1 month ago

commented the enable line out, same error

t184256 commented 1 month ago

termimal

terminal

plchldr-jm commented 1 month ago

oh thanks

i can't believe i made another typo today

solved