summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 07f44e4142b6b4db249d03e8891ee86789eb663b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  inputs = {
    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, 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 ];
    };
    homeConfigurations.qaristote = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages."${system}";
      modules = [ ./home ];
    };
  };
}