398 lines
12 KiB
Nix
Executable file
398 lines
12 KiB
Nix
Executable file
{ config, pkgs, ... }:
|
||
|
||
{
|
||
imports = [
|
||
# who are you?
|
||
./bolt.nix
|
||
# ./fossil.nix
|
||
# ./plank.nix
|
||
];
|
||
|
||
nixpkgs.config.packageOverrides = pkgs: {
|
||
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||
inherit pkgs;
|
||
};
|
||
};
|
||
|
||
|
||
nixpkgs.config.allowUnfree = true;
|
||
|
||
home.packages = with pkgs; [
|
||
|
||
kitty
|
||
thunderbird
|
||
|
||
clementine
|
||
inkscape
|
||
|
||
btop
|
||
bat
|
||
joshuto
|
||
ripgrep
|
||
fd
|
||
lazygit
|
||
fzf
|
||
|
||
latte-dock
|
||
|
||
kdeconnect
|
||
keepassxc
|
||
|
||
direnv
|
||
|
||
mpv
|
||
|
||
vscodium
|
||
|
||
syncthing
|
||
|
||
zoxide
|
||
meslo-lgs-nf
|
||
|
||
libreoffice-qt
|
||
|
||
libsForQt5.ark
|
||
libsForQt5.qtstyleplugin-kvantum
|
||
libsForQt5.bismuth
|
||
|
||
gtk-engine-murrine
|
||
|
||
plasma-browser-integration
|
||
|
||
(callPackage ./homepkgs/git-credential-keepassxc.nix { })
|
||
(callPackage ./homepkgs/culr.nix { })
|
||
|
||
];
|
||
# ❯ bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
|
||
# nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
|
||
# ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# │ File: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
|
||
# ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# 1 │ [Desktop Entry]
|
||
# 2 │ Categories=Utility;TextEditor;Development;IDE
|
||
# 3 │ Comment=Code Editing. Redefined.
|
||
# 4 │ Exec=codium --open-url %U
|
||
# 5 │ GenericName=Text Editor
|
||
# 6 │ Icon=code
|
||
# 7 │ Keywords=vscode
|
||
# 8 │ MimeType=x-scheme-handler/vscode
|
||
# 9 │ Name=VSCodium - URL Handler
|
||
# 10 │ NoDisplay=true
|
||
# 11 │ StartupNotify=true
|
||
# 12 │ Type=Application
|
||
# 13 │ Version=1.4
|
||
# ───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# zsh: permission denied: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
|
||
# ❯ bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium-url-handler.desktop
|
||
# nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.deskt
|
||
# ❯ bat nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
|
||
# ───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# │ File: nix/store/101r0xh4c4y8hkcwx6vpbvp9d8nyg596-home-manager-path/share/applications/codium.desktop
|
||
# ───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# 1 │ [Desktop Entry]
|
||
# 2 │ Actions=new-empty-window
|
||
# 3 │ Categories=Utility;TextEditor;Development;IDE
|
||
# 4 │ Comment=Code Editing. Redefined.
|
||
# 5 │ Exec=codium %F
|
||
# 6 │ GenericName=Text Editor
|
||
# 7 │ Icon=code
|
||
# 8 │ Keywords=vscode
|
||
# 9 │ MimeType=text/plain;inode/directory
|
||
# 10 │ Name=VSCodium
|
||
# 11 │ StartupNotify=true
|
||
# 12 │ StartupWMClass=vscodium
|
||
# 13 │ Type=Application
|
||
# 14 │ Version=1.4
|
||
# 15 │
|
||
# 16 │ [Desktop Action new-empty-window]
|
||
# 17 │ Exec=codium --new-window %F
|
||
# 18 │ Icon=code
|
||
# 19 │ Name=New Empty Window
|
||
# ───────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
|
||
# ❯
|
||
programs.direnv = {
|
||
enable = true;
|
||
nix-direnv = {
|
||
enable = true;
|
||
};
|
||
};
|
||
|
||
gtk = {
|
||
enable = true;
|
||
theme = {
|
||
package = (pkgs.callPackage ./homepkgs/simplewaita-gtk.nix {});
|
||
name = "simplewaita";
|
||
};
|
||
};
|
||
|
||
programs.firefox =
|
||
{
|
||
package = pkgs.firefox.override {
|
||
cfg = {
|
||
enablePlasmaBrowserIntegration = true;
|
||
};
|
||
};
|
||
enable = true;
|
||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||
vimium-c
|
||
darkreader
|
||
localcdn
|
||
ublock-origin
|
||
bypass-paywalls-clean
|
||
sidebery
|
||
plasma-integration
|
||
keepassxc-browser
|
||
user-agent-string-switcher
|
||
# happy-bonobo-disable-webrtc
|
||
];
|
||
profiles.default = {
|
||
id = 0;
|
||
name = "Default";
|
||
settings = {
|
||
"browser.startup.homepage" = "about:blank";
|
||
};
|
||
};
|
||
};
|
||
|
||
services.syncthing = {
|
||
enable = true;
|
||
};
|
||
|
||
services.kdeconnect = {
|
||
enable = true;
|
||
indicator = true;
|
||
};
|
||
|
||
programs.kitty = {
|
||
enable = true;
|
||
font = {
|
||
name = "Ellograph CF";
|
||
size = 10;
|
||
};
|
||
settings = {
|
||
foreground = "#d3dae3";
|
||
background = "#060604";
|
||
cursor = "#d3dae3";
|
||
selection_foreground = "#fdbc4b";
|
||
selection_background = "#1e2233";
|
||
color0 = "#2f343f";
|
||
color8 = "#1e2233";
|
||
color1 = "#ed244e";
|
||
color9 = "#da4453";
|
||
color2 = "#27ae60";
|
||
color10 = "#71f79f";
|
||
color3 = "#f67400";
|
||
color11 = "#fdbc4b";
|
||
color4 = "#2980b9";
|
||
color12 = "#1d99f3";
|
||
color5 = "#c50ed2";
|
||
color13 = "#9b59b6";
|
||
color6 = "#3daee9";
|
||
color14 = "#5294e2";
|
||
color7 = "#a1a9b1";
|
||
color15 = "#656a73";
|
||
};
|
||
};
|
||
|
||
programs.git = {
|
||
enable = true;
|
||
userName = "atagen";
|
||
userEmail = "atagen@boss.co";
|
||
extraConfig = {
|
||
credential.helper = "keepassxc";
|
||
};
|
||
};
|
||
|
||
programs.zoxide = {
|
||
enable = true;
|
||
enableZshIntegration = true;
|
||
};
|
||
|
||
programs.fzf = {
|
||
enable = true;
|
||
enableZshIntegration = true;
|
||
colors = {
|
||
fg = "#d3dae3";
|
||
"fg+" = "#d3dae3";
|
||
bg = "#060604";
|
||
"bg+" = "#060604";
|
||
preview-fg = "#fdbc4b";
|
||
preview-bg = "#1e2233";
|
||
hl = "#da4453";
|
||
"hl+" = "#ed244e";
|
||
info = "#fdbc4b";
|
||
border = "#656a73";
|
||
prompt = "#c50ed2";
|
||
pointer = "#27ae60";
|
||
header = "#da4453";
|
||
};
|
||
};
|
||
|
||
programs.zsh = {
|
||
enable = true;
|
||
enableAutosuggestions = true;
|
||
enableCompletion = true;
|
||
enableSyntaxHighlighting = true;
|
||
enableVteIntegration = true;
|
||
autocd = true;
|
||
defaultKeymap = "viins";
|
||
initExtra = "
|
||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||
|
||
la_culr()
|
||
{
|
||
ls -ralhX --color $@ | culr
|
||
}
|
||
|
||
ls_culr()
|
||
{
|
||
ls -rlhX --color $@ | culr
|
||
}
|
||
|
||
ps_culr()
|
||
{
|
||
ps ww$@ | culr
|
||
}
|
||
|
||
alias ...=\"cd ../..\"
|
||
alias ....=\"cd ../../..\"
|
||
alias .....=\"cd ../../../..\"
|
||
|
||
alias fresh=\"clear; echo; ~/.nix/header.sh\"
|
||
alias icat=\"kitty +kitten icat\"
|
||
alias chmox=\"chmod +x\"
|
||
alias gs=\"git status\"
|
||
alias gcl=\"git clone\"
|
||
alias ga=\"git add\"
|
||
alias gcb=\"git checkout -b\"
|
||
alias gco=\"git checkout\"
|
||
alias gl=\"git pull\"
|
||
alias gp=\"git push\"
|
||
alias gd=\"git diff\"
|
||
alias gcam=\"git commit -am\"
|
||
alias gcm=\"git commit -m\"
|
||
alias gr=\"git restore\"
|
||
alias gm=\"git merge\"
|
||
alias l=\"ls_culr\"
|
||
alias la=\"la_culr\"
|
||
alias p=\"ps_culr\"
|
||
alias mnt=\"mount | column -t | culr\"
|
||
fresh
|
||
";
|
||
|
||
plugins = [
|
||
{
|
||
name = "powerlevel10k";
|
||
src = pkgs.zsh-powerlevel10k;
|
||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||
}
|
||
{
|
||
name = "zsh-vi-mode";
|
||
src = pkgs.zsh-vi-mode;
|
||
file = "share/zsh-vi-mode/zsh-vi-mode.zsh";
|
||
}
|
||
{
|
||
name = "zsh-autopair";
|
||
src = pkgs.zsh-autopair;
|
||
file = "share/zsh-autopair/zsh-autopair.zsh";
|
||
}
|
||
{
|
||
name = "zsh-completions";
|
||
src = pkgs.zsh-completions;
|
||
file = "share/zsh-completions/zsh-completions.zsh";
|
||
}
|
||
{
|
||
name = "zsh-command-time";
|
||
src = pkgs.zsh-command-time;
|
||
file = "share/zsh-completions/zsh-command-time.zsh";
|
||
}
|
||
# {
|
||
# name = "zsh-you-should-use";
|
||
# src = pkgs.zsh-you-should-use;
|
||
# # file = "share/zsh-completions/zsh-you-should-use.zsh";
|
||
# }
|
||
{
|
||
name = "zsh-autocomplete";
|
||
src = pkgs.zsh-autocomplete;
|
||
file = "share/zsh-autocomplete/zsh-autocomplete.zsh";
|
||
}
|
||
{
|
||
name = "zsh-fast-syntax-highlighting";
|
||
src = pkgs.zsh-fast-syntax-highlighting;
|
||
file = "share/zsh-fast-syntax-highlighting/zsh-fast-syntax-highlighting.zsh";
|
||
}
|
||
{
|
||
name = "zsh-nix-shell";
|
||
src = pkgs.zsh-nix-shell;
|
||
file = "share/zsh-nix-shell/zsh-nix-shell.zsh";
|
||
}
|
||
{
|
||
name = "any-nix-shell";
|
||
src = pkgs.any-nix-shell;
|
||
file = "share/any-nix-shell/any-nix-shell.zsh";
|
||
}
|
||
{
|
||
name = "nix-zsh-completions";
|
||
src = pkgs.nix-zsh-completions;
|
||
file = "share/nix-zsh-completions/nix-zsh-completions.zsh";
|
||
}
|
||
# {
|
||
# name = "zsh-fzf-tab";
|
||
# src = pkgs.zsh-fzf-tab;
|
||
# # file = "share/zsh-fzf-tab/zsh-fzf-tab.zsh";
|
||
# }
|
||
];
|
||
};
|
||
|
||
xresources.extraConfig = "
|
||
! special
|
||
*.foreground: #d3dae3
|
||
*.background: #181b28
|
||
*.cursorColor: #d3dae3
|
||
|
||
! black
|
||
*.color0: #2f343f
|
||
*.color8: #1e2233
|
||
|
||
! red
|
||
*.color1: #ed244e
|
||
*.color9: #da4453
|
||
|
||
! green
|
||
*.color2: #27ae60
|
||
*.color10: #71f79f
|
||
|
||
! yellow
|
||
*.color3: #f67400
|
||
*.color11: #fdbc4b
|
||
|
||
! blue
|
||
*.color4: #2980b9
|
||
*.color12: #1d99f3
|
||
|
||
! magenta
|
||
*.color5: #c50ed2
|
||
*.color13: #9b59b6
|
||
|
||
! cyan
|
||
*.color6: #3daee9
|
||
*.color14: #5294e2
|
||
|
||
! white
|
||
*.color7: #a1a9b1
|
||
*.color15: #656a73";
|
||
|
||
programs.helix.enable = true;
|
||
programs.helix.settings = {
|
||
theme = "bogster";
|
||
};
|
||
|
||
home.sessionVariables = {
|
||
GTK_THEME = "simplewaita";
|
||
};
|
||
|
||
home.stateVersion = "22.11";
|
||
|
||
programs.home-manager.enable = true;
|
||
}
|
||
|