os/users/teutat3s/home.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
2.5 KiB
Nix
Raw Normal View History

{
config,
home-manager,
flake,
lib,
pkgs,
...
}:
with lib; let
2021-06-06 13:22:44 +00:00
psCfg = config.pub-solar;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
tritonshell = flake.inputs.tritonshell;
in {
2021-06-06 13:22:44 +00:00
imports = [
./session-variables.nix
./concepts-and-training.nix
./mnx.nix
2021-06-06 13:22:44 +00:00
];
config = {
# TODO change in alacritty config directly
#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;
home-manager.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_mnx".text = import ./.config/git/config_mnx.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;
};
2021-06-06 13:22:44 +00:00
home.packages = with pkgs; [
AusweisApp2
consul
drone-docker-runner
2022-01-19 00:13:15 +00:00
gpu-switch
2021-10-11 22:36:44 +00:00
ifmetric
ipmitool
2021-06-06 13:22:44 +00:00
keybase-gui
nomad_1_4
2021-06-06 13:22:44 +00:00
thunderbird
vault
veracrypt
waypoint
age-plugin-yubikey
2023-04-07 14:00:19 +00:00
cockroach-bin
obs-studio
2021-06-06 13:22:44 +00:00
];
programs.bash.initExtra = ''
source ${config.age.secrets.environment-secrets.path}
source ${flake.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
2023-11-12 18:06:07 +00:00
complete -C ${flake.inputs.nixos-22-05.legacyPackages.${pkgs.system}.terraform}/bin/terraform terraform
complete -C ${pkgs.waypoint}/bin/waypoint waypoint
'';
2021-06-06 13:22:44 +00:00
# xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg;
};
#services.mopidy.configuration = mkIf config.pub-solar.audio.enable (builtins.readFile ../../secrets/mopidy.conf);
};
}