Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation through configuration.nix fails #24

Open
BlueFox1616 opened this issue Jun 30, 2024 · 4 comments
Open

Installation through configuration.nix fails #24

BlueFox1616 opened this issue Jun 30, 2024 · 4 comments

Comments

@BlueFox1616
Copy link

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
Copy link

mainrs commented Jul 1, 2024

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

@BlueFox1616
Copy link
Author

{ 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

@vikineema
Copy link

I've also experienced the same issue, the configuration file is here:
{ config, pkgs, lib, ... }: let nixos-conf-editor = import (pkgs.fetchFromGitHub { owner = "snowfallorg"; repo = "nixos-conf-editor"; rev = "0.1.2"; sha256 = "sha256-/ktLbmF1pU3vFHeGooDYswJipNE2YINm0WpF9Wd1gw8="; }) {}; in { environment.systemPackages = with pkgs; [ nixos-conf-editor ]; }

@UX0l0l
Copy link

UX0l0l commented Nov 4, 2024

same issue here as well. can we get a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants