nix/home-manager/home.nix

31 lines
No EOL
1.3 KiB
Nix
Executable file

{ lib, config, ... }:
{
home.stateVersion = "24.05";
home.username = "ty";
home.homeDirectory = "/home/ty";
options.hmOptions = {
plasma.enable = lib.mkEnableOption "plasma configuration";
firefox.enable = lib.mkEnableOption "firefox configuration";
thunderbird.enable = lib.mkEnableOption "thunderbird configuration";
vscode.enable = lib.mkEnableOption "vscode configuration";
beets.enable = lib.mkEnableOption "beets configuration";
rescrobbled.enable = lib.mkEnableOption "rescrobbled configuration";
};
imports = [
./modules/packages.nix
(lib.mkIf config.hmOptions.plasma.enable ./modules/plasma.nix)
./modules/vcs
(lib.mkIf config.hmOptions.firefox.enable ./modules/firefox.nix)
(lib.mkIf config.hmOptions.thunderbird.enable ./modules/thunderbird.nix)
./modules/accounts
./modules/gpg.nix
./modules/shell
(lib.mkIf config.hmOptions.vscode.enable ./modules/vscode.nix)
(lib.mkIf config.hmOptions.plasma.enable ./modules/desktop.nix)
(lib.mkIf config.hmOptions.plasma.enable ./modules/gtk.nix)
(lib.mkIf config.hmOptions.beets.enable ./modules/beets.nix)
(lib.mkIf config.hmOptions.rescrobbled.enable ./modules/rescrobbled.nix)
];
}