snowfallorg / nixos-conf-editor

A libadwaita/gtk4 app for editing NixOS configurations
GNU General Public License v3.0
453 stars 9 forks source link

Installation through configuration.nix fails #24

Open BlueFox1616 opened 2 days ago

BlueFox1616 commented 2 days ago

the error : error: … while calling the 'head' builtin

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11:

     1574|         || pred here (elemAt values 1) (head values) then
     1575|           head values
         |           ^
     1576|         else

   … while evaluating the attribute 'value'

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9:

      808|     in warnDeprecation opt //
      809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
         |         ^
      810|         inherit (res.defsFinal') highestPrio;

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

   error: attempt to call something which is not a function but a set

   at /etc/nixos/configuration.nix:16:23:

       15| let
       16|   nixos-conf-editor = import (pkgs.fetchFromGitHub {
         |                       ^
       17|     owner = "snowfallorg";
mainrs commented 2 days ago

Can you post your configuration.nix file? At least the parts about how you import and configure/install the program?

BlueFox1616 commented 2 days ago

{ config, pkgs, ... }: let nix-software-center = import (pkgs.fetchFromGitHub { owner = "snowfallorg"; repo = "nix-software-center"; rev = "0.1.2"; sha256 = "xiqF1mP8wFubdsAQ1BmfjzCgOD3YZf7EGWl9i69FTls="; }) {}; in let nixos-conf-editor = import (pkgs.fetchFromGitHub { owner = "snowfallorg"; repo = "nixos-conf-editor"; rev = "0.1.2"; sha256 = "sha256-/ktLbmF1pU3vFHeGooDYswJipNE2YINm0WpF9Wd1gw8="; }) {}; in { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; (configuration code) and then i just added nixos-conf-editor to my pkgs