nixos-config/user/home.nix

237 lines
6.1 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, python3Packages, myName, myEmail, myHomeDir, myDotfilesDir, myTheme, ... }:
2023-04-23 02:12:52 +05:30
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = myName;
home.homeDirectory = myHomeDir;
2023-04-23 02:12:52 +05:30
nixpkgs.overlays = [
(self: super:
{
keepmenu = super.keepmenu.overrideAttrs (oldAttrs: rec {
pname = "keepmenu";
version = "1.3.1";
src = super.python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-AGuJY7IirzIjcu/nY9CzeOqU1liwcRijYLi8hGN/pRg=";
};
});
}
)
];
2023-04-23 02:12:52 +05:30
programs.home-manager.enable = true;
2023-05-06 23:25:15 +05:30
imports = [
./wm/xmonad/xmonad.nix # My xmonad config
./shell/sh.nix # My zsh and bash config
2023-05-14 07:18:39 +05:30
./bin/phoenix.nix # My nix command wrapper
2023-05-30 04:52:22 +05:30
./bin/ytsub-wrappers.nix # My ytsub wrapper
2023-05-16 04:48:59 +05:30
./app/doom-emacs/doom.nix # My doom emacs config
./app/ranger/ranger.nix # My ranger file manager config
./app/terminal/alacritty.nix # My alacritty config
./app/terminal/kitty.nix # My kitty config
2023-05-14 07:18:39 +05:30
./app/git/git.nix # My git config
2023-05-14 07:32:50 +05:30
./app/games/games.nix # Various videogame apps
./style/stylix.nix # Styling and themes for my apps
./lang/cc/cc.nix # C and C++ tools
2023-05-21 06:32:47 +05:30
#./lang/rust/rust.nix # Rust tools
2023-05-20 06:55:57 +05:30
#./lang/python/python.nix # Python
2023-05-15 07:40:43 +05:30
#./lang/python/python-packages.nix # Extra Python packages I want
./lang/haskell/haskell.nix # Haskell tools
2023-05-15 07:40:43 +05:30
#./lang/android/android.nix # Android developement
./lang/godot/godot.nix # Game development
2023-05-06 23:25:15 +05:30
];
2023-04-23 02:12:52 +05:30
home.stateVersion = "22.11"; # Please read the comment before changing.
home.packages = with pkgs; [
# Core
zsh
alacritty
2023-05-06 17:40:14 +05:30
kitty
2023-05-25 06:52:27 +05:30
librewolf
2023-04-23 02:12:52 +05:30
brave
dmenu
2023-05-06 17:40:14 +05:30
rofi
2023-05-21 06:29:12 +05:30
keepmenu
networkmanager_dmenu
2023-05-13 17:56:54 +05:30
feh
2023-04-23 02:12:52 +05:30
git
2023-05-26 06:57:11 +05:30
syncthing
2023-05-29 05:54:09 +05:30
flameshot
2023-04-23 02:12:52 +05:30
# Office
libreoffice-qt
mate.atril
xournalpp
gnome.geary
2023-05-24 05:19:14 +05:30
gnome.gnome-calendar
2023-05-15 07:02:57 +05:30
newsflash
2023-06-04 07:06:05 +05:30
#autokey
2023-04-23 02:12:52 +05:30
protonmail-bridge
# Media
gimp-with-plugins
krita
cmus
vlc
mpv
yt-dlp
blender
obs-studio
libsForQt5.kdenlive
movit
mediainfo
libmediainfo
mediainfo-gui
freetube
audio-recorder
2023-05-24 05:26:09 +05:30
pavucontrol
gtkcord4
2023-04-23 02:12:52 +05:30
# Command Line
neofetch lolcat cowsay
2023-06-06 21:25:31 +05:30
cava
2023-04-23 02:12:52 +05:30
gnugrep gnused
2023-05-17 06:24:31 +05:30
xorg.xkill
killall
2023-05-17 05:43:28 +05:30
libnotify
2023-04-23 02:12:52 +05:30
bat exa fd bottom ripgrep
rsync
systeroid
tmux
htop
hwinfo
unzip
octave
brightnessctl
w3m
fzf
hunspell hunspellDicts.en_US-large
pandoc
2023-05-21 06:28:54 +05:30
(pkgs.callPackage ./pkgs/ytsub.nix { })
2023-05-21 07:15:29 +05:30
(pkgs.callPackage ./pkgs/pokemon-colorscripts.nix { })
2023-05-21 06:28:54 +05:30
# Various dev packages
texinfo
libffi zlib
nodePackages.ungit
2023-04-23 02:12:52 +05:30
# Compositor and Desktop Utils
2023-05-07 01:26:06 +05:30
picom
2023-04-23 02:12:52 +05:30
alttab
xorg.xcursorthemes
# X Utils
xdotool
xclip
ddcutil
sct
caffeine-ng
# Wayland Utils
2023-05-14 07:34:37 +05:30
# xdg-desktop-portal-wlr
# wtype
2023-04-23 02:12:52 +05:30
# wl-clipboard-x11
2023-05-14 07:34:37 +05:30
# xorg.xlsclients
# glfw-wayland
# swayidle
# swaylock
# wlsunset
# wayshot
# wev
2023-04-23 02:12:52 +05:30
# TODO Configure pipewire audio server
# Virtual Machines and wine
2023-04-23 02:12:52 +05:30
libvirt
virt-manager
qemu_full
lxc
swtpm
bottles
2023-04-23 02:12:52 +05:30
# Security
keepassxc
gnome.seahorse
protonvpn-gui
# Filesystems
dosfstools
# Extra packages
flatpak
2023-04-23 02:12:52 +05:30
];
2023-05-26 06:57:11 +05:30
services.syncthing.enable = true;
2023-05-29 20:01:40 +05:30
xdg.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;
music = "${config.home.homeDirectory}/Media/Music";
videos = "${config.home.homeDirectory}/Media/Videos";
pictures = "${config.home.homeDirectory}/Media/Pictures";
templates = "${config.home.homeDirectory}/Templates";
download = "${config.home.homeDirectory}/Downloads";
documents = "${config.home.homeDirectory}/Documents";
desktop = null;
publicShare = null;
extraConfig = {
XDG_DOTFILES_DIR = "${config.home.homeDirectory}/.dotfiles";
XDG_ARCHIVE_DIR = "${config.home.homeDirectory}/Archive";
XDG_VM_DIR = "${config.home.homeDirectory}/Machines";
XDG_ORG_DIR = "${config.home.homeDirectory}/Org";
XDG_GAME_DIR = "${config.home.homeDirectory}/Media/Games";
XDG_GAME_SAVE_DIR = "${config.home.homeDirectory}/Media/Game Saves";
XDG_PODCAST_DIR = "${config.home.homeDirectory}/Media/Podcasts";
XDG_BOOK_DIR = "${config.home.homeDirectory}/Media/Books";
};
};
2023-04-23 02:12:52 +05:30
home.file.".librewolf/librewolf.overrides.cfg".text = ''
2023-05-25 06:52:27 +05:30
defaultPref("font.name.serif.x-western","Inconsolata");
defaultPref("font.size.variable.x-western",20);
defaultPref("browser.toolbars.bookmarks.visibility","always");
defaultPref("privacy.resisttFingerprinting.letterboxing", true);
defaultPref("network.http.referer.XOriginPolicy",2);
defaultPref("privacy.clearOnShutdown.history",false);
defaultPref("privacy.clearOnShutdown.downloads",false);
defaultPref("privacy.clearOnShutdown.cookies",false);
defaultPref("gfx.webrender.software.opengl",true);
defaultPref("webgl.disabled",false);
2023-04-23 02:12:52 +05:30
pref("font.name.serif.x-western","Inconsolata");
pref("font.size.variable.x-western",20);
pref("browser.toolbars.bookmarks.visibility","always");
pref("privacy.resisttFingerprinting.letterboxing", true);
pref("network.http.referer.XOriginPolicy",2);
pref("privacy.clearOnShutdown.history",false);
pref("privacy.clearOnShutdown.downloads",false);
pref("privacy.clearOnShutdown.cookies",false);
pref("gfx.webrender.software.opengl",true);
2023-05-25 06:52:27 +05:30
pref("webgl.disabled",false);
2023-04-23 02:12:52 +05:30
'';
home.file.".config/networkmanager-dmenu/config.ini".text = ''
[dmenu]
dmenu_command = rofi -show dmenu
compact = True
wifi_chars =
list_saved = True
[editor]
terminal = alacritty
# gui_if_available = <True or False> (Default: True)
'';
2023-04-23 02:12:52 +05:30
home.sessionVariables = {
EDITOR = "emacsclient";
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; # lets flatpak work
2023-04-23 02:12:52 +05:30
};
2023-05-21 06:28:54 +05:30
# extra packages
2023-04-23 02:12:52 +05:30
}