Initial commit

This commit is contained in:
Thomas Preisner 2024-11-04 15:20:45 -06:00
commit 77e4cac42d
4 changed files with 178 additions and 0 deletions

49
flake.nix Normal file
View file

@ -0,0 +1,49 @@
{
description = "An opinionated Nixos Mailsystem";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
pre-commit-hooks-nix.url = "github:cachix/git-hooks.nix";
pre-commit-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
flake-parts,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
"aarch64-linux"
];
imports = [
inputs.pre-commit-hooks-nix.flakeModule
];
perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
alejandra
];
shellHook = ''
${config.pre-commit.installationScript}
'';
};
pre-commit.settings.hooks = {
alejandra.enable = true;
};
};
};
}