dotfiles/flake.nix

47 lines
1.1 KiB
Nix

{
description = "My Nix Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs: let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
};
in
lib.mkFlake {
overlay-package-namespace = "aa";
channels-config.allowUnfree = true;
systems.modules = with inputs; [
home-manager.nixosModules.home-manager
];
outputs-builder = channels: {
devShells = {
default = channels.nixpkgs.mkShell {
name = "DevShell";
buildInputs = with channels.nixpkgs; [
alejandra
direnv
git
pre-commit
];
};
};
};
};
}