nix/home/home.nix
2022-09-25 00:50:35 +10:00

298 lines
5.7 KiB
Nix

{ config, pkgs, ... }:
{
imports = [
# who are you?
# ./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
broot
fd
lazygit
latte-dock
kdeconnect
keepassxc
mpv
syncthing
zoxide
meslo-lgs-nf
libreoffice-qt
libsForQt5.ark
libsForQt5.qtstyleplugin-kvantum
gtk-engine-murrine
plasma-browser-integration
(callPackage ./homepkgs/git-credential-keepassxc.nix { })
(callPackage ./homepkgs/culr.nix { })
(libsForQt5.callPackage ./homepkgs/bismuth.nix { })
];
gtk = {
enable = true;
theme = {
package = pkgs.arc-theme;
name = "Arc-Dark";
};
};
programs.firefox =
{
package = pkgs.firefox.override {
cfg = {
enablePlasmaBrowserIntegration = true;
};
};
enable = true;
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
vimium
darkreader
localcdn
ublock-origin
bypass-paywalls-clean
sidebery
plasma-integration
keepassxc-browser
user-agent-string-switcher
# happy-bonobo-disable-webrtc
# arc-dark-theme-we
];
profiles.default = {
id = 0;
name = "Default";
settings = {
"browser.startup.homepage" = "about:blank";
};
};
};
programs.broot = {
enable = true;
modal = true;
};
services.syncthing = {
enable = true;
};
services.kdeconnect = {
enable = true;
indicator = true;
};
programs.kitty = {
enable = true;
font = {
name = "MesloLGS NF Regular";
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.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 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 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-completions";
src = pkgs.zsh-completions;
file = "share/zsh-completions/zsh-completions.zsh";
}
{
name = "zsh-autopair";
src = pkgs.zsh-autopair;
file = "share/zsh-autopair/zsh-autopair.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-history-search-multi-word";
src = pkgs.zsh-history-search-multi-word;
file = "share/zsh-history-search-multi-word/zsh-history-search-multi-word.zsh";
}
{
name = "zsh-nix-shell";
src = pkgs.zsh-nix-shell;
file = "share/zsh-nix-shell/zsh-nix-shell.zsh";
}
{
name = "nix-zsh-completions";
src = pkgs.nix-zsh-completions;
file = "share/nix-zsh-completions/nix-zsh-completions.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.stateVersion = "22.05";
programs.home-manager.enable = true;
}