4 Apr 2024 |
| Stephen joined the room. | 08:08:25 |
| Stephen changed their display name from stevenewey to Stephen. | 08:11:45 |
| @mlyx:matrix.org left the room. | 15:19:38 |
| silvanshade joined the room. | 19:41:45 |
| borax4 joined the room. | 20:03:48 |
| Thatoo joined the room. | 21:11:14 |
5 Apr 2024 |
| krystek17 joined the room. | 14:39:11 |
| yaqueen joined the room. | 20:27:22 |
Thatoo | Hello, I have an issue trying to migrate to flakes. | 23:11:07 |
Thatoo | 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 | 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 | 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 | it does install nextcloud-client and nix-software-center | 23:14:51 |
Thatoo | 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 | 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 | I found out! | 23:28:17 |
Thatoo | inputs.nixpkgs_unstable.packages."${pkgs.system}".tribler should be
inputs.nixpkgs_unstable.legacyPackages."${pkgs.system}".tribler | 23:28:38 |
Thatoo | now it works | 23:28:43 |
6 Apr 2024 |
| @conr:mozilla.org joined the room. | 17:04:02 |
@conr:mozilla.org | Do I need to run sudo nixos-rebuild switch --flake .#device && nix flake update with a flake config repo to stay up-to-date or can one do both? | 17:04:31 |
@conr:mozilla.org | nvm, i got it. ran them seperate. | 17:17:29 |
| @fomosapien:matrix.org joined the room. | 18:39:02 |
@lychee:lefishe.club | well u need to run nix flake update first so the rebuild knows to use the new inputs | 20:00:10 |
7 Apr 2024 |
| arilebedey joined the room. | 04:53:29 |
| @fractivore:cyberia.club changed their display name from symys to symyƨ. | 07:59:00 |
| @fractivore:cyberia.club changed their display name from symyƨ to sγmγƨ. | 08:01:42 |
| @fractivore:cyberia.club changed their display name from sγmγƨ to SYMYƧ. | 08:09:22 |
8 Apr 2024 |
| @vengmark2:matrix.org joined the room. | 00:53:43 |
| @theophane:hufschmitt.net left the room. | 08:54:27 |
| @lychee:lefishe.club changed their display name from lychee to kay. | 17:11:03 |