dotfiles/flake.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-18 19:42:30 +00:00
{
description = "My Nix Configuration";
inputs = {
2022-09-25 18:01:06 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-03-12 03:59:11 +00:00
home-manager.url = "github:nix-community/home-manager/master";
2022-09-18 19:42:30 +00:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-03-12 03:59:11 +00:00
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
2023-03-12 03:59:11 +00:00
snowfall-lib.url = "github:snowfallorg/lib";
snowfall-lib.inputs.nixpkgs.follows = "nixpkgs";
};
2022-09-18 19:42:30 +00:00
2023-03-12 03:59:11 +00:00
outputs = inputs: let
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
2022-09-18 19:42:30 +00:00
};
2023-03-12 03:59:11 +00:00
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
2023-04-02 23:40:36 +00:00
direnv
git
pre-commit
2023-03-12 03:59:11 +00:00
];
};
};
2022-09-18 19:42:30 +00:00
};
};
}