!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

866 Members
168 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
22 Jul 2025
@exaltia:chat.exaltia.fr@exaltia:chat.exaltia.fr joined the room.02:21:11
@ayoreis:matrix.orgayoreis joined the room.15:32:16
@ayoreis:matrix.orgayoreis using a flake with nixos configuration, should i use the imports list in configuration.nix, or the modules list in flake.nix for including hardware-configuration.nix? 15:34:25
@ayoreis:matrix.orgayoreis same question with disko-config.nix 15:55:22
@thibaut:fsl.shThibaut

I use this:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
    home-manager.url = "github:nix-community/home-manager/release-25.05";
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    nixpkgs-unfree.url = "github:numtide/nixpkgs-unfree";
    nixpkgs-unfree.inputs.nixpkgs.follows = "nixpkgs-unstable";
  };

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

and my configuration.nix includes everything for me

15:58:18
@maxcf:matrix.orgMax joined the room.18:57:01
24 Jul 2025
@codgician:matrix.codgician.mecodgician changed their profile picture.16:58:08
@s0ands0:matrix.orgS0AndS0 joined the room.23:16:19

Show newer messages


Back to Room ListRoom Version: 6