2022-02-02 15:50:53 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-05-20 11:57:00 +02:00
|
|
|
|
2022-02-03 14:34:32 +01:00
|
|
|
imports = [
|
|
|
|
./home/modules/programs/cmus.nix
|
2022-02-03 15:14:00 +01:00
|
|
|
./home/modules/programs/languagetool.nix
|
2022-02-07 12:17:08 +01:00
|
|
|
./home/modules/programs/mailhog.nix
|
2022-02-03 14:34:32 +01:00
|
|
|
];
|
|
|
|
|
2022-05-20 11:57:00 +02:00
|
|
|
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";
|
|
|
|
|
2022-05-20 12:45:42 +02:00
|
|
|
packages = import ./home/packages.nix {
|
|
|
|
inherit pkgs;
|
2022-05-20 11:57:00 +02:00
|
|
|
};
|
2022-02-02 15:50:53 +01:00
|
|
|
|
2022-05-20 12:45:42 +02:00
|
|
|
file = import ./home/files.nix { };
|
|
|
|
|
2022-05-20 12:39:40 +02:00
|
|
|
} // import ./home/home.nix {
|
|
|
|
inherit pkgs;
|
2022-05-20 11:57:00 +02:00
|
|
|
};
|
2022-02-02 15:51:20 +01:00
|
|
|
|
2022-05-20 13:47:03 +02:00
|
|
|
targets.genericLinux.enable = true;
|
|
|
|
|
2022-03-24 07:39:56 +01:00
|
|
|
nix = import ./home/programs/nix.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
|
2022-05-20 11:57:00 +02:00
|
|
|
programs = {
|
2022-02-08 16:11:39 +01:00
|
|
|
|
2022-05-20 11:57:00 +02:00
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
home-manager.enable = true;
|
2022-02-02 17:21:27 +01:00
|
|
|
|
2022-03-11 14:03:07 +01:00
|
|
|
neovim = import ./home/programs/neovim.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2022-02-02 21:50:24 +01:00
|
|
|
git = import ./home/programs/git.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2022-02-02 22:52:40 +01:00
|
|
|
htop = import ./home/programs/htop.nix {
|
|
|
|
inherit config;
|
|
|
|
};
|
2022-02-03 09:10:22 +01:00
|
|
|
tmux = import ./home/programs/tmux.nix {
|
2022-02-08 17:46:08 +01:00
|
|
|
inherit pkgs;
|
2022-02-03 09:10:22 +01:00
|
|
|
};
|
2022-02-14 16:06:43 +01:00
|
|
|
jq = import ./home/programs/jq.nix {
|
|
|
|
inherit config;
|
|
|
|
};
|
2022-02-07 13:04:58 +01:00
|
|
|
zsh = import ./home/programs/zsh.nix {
|
2022-02-14 08:05:23 +01:00
|
|
|
inherit config pkgs;
|
2022-02-07 13:04:58 +01:00
|
|
|
};
|
2022-02-03 14:34:32 +01:00
|
|
|
|
2022-03-10 16:17:28 +01:00
|
|
|
firefox = import ./home/programs/firefox.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
|
2022-02-03 14:34:32 +01:00
|
|
|
# Media
|
|
|
|
cmus.enable = true;
|
2022-02-02 21:50:24 +01:00
|
|
|
|
2022-02-02 22:19:55 +01:00
|
|
|
};
|
2022-02-02 21:02:07 +01:00
|
|
|
|
2022-05-20 13:47:03 +02:00
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
|
2022-05-20 12:39:40 +02:00
|
|
|
xsession = import ./home/xsession.nix {
|
2022-05-18 21:08:57 +02:00
|
|
|
inherit config pkgs;
|
|
|
|
};
|
|
|
|
|
2022-05-20 12:45:42 +02:00
|
|
|
xdg = import ./home/xdg.nix {
|
|
|
|
inherit pkgs;
|
2022-02-07 08:45:08 +01:00
|
|
|
};
|
|
|
|
|
2022-05-20 15:39:28 +02:00
|
|
|
gtk = import ./home/gtk.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
|
2022-05-20 11:57:00 +02:00
|
|
|
services = {
|
|
|
|
dunst = import ./home/services/dunst.nix;
|
|
|
|
mailhog.enable = true;
|
|
|
|
languagetool.enable = true;
|
|
|
|
nextcloud-client.enable = true;
|
2022-03-16 17:12:48 +01:00
|
|
|
};
|
|
|
|
|
2022-05-20 15:39:28 +02:00
|
|
|
systemd.user = {
|
2022-02-08 07:54:27 +01:00
|
|
|
|
2022-05-20 15:39:28 +02:00
|
|
|
services = {
|
|
|
|
|
|
|
|
# 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).
|
|
|
|
nextcloud-client.Service.Environment = pkgs.lib.mkForce [
|
|
|
|
"PATH=${config.home.profileDirectory}/bin"
|
|
|
|
"QT_XCB_GL_INTEGRATION=none"
|
|
|
|
];
|
|
|
|
|
|
|
|
batteryicon = import ./home/services/batteryicon.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2022-05-20 11:57:00 +02:00
|
|
|
|
|
|
|
};
|
2022-05-19 07:18:51 +02:00
|
|
|
|
2022-05-20 15:39:28 +02:00
|
|
|
tmpfiles.rules = [
|
|
|
|
"L ${config.home.homeDirectory}/.themes - - - - ${config.home.homeDirectory}/.nix-profile/share/themes"
|
|
|
|
"L ${config.home.homeDirectory}/.icons - - - - ${config.home.homeDirectory}/.nix-profile/share/icons"
|
|
|
|
"L ${config.home.homeDirectory}/.local/share/applications - - - - ${config.home.homeDirectory}/.nix-profile/share/applications"
|
|
|
|
];
|
|
|
|
|
2022-05-19 07:18:51 +02:00
|
|
|
};
|
2022-05-20 11:57:00 +02:00
|
|
|
|
2022-02-02 15:50:53 +01:00
|
|
|
}
|