diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-02 19:56:49 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-05 22:47:43 +0100 |
| commit | f58a3f0482f19b6b18b17ab021bb1e3c9b911e3b (patch) | |
| tree | 215cc106d79708b8e97fb89d61ca645d34dd3f25 /flake.nix | |
| parent | lib: Merge with the `extraLib` (diff) | |
| download | nixos-config-f58a3f0482f19b6b18b17ab021bb1e3c9b911e3b.zip | |
flake.nix: Don't perform source mapping via sources and raw_sources
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -4,16 +4,13 @@ inputs = {}; outputs = {self, ...}: let - raw_sources = import ./unflake.nix; + sources = import ./unflake.nix; system = "x86_64-linux"; - # Filter out the nixpkgs's from the sources, so we always use the `packageSets`. - sources = builtins.removeAttrs raw_sources ["nixpkgs-stable" "nixpkgs-unstable" "library"]; - packageSets = rec { - stable = raw_sources.nixpkgs-stable.legacyPackages.${system}; - unstable = raw_sources.nixpkgs-unstable.legacyPackages.${system}; + stable = sources.nixpkgs-stable.legacyPackages.${system}; + unstable = sources.nixpkgs-unstable.legacyPackages.${system}; in_tree = import ./pkgs { unstable_pkgs = unstable; @@ -22,7 +19,7 @@ }; }; lib = packageSets.unstable.lib; - extra_lib = raw_sources.library.nixLib; + extra_lib = sources.library.extraLib {inherit lib;}; extra_modules = { nixos = { @@ -37,7 +34,8 @@ }; home = { nix-index-database = sources.nix-index-database.homeModules.nix-index; - nixvim = sources.nixvim.homeManagerModule; + nixvim = sources.nixvim.homeModules.nixvim; + turtle = sources.turtle.nixosModules.home-manager; }; }; module_args = { @@ -76,7 +74,7 @@ system ; inherit - (raw_sources) + (sources) nixpkgs-unstable nixpkgs-stable deploy-rs |
