Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
66c3eb44ae |
|||
|
d368f48fd5 |
3 changed files with 2 additions and 2 deletions
17
modules/fish.nix
Normal file
17
modules/fish.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
modules/flake/outputs.nix
Normal file
12
modules/flake/outputs.nix
Normal 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)";
|
||||
}
|
||||
19
modules/home/primaryUser/programs/starship.nix
Normal file
19
modules/home/primaryUser/programs/starship.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.starship;
|
||||
enableTransience = true;
|
||||
settings = {
|
||||
"$schema" = "https://starship.rs/config-schema.json";
|
||||
git_status = {
|
||||
ahead = ">";
|
||||
behind = "<";
|
||||
diverged = "<>";
|
||||
renamed = "r";
|
||||
deleted = "d";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue