nixconfigs/home/workmac.nix

82 lines
1.7 KiB
Nix
Raw Normal View History

{
pkgs,
inputs,
config,
system,
...
}:
with pkgs;
let
unstable = inputs.nixos-unstable.legacyPackages.${system};
in
{
schmittlauch.packages = {
graphics = true;
multimedia = true;
nixHelpers = true;
devTools = true;
pythonTools = true;
};
home.packages = [
wireshark # on NixOS systems enabled via system config
_1password
# also TODO: color schemes nix-darwin
];
programs.ssh = {
enable = true;
# ssh host config
matchBlocks = {
"hydra01" = {
hostname = "hydra01.access.whq.gocept.net";
user = "os";
};
"fcio-whq-jump" = {
hostname = "vpn-whq.services.fcio.net";
extraOptions.LogLevel = "Verbose";
};
"fcio-rzob-jump" = {
hostname = "vpn-rzob.services.fcio.net";
};
};
};
programs.git =
let
contacts = import "${inputs.mysecrets}/contacts.nix";
in
{
includes =
[
{
condition = "gitdir:~/src/schmittlauch/";
contents = {
user.name = "Trolli Schmittlauch";
user.email = contacts.nixosMail;
};
}
]
# set default name for several other common locations
2024-03-26 10:44:15 +01:00
++ map (dir: {
condition = "gitdir:${dir}";
contents = {
user.name = contacts.realName;
user.email = contacts.fcioMail;
};
}) [ "~/" ];
};
# some extra shell scripts
programs.zsh.initExtra = lib.mkAfter (
import ./scripts/reporsync.nix { inherit pkgs lib; }
+ import ./scripts/ssh-loop-fc.nix { inherit pkgs lib; }
);
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "1password-cli" ];
home.stateVersion = "22.05";
}