init: macmini nixos configuration.
This commit is contained in:
57
modules/programs/bash/amro.omp.json
Normal file
57
modules/programs/bash/amro.omp.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#45F1C2",
|
||||
"style": "plain",
|
||||
"template": "\uf313 {{ .UserName }} on",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#0CA0D8",
|
||||
"properties": {
|
||||
"folder_separator_icon": "/",
|
||||
"style": "full"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": " \uf07b {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#14A5AE",
|
||||
"powerline_symbol": "\ue0b0",
|
||||
"properties": {
|
||||
"fetch_upstream_icon": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||||
"type": "git"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#cd5e42",
|
||||
"style": "plain",
|
||||
"template": "\ue3bf ",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#CD4277",
|
||||
"style": "plain",
|
||||
"template": "# ",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"version": 3
|
||||
}
|
||||
24
modules/programs/bash/default.nix
Normal file
24
modules/programs/bash/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
direnv
|
||||
fzf
|
||||
];
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellInit =
|
||||
let
|
||||
theme = ./amro.omp.json;
|
||||
in
|
||||
''
|
||||
eval "$(${pkgs.oh-my-posh}/bin/oh-my-posh init bash --config ${theme})"
|
||||
eval "$(${pkgs.direnv}/bin/direnv hook bash)"
|
||||
eval "$(${pkgs.fzf}/bin/fzf --bash)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
11
modules/programs/tools.nix
Normal file
11
modules/programs/tools.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
nil
|
||||
neovim
|
||||
wget
|
||||
git
|
||||
fastfetch
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user