init: macmini nixos configuration.

This commit is contained in:
Sky
2026-01-27 07:44:31 +00:00
commit a4b60e72a8
13 changed files with 352 additions and 0 deletions

View 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
}

View 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)"
'';
};
}

View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nil
neovim
wget
git
fastfetch
];
}