From 65147924451ac9a1a5b0826429482d5d3719be69 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 4 Nov 2023 10:29:29 +0000 Subject: [PATCH] refactor(flake): add pkgsUnstable in other files --- system/nixos/configuration.nix | 4 +++- system/shared/home-manager-packages.nix | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/system/nixos/configuration.nix b/system/nixos/configuration.nix index d024f53..884fc74 100644 --- a/system/nixos/configuration.nix +++ b/system/nixos/configuration.nix @@ -1,6 +1,8 @@ { inputs, pkgs, system }: let + pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages."${system}"; + configure-gtk = pkgs.writeTextFile { name = "configure-gtk"; destination = "/bin/configure-gtk"; @@ -181,7 +183,7 @@ in monospace = [ "JetBrainsMono Nerd Font Mono" ]; }; }; - fonts = with inputs.nixpkgs-unstable.legacyPackages."${system}"; [ + fonts = with pkgsUnstable; [ (nerdfonts.override { fonts = [ "FiraCode" diff --git a/system/shared/home-manager-packages.nix b/system/shared/home-manager-packages.nix index d658ab5..292a2ad 100644 --- a/system/shared/home-manager-packages.nix +++ b/system/shared/home-manager-packages.nix @@ -1,4 +1,7 @@ { inputs, pkgs, ... }: +let + pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}"; +in with pkgs; [ awscli2 bottom @@ -18,12 +21,12 @@ with pkgs; [ go htop inotify-tools - inputs.nixpkgs-unstable.legacyPackages."${system}".rustywind jq just lua mysql neofetch + pkgsUnstable.rustywind pv ripgrep terraform