From 96bf5aa00bbf2499c47c887b2217570657d0011d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 23 May 2024 18:24:03 +0200 Subject: refactor(nixpkgs): Configure nixpkgs via the module system --- flake.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 03da41a6..572b4e07 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "NixOS system config"; + description = "A NixOS System Configuration"; inputs = { # base @@ -265,17 +265,14 @@ yambar_cpu, ... }: let - sysLib = shell_library.lib.${system}; system = "x86_64-linux"; - pkgs = import nixpkgs (import ./sys/nixpkgs { - inherit (nixpkgs) lib; - inherit system sysLib; - # FIXME: Don't unconditionally use tiamat here <2024-02-24> - config = self.nixosConfigurations.tiamat.config.home-manager.users.soispha; - overlays = []; - }); + sysLib = shell_library.lib.${system}; + + pkgs = nixpkgs.legacyPackages.${system}; + myPkgs = import ./pkgs { + inherit sysLib pkgs; + }; - # FIXME: this `nixpkgs` misses the configs applied to the other one nixpkgs_as_input = nixpkgs; nixpkgs_open_prs = { inherit @@ -283,11 +280,13 @@ nixpkgs-onlykey ; }; + outputs = import ./flake { inherit # core self pkgs + myPkgs system sysLib nixpkgs_as_input -- cgit 1.4.1