nix/home-manager/default.nix
2024-01-03 22:41:07 +09:00

36 lines
1.1 KiB
Nix

{ lib, config, pkgs, inputs, hostname, platform, username, desktop, theme, hmStateVersion, ... }: {
imports = [
# Doom-Emacs input import
inputs.doom-emacs.hmModule
# Common configs
./common/software/cli
# User configs
./users/${username}
]
++ lib.optional (builtins.isString desktop) ./common/software/gui # GUI packages
++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop} # Machine-agnostic desktop configs
++ lib.optional (builtins.isString desktop) ./hosts/${hostname}/desktops/${desktop} # Machine-specific desktop configs
;
home = {
inherit username;
stateVersion = hmStateVersion;
homeDirectory = "/home/${username}";
sessionPath = [ "$HOME/.local/bin" ];
# pointerCursor = {
# gtk.enable = true;
# package = pkgs.catppuccin-cursors.mochaLight;
# name = "Catppuccin-Mocha-Light-Cursors";
# size = 22;
# };
};
nixpkgs = {
overlays = [
# Currently in use in the Firefox config
inputs.nur.overlay
];
};
}