nixfiles/home-manager/work.nix

35 lines
530 B
Nix
Raw Normal View History

2024-03-03 21:14:32 +00:00
{ pkgs, config, lib, ... }:
2024-03-03 15:56:25 +00:00
{
imports = [
2024-03-03 21:14:32 +00:00
./common.nix
2024-03-03 15:56:25 +00:00
];
2024-03-03 21:14:32 +00:00
options.work-user = {
username = lib.mkOption {
default = "work";
type = lib.types.str;
};
};
2024-03-03 15:56:25 +00:00
2024-03-03 21:14:32 +00:00
config =
let
cfg = config.work-user;
in
{
home.username = cfg.username;
home.homeDirectory = "/home/${cfg.username}";
home.packages = with pkgs; [
firefox # Yuck!
thunderbird
slack
dbeaver
];
2024-03-03 15:56:25 +00:00
2024-03-03 21:14:32 +00:00
programs.helix.extraPackages = [
pkgs.nodePackages_latest.intelephense
];
};
2024-03-03 15:56:25 +00:00
}