dotfiles/lib/nixos/home-manager/default.nix

77 lines
1.3 KiB
Nix
Raw Normal View History

{
config,
desktop,
inputs,
pkgs,
self,
username,
...
}:
2024-03-18 20:33:28 +00:00
let
desktop-config = import ./desktop.nix {
inherit
config
inputs
pkgs
username
;
2024-03-18 20:33:28 +00:00
};
shared-config = import "${self}/lib/shared/home-manager.nix" {
inherit
inputs
pkgs
self
username
;
2024-03-18 20:33:28 +00:00
};
shared-packages = import "${self}/lib/shared/home-manager-packages.nix" {
inherit
desktop
inputs
pkgs
username
;
};
in
{
2024-02-13 21:33:32 +00:00
imports =
if desktop then
[
desktop-config
shared-config
]
else
[ shared-config ];
home.packages =
shared-packages
++ pkgs.lib.optionals desktop [
pkgs.discord
pkgs.gimp
pkgs.gscan2pdf
pkgs.kdenlive
pkgs.meslo-lg
pkgs.obs-studio
pkgs.okular
pkgs.pamixer
pkgs.pass
pkgs.pavucontrol
pkgs.pinentry
pkgs.via
pkgs.xcape
2024-08-19 20:09:01 +00:00
pkgs.xsel
pkgs.zoom-us
];
home.sessionVariables = {
EDITOR = "nvim";
LANG = "en_GB.UTF-8";
LC_ALL = "en_GB.UTF-8";
LC_CTYPE = "en_GB.UTF-8";
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
PULUMI_SKIP_UPDATE_CHECK = "true";
2024-04-16 23:24:41 +00:00
REPOS = "$HOME/Code";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}