nix-config/home/nixos-common.nix

221 lines
4.2 KiB
Nix
Raw Normal View History

2022-03-14 09:59:06 +01:00
{ config, inputs, pkgs, stablePkgs, ... }:
2022-01-28 15:11:30 +01:00
2022-02-23 12:40:21 +01:00
{
2022-01-28 15:11:30 +01:00
# Let Home Manager install and manage itself.
# programs.home-manager.enable = true;
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "rilla";
home.homeDirectory = "/home/rilla";
imports = [
./arduino
./barrier
./browsers
2022-02-21 18:22:19 +01:00
./cheat
2022-01-28 15:11:30 +01:00
./dav
./fonts
./git
./gotify
./gpg
./idasen
2022-03-14 15:20:17 +01:00
./lf
2022-01-28 15:11:30 +01:00
./mail
2022-02-13 15:55:35 +01:00
./maker
2022-01-28 15:11:30 +01:00
./minidisc
./mpd
./msg
./music
./neovim
2022-04-24 17:51:40 +02:00
./nsxiv
2022-01-28 15:11:30 +01:00
./pass
./rss
./snapcast
./sound
./ssh
2022-05-25 12:08:15 +02:00
./syncthing
2022-01-28 15:11:30 +01:00
./tmux
./vitetris
./wallets
2022-04-11 10:00:47 +02:00
./wine
2022-03-15 08:20:18 +01:00
./xdg
2022-01-28 15:11:30 +01:00
./zsh
];
2022-05-25 09:58:20 +02:00
home.persistence = {
"/data/${config.home.homeDirectory}" = {
directories = [
"Audio"
"Calendars"
"Contacts"
"Documents"
"Downloads"
"Images"
"Maildir"
"Monero"
"code"
"misc"
"workspace"
];
allowOther = true;
};
2022-11-13 15:46:24 +01:00
"/mnt/vfs_share/${config.home.homeDirectory}" = {
directories = [ "vfs_share" ];
allowOther = true;
};
2022-05-25 09:58:20 +02:00
"/persist/${config.home.homeDirectory}" = {
directories = [
".Slic3r"
".abook"
".bitmonero"
".config/Element"
".config/Nextcloud"
".config/Signal"
".config/SuperCollider"
".config/ardour6"
".config/chromium"
".config/kdeconnect"
".config/kicad"
2022-05-25 12:08:15 +02:00
".config/syncthing"
2022-08-22 13:34:10 +02:00
".config/tea"
2022-05-25 09:58:20 +02:00
".config/whatsapp-for-linux"
".electrum"
2022-05-25 09:58:20 +02:00
".gnupg/private-keys-v1.d"
".hydrogen"
2022-10-23 16:39:02 +02:00
".kube"
2022-05-25 09:58:20 +02:00
".librewolf"
".local/share/Bisq"
2022-10-23 16:38:21 +02:00
".local/share/Steam"
2022-05-25 09:58:20 +02:00
".local/share/SuperCollider"
".local/share/TelegramDesktop"
".local/share/dino"
2022-08-22 13:34:10 +02:00
".local/share/direnv"
2022-10-23 16:39:02 +02:00
".local/share/gopass/stores"
2022-05-25 09:58:20 +02:00
".local/share/keyrings"
".local/share/mpd"
".local/share/webkitgtk"
".local/state/wireplumber"
2022-08-17 11:29:24 +02:00
".local/state/zsh"
2022-05-25 09:58:20 +02:00
".mozilla"
".newsboat"
".password-store"
".vagrant.d"
".vdirsyncer"
".virtualenvs"
2022-05-25 09:58:20 +02:00
".wine"
2022-08-22 13:34:10 +02:00
"Nextcloud"
2022-08-22 16:08:52 +02:00
"configs"
2022-08-22 13:34:10 +02:00
# ".cache"
2022-05-25 09:58:20 +02:00
];
files = [
".gnupg/pubring.kbx"
".gnupg/trustdb.gpg"
".mailsynclastrun"
".ssh/known_hosts"
".lmmsrc.xml"
];
allowOther = true;
};
2022-01-28 15:11:30 +01:00
};
home.sessionVariables = {
EDITOR = "${pkgs.neovim}/bin/nvim";
VISUAL = "${pkgs.neovim}/bin/nvim";
BROWSER = "${pkgs.firefox}/bin/firefox";
# OPENER = "todo"; # todo
TERMINAL = "${pkgs.alacritty}/bin/alacritty";
CM_LAUNCHER = "rofi"; # for clipmenu
LEDGER_FILE = "${config.home.homeDirectory}/finance/2021.journal";
QT_QPA_PLATFORMTHEME = "qt5ct";
};
home.packages = with pkgs; [
2022-10-23 16:39:02 +02:00
# calibre
2022-01-28 15:11:30 +01:00
R
2022-11-13 15:46:24 +01:00
virtiofsd
2022-01-28 15:11:30 +01:00
acpi
android-tools
ansible
bind.dnsutils
docker-compose
file
gimp
gnumake
2022-01-31 11:03:32 +01:00
html-tidy
2022-01-28 15:11:30 +01:00
htop
2022-03-15 14:29:23 +01:00
inetutils # telnet
2022-01-31 11:03:32 +01:00
j2cli
2022-01-28 15:11:30 +01:00
jq
killall
2022-10-23 16:39:02 +02:00
kubectl
2022-01-28 15:11:30 +01:00
libnotify
libreoffice
lxqt.pcmanfm-qt
mosh
mpv
neofetch
networkmanagerapplet
nextcloud-client
pandoc
pv
ripgrep
2022-01-31 11:03:32 +01:00
sassc
2022-03-15 14:29:23 +01:00
shellcheck
2022-01-28 15:11:30 +01:00
signify
2022-04-24 16:56:12 +02:00
unzip
2022-04-10 20:22:09 +02:00
vagrant
2022-01-28 15:11:30 +01:00
virt-manager
wget
];
2022-09-26 16:54:28 +02:00
# services.kdeconnect = {
# enable = true;
# indicator = true;
# };
2022-01-28 15:11:30 +01:00
programs.bat = {
enable = true;
config = { theme = "gruvbox-dark"; };
};
programs.fzf = {
enable = true;
enableZshIntegration = true;
# defaultOptions = [
# "--preview --preview 'bat --color=always --style=header,grid --line-range :300 {}'"
# ];
tmux.enableShellIntegration = true;
};
services.gnome-keyring = {
enable = true;
components = [ "secrets" ];
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
2022-01-31 13:06:18 +01:00
services.network-manager-applet.enable = true;
2022-01-28 15:11:30 +01:00
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
"autoconnect" = [ "qemu:///system" ];
"uris" = [ "qemu:///system" ];
};
};
2022-08-17 15:48:48 +02:00
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
2022-01-28 15:11:30 +01:00
home.stateVersion = "21.11";
}