Compare commits

..

2 Commits

5 changed files with 30 additions and 11 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

6
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/nixos/nixfmt
rev: v1.2.0
hooks:
- id: nixfmt-nix
args: [--, --check]

View File

@@ -94,11 +94,22 @@
lib = nixpkgs.lib; lib = nixpkgs.lib;
} { }; } { };
} }
// flake-utils.lib.eachDefaultSystem (system: { // flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = import ./packages { packages = import ./packages {
inherit my-lib; inherit my-lib;
lib = nixpkgs.lib; lib = nixpkgs.lib;
} (inputs // { inherit system; }); } (inputs // { inherit system; });
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
}); formatter = pkgs.nixfmt-tree;
devShells.default = pkgs.mkShell {
packages = [ pkgs.pre-commit ];
};
}
);
} }

View File

@@ -1,4 +0,0 @@
[formatter.nix]
command = "nix"
options = ["fmt"]
includes = [ "*.nix" ]

View File

@@ -57,6 +57,11 @@ in
home.file.".assets".source = "${inputs.self}/assets"; home.file.".assets".source = "${inputs.self}/assets";
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
stylix.targets.neovim.enable = false; stylix.targets.neovim.enable = false;
programs.neovim = { programs.neovim = {
enable = true; enable = true;