From 68617c981feb7ef66bd638b592327aace19e1807 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 17 Feb 2023 21:25:10 +0100 Subject: format flake --- flake.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'flake.nix') 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 ]; - }; - }; } -- cgit v1.2.3