Compare commits
No commits in common. "43eab988cff0068fb87232c899ff5f3e5da4c4a2" and "77f0e138a92849af6c5d63afa8e3d01a10fbf8bc" have entirely different histories.
43eab988cf
...
77f0e138a9
6 changed files with 3 additions and 32 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
.direnv
|
.direnv
|
||||||
.helix
|
.helix
|
||||||
.vale/styles/config/vocabularies/General
|
.vale/styles/config/vocabularies/General
|
||||||
.pre-commit-config.yaml
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Laptop configuration
|
# Laptop configuration
|
||||||
|
|
||||||
This repository has the Nix home-manager configuration for my laptop, allowing me to manage a user configuration with reproducibility on other machines. It currently operates on a foreign Linux distribution (Fedora Asahi Remix) with plans to switch to NixOS when time allows and to make it reusable for other systems. `direnv` automatically loads the environment for running commands for this Flake.
|
This repository has the Nix home-manager configuration for my laptop, allowing me to manage a user configuration with reproducibility on other machines. It currently operates on a foreign Linux distribution (Fedora Asahi Remix) with plans to switch to NixOS when time allows and to make it reusable for other systems. It uses `direnv` to automatically load the environment for running commands for this Flake.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
15
flake.nix
15
flake.nix
|
@ -170,25 +170,12 @@
|
||||||
${pkgs.uutils-coreutils-noprefix}/bin/ln -fs ${helixLanguagesFile} ./.helix/languages.toml
|
${pkgs.uutils-coreutils-noprefix}/bin/ln -fs ${helixLanguagesFile} ./.helix/languages.toml
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
pre_commit = {
|
|
||||||
text = ''
|
|
||||||
${config.pre-commit.installationScript}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# https://flake.parts/options/git-hooks-nix.html
|
# https://flake.parts/options/git-hooks-nix.html
|
||||||
pre-commit.settings = {
|
pre-commit.settings = {
|
||||||
hooks = preCommitHooks // {
|
hooks = preCommitHooks;
|
||||||
treefmt = {
|
|
||||||
enable = true;
|
|
||||||
package = treefmt;
|
|
||||||
};
|
|
||||||
check-merge-conflicts.enable = true;
|
|
||||||
check-symlinks.enable = true;
|
|
||||||
flake-checker.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# https://flake.parts/options/treefmt-nix.html
|
# https://flake.parts/options/treefmt-nix.html
|
||||||
treefmt = {
|
treefmt = {
|
||||||
|
|
|
@ -35,20 +35,10 @@ in
|
||||||
# https://writewithharper.com/docs/integrations/language-server#Supported-Languages
|
# https://writewithharper.com/docs/integrations/language-server#Supported-Languages
|
||||||
harper-ls.command = "${pkgs.harper}/bin/harper-ls";
|
harper-ls.command = "${pkgs.harper}/bin/harper-ls";
|
||||||
};
|
};
|
||||||
pre-commit = {
|
|
||||||
typos = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
configPath = typosConfigFile.outPath;
|
|
||||||
locale = "en-us";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
vale.enable = true;
|
|
||||||
};
|
|
||||||
treefmt.programs.typos = {
|
treefmt.programs.typos = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = typosConfigFile.outPath;
|
|
||||||
locale = "en-us";
|
locale = "en-us";
|
||||||
|
configFile = typosConfigFile.outPath;
|
||||||
};
|
};
|
||||||
devshell = {
|
devshell = {
|
||||||
commands = [
|
commands = [
|
||||||
|
|
|
@ -20,5 +20,4 @@
|
||||||
language-server.taplo.command = "${pkgs.taplo}/bin/taplo";
|
language-server.taplo.command = "${pkgs.taplo}/bin/taplo";
|
||||||
};
|
};
|
||||||
treefmt.programs.taplo.enable = true;
|
treefmt.programs.taplo.enable = true;
|
||||||
pre-commit.check-toml.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,4 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.plugins = [ "g-plane-pretty_yaml" ];
|
settings.plugins = [ "g-plane-pretty_yaml" ];
|
||||||
};
|
};
|
||||||
pre-commit = {
|
|
||||||
check-yaml.enable = true;
|
|
||||||
sort-simple-yaml.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue