dotfiles/flake.nix

45 lines
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
nixpkgs-lint
];
};
};
2022-09-18 19:42:30 +00:00
};
};
}