2023-03-30 18:15:51 +00:00
|
|
|
{
|
2024-02-13 21:33:32 +00:00
|
|
|
config,
|
|
|
|
desktop,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
username,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
desktop-config = import ./desktop.nix {inherit config inputs pkgs username;};
|
2024-03-17 00:28:38 +00:00
|
|
|
shared-config = import "${self}/lib/shared/home-manager.nix" {inherit inputs pkgs self username;};
|
|
|
|
shared-packages = import "${self}/lib/shared/home-manager-packages.nix" {inherit inputs pkgs;};
|
2024-03-09 18:51:11 +00:00
|
|
|
|
2024-03-12 17:15:10 +00:00
|
|
|
pkgs-2311 = inputs.nixpkgs-2311.legacyPackages.${pkgs.system};
|
2024-02-13 21:33:32 +00:00
|
|
|
in {
|
|
|
|
imports =
|
|
|
|
if desktop
|
|
|
|
then [desktop-config shared-config]
|
|
|
|
else [shared-config];
|
2023-08-08 19:15:31 +00:00
|
|
|
|
2024-02-13 21:33:32 +00:00
|
|
|
home.packages =
|
|
|
|
shared-packages
|
|
|
|
++ pkgs.lib.optionals desktop [
|
|
|
|
pkgs.discord
|
|
|
|
pkgs.gimp
|
|
|
|
pkgs.gscan2pdf
|
2024-03-09 18:51:11 +00:00
|
|
|
pkgs-2311.kdenlive
|
2024-02-13 21:33:32 +00:00
|
|
|
pkgs.meslo-lg
|
|
|
|
pkgs.obs-studio
|
|
|
|
pkgs.okular
|
|
|
|
pkgs.pamixer
|
|
|
|
pkgs.pass
|
|
|
|
pkgs.pavucontrol
|
|
|
|
pkgs.pinentry
|
|
|
|
pkgs.slack
|
|
|
|
pkgs.via
|
|
|
|
pkgs.vlc
|
|
|
|
pkgs.xsel
|
|
|
|
pkgs.xcape
|
|
|
|
pkgs.zoom-us
|
|
|
|
];
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-08-08 19:15:31 +00:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
LANG = "en_GB.UTF-8";
|
|
|
|
LC_ALL = "en_GB.UTF-8";
|
|
|
|
LC_CTYPE = "en_GB.UTF-8";
|
2023-08-14 16:49:20 +00:00
|
|
|
PATH = "$PATH:./vendor/bin:./node_modules/.bin";
|
2023-08-08 19:15:31 +00:00
|
|
|
PULUMI_SKIP_UPDATE_CHECK = "true";
|
2023-12-21 12:09:03 +00:00
|
|
|
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
|
2023-07-18 19:23:55 +00:00
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
}
|