alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
init treefmt
author
lassulus
date
2 years ago
(Sep 27, 2024, 12:32 PM CEST)
commit
84a8abb9
84a8abb9aa319fb62a45f9dee18c2593cd2a740c
parent
6fa9108c
6fa9108cee91327030da73fae080478477611d2f
+51
2 changed files
Expand all
Collapse all
Unified
Split
flake.nix
formatter.nix
+4
flake.nix
View file
Reviewed
···
47
47
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
48
48
49
49
nixos-facter.url = "github:numtide/nixos-facter-modules";
50
50
+
51
51
+
treefmt-nix.url = "github:numtide/treefmt-nix";
52
52
+
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
50
53
};
51
54
52
55
outputs = inputs@{ self, flake-parts, nixpkgs, clan-core, ... }:
···
83
86
./tools/astronvim/flake-module.nix
84
87
./tools/zsh.nix
85
88
./tools/get-spora-hosts.nix
89
89
+
./formatter.nix
86
90
];
87
91
flake.nixosConfigurations = clan.nixosConfigurations;
88
92
flake.clanInternals = clan.clanInternals;
+47
formatter.nix
View file
Reviewed
···
1
1
+
{ inputs, ... }:
2
2
+
{
3
3
+
imports = [ inputs.treefmt-nix.flakeModule ];
4
4
+
perSystem =
5
5
+
{ pkgs, ... }:
6
6
+
{
7
7
+
treefmt.projectRootFile = ".git/config";
8
8
+
treefmt.programs.shellcheck.enable = true;
9
9
+
10
10
+
treefmt.programs.nixfmt.enable = true;
11
11
+
treefmt.programs.nixfmt.package = pkgs.nixfmt-rfc-style;
12
12
+
treefmt.programs.deadnix.enable = true;
13
13
+
treefmt.settings.global.excludes = [
14
14
+
"*.png"
15
15
+
"*.jpeg"
16
16
+
"*.gitignore"
17
17
+
".vscode/*"
18
18
+
"*.toml"
19
19
+
"*.clan-flake"
20
20
+
"*.code-workspace"
21
21
+
"*.pub"
22
22
+
"*.typed"
23
23
+
"*.age"
24
24
+
"*.list"
25
25
+
"*.desktop"
26
26
+
];
27
27
+
treefmt.programs.prettier = {
28
28
+
enable = true;
29
29
+
includes = [
30
30
+
"*.cjs"
31
31
+
"*.css"
32
32
+
"*.html"
33
33
+
"*.js"
34
34
+
"*.json5"
35
35
+
"*.jsx"
36
36
+
"*.mdx"
37
37
+
"*.mjs"
38
38
+
"*.scss"
39
39
+
"*.ts"
40
40
+
"*.tsx"
41
41
+
"*.vue"
42
42
+
"*.yaml"
43
43
+
"*.yml"
44
44
+
];
45
45
+
};
46
46
+
};
47
47
+
}