39 lines
1,011 B
Nix
39 lines
1,011 B
Nix
{ inputs, config, desktop, pkgs, self, username, ... }:
|
|
|
|
let
|
|
desktop-config = import ./home-manager-desktop.nix { inherit config inputs pkgs; };
|
|
shared-config = import ../shared/home-manager.nix { inherit inputs pkgs self username; };
|
|
shared-packages = import ../shared/home-manager-packages.nix { inherit inputs pkgs; };
|
|
in
|
|
{
|
|
imports = if desktop then [ desktop-config shared-config ] else [ shared-config ];
|
|
|
|
home.packages = shared-packages ++ pkgs.lib.optionals desktop [
|
|
pkgs.discord
|
|
pkgs.meslo-lg
|
|
pkgs.pamixer
|
|
pkgs.pass
|
|
pkgs.pinentry
|
|
pkgs.postman
|
|
pkgs.slack
|
|
pkgs.teams
|
|
pkgs.via
|
|
pkgs.vial
|
|
pkgs.vlc
|
|
pkgs.wob
|
|
pkgs.wofi
|
|
pkgs.xcape
|
|
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";
|
|
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
|
|
};
|
|
}
|