refactor(flake): move pkgs

This commit is contained in:
Oliver Davies 2023-11-06 23:24:53 +00:00
parent 6c610fea29
commit 8f5a8dee66
3 changed files with 7 additions and 9 deletions

View file

@ -11,8 +11,10 @@
system = "x86_64-linux";
username = "opdavies";
nixos-system = import ./system/nixos { inherit inputs self system username; };
wsl-system = import ./system/wsl2 { inherit inputs self system username; };
pkgs = inputs.nixpkgs.legacyPackages.${system};
nixos-system = import ./system/nixos { inherit inputs pkgs self system username; };
wsl-system = import ./system/wsl2 { inherit inputs pkgs self system username; };
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];

View file

@ -1,10 +1,8 @@
{ inputs, self, system, username }:
{ inputs, pkgs, self, system, username }:
{ desktop }:
{ desktop ? false }:
let
pkgs = inputs.nixpkgs.legacyPackages."${system}";
configuration = import ./configuration.nix { inherit inputs pkgs system; };
hardware-configuration = import ./hardware-configuration.nix;
in

View file

@ -1,8 +1,6 @@
{ inputs, self, system, username }:
{ inputs, pkgs, self, system, username }:
let
pkgs = inputs.nixpkgs.legacyPackages."${system}";
shared-config = import ../shared/home-manager.nix { inherit inputs pkgs self username; };
shared-packages = import ../shared/home-manager-packages.nix { inherit inputs pkgs; };
in