-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .envrc and update .gitignore and configs
- Loading branch information
Showing
9 changed files
with
174 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source $(fetchurl https://raw.githubusercontent.com/paisano-nix/direnv/main/lib sha256-IgQhKK7UHL1AfCUntJO2KCaIDJQotRnK2qC4Daxk+wI=) | ||
|
||
use envreload //common/devshells/default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
inputs, | ||
cell, | ||
}: let | ||
inherit (inputs) std nixpkgs; | ||
in { | ||
treefmt = std.lib.dev.mkNixago std.lib.cfg.treefmt { | ||
data = { | ||
global.excludes = [ | ||
"nvfetcher/generated.*" | ||
]; | ||
formatter = { | ||
nix = { | ||
command = "alejandra"; | ||
includes = ["*.nix"]; | ||
}; | ||
prettier = { | ||
command = "prettier"; | ||
includes = [ | ||
"*.json" | ||
"*.md" | ||
"*.yaml" | ||
]; | ||
}; | ||
}; | ||
}; | ||
packages = [ | ||
inputs.nixpkgs.alejandra | ||
inputs.nixpkgs.nodePackages.prettier | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# project. It solves the vital problem of, "works on my machine." | ||
{ | ||
inputs, | ||
cell, | ||
}: { | ||
default = inputs.std.lib.dev.mkShell { | ||
name = "nichijou"; | ||
|
||
imports = [ | ||
inputs.std.std.devshellProfiles.default | ||
]; | ||
|
||
packages = [ | ||
(inputs.nixpkgs.extend inputs.nvfetcher.overlays.default).nvfetcher | ||
]; | ||
|
||
nixago = [ | ||
cell.configs.treefmt | ||
]; | ||
|
||
commands = [ | ||
{ | ||
name = "fetch"; | ||
help = "Fetch latest sources with nvfetcher"; | ||
command = "nvfetcher -o nvfetcher"; | ||
} | ||
{ | ||
name = "fmt"; | ||
help = "Format code with treefmt"; | ||
command = "treefmt"; | ||
} | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ in { | |
alejandra | ||
cachix | ||
curl | ||
direnv | ||
du-dust | ||
duf | ||
eza | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,7 @@ | |
}; | ||
overlays = [ | ||
inputs.fenix.overlays.default | ||
inputs.nvfetcher.overlays.default | ||
]; | ||
}; | ||
}; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters