Compare commits
No commits in common. "0eb7f633d4684680a8278e975cb10c738a798da0" and "367e3b583ccff4faf6835ce9c4206fb3694b4c63" have entirely different histories.
0eb7f633d4
...
367e3b583c
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@ -68,8 +67,6 @@ in
|
|||||||
# awscli2
|
# awscli2
|
||||||
# k9s
|
# k9s
|
||||||
# kubectl
|
# kubectl
|
||||||
# Terminal image viewer
|
|
||||||
viu
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
@ -119,131 +116,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.htop = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.jq = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.k9s = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
k9s = {
|
|
||||||
refreshRate = 2;
|
|
||||||
ui = {
|
|
||||||
logoless = true;
|
|
||||||
headless = true;
|
|
||||||
};
|
|
||||||
logger = {
|
|
||||||
tail = 1000;
|
|
||||||
sinceSeconds = 60 * 30;
|
|
||||||
fullScreen = true;
|
|
||||||
showtime = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.lsd = {
|
|
||||||
enable = true;
|
|
||||||
enableAliases = true;
|
|
||||||
settings = {
|
|
||||||
blocks = [
|
|
||||||
"permission"
|
|
||||||
"user"
|
|
||||||
"group"
|
|
||||||
"size"
|
|
||||||
"date"
|
|
||||||
"git"
|
|
||||||
"name"
|
|
||||||
];
|
|
||||||
sorting = {
|
|
||||||
dir-grouping = "first";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.mcfly = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
keyScheme = "vim";
|
|
||||||
# TODO: Test
|
|
||||||
fuzzySearchFactor = 2;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
colors = {
|
|
||||||
menubar = {
|
|
||||||
bg = "black";
|
|
||||||
fg = "red";
|
|
||||||
};
|
|
||||||
darkmode = {
|
|
||||||
prompt = "cyan";
|
|
||||||
timing = "yellow";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.pay-respects = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# programs.spotify-player = {
|
|
||||||
# enable = true;
|
|
||||||
# package = config.lib.nixGL.wrap pkgs.spotify-player;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# TODO: Configure
|
|
||||||
# programs.ssh = {
|
|
||||||
# enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
right_format = lib.concatStrings [
|
|
||||||
"$git_branch"
|
|
||||||
"$git_commit"
|
|
||||||
"$git_state"
|
|
||||||
"$git_metrics"
|
|
||||||
"$git_status"
|
|
||||||
"($cmd_duration)"
|
|
||||||
];
|
|
||||||
scan_timeout = 25;
|
|
||||||
add_newline = false;
|
|
||||||
continuation_prompt = "[▸▹ ](dimmed white)";
|
|
||||||
follow_symlinks = false;
|
|
||||||
directory = {
|
|
||||||
truncate_to_repo = false;
|
|
||||||
truncation_length = 20;
|
|
||||||
truncation_symbol = "…/";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmd_duration = {
|
|
||||||
min_time = 100;
|
|
||||||
show_milliseconds = true;
|
|
||||||
format = "took [$duration]($style) ";
|
|
||||||
style = "bold yellow";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
success_symbol = "✓";
|
|
||||||
error_symbol = "⚠";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -294,32 +166,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.keepass-sync = {
|
|
||||||
Unit.Description = "Sync KeePass database";
|
|
||||||
|
|
||||||
Service = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = toString (
|
|
||||||
pkgs.writeShellScript "keepass-sync" ''
|
|
||||||
${pkgs.coreutils}/bin/cp "/mnt/storage/.circuitry/.secret/default.kdbx" "/mnt/storage/.macshare/.secret/arnie.kdbx"
|
|
||||||
''
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
Install.WantedBy = [ "default.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.timers.keepass-sync = {
|
|
||||||
Unit.Description = "Timer for KeePass sync";
|
|
||||||
|
|
||||||
Timer = {
|
|
||||||
OnBootSec = "1m";
|
|
||||||
OnUnitActiveSec = "10m";
|
|
||||||
};
|
|
||||||
|
|
||||||
Install.WantedBy = [ "timers.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "vim";
|
EDITOR = "vim";
|
||||||
GO111MODULE = "on";
|
GO111MODULE = "on";
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
@ -66,120 +65,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.htop = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.jq = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.k9s = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
k9s = {
|
|
||||||
refreshRate = 2;
|
|
||||||
ui = {
|
|
||||||
logoless = true;
|
|
||||||
headless = true;
|
|
||||||
};
|
|
||||||
logger = {
|
|
||||||
tail = 1000;
|
|
||||||
sinceSeconds = 60 * 30;
|
|
||||||
fullScreen = true;
|
|
||||||
showtime = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.lsd = {
|
|
||||||
enable = true;
|
|
||||||
enableAliases = true;
|
|
||||||
settings = {
|
|
||||||
blocks = [
|
|
||||||
"permission"
|
|
||||||
"user"
|
|
||||||
"group"
|
|
||||||
"size"
|
|
||||||
"date"
|
|
||||||
"git"
|
|
||||||
"name"
|
|
||||||
];
|
|
||||||
sorting = {
|
|
||||||
dir-grouping = "first";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.mcfly = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
keyScheme = "vim";
|
|
||||||
# TODO: Test
|
|
||||||
fuzzySearchFactor = 2;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
colors = {
|
|
||||||
menubar = {
|
|
||||||
bg = "black";
|
|
||||||
fg = "red";
|
|
||||||
};
|
|
||||||
darkmode = {
|
|
||||||
prompt = "cyan";
|
|
||||||
timing = "yellow";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.pay-respects = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
format = lib.concatStrings [
|
|
||||||
"$username"
|
|
||||||
"$hostname"
|
|
||||||
"$directory"
|
|
||||||
"$character"
|
|
||||||
];
|
|
||||||
right_format = lib.concatStrings [
|
|
||||||
"$git_branch"
|
|
||||||
"$git_commit"
|
|
||||||
"$git_state"
|
|
||||||
"$git_metrics"
|
|
||||||
"$git_status"
|
|
||||||
"($cmd_duration)"
|
|
||||||
];
|
|
||||||
scan_timeout = 25;
|
|
||||||
add_newline = false;
|
|
||||||
continuation_prompt = "[▸▹ ](dimmed white)";
|
|
||||||
follow_symlinks = false;
|
|
||||||
directory = {
|
|
||||||
truncate_to_repo = false;
|
|
||||||
truncation_length = 20;
|
|
||||||
truncation_symbol = "…/";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmd_duration = {
|
|
||||||
min_time = 100;
|
|
||||||
show_milliseconds = true;
|
|
||||||
format = "took [$duration]($style) ";
|
|
||||||
style = "bold yellow";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
success_symbol = "✓";
|
|
||||||
error_symbol = "⚠";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -209,18 +94,58 @@ in
|
|||||||
GO111MODULE = "on";
|
GO111MODULE = "on";
|
||||||
TERMINAL = "ghostty";
|
TERMINAL = "ghostty";
|
||||||
};
|
};
|
||||||
|
|
||||||
launchd.agents.keepass-sync = {
|
|
||||||
enable = true;
|
|
||||||
config = {
|
|
||||||
Program = /bin/cp;
|
|
||||||
ProgramArguments = [
|
|
||||||
"${homedir}/storage/.macshare/.secret/arnie.kdbx"
|
|
||||||
"${homedir}/arnie.kdbx"
|
|
||||||
];
|
|
||||||
StartInterval = 60 * 10;
|
|
||||||
StandardErrorPath = "/var/log/keepass-sync.error.log";
|
|
||||||
StandardOutPath = "/var/log/keepass-sync.out.log";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: launchd timers
|
||||||
|
|
||||||
|
# <?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
# <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||||
|
|
||||||
|
# "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
|
||||||
|
# <plist version="1.0">
|
||||||
|
|
||||||
|
# <dict>
|
||||||
|
|
||||||
|
# <key>Label</key>
|
||||||
|
|
||||||
|
# <string>com.example.happybirthday</string>
|
||||||
|
|
||||||
|
# <key>ProgramArguments</key>
|
||||||
|
|
||||||
|
# <array>
|
||||||
|
|
||||||
|
# <string>happybirthday</string>
|
||||||
|
|
||||||
|
# </array>
|
||||||
|
|
||||||
|
# <key>StartCalendarInterval</key>
|
||||||
|
|
||||||
|
# <dict>
|
||||||
|
|
||||||
|
# <key>Day</key>
|
||||||
|
|
||||||
|
# <integer>11</integer>
|
||||||
|
|
||||||
|
# <key>Hour</key>
|
||||||
|
|
||||||
|
# <integer>0</integer>
|
||||||
|
|
||||||
|
# <key>Minute</key>
|
||||||
|
|
||||||
|
# <integer>0</integer>
|
||||||
|
|
||||||
|
# <key>Month</key>
|
||||||
|
|
||||||
|
# <integer>7</integer>
|
||||||
|
|
||||||
|
# <key>Weekday</key>
|
||||||
|
|
||||||
|
# <integer>0</integer>
|
||||||
|
|
||||||
|
# </dict>
|
||||||
|
|
||||||
|
# </dict>
|
||||||
|
|
||||||
|
# </plist>
|
||||||
|
|||||||
@ -61,4 +61,4 @@ function printAwsVault {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# PROMPT='${PR_BOLD_WHITE}%* $(printUser)$(printAwsVault)${PR_CYAN}%~%<< $(git_prompt_info)${PR_BOLD_WHITE}>%{${reset_color}%} '
|
PROMPT='${PR_BOLD_WHITE}%* $(printUser)$(printAwsVault)${PR_CYAN}%~%<< $(git_prompt_info)${PR_BOLD_WHITE}>%{${reset_color}%} '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user