5 Apr 2024 |
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 |
| TobTobXX joined the room. | 19:38:48 |
TobTobXX | Hi just a quick question: I have a non-flake NixOS configuration and I want to use the NixOS Module from a flake. How would I go about that? Thank you! | 19:39:36 |
nim65s | TobTobXX: for this, I used https://nixos-and-flakes.thiscute.world/nixos-with-flakes/nixos-with-flakes-enabled and was quite happy with it :) | 19:52:18 |
9 Apr 2024 |
| @conr:mozilla.org left the room. | 03:14:27 |
| @raf:notashelf.dev joined the room. | 17:53:29 |
10 Apr 2024 |
| @fomosapien:matrix.org changed their display name from Human to Triskelion. | 11:16:49 |
11 Apr 2024 |
| pxc joined the room. | 18:10:23 |
13 Apr 2024 |
| @alex3829:matrix.org joined the room. | 16:03:47 |
14 Apr 2024 |
| Ido Samuelson changed their profile picture. | 04:54:41 |