os/users/teutat3s/home.nix
teutat3s 2ce4f913aa
All checks were successful
continuous-integration/drone/push Build is passing
teutat3s: add slack
2023-04-18 10:41:15 +02:00

92 lines
2.4 KiB
Nix

{
config,
home-manager,
inputs,
lib,
pkgs,
...
}:
with lib; let
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
tritonshell = inputs.tritonshell;
in {
imports = [
./session-variables.nix
];
config = {
pub-solar.social.enable = true;
pub-solar.graphical.alacritty.settings.font.size = 12;
pub-solar.graphical.alacritty.settings.key_bindings = [
{
key = "V";
mods = "Control|Super";
action = "Paste";
}
{
key = "C";
mods = "Control|Super";
action = "Copy";
}
];
#services.kbfs.enable = true;
#services.keybase.enable = true;
services.yubikey-agent.enable = true;
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
xdg.configFile."git/config".text = import ./.config/git/config.nix {
inherit config;
inherit pkgs;
};
xdg.configFile."git/config_greenbaum.cloud".text = import ./.config/git/config_greenbaum.cloud.nix {
inherit config;
inherit pkgs;
};
xdg.configFile."git/config_git.b12f.io".text = import ./.config/git/config_git.b12f.io.nix {
inherit config;
inherit pkgs;
};
xdg.configFile."watson/config".text = import ./.config/watson/config.nix {
inherit config;
inherit pkgs;
};
home.packages = with pkgs; [
AusweisApp2
consul
drone-docker-runner
gpu-switch
ifmetric
ipmitool
keybase-gui
nomad_1_4
thunderbird
vault
veracrypt
waypoint
yubikey-agent
age-plugin-yubikey
cockroach-bin
zoom-us
slack
];
programs.bash.initExtra = ''
source ${config.age.secrets.environment-secrets.path}
source ${inputs.tritonshell.packages.${pkgs.system}.triton-utils}/bin/ttp.sh
complete -C ${pkgs.consul}/bin/consul consul
complete -C ${pkgs.nomad_1_4}/bin/nomad nomad
complete -C ${pkgs.vault}/bin/vault vault
complete -C ${pkgs.terraform}/bin/terraform terraform
complete -C ${pkgs.waypoint}/bin/waypoint waypoint
complete -C '${pkgs.awscli2}/bin/aws_completer' ${pkgs.awscli2}/bin/aws
'';
# xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg;
};
#services.mopidy.configuration = mkIf config.pub-solar.audio.enable (builtins.readFile ../../secrets/mopidy.conf);
};
}