nixpkgs/home.nix
Daniel Siepmann fb009d303d
Split home.nix into multiple files
Use dedicated files for files, packages and xdg.
This shortens the huge home.nix file.
2022-05-20 12:45:42 +02:00

105 lines
2.4 KiB
Nix

{ config, pkgs, ... }:
{
imports = [
./home/modules/programs/cmus.nix
./home/modules/programs/languagetool.nix
./home/modules/programs/mailhog.nix
];
home = {
# Home Manager needs a bit of information about you and the
# paths it should manage.
username = "daniels";
homeDirectory = "/home/daniels";
# 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.
stateVersion = "22.05";
packages = import ./home/packages.nix {
inherit pkgs;
};
file = import ./home/files.nix { };
};
nix = import ./home/programs/nix.nix {
inherit pkgs;
};
programs = {
# Let Home Manager install and manage itself.
home-manager.enable = true;
neovim = import ./home/programs/neovim.nix {
inherit pkgs;
};
git = import ./home/programs/git.nix {
inherit pkgs;
};
htop = import ./home/programs/htop.nix {
inherit config;
};
tmux = import ./home/programs/tmux.nix {
inherit pkgs;
};
jq = import ./home/programs/jq.nix {
inherit config;
};
zsh = import ./home/programs/zsh.nix {
inherit config pkgs;
};
firefox = import ./home/programs/firefox.nix {
inherit pkgs;
};
# Media
cmus.enable = true;
};
xsession.windowManager.i3 = import ./home/windowManager/i3.nix {
inherit config pkgs;
};
xdg = import ./home/xdg.nix {
inherit pkgs;
};
services = {
dunst = import ./home/services/dunst.nix;
mailhog.enable = true;
languagetool.enable = true;
nextcloud-client.enable = true;
};
systemd = {
# Temporary fix to OpenGL issue by using GLX.
# Start nextcloud without GLX support which is fine for me for noe.
# I don't have a better way for now, then using `pkgs.lib.mkForce` and setting whole value (repeating from modules/services/nextcloud-client.nix).
user.services.nextcloud-client.Service.Environment = pkgs.lib.mkForce [
"PATH=${config.home.profileDirectory}/bin"
"QT_XCB_GL_INTEGRATION=none"
];
user.services.batteryicon = import ./home/services/batteryicon.nix {
inherit pkgs;
};
};
}