!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

856 Members
177 Servers

Load older messages


SenderMessageTime
25 Jul 2025
@dramforever:matrix.orgdramforever * can you put out the what you have written again? you originally posted nixosConfigurations.nixos = nixpkgs.lib.nixosSystem = {, which is a syntax error so i doubt that's what you actually had 01:00:19
@s0ands0:matrix.orgS0AndS0

like, nothing's printed, not even []?

Nope, nothing :-\

can you put out what you have written again?

Yeah it wouldn't surprise me if it were something like me being no smort with the syntax! And ya be correct in that my transcription had one too many =, though be assured that wasn't/ain't the reality.

Here be the current state of things;

/etc/nixos/flake.nix (snip)

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    # ...
    git-nixpkgs = {
      type = "path";
      path = "/home/s0ands0/git/hub/NixOS/nixpkgs";
    };
  };

  outputs = { self, nixpkgs, ... }@attrs: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = attrs;
      modules = [
        ./configuration.nix
        # ...
      ];
    };
  };
}

/etc/nixos/configuration.nix (snip)

{
  pkgs,
  git-nixpkgs,
  ...
}:

let
  # git-nixpkgs = import /home/s0ands0/git/hub/NixOS/nixpkgs { };
in
lib.warn (builtins.toString (builtins.attrNames git-nixpkgs))
{
  # ...
  services.dictd = {
    enable = true;

    # DBs = with git-nixpkgs.pkgs.dictDBs; [
    DBs = with git-nixpkgs.legacyPackages.${pkgs.system}.dictDBs; [
      gcide
    ];
  };
}

Now at the rebuild phase, which uh takes a few minutes;

nixos-rebuild test --impure --flake .
#> warning: Git tree '/etc/nixos' is dirty
#> copying "/home/s0ands0/git/hub/NixOS/nixpkgs" to the store
#> ...
#> copying "/nix/store/<HASH>-source/" to the store
#> ...
01:51:09
@dramforever:matrix.orgdramforever try turning that into throw (builtins.toString (builtins.attrNames git-nixpkgs)) just to be sure 01:59:22
@dramforever:matrix.orgdramforever or in fact, just throw git-nixpkgs 02:00:32
@s0ands0:matrix.orgS0AndS0

Woot!

#> evaluation warning: _type checks devShells ... legacyPackages...
#> Done. The new configuration is /nix/store/<HASH>-....

Thank you!!!! I must have been battling some typo for the last 5 (or more) hours and ya solved it in minutes x-)

02:08:14
@vuks:matrix.orgVuks joined the room.18:02:12
@coolio:nope.chat@coolio:nope.chat removed their profile picture.19:48:22
@coolio:nope.chat@coolio:nope.chat removed their display name coolio.19:48:27
@coolio:nope.chat@coolio:nope.chat left the room.19:48:33
26 Jul 2025
@kotwys:matrix.orgKočyš Mikajlo left the room.07:45:28
27 Jul 2025
@matthaispali:converser.eumatthaispali joined the room.19:46:18
28 Jul 2025
@rav:vergara.techRene should all packages in nixpkgs be able to be installed using nix profile install? 16:33:01
@sandro:supersandro.deSandro 🐧There are probably some exceptions but generally I can say a definitive maybe16:34:10
@rav:vergara.techRene

what does it mean that a package listed in search.nixos.org gives this:

error: cannot find flake 'flake:hledger' in the flake registries
16:35:38
@rav:vergara.techRene *

what does it mean that a package listed in search.nixos.org gives this when using nix profile install:

error: cannot find flake 'flake:hledger' in the flake registries
16:35:57
@dramforever:matrix.orgdramforever nixpkgs#hledger 16:42:34
@rav:vergara.techReneD'oh!17:19:34
@exaltia:chat.exaltia.fr@exaltia:chat.exaltia.fr left the room.18:01:05
29 Jul 2025
@dontblameme:matrix.orgDontBlameMe joined the room.00:23:44
@maxcf:matrix.orgMax changed their display name from Maximilian Canez Fernandes to HAL9000.20:17:38
30 Jul 2025
@yan:we2.eeyan 💕 joined the room.01:33:19
@gladiator_entered:matrix.org@gladiator_entered:matrix.org left the room.18:08:02
31 Jul 2025
@sammy:cherrykitten.gaysammy (It/Its) joined the room.09:34:39
@sammy:cherrykitten.devSammy (It/Its) left the room.10:05:31
@softmoonworld:matrix.org@softmoonworld:matrix.org left the room.18:44:52
1 Aug 2025
@brisingr05:matrix.orgBrisingr05 joined the room.18:05:37
2 Aug 2025
@sorimaxuki:matrix.org@sorimaxuki:matrix.org joined the room.01:14:29
@sorimaxuki:matrix.org@sorimaxuki:matrix.org left the room.01:22:38
@julian:nekover.se@julian:nekover.se joined the room.18:51:02
4 Aug 2025
@entro:matrix.orgentro joined the room.12:28:58

Show newer messages


Back to Room ListRoom Version: 6