dotfiles init
This commit is contained in:
commit
f0e8ef3e0c
5 changed files with 456 additions and 0 deletions
71
mbp/configuration.nix
Executable file
71
mbp/configuration.nix
Executable file
|
|
@ -0,0 +1,71 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
nix.enable = false;
|
||||
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
||||
onActivation.autoUpdate = true;
|
||||
onActivation.upgrade = true;
|
||||
#onActivation.cleanup = "zap";
|
||||
|
||||
casks = [
|
||||
"bettermouse"
|
||||
"telegram"
|
||||
"meta"
|
||||
"cryptomator"
|
||||
"citrix-workspace"
|
||||
"mullvad-vpn"
|
||||
"vscodium"
|
||||
"obs"
|
||||
"arc"
|
||||
"tailscale-app"
|
||||
"blender"
|
||||
"UTM"
|
||||
"Keka"
|
||||
"Secretive"
|
||||
"Obsidian"
|
||||
"Discord"
|
||||
"Element"
|
||||
"IINA"
|
||||
"ghostty"
|
||||
"orion"
|
||||
];
|
||||
|
||||
masApps = {
|
||||
"Bitwarden" = 1352778147;
|
||||
"DropOver" = 1355679052;
|
||||
"Yubico Authenticator" = 1497506650;
|
||||
};
|
||||
};
|
||||
|
||||
system.primaryUser = "duumxh";
|
||||
users.users.duumxh.home = "/Users/duumxh";
|
||||
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
system.stateVersion = 5;
|
||||
system.defaults = {
|
||||
screencapture.type = "png";
|
||||
dock = {
|
||||
autohide = true;
|
||||
autohide-delay = 0.0;
|
||||
mineffect = "scale";
|
||||
minimize-to-application = true;
|
||||
mru-spaces = false;
|
||||
show-recents = false;
|
||||
tilesize = 40;
|
||||
};
|
||||
|
||||
finder = {
|
||||
AppleShowAllFiles = true;
|
||||
AppleShowAllExtensions = true;
|
||||
ShowPathbar = true;
|
||||
ShowStatusBar = true;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
144
mbp/home.nix
Executable file
144
mbp/home.nix
Executable file
|
|
@ -0,0 +1,144 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
rclone
|
||||
talosctl
|
||||
bat
|
||||
teleport
|
||||
ansible
|
||||
kubectl
|
||||
opentofu
|
||||
nerd-fonts.jetbrains-mono
|
||||
age
|
||||
sops
|
||||
deploy-rs
|
||||
kubernetes-helm
|
||||
fzf-preview
|
||||
zsh-fzf-tab
|
||||
zsh-forgit
|
||||
zsh-fzf-history-search
|
||||
];
|
||||
#sessionVariables = {
|
||||
# SOPS_AGE_KEY_FILE = "/Users/duumxh/.config/sops/age/keys.txt";
|
||||
#};
|
||||
stateVersion = "25.11";
|
||||
};
|
||||
|
||||
programs = {
|
||||
ssh = {
|
||||
enable = true;
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Den Afanasyev";
|
||||
userEmail = "ceo@furry.industries";
|
||||
};
|
||||
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
prezto = {
|
||||
prompt = {
|
||||
theme = "pure";
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
|
||||
autosuggestion = {
|
||||
#highlight = "fg=#ff00ff,bg=cyan,bold,underline";
|
||||
#strategy = [ "completion" "history" ];
|
||||
enable = true;
|
||||
};
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "fzf-tab";
|
||||
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
|
||||
}
|
||||
];
|
||||
|
||||
history = {
|
||||
append = true;
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
initContent = lib.mkOrder 500 ''
|
||||
echo "Hey there raccoon! 🦝🍁"
|
||||
'';
|
||||
#localVariables = {};
|
||||
|
||||
shellAliases = {
|
||||
drwn-upd = "sudo darwin-rebuild switch --flake ~/Nix";
|
||||
ls = "eza";
|
||||
cd = "z";
|
||||
cat = "bat";
|
||||
k = "kubectl";
|
||||
m = "micro";
|
||||
h = "helm";
|
||||
t = "teleport";
|
||||
tctl = "talosctl";
|
||||
};
|
||||
};
|
||||
|
||||
fzf = {
|
||||
colors = {
|
||||
fg = "-1";
|
||||
"fg+" = "#d0d0d0";
|
||||
bg = "-1";
|
||||
"bg+" = "#262626";
|
||||
hl = "#5f87af";
|
||||
"hl+" = "#5fd7ff";
|
||||
info = "#afaf87";
|
||||
marker = "#87ff00";
|
||||
prompt = "#d7005f";
|
||||
spinner = "#af5fff";
|
||||
pointer = "#af5fff";
|
||||
header = "#87afaf";
|
||||
border = "#262626";
|
||||
label = "#aeaeae";
|
||||
query = "#d9d9d9";
|
||||
};
|
||||
defaultOptions = [
|
||||
"--border=rounded"
|
||||
"--border-label"
|
||||
"--preview-window=border-rounded"
|
||||
"--prompt=> "
|
||||
"--marker=>"
|
||||
"--pointer=◆"
|
||||
"--separator=─"
|
||||
"--scrollbar=│"
|
||||
];
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
eza = {
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
bat = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
zoxide = {
|
||||
enableZshIntegration = true;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
micro = {
|
||||
settings = {
|
||||
colorscheme = "simple";
|
||||
scrollbar = true;
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home-manager.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue