2023-01-15 23:30:25 +00:00
|
|
|
{
|
|
|
|
description = "maralorns configuration";
|
2023-01-19 03:13:41 +00:00
|
|
|
nixConfig = {
|
|
|
|
allow-import-from-derivation = true;
|
|
|
|
};
|
2023-01-15 23:30:25 +00:00
|
|
|
|
|
|
|
inputs = {
|
2023-02-02 04:55:06 +00:00
|
|
|
secrets = {
|
|
|
|
url = "git+ssh://git@hera.m-0.eu/config-secrets";
|
2023-02-11 15:45:58 +00:00
|
|
|
inputs.nixpkgs.follows = "";
|
2023-01-31 21:37:18 +00:00
|
|
|
};
|
2023-02-04 00:43:09 +00:00
|
|
|
emanote = {
|
|
|
|
url = "github:srid/emanote";
|
|
|
|
inputs = {
|
|
|
|
flake-parts.follows = "flake-parts";
|
2023-02-11 15:45:58 +00:00
|
|
|
nixpkgs.follows = "";
|
2023-02-04 00:43:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
nix-output-monitor = {
|
|
|
|
inputs = {
|
|
|
|
flake-utils.follows = "pre-commit-hooks/flake-utils";
|
|
|
|
nixpkgs.follows = "nixos-unstable";
|
2023-02-11 15:45:58 +00:00
|
|
|
pre-commit-hooks.follows = "";
|
2023-02-04 00:43:09 +00:00
|
|
|
};
|
|
|
|
url = "git+ssh://git@hera.m-0.eu/nix-output-monitor?ref=main";
|
|
|
|
};
|
2023-02-03 05:37:18 +00:00
|
|
|
nixos-unstable.url = "nixpkgs/nixos-unstable";
|
2023-02-04 00:43:09 +00:00
|
|
|
nixos-mailserver = {
|
|
|
|
inputs = {
|
2023-02-11 15:45:58 +00:00
|
|
|
flake-compat.follows = "";
|
|
|
|
utils.follows = "";
|
|
|
|
nixpkgs.follows = "";
|
|
|
|
nixpkgs-22_11.follows = "";
|
|
|
|
blobs.follows = "";
|
2023-02-04 00:43:09 +00:00
|
|
|
};
|
|
|
|
url = "git+https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git";
|
|
|
|
};
|
2023-02-03 05:37:18 +00:00
|
|
|
nixos-stable.url = "nixpkgs/nixos-22.11";
|
2023-02-02 03:58:37 +00:00
|
|
|
flake-parts.inputs.nixpkgs-lib.follows = "nixos-unstable";
|
2023-02-03 05:37:18 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "home-manager/release-22.11";
|
|
|
|
inputs = {
|
2023-02-04 00:43:09 +00:00
|
|
|
utils.follows = "pre-commit-hooks/flake-utils";
|
2023-02-11 15:45:58 +00:00
|
|
|
nixpkgs.follows = "";
|
2023-02-03 05:37:18 +00:00
|
|
|
};
|
|
|
|
};
|
2023-02-02 04:55:06 +00:00
|
|
|
hexa-nur-packages = {
|
|
|
|
url = "github:mweinelt/nur-packages";
|
|
|
|
inputs.nixpkgs.follows = "nixos-unstable";
|
|
|
|
};
|
2023-02-04 00:43:09 +00:00
|
|
|
pre-commit-hooks = {
|
2023-01-15 23:30:25 +00:00
|
|
|
url = "github:cachix/pre-commit-hooks.nix";
|
2023-02-01 02:10:48 +00:00
|
|
|
inputs = {
|
2023-02-11 15:45:58 +00:00
|
|
|
flake-compat.follows = "";
|
|
|
|
gitignore.follows = "";
|
|
|
|
nixpkgs-stable.follows = "";
|
|
|
|
nixpkgs.follows = "";
|
2023-02-01 02:10:48 +00:00
|
|
|
};
|
2023-01-15 23:30:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-02-11 14:14:51 +00:00
|
|
|
outputs = inputs @ {
|
|
|
|
nixos-hardware,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}:
|
2023-02-02 03:58:37 +00:00
|
|
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
2023-01-15 23:30:25 +00:00
|
|
|
imports = [
|
2023-02-04 00:43:09 +00:00
|
|
|
inputs.pre-commit-hooks.flakeModule
|
2023-02-07 12:03:18 +00:00
|
|
|
./nixos/flake-parts.nix
|
|
|
|
./home-manager/flake-parts.nix
|
|
|
|
./packages/flake-parts.nix
|
2023-02-11 14:14:51 +00:00
|
|
|
./overlays/flake-parts.nix
|
2023-01-15 23:30:25 +00:00
|
|
|
];
|
|
|
|
systems = ["x86_64-linux"];
|
|
|
|
perSystem = {
|
|
|
|
self',
|
2023-01-31 21:37:18 +00:00
|
|
|
inputs',
|
2023-01-15 23:30:25 +00:00
|
|
|
config,
|
2023-01-19 03:13:41 +00:00
|
|
|
lib,
|
2023-02-11 14:14:51 +00:00
|
|
|
pkgs,
|
2023-01-15 23:30:25 +00:00
|
|
|
...
|
2023-02-03 05:37:18 +00:00
|
|
|
}: {
|
2023-02-02 04:55:06 +00:00
|
|
|
devShells = {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
shellHook = config.pre-commit.installationScript;
|
|
|
|
};
|
2023-01-15 23:30:25 +00:00
|
|
|
};
|
2023-02-02 03:58:37 +00:00
|
|
|
checks = {
|
2023-02-11 14:14:51 +00:00
|
|
|
system-checks = pkgs.recursiveLinkFarm "all-configs" {
|
|
|
|
nixos-configurations = lib.mapAttrs (_: config: config.config.system.build.toplevel) self.nixosConfigurations;
|
|
|
|
home-manager-configurations = self.homeModes;
|
|
|
|
};
|
2023-02-02 03:58:37 +00:00
|
|
|
};
|
2023-01-19 03:13:41 +00:00
|
|
|
|
2023-01-15 23:30:25 +00:00
|
|
|
pre-commit = {
|
2023-02-11 14:14:51 +00:00
|
|
|
pkgs = inputs'.nixos-unstable.legacyPackages;
|
2023-01-15 23:30:25 +00:00
|
|
|
check.enable = true;
|
2023-01-16 02:57:11 +00:00
|
|
|
settings = {
|
|
|
|
settings.ormolu.defaultExtensions = [
|
|
|
|
"TypeApplications"
|
|
|
|
"BangPatterns"
|
|
|
|
"ImportQualifiedPost"
|
|
|
|
"BlockArguments"
|
|
|
|
];
|
|
|
|
hooks = {
|
|
|
|
hlint.enable = true;
|
|
|
|
alejandra.enable = true;
|
|
|
|
nix-linter.enable = false; # Too many false positives for now
|
|
|
|
statix.enable = true;
|
|
|
|
fourmolu.enable = true;
|
|
|
|
shellcheck.enable = true;
|
2023-01-16 03:26:37 +00:00
|
|
|
cabal-fmt.enable = true;
|
|
|
|
dhall-format.enable = true;
|
2023-01-16 02:57:11 +00:00
|
|
|
};
|
2023-01-15 23:30:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|