summaryrefslogtreecommitdiff
path: root/home/nix/flake.nix
blob: 6738db4b5eec0b7aac51f30e1787d0bbe200cdc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  description = "Freya Nix Flake";

  inputs = {
    # nixpkgs
    nixpkgs.url = "github:nixos/nixpkgs/release-24.05";

    # home manager
    home-manager.url = "github:nix-community/home-manager/release-24.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = {
    self,
    nixpkgs,
    home-manager,
    ...
  } @ inputs: let
    inherit (self) outputs;
    system = "x86_64-linux";
    pkgs = nixpkgs.legacyPackages.${system};
  in {
    homeConfigurations."freya" =
      home-manager.lib.homeManagerConfiguration {
        inherit pkgs;
        extraSpecialArgs = {inherit inputs outputs;};
        modules = [./home.nix];
      };
  };
}