From 582cfb8163208e087ef854983b2c07815acf4c46 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 22 May 2023 19:24:56 +0200 Subject: [PATCH] nix: manage channels --- modules/nix/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index e22786f..53829ee 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, inputs, ... }: { nix = { @@ -25,8 +25,17 @@ warn-dirty = false; }; package = pkgs.nixVersions.nix_2_15; + registry = { + home-manager.flake = inputs.home-manager; + nixos-hardware.flake = inputs.nixos-hardware; + nur.flake = inputs.nur; + nixpkgs.flake = inputs.nixpkgs; + }; + nixPath = [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; }; + environment.etc."channels/nixpkgs".source = inputs.nixpkgs.outPath; + environment.systemPackages = with pkgs; [ deploy-rs nixfmt