summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 65941a9..bbac6ec 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,22 +11,27 @@
nur.url = "github:nix-community/NUR";
};
- outputs = { self, nixpkgs, home-manager, nur, ... }: with nixpkgs.lib; let
+ outputs = { self, nixpkgs, home-manager, nur, ... }: let
+ pkgs = import nixpkgs {
+ system = "x86_64-linux";
+ config = import ./nixpkgs.nix;
+ };
+ in with pkgs.lib; let
util = import ./util;
- inherit (util nixpkgs.lib) importAll;
+ inherit (util pkgs.lib) importAll;
pkgSet = pkgs: import ./pkgs {
inherit pkgs;
util = util pkgs.lib;
};
in {
- packages."x86_64-linux" = pkgSet nixpkgs.legacyPackages."x86_64-linux";
+ packages."x86_64-linux" = pkgSet pkgs;
overlay = self: super: {
local = pkgSet super;
};
- nixosConfigurations = with nixpkgs.lib; let
+ nixosConfigurations = with pkgs.lib; let
hostConfig = host: (makeOverridable nixosSystem) {
system = "x86_64-linux";
modules = [ (import ./sys self) host ];