diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:25:10 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-17 21:25:10 +0100 |
| commit | 68617c981feb7ef66bd638b592327aace19e1807 (patch) | |
| tree | 9e4c3074ed64ea501771fb2192b3c781f5c8a3b3 /flake.nix | |
| parent | d1f092b2eca80786d5a686736bed510d2f3180b3 (diff) | |
format flake
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -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 ]; - }; - }; } |
