Files
nix/home/hosts/work/default.nix
Hektor Misplon 0fac241885 feat(09-02): wire work-cli flake input and enable module in host config
- Add work-cli path input with nixpkgs follows to flake.nix
- Import modules/work-cli in work host config
- Enable programs.work-cli with gitlab/jira/vault settings (grouped attrset)
- Remove old shell.bash.extraInit completion eval
2026-04-02 14:33:15 +02:00

115 lines
2.3 KiB
Nix

{
inputs,
config,
pkgs,
...
}:
let
username = "hektor";
in
{
imports = [
# inputs.sops-nix.homeManagerModules.sops # TODO: re-enable after re-encrypting secrets for this host's age key
../../modules
../../modules/ai-tools
../../modules/work-cli
../../modules/anki
../../modules/browser
../../modules/bruno
../../modules/cloud
../../modules/comms
../../modules/database
../../modules/dconf
../../modules/desktop/niri
../../modules/direnv
../../modules/docker
../../modules/git
../../modules/go
../../modules/infra
../../modules/k8s
../../modules/k8s/k9s.nix
../../modules/keepassxc
../../modules/music
../../modules/networking
../../modules/nodejs
../../modules/nvim
../../modules/pandoc
../../modules/secrets
../../modules/shell
../../modules/stylix
../../modules/taskwarrior
../../modules/ticketing
../../modules/terminal
../../modules/vscode
];
# sops.age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt"; # TODO: re-enable with sops module
nixpkgs.config.allowUnfree = true;
xdg.systemDirs.config = [ "/etc/xdg" ];
home = {
stateVersion = "25.05";
inherit username;
homeDirectory = "/home/${username}";
};
targets.genericLinux.nixGL = {
inherit (inputs.nixgl) packages;
defaultWrapper = "mesa";
};
browser.primary = "firefox";
browser.secondary = "chromium";
cloud.azure.enable = true;
comms.signal.enable = true;
comms.teams.enable = true;
ai-tools = {
claude-code.enable = true;
tirith.enable = true;
opencode.enable = true;
};
database.mssql.enable = true;
database.postgresql.enable = true;
git.github.enable = true;
git.gitlab.enable = true;
secrets.vault.enable = true;
programs.work-cli = {
enable = true;
gitlab = {
url = "https://gitlab.com";
project = "";
group = "";
};
jira = {
enable = true;
url = "";
projectKey = "";
};
vault = {
enable = true;
url = "";
};
};
programs = {
gh.enable = true;
kubecolor.enable = true;
};
home.packages =
import ./packages.nix {
inherit inputs;
inherit config;
inherit pkgs;
}
++ import ../packages.nix {
inherit inputs;
inherit config;
inherit pkgs;
};
}