!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

609 Members
121 Servers

Load older messages


SenderMessageTime
31 Mar 2024
@kshlm:matrix.orgkshlm changed their display name from kshlm (Old) to kshlm.04:33:01
@lychee:lefishe.club@lychee:lefishe.club joined the room.20:03:16
@chadac:matrix.orgchadac joined the room.20:13:10
@skiparoo:matrix.orgskippy joined the room.20:34:45
@technicus:matrix.orgMiles Dyson joined the room.23:04:55
1 Apr 2024
@dminca:matrix.orgdminca
In reply to @mewp:nurupo.pl
yesterday, the room avatar seems to have changed, as as far as I can see it's no longer in the nixos space. anyone has an idea why?
I don’t see any room avatar for this one atm, perhaps my client is glitching 
09:28:43
@sako:catgirl.cloud@sako:catgirl.cloud joined the room.20:17:53
@sako:catgirl.cloud@sako:catgirl.cloud set a profile picture.20:43:29
@sako:catgirl.cloud@sako:catgirl.cloud changed their profile picture.20:44:21
2 Apr 2024
@sako:catgirl.cloud@sako:catgirl.cloud changed their profile picture.00:59:56
@dgrig:erethon.comdgrig joined the room.15:13:06
3 Apr 2024
@brokenpip3:matrix.org@brokenpip3:matrix.org joined the room.08:27:17
@aniketd:matrix.org@aniketd:matrix.org left the room.10:57:25
@maka_77x:matrix.orgmaka_77x joined the room.14:07:08
4 Apr 2024
@stevenewey:matrix.orgStephen joined the room.08:08:25
@stevenewey:matrix.orgStephen changed their display name from stevenewey to Stephen.08:11:45
@mlyx:matrix.org@mlyx:matrix.org left the room.15:19:38
@darinmorrison:matrix.orgsilvanshade joined the room.19:41:45
@borax4:matrix.orgborax4 joined the room.20:03:48
@thatoo:matrix.orgThatoo joined the room.21:11:14
5 Apr 2024
@krystek17:matrix.orgkrystek17 joined the room.14:39:11
@yaqueen:matrix.orgyaqueen joined the room.20:27:22
@thatoo:matrix.orgThatooHello, I have an issue trying to migrate to flakes.23:11:07
@thatoo:matrix.orgThatoo

He is my flake.nix fil :

{
  description = "my flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
    nixpkgs_unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    nix_software_center.url = "github:snowfallorg/nix-software-center";
  };

  outputs = inputs@{ self, nixpkgs, ... }: {

    nixosConfigurations.default = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [
        ./configuration.nix
      ];

    };

  };
}
23:11:39
@thatoo:matrix.orgThatoo

and here is what I put in configuration.nix :

{ config, pkgs, lib, inputs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      ./hardware-configuration.nix
    ];
  nix.settings.experimental-features = [ "nix-command" "flakes" ];

  environment.systemPackages = with pkgs; [
    nextcloud-client
    inputs.nix_software_center.packages."${pkgs.system}".nix-software-center
    inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler
  ];
}
23:12:28
@thatoo:matrix.orgThatoo launching the command
sudo nixos-rebuild switch --show-trace --flake .#default
works well if I comment the last line
# inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler
23:14:05
@thatoo:matrix.orgThatoo it does install nextcloud-client and nix-software-center 23:14:51
@thatoo:matrix.orgThatoo

but if I want to install tribler and I uncomment the line
inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler
then it says

error: attribute 'packages' missing

       at /nix/store/i9ywdccn0czb9bw8gfi9qnk954v33b2w-source/configuration.nix:240:5:

          239|     #unstable.rustdesk-flutter
          240|     inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler
             |     ^
          241|   ];
23:15:39
@thatoo:matrix.orgThatoo I don't understand why
inputs.nix_software_center.packages."${pkgs.system}".nix-software-center
works
and
inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler
doesn't work
23:17:23
@thatoo:matrix.orgThatooI found out!23:28:17

Show newer messages


Back to Room ListRoom Version: 6