summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix28
1 files changed, 18 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix
index 07f44e4..118d32a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -6,15 +6,23 @@
};
outputs = { self, nixpkgs, my-nixpkgs, nixos-hardware, home-manager }:
- let system = "x86_64-linux"; in {
- nixosConfigurations.latitude-7490 = nixpkgs.lib.nixosSystem {
- inherit system;
- specialArgs = { inherit nixos-hardware home-manager; home.qaristote = import ./home; };
- modules = [ my-nixpkgs.nixosModules.personal ./nixos ];
+ let
+ system = "x86_64-linux";
+ overlays-module = { ... }: {
+ nixpkgs.overlays = [ my-nixpkgs.overlays.personal ];
+ };
+ in {
+ nixosConfigurations.latitude-7490 = nixpkgs.lib.nixosSystem {
+ inherit system;
+ specialArgs = {
+ inherit nixos-hardware home-manager;
+ home.qaristote = import ./home;
+ };
+ modules = [ overlays-module my-nixpkgs.nixosModules.personal ./nixos ];
+ };
+ homeConfigurations.qaristote = home-manager.lib.homeManagerConfiguration {
+ pkgs = nixpkgs.legacyPackages."${system}";
+ modules = [ overlays-module ./home ];
+ };
};
- homeConfigurations.qaristote = home-manager.lib.homeManagerConfiguration {
- pkgs = nixpkgs.legacyPackages."${system}";
- modules = [ ./home ];
- };
- };
}