diff options
Diffstat (limited to 'home/nix/flake.nix')
-rw-r--r-- | home/nix/flake.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/home/nix/flake.nix b/home/nix/flake.nix new file mode 100644 index 0000000..6738db4 --- /dev/null +++ b/home/nix/flake.nix @@ -0,0 +1,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]; + }; + }; +} |