diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 18:12:03 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-15 21:55:27 +0100 |
| commit | 0afbdaa261653e73a4f2f39d7529114989474a64 (patch) | |
| tree | 08df68b6c1a92708566e0e716d11d619e37d1621 /flake.nix | |
| parent | 7714f2c6a4c77e616fd3c64868c10337b9ca3a1e (diff) | |
factor out common configuration options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,11 +1,20 @@ { inputs = { - my-nixpkgs = "git+file:///home/qaristote/code/nix/my-nixpkgs"; + my-nixpkgs.url = "git+file:///home/qaristote/code/nix/my-nixpkgs"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + home-manager.url = "github:nix-community/home-manager"; }; - outputs = { self, nixpkgs }: { + + outputs = { self, nixpkgs, my-nixpkgs, nixos-hardware, home-manager }: + let system = "x86_64-linux"; in { nixosConfigurations.latitude-7490 = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ ./nixos/configuration.nix ]; + inherit system; + specialArgs = { inherit nixos-hardware home-manager; home.qaristote = import ./home; }; + modules = [ my-nixpkgs.nixosModules.personal ./nixos ]; + }; + homeConfigurations.qaristote = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages."${system}"; + modules = [ ./home ]; }; }; } |
