nix-cfg/hosts/laptop/home.nix

307 lines
6.2 KiB
Nix
Raw Normal View History

{ config, osConfig, pkgs, ... }:
2023-09-09 16:31:01 +02:00
{
home.username = "lgm";
home.homeDirectory = "/home/lgm";
imports = [
./email.nix
];
2023-09-09 16:31:01 +02:00
# https://nixos-and-flakes.thiscute.world/nixos-with-flakes/start-using-home-manager
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
2024-02-29 13:03:20 +01:00
# TODO categorize later
pixelorama
helvum
kooha
mangohud
mcstatus
autossh
godot_4
ffmpeg
cheat
glxinfo
2023-10-30 17:20:54 +01:00
# my scripts
# ((import ../scripts/rebuild.nix) {inherit pkgs;}) # outdated
2023-10-30 17:20:54 +01:00
wineWowPackages.waylandFull
openconnect
# file editing
onlyoffice-bin
# theming
2024-03-02 17:45:54 +01:00
kdePackages.qtstyleplugin-kvantum
2023-10-30 17:20:54 +01:00
# osConfig.nur.repos.baduhai.koi
(catppuccin-gtk.override {
variant = "latte";
accents = [ "yellow" ];
})
(catppuccin-kde.override {
flavour = [ "macchiato" "latte" ];
accents = [ "yellow" ];
})
(catppuccin-kvantum.override {
variant = "Latte";
accent = "Yellow";
})
(catppuccin-kvantum.override {
variant = "Macchiato";
accent = "Yellow";
})
2023-09-09 16:31:01 +02:00
# web
2023-10-30 17:20:54 +01:00
protonvpn-gui
protonvpn-cli
2023-09-09 16:31:01 +02:00
# security
2024-05-20 23:23:04 +02:00
keepassxc
2023-09-09 16:31:01 +02:00
onlykey
onlykey-agent
2024-03-02 17:45:54 +01:00
kdePackages.plasma-vault
2023-09-09 16:56:40 +02:00
gpgme.dev # For mailvelope
2023-09-09 16:31:01 +02:00
neofetch
2024-03-02 17:45:54 +01:00
kdePackages.yakuake
kdePackages.kgpg
2024-05-11 00:42:20 +02:00
# for Application Title Bar plasmoid
kdePackages.kconfig
2023-09-09 16:31:01 +02:00
# messaging
2024-05-20 23:23:04 +02:00
(discord.override {
2023-09-09 16:31:01 +02:00
withOpenASAR = true;
})
2024-05-20 23:23:04 +02:00
vesktop
telegram-desktop
signal-desktop
2024-03-02 17:45:54 +01:00
kdePackages.tokodon
kdePackages.neochat
2023-09-09 16:31:01 +02:00
# pkgs-unstable.cinny-desktop
# pkgs-unstable.thunderbird # see programs.thunderbird
# graphics
gimp
krita
inkscape-with-extensions
blockbench-electron
2023-09-09 16:31:01 +02:00
# games
prismlauncher
xonotic
2023-10-30 17:20:54 +01:00
superTux
superTuxKart
2023-09-09 16:31:01 +02:00
lutris
2024-02-29 13:03:20 +01:00
minetest
2023-09-09 16:31:01 +02:00
# dev
2024-03-02 20:29:07 +01:00
# Wrap idea-community to add libraries required for Minecraft Moddev
(symlinkJoin {
name = "idea-community";
paths = [ jetbrains.idea-community ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/idea-community \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [libpulseaudio libGL glfw openal stdenv.cc.cc.lib]}"
'';
})
packwiz
2023-09-09 16:31:01 +02:00
# vscodium # see programs.vscode
#nnn # terminal file manager
# archives
# zip
# xz
# unzip
# p7zip
# utils
ani-cli
yt-dlp
mosh
2023-09-09 16:31:01 +02:00
appimage-run
ncdu
2023-09-09 16:56:40 +02:00
# btrfs tools
btdu # ncdu but for btrfs
2023-09-09 16:31:01 +02:00
compsize
2023-09-09 16:56:40 +02:00
ripgrep # recursively searches directories for a regex pattern
2023-09-09 16:31:01 +02:00
jq # A lightweight and flexible command-line JSON processor
2023-10-30 17:20:54 +01:00
eza
2023-09-09 16:31:01 +02:00
# networking tools
dnsutils # `dig` + `nslookup`
ldns # replacement of `dig`, it provide the command `drill`
aria2
socat # replacement of openbsd-netcat
nmap # A utility for network discovery and security auditing
# etc
vlc
qbittorrent
# misc
cowsay
# file
# which
tree
# gnused
# gnutar
# gawk
# zstd
gnupg
2024-01-21 19:53:13 +01:00
sops
2023-09-09 16:31:01 +02:00
# nix related
nix-output-monitor
glow # markdown previewer in terminal
2023-09-09 16:56:40 +02:00
btop # replacement of htop/nmon
iotop # io monitoring
iftop # network monitoring
# system call monitoring
strace # system call monitoring
ltrace # library call monitoring
2023-09-09 16:31:01 +02:00
lsof # list open files
# system tools
file
# sysstat
lm_sensors # for `sensors` command
# ethtool
pciutils # lspci
usbutils # lsusb
# android-tools
monero-gui
];
2024-03-02 17:45:54 +01:00
# gnome network manager applet since plasma-nm is not using Secret Service
# https://invent.kde.org/plasma/plasma-nm/-/issues/7
services.network-manager-applet.enable = true;
# Requires tray.target by default so let's remove it
systemd.user.services.network-manager-applet.Unit = {
Requires = pkgs.lib.mkOverride 0 [ ];
After = pkgs.lib.mkOverride 0 [ "graphical-session-pre.target" ];
};
2023-10-30 17:20:54 +01:00
# Email stuff
programs.thunderbird = {
enable = true;
package = pkgs.thunderbird;
profiles = {
lgmrszd = {
isDefault = true;
withExternalGnupg = true;
};
};
2023-10-30 17:20:54 +01:00
};
2024-05-11 00:42:20 +02:00
programs.firefox = {
enable = true;
};
2023-10-30 17:20:54 +01:00
# ---------
2023-09-09 16:31:01 +02:00
services.nextcloud-client = {
enable = true;
};
2023-11-26 03:01:02 +01:00
programs.java = {
enable = true;
2024-05-20 23:23:04 +02:00
package = pkgs.jetbrains.jdk;
2023-11-26 03:01:02 +01:00
};
2023-09-09 16:31:01 +02:00
programs.git = {
enable = true;
delta.enable = true;
signing = {
signByDefault = true;
key = "D3067BE844D3FC49535A47B29396B8BA6FBB14DE";
};
userName = "Lgmrszd";
userEmail = "lgmrszd@disroot.org";
2023-09-09 16:56:40 +02:00
extraConfig = {
init = {
defaultBranch = "main";
};
};
2023-09-09 16:31:01 +02:00
};
programs.pazi = {
enable = true;
enableFishIntegration = true;
};
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
];
2024-05-13 23:57:47 +02:00
};
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-vkcapture
obs-pipewire-audio-capture
obs-tuna
obs-scale-to-sound
obs-source-switcher
obs-gstreamer
input-overlay
advanced-scene-switcher
];
2023-09-09 16:31:01 +02:00
};
programs.starship = {
enable = true;
# custom settings
settings = {
add_newline = false;
aws.disabled = true;
gcloud.disabled = true;
# line_break.disabled = true;
};
};
programs.fish = {
enable = true;
plugins = [
{
name = "forgit";
src = pkgs.fishPlugins.forgit.src;
}
{
name = "fzf";
src = pkgs.fishPlugins.fzf.src;
}
];
};
programs.bash = {
enable = true;
enableCompletion = true;
};
# This value determines the home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new home Manager release introduces backwards
# incompatible changes.
#
# You can update home Manager without changing this value. See
# the home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "23.05";
# Let home Manager install and manage itself.
programs.home-manager.enable = true;
}