Watch
1
0
Fork
You've already forked chitin
0

Compare commits

..
Author SHA1 Message Date
870061550d
implemented flake-file 2026-10-27 11:36:33 +07:00
57d75d1461
implemented shared system constants 2026-10-27 11:36:33 +07:00
3 changed files with 2 additions and 2 deletions

17
modules/shells/fish.nix Normal file
View file

@ -0,0 +1,17 @@
{
flake.modules.nixos.fish = {pkgs, ...}: {
users.defaultUserShell = pkgs.fish;
programs.fish = {
enable = true;
shellAbbrs = {
l = "eza --grid --all";
ll = "eza --long --all";
ls = "eza";
".." = "cd ..";
"..." = "cd ../..";
cat = "bat";
};
};
};
}

View file

@ -0,0 +1,19 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
programs.starship = {
enable = true;
package = pkgs.unstable.starship;
transientPrompt.enable = true;
settings = {
"$schema" = "https://starship.rs/config-schema.json";
git_status = {
ahead = ">";
behind = "<";
diverged = "<>";
renamed = "r";
deleted = "d";
};
};
};
};
}

12
modules/write-flake.nix Normal file
View file

@ -0,0 +1,12 @@
{inputs, ...}: {
imports = [
inputs.flake-file.flakeModules.default
];
flake-file.inputs = {
flake-file.url = "github:denful/flake-file";
import-tree.url = "github:vic/import-tree";
};
flake-file.outputs = "inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules)";
}