From 4e0d2f5dab448bfe176420897bcab158e182f610 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 22 May 2023 19:26:52 +0200 Subject: [PATCH] nix: clean up --- modules/nix/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 53829ee..2d9b2b0 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: +{ pkgs, self, ... }: { nix = { @@ -26,16 +26,14 @@ }; 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; + home-manager.flake = self.inputs.home-manager; + nixos-hardware.flake = self.inputs.nixos-hardware; + nur.flake = self.inputs.nur; + nixpkgs.flake = self.inputs.nixpkgs; }; - nixPath = [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; + nixPath = [ "nixpkgs=${self.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