dotfiles/system/nixos/home-manager.nix
Oliver Davies 3b890d9ee5 refactor(flake): split NixOS Home Manager configs
Create a NixOS-specific Home Manager configuration and a reusable shared
configuration that can be imported and also used by other configurations,
such as WSL2.
2023-08-08 22:35:23 +01:00

34 lines
890 B
Nix

{ inputs, desktop, username, config, pkgs, ... }:
let
desktop-config = import ./home-manager-desktop.nix { inherit config inputs pkgs; };
shared-config = import ../shared/home-manager.nix { inherit inputs pkgs 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.pass
pkgs.pinentry
pkgs.postman
pkgs.slack
pkgs.teams
pkgs.vlc
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";
PULUMI_SKIP_UPDATE_CHECK = "true";
RIPGREP_CONFIG_PATH = "$HOME/.config/ripgrep/config";
};
}