Skip to content

Commit

Permalink
feat: switch to devenv; more linters/checks; node tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed May 26, 2024
1 parent 38c18a7 commit 07555e6
Show file tree
Hide file tree
Showing 20 changed files with 583 additions and 273 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
watch_file flake.lock

# "nix develop"
use flake
use flake . --impure
export DIRENV_WARN_TIMEOUT=5m
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.iso
.devenv
.direnv
.pre-commit-config.yaml
devenv.local.nix
result
result/
13 changes: 13 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[default]
extend-ignore-identifiers-re = [
"crypted",
"immortalis",
"odf"
]

[files]
extend-exclude = [
"CHANGELOG.md",
"global.yaml",
"*.css"
]
14 changes: 14 additions & 0 deletions devenv/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{pkgs, ...}: {
packages = with pkgs; [
age
commitizen
gnupg
manix
mdbook
nix-melt
nixos-anywhere
nixos-install-tools
rsync
sops
];
}
25 changes: 25 additions & 0 deletions devenv/pre-commit.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{pkgs, ...}: {
pre-commit.hooks = {
actionlint.enable = true;
alejandra-quiet = {
description = "Run Alejandra in quiet mode";
enable = true;
entry = ''
${pkgs.alejandra}/bin/alejandra --quiet
'';
files = "\\.nix$";
name = "alejandra";
};
commitizen.enable = true;
deadnix.enable = true;
detect-private-keys.enable = true;
# editorconfig-checker.enable = true;
flake-checker.enable = true;
markdownlint.enable = true;
nil.enable = true;
prettier.enable = true;
statix.enable = true;
typos.enable = true;
yamllint.enable = true;
};
}
2 changes: 1 addition & 1 deletion docs/src/installer/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a small script which is serving as installer for this project. It basica

- Sets up an environment to install the system from
- Asks for basic information such as the disk to be used or the username
- Sets up the partition layout via [disko](https://github.com/nix-community/disko) and mounting the partitons to `/mnt`
- Sets up the partition layout via [disko](https://github.com/nix-community/disko) and mounting the partitions to `/mnt`
- Provides a basic, quite generic dr460nixed template and customizes it based on previous choices
- Executes the installation

Expand Down
Loading

0 comments on commit 07555e6

Please sign in to comment.