31 lines
681 B
Nix
31 lines
681 B
Nix
{ user, ... }: { lib, pkgs, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.roles.dev;
|
|
in
|
|
{
|
|
options.roles = {
|
|
dev = {
|
|
enable = mkEnableOption "editor";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.editor.enable = true;
|
|
roles.git.enable = true;
|
|
programs.terminal.enable = true;
|
|
home-manager.users.${user}.imports = [{
|
|
home.packages = (with pkgs; [
|
|
(makeDesktopItem {
|
|
name = "insomnia";
|
|
desktopName = "Insomnia";
|
|
exec = "${insomnia}/bin/insomnia --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations";
|
|
})
|
|
dbeaver
|
|
ansible
|
|
tig
|
|
fx
|
|
]);
|
|
}];
|
|
};
|
|
}
|