Run nix fmt
parent
b412772223
commit
9c0f6183cd
111
flake.nix
111
flake.nix
|
@ -11,9 +11,8 @@
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = inputs @ {flake-parts, ...}:
|
||||||
inputs@{ flake-parts, ... }:
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
||||||
imports = [
|
imports = [
|
||||||
# To import a flake module
|
# To import a flake module
|
||||||
# 1. Add foo to inputs
|
# 1. Add foo to inputs
|
||||||
|
@ -35,65 +34,63 @@
|
||||||
# agnostic ones like nixosModule and system-enumerating ones, although
|
# agnostic ones like nixosModule and system-enumerating ones, although
|
||||||
# those are more easily expressed in perSystem.
|
# those are more easily expressed in perSystem.
|
||||||
};
|
};
|
||||||
perSystem =
|
perSystem = {
|
||||||
{
|
config,
|
||||||
config,
|
self',
|
||||||
self',
|
inputs',
|
||||||
inputs',
|
pkgs,
|
||||||
pkgs,
|
system,
|
||||||
system,
|
...
|
||||||
...
|
}: {
|
||||||
}:
|
# Per-system attributes can be defined here. The self' and inputs'
|
||||||
{
|
# module parameters provide easy access to attributes of the same
|
||||||
# Per-system attributes can be defined here. The self' and inputs'
|
# system.
|
||||||
# module parameters provide easy access to attributes of the same
|
|
||||||
# system.
|
|
||||||
|
|
||||||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||||
# packages.default = pkgs.hello;
|
# packages.default = pkgs.hello;
|
||||||
packages.default = self'.packages.osds-site;
|
packages.default = self'.packages.osds-site;
|
||||||
apps.default = self'.apps.osds-site;
|
apps.default = self'.apps.osds-site;
|
||||||
|
|
||||||
devshells.default = {
|
devshells.default = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cowsay
|
cowsay
|
||||||
|
|
||||||
alejandra
|
alejandra
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
emanote.sites = {
|
||||||
|
osds-site = {
|
||||||
|
layers = [
|
||||||
|
{
|
||||||
|
path = ./osds-src;
|
||||||
|
pathString = "osds-src";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
baseUrl = "localhost";
|
||||||
|
port = 12513;
|
||||||
emanote.sites = {
|
|
||||||
osds-site = {
|
|
||||||
layers = [
|
|
||||||
{
|
|
||||||
path = ./osds-src;
|
|
||||||
pathString = "osds-src";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
baseUrl = "localhost";
|
|
||||||
port = 12513;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pre-commit = {
|
|
||||||
settings.hooks = {
|
|
||||||
alejandra.enable = true;
|
|
||||||
mdformat.enable = true;
|
|
||||||
prettier.enable = true;
|
|
||||||
prettier.excludes = [ ".*\.md" "flake.lock" ];
|
|
||||||
stylish-haskell.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
treefmt = {
|
|
||||||
programs = {
|
|
||||||
alejandra.enable = true;
|
|
||||||
mdformat.enable = true;
|
|
||||||
prettier.enable = true;
|
|
||||||
prettier.excludes = [ "*.md" ];
|
|
||||||
stylish-haskell.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pre-commit = {
|
||||||
|
settings.hooks = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
mdformat.enable = true;
|
||||||
|
prettier.enable = true;
|
||||||
|
prettier.excludes = [".*\.md" "flake.lock"];
|
||||||
|
stylish-haskell.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
treefmt = {
|
||||||
|
programs = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
mdformat.enable = true;
|
||||||
|
prettier.enable = true;
|
||||||
|
prettier.excludes = ["*.md"];
|
||||||
|
stylish-haskell.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue