Compare commits
No commits in common. "7c993c502a1561fd8560f108b5ea5529a90bb812" and "67135990652ad8d5905e273d7351081ec8b1de7b" have entirely different histories.
7c993c502a
...
6713599065
26
flake.lock
26
flake.lock
@ -168,37 +168,13 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plasma-manager": {
|
||||
"inputs": {
|
||||
"home-manager": [
|
||||
"home-manager"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1736549395,
|
||||
"narHash": "sha256-XzwkB62Tt5UYoL1jXiHzgk/qz2fUpGHExcSIbyGTtI0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "plasma-manager",
|
||||
"rev": "a53af7f1514ef4cce8620a9d6a50f238cdedec8b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "plasma-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"home-manager": "home-manager",
|
||||
"mac-app-util": "mac-app-util",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nixgl": "nixgl",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"plasma-manager": "plasma-manager"
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
||||
@ -6,19 +6,12 @@
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
mac-app-util.url = "github:hraban/mac-app-util";
|
||||
mac-app-util.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nixgl.url = "github:nix-community/nixGL";
|
||||
nixgl.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
plasma-manager.url = "github:nix-community/plasma-manager";
|
||||
plasma-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
plasma-manager.inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
|
||||
outputs =
|
||||
@ -29,7 +22,6 @@
|
||||
nix-darwin,
|
||||
nixgl,
|
||||
nixpkgs,
|
||||
plasma-manager,
|
||||
}:
|
||||
let
|
||||
systems = nixpkgs.lib.genAttrs [
|
||||
@ -81,7 +73,6 @@
|
||||
inherit pkgs;
|
||||
|
||||
modules = [
|
||||
inputs.plasma-manager.homeManagerModules.plasma-manager
|
||||
./home-manager/common.nix
|
||||
./home-manager/becky-dingleberry.nix
|
||||
];
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
# TODO: implement plasma configuration
|
||||
# TODO: Plasma does not see home manager installed packages
|
||||
let
|
||||
username = "becky";
|
||||
@ -64,22 +63,23 @@ in
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
android-tools
|
||||
android-udev-rules
|
||||
nixd
|
||||
# TODO: Move from system to nix
|
||||
# awscli2
|
||||
# k9s
|
||||
# kubectl
|
||||
# Terminal image viewer
|
||||
tcpdump
|
||||
viu
|
||||
];
|
||||
|
||||
xdg.configFile = lib.mkMerge [
|
||||
{
|
||||
"ghostty/config" = {
|
||||
text = ''
|
||||
${builtins.readFile ./shared/ghostty.config}
|
||||
|
||||
font-size = 11
|
||||
font-size = 10
|
||||
theme = catppuccin-mocha
|
||||
window-height = 9999
|
||||
window-width = 9999
|
||||
'';
|
||||
};
|
||||
}
|
||||
@ -91,7 +91,12 @@ in
|
||||
file = "share/bat/syntaxes/ghostty.sublime-syntax";
|
||||
};
|
||||
|
||||
programs.vim.plugins = [ pkgs.ghostty.vim ];
|
||||
programs.vim.plugins = lib.mkMerge [ pkgs.ghostty.vim ];
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
@ -136,6 +141,33 @@ 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;
|
||||
@ -155,67 +187,32 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
# https://github.com/nix-community/plasma-manager
|
||||
# https://nix-community.github.io/plasma-manager/options.xhtml
|
||||
#https://github.com/HeitorAugustoLN/nix-config/tree/main/home/heitor/features/desktop/plasma
|
||||
# ~/.config/kglobalshortcutsrc
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
|
||||
# killall kglobalaccel5; kglobalaccel5 &; disown
|
||||
shortcuts = {
|
||||
"org.kde.konsole.desktop" = {
|
||||
_launch = "none";
|
||||
};
|
||||
|
||||
"com.mitchellh.ghostty.desktop" = {
|
||||
_launch = "Ctrl+Alt+T";
|
||||
};
|
||||
|
||||
kded5 = {
|
||||
display = [
|
||||
"none"
|
||||
"none"
|
||||
"Switch Display"
|
||||
];
|
||||
};
|
||||
|
||||
ksmserver = {
|
||||
"Lock Session" = "Meta+Ctrl+Q";
|
||||
};
|
||||
|
||||
kwin = {
|
||||
"Window Maximize" = "Meta+Ctrl+Alt+M";
|
||||
"Window Quick Tile Bottom" = "Meta+Ctrl+Alt+Down";
|
||||
"Window Quick Tile Left" = "Meta+Ctrl+Alt+Left";
|
||||
"Window Quick Tile Right" = "Meta+Ctrl+Alt+Right";
|
||||
"Window Quick Tile Top" = "Meta+Ctrl+Alt+Up";
|
||||
|
||||
"Walk Through Windows" = "Meta+Tab";
|
||||
"Walk Through Windows (Reverse)" = "Meta+Shift+Tab";
|
||||
"Walk Through Windows of Current Application" = "Meta+`";
|
||||
"Walk Through Windows of Current Application (Reverse)" = "Meta+Shift+`";
|
||||
|
||||
"Window Close" = "Meta+W";
|
||||
|
||||
"Overview" = "Ctrl+Meta+Tab";
|
||||
|
||||
"Switch One Desktop to the Right" = "none";
|
||||
"Switch One Desktop to the Left" = "none";
|
||||
};
|
||||
|
||||
plasmashell = {
|
||||
"next activity" = "Meta+Ctrl+Right";
|
||||
"previous activity" = "Meta+Ctrl+Left";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Configure
|
||||
# programs.ssh = {
|
||||
# enable = true;
|
||||
@ -266,8 +263,8 @@ in
|
||||
|
||||
autoload -U +X bashcompinit && bashcompinit
|
||||
|
||||
source <(${pkgs.kubectl}/bin/kubectl completion zsh)
|
||||
complete -C '${pkgs.awscli2}/bin/aws_completer' aws
|
||||
source <(kubectl completion zsh)
|
||||
complete -C '/usr/local/bin/aws_completer' aws
|
||||
|
||||
# Manual ghostty injection
|
||||
if [[ -n $GHOSTTY_RESOURCES_DIR ]]; then
|
||||
@ -302,54 +299,6 @@ in
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
|
||||
# Total hack, not what HM is for
|
||||
# Manually remove files if deleted here
|
||||
home.activation.nfsRoute = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
/usr/bin/sudo ${pkgs.coreutils}/bin/ln -fs ${
|
||||
pkgs.writeTextFile {
|
||||
name = "nfs-route";
|
||||
text = ''
|
||||
# NFS
|
||||
200 nfsroute
|
||||
'';
|
||||
}
|
||||
} /etc/iproute2/rt_tables.d/20-nfs.conf
|
||||
|
||||
/usr/bin/sudo ${pkgs.coreutils}/bin/ln -fs ${pkgs.writeShellScript "nfs-route" ''
|
||||
if [ "$IFACE" = "enp4s0" ]; then
|
||||
if [ "$(ip route list table nfsroute exact 10.125.248.55 | grep enp4s0 | wc -l)" == "0" ]; then
|
||||
ip route add 10.125.248.55 via 10.124.248.248 dev enp4s0 table nfsroute
|
||||
fi
|
||||
|
||||
if [ "$(ip route list table nfsroute exact 10.125.248.33 | grep enp4s0 | wc -l)" == "0" ]; then
|
||||
ip route add 10.125.248.33 via 10.124.248.248 dev enp4s0 table nfsroute
|
||||
fi
|
||||
|
||||
if [ "$(ip rule list from 10.124.248.5 | ${pkgs.gnugrep}/bin/grep nfsroute | ${pkgs.coreutils}/bin/wc -l)" == "0" ]; then
|
||||
ip rule add from 10.124.248.5 lookup nfsroute
|
||||
fi
|
||||
fi
|
||||
''} /etc/network/if-up.d/nfs-route
|
||||
|
||||
/usr/bin/sudo ${pkgs.coreutils}/bin/mkdir -p /etc/network/if-post-down.d
|
||||
|
||||
/usr/bin/sudo ${pkgs.coreutils}/bin/ln -fs ${pkgs.writeShellScript "nfs-route" ''
|
||||
if [ "$IFACE" = "enp4s0" ]; then
|
||||
if [ "$(ip route list table nfsroute exact 10.125.248.55 | grep enp4s0 | wc -l)" != "0" ]; then
|
||||
ip route del 10.125.248.55 via 10.124.248.248 dev enp4s0 table nfsroute
|
||||
fi
|
||||
|
||||
if [ "$(ip route list table nfsroute exact 10.125.248.33 | grep enp4s0 | wc -l)" != "0" ]; then
|
||||
ip route del 10.125.248.33 via 10.124.248.248 dev enp4s0 table nfsroute
|
||||
fi
|
||||
|
||||
if [ "$(ip rule list from 10.124.248.5 | ${pkgs.gnugrep}/bin/grep nfsroute | ${pkgs.coreutils}/bin/wc -l)" != "0" ]; then
|
||||
ip rule del from 10.124.248.5 lookup nfsroute
|
||||
fi
|
||||
fi
|
||||
''} /etc/network/if-post-down.d/nfs-route
|
||||
'';
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
GO111MODULE = "on";
|
||||
|
||||
@ -10,18 +10,6 @@ let
|
||||
isLinux = pkgs.stdenv.hostPlatform.isLinux;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import ./nix-init-scripts.nix {
|
||||
inherit lib pkgs;
|
||||
})
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
awscli2
|
||||
kubectl
|
||||
nixd
|
||||
viu
|
||||
];
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
@ -30,71 +18,6 @@ in
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.k9s = {
|
||||
enable = true;
|
||||
settings = {
|
||||
k9s = {
|
||||
refreshRate = 2;
|
||||
ui = {
|
||||
logoless = true;
|
||||
headless = true;
|
||||
skin = "darkerbg";
|
||||
};
|
||||
logger = {
|
||||
tail = 1000;
|
||||
sinceSeconds = 60 * 30;
|
||||
fullScreen = true;
|
||||
showtime = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
skins = {
|
||||
darkerbg = {
|
||||
k9s = {
|
||||
body = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
frame = {
|
||||
title = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
views = {
|
||||
table = {
|
||||
bgColor = "#333";
|
||||
|
||||
header = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
logs = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.jq = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@ -15,6 +15,9 @@ in
|
||||
(import ./veracode/aws-cli.nix {
|
||||
inherit homedir lib pkgs;
|
||||
})
|
||||
(import ./nix-init-scripts.nix {
|
||||
inherit lib pkgs;
|
||||
})
|
||||
];
|
||||
|
||||
home.username = username;
|
||||
@ -24,7 +27,11 @@ in
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
awscli2
|
||||
hammerspoon
|
||||
k9s
|
||||
kubectl
|
||||
nixd
|
||||
pstree
|
||||
watch
|
||||
colima
|
||||
@ -35,9 +42,38 @@ in
|
||||
home.file = {
|
||||
"${homedir}/Library/Application Support/com.mitchellh.ghostty/config" = {
|
||||
text = ''
|
||||
${builtins.readFile ./shared/ghostty.config}
|
||||
|
||||
theme = "catppuccin-mocha"
|
||||
font-size = 14
|
||||
window-width = 9999
|
||||
window-height = 9999
|
||||
|
||||
# unbind resize split
|
||||
keybind = super+ctrl+down=unbind
|
||||
keybind = super+ctrl+left=unbind
|
||||
keybind = super+ctrl+up=unbind
|
||||
keybind = super+ctrl+right=unbind
|
||||
|
||||
# unbind clear_window
|
||||
keybind = super+k=unbind
|
||||
|
||||
# unbind goto split
|
||||
keybind = super+alt+right=unbind
|
||||
keybind = super+alt+down=unbind
|
||||
keybind = super+alt+left=unbind
|
||||
keybind = super+alt+up=unbind
|
||||
|
||||
keybind = super+k=new_split:down
|
||||
keybind = super+l=new_split:right
|
||||
|
||||
keybind = super+ctrl+j=goto_split:top
|
||||
keybind = super+ctrl+k=goto_split:bottom
|
||||
keybind = super+ctrl+h=goto_split:left
|
||||
keybind = super+ctrl+l=goto_split:right
|
||||
|
||||
keybind = super+shift+j=resize_split:up,10
|
||||
keybind = super+shift+k=resize_split:down,10
|
||||
keybind = super+shift+h=resize_split:left,10
|
||||
keybind = super+shift+l=resize_split:right,10
|
||||
'';
|
||||
};
|
||||
"${homedir}/.hammerspoon/init.lua" = {
|
||||
@ -47,6 +83,11 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Lukas Cech";
|
||||
@ -71,6 +112,61 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.jq = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.k9s = {
|
||||
enable = true;
|
||||
settings = {
|
||||
k9s = {
|
||||
refreshRate = 2;
|
||||
ui = {
|
||||
logoless = true;
|
||||
headless = true;
|
||||
skin = "darkerbg";
|
||||
};
|
||||
logger = {
|
||||
tail = 1000;
|
||||
sinceSeconds = 60 * 30;
|
||||
fullScreen = true;
|
||||
showtime = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
skins = {
|
||||
darkerbg = {
|
||||
k9s = {
|
||||
body = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
frame = {
|
||||
title = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
views = {
|
||||
table = {
|
||||
bgColor = "#333";
|
||||
|
||||
header = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
logs = {
|
||||
bgColor = "#333";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.lsd = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
@ -90,6 +186,27 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
@ -54,7 +54,6 @@ in
|
||||
{
|
||||
programs.zsh.shellAliases = {
|
||||
git-nix-clone = lib.mkDefault "${pkgs.writeShellScript "git-nix-clone" git-nix-clone}";
|
||||
nix-prepare = lib.mkDefault "${pkgs.writeShellScript "nix-prepare" nix-prepare}";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
theme = "catppuccin-mocha"
|
||||
window-width = 9999
|
||||
window-height = 9999
|
||||
|
||||
# unbind resize split
|
||||
keybind = super+ctrl+down=unbind
|
||||
keybind = super+ctrl+left=unbind
|
||||
keybind = super+ctrl+up=unbind
|
||||
keybind = super+ctrl+right=unbind
|
||||
|
||||
# unbind clear_window
|
||||
keybind = super+k=unbind
|
||||
|
||||
# unbind goto split
|
||||
keybind = super+alt+right=unbind
|
||||
keybind = super+alt+down=unbind
|
||||
keybind = super+alt+left=unbind
|
||||
keybind = super+alt+up=unbind
|
||||
|
||||
keybind = super+k=new_split:down
|
||||
keybind = super+l=new_split:right
|
||||
|
||||
keybind = super+alt+j=goto_split:top
|
||||
keybind = super+alt+k=goto_split:bottom
|
||||
keybind = super+alt+h=goto_split:left
|
||||
keybind = super+alt+l=goto_split:right
|
||||
|
||||
keybind = super+shift+j=resize_split:up,10
|
||||
keybind = super+shift+k=resize_split:down,10
|
||||
keybind = super+shift+h=resize_split:left,10
|
||||
keybind = super+shift+l=resize_split:right,10
|
||||
Loading…
Reference in New Issue
Block a user