nix-community / kde2nix

Provisional, experimental Plasma 6 (and friends) pre-release packaging [maintainer=@K900]
MIT License
66 stars 6 forks source link

attribute accounts-qt missing #42

Closed hcesaropz closed 8 months ago

hcesaropz commented 8 months ago
$ sudo nixos-rebuild dry-run --option eval-cache false
building the system configuration...
error:
       … while calling the 'head' builtin

         at /nix/store/4fgs7yzsy2dqnjw8j42qlp9i1vgarzy0-source/lib/attrsets.nix:936:11:

          935|         || pred here (elemAt values 1) (head values) then
          936|           head values
             |           ^
          937|         else

       … while evaluating the attribute 'value'

         at /nix/store/4fgs7yzsy2dqnjw8j42qlp9i1vgarzy0-source/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: attribute 'accounts-qt' missing

       at /nix/store/vafzabyvmnnig6j8z0hq20prm5hv6m0k-source/pkgs/kde/lib/mk-kde-derivation.nix:87:22:

           86|     # but cross is currently very broken anyway, so we can figure this out later.
           87|     deps = map (dep: self.${dep}) (dependencies.${pname} or []);
             |                      ^
           88|
K900 commented 8 months ago

You need to use newer nixpkgs.

hcesaropz commented 8 months ago

I... am?

# /etc/nixos/flake.nix
# it's ugly as hell, I know
{
  nixConfig = {
    extra-substituters = [
      "https://nix-community.cachix.org"
    ];
    extra-trusted-public-keys = [
      "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
    ];
  };
  inputs = {
    # nixpkgs/nixos-unstable: Nixpkgs Unstable
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    # nix-community/lanzaboote: UEFI Secure Boot for NixOS
    lanzaboote = {
      url = "github:nix-community/lanzaboote";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    # gmodena/nix-flatpak: declarative Flatpaks
    nix-flatpak.url = "github:gmodena/nix-flatpak";
    # nix-community/kde2nix: Plasma 6 beta
    kde2nix.url = "github:nix-community/kde2nix";
    # thiagokokada/nix-alien: run unpatched binaries
    nix-alien = {
      url = "github:thiagokokada/nix-alien";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
  outputs = { self, nixpkgs, lanzaboote, nix-flatpak, kde2nix, nix-alien, ... }: {
    nixosConfigurations.syndicate = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        lanzaboote.nixosModules.lanzaboote
        nix-flatpak.nixosModules.nix-flatpak
        kde2nix.nixosModules.plasma6
        ./configuration.nix
        ({ self, system, ... }: { environment.systemPackages = with self.inputs.nix-alien.packages.${system}; [ nix-alien ]; progra>
        ({ boot.lanzaboote = { enable = true; pkiBundle = "/etc/secureboot"; }; })
      ];
    };
  };
}
K900 commented 8 months ago

Run nix flake update then.

hcesaropz commented 8 months ago

Run nix flake update then.

wait inputs are updated separately?? oh thanks

K900 commented 8 months ago

Separately from what?

hcesaropz commented 8 months ago

Separately from what?

well, I, uh, usually just run sudo nixos-rebuild switch --upgrade and hope everything works. please forgive my idiocy, I've only been using NixOS for ~2 months and didn't even know nix flake update existed until a few minutes ago