From e4fb9d62a62150212f40e9e75a71c13709e68369 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 1 Apr 2024 04:25:10 -0400 Subject: [PATCH] meta(nix): Automatically import all packages This is now possible with the dynamic flake.nix outputs. --- flake.nix | 8 ++++++++ packages/default.nix | 17 ----------------- 2 files changed, 8 insertions(+), 17 deletions(-) delete mode 100644 packages/default.nix diff --git a/flake.nix b/flake.nix index 205c1e19..22f164d6 100644 --- a/flake.nix +++ b/flake.nix @@ -29,9 +29,17 @@ modules = [ ./. { + environment.pathsToLink = [ + "/share/backgrounds" + "/share/eww" + "/share/thumbnailers" + "/share/fonts" + ]; + nixpkgs.overlays = builtins.attrValues self.overlays; imports = builtins.attrValues self.nixosModules; home-manager.sharedModules = builtins.attrValues self.homeManagerModules; + environment.systemPackages = builtins.attrValues self.packages.x86_64-linux; } ]; }; diff --git a/packages/default.nix b/packages/default.nix deleted file mode 100644 index a6c46466..00000000 --- a/packages/default.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ pkgs, ... }: - -{ - environment.pathsToLink = [ - "/share/backgrounds" - "/share/eww" - "/share/thumbnailers" - "/share/fonts" - ]; - - environment.systemPackages = with pkgs; [ - (callPackage ./aleo-fonts.nix { }) - (callPackage ./fluent-icons.nix { }) - (callPackage ./osu-backgrounds.nix { }) - (callPackage ./webp-thumbnailer.nix { }) - ]; -}