blob: 52db4c66629be66dc1a4c04a374e0269527cd7b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
{ config, lib, pkgs, ... }:
with lib;
let
aliases = {
cluster = "gcloud container clusters get-credentials";
vpon = "sudo systemctl start openvpn-urbint.service";
};
in
{
imports = [ ../lib/cloneRepo.nix ];
options = {
urbint.projectPath = mkOption {
description = ''
Root path to clone Urbint repos in, relative to your home directory
'';
type = types.str;
default = "code";
};
};
config = {
services.lorri.enable = true;
programs.direnv = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
home.packages = with pkgs; [
docker
docker-compose
skopeo
kubectl
kubetail
google-cloud-sdk
openvpn
sops
(import <nixpkgs-unstable> {}).argocd
drone-cli
git
zoom-us
slack
_1password
];
nixpkgs.config.allowUnfree = true;
impure.clonedRepos = {
grid = {
github = "urbint/grid";
path = "${config.urbint.projectPath}/grid";
};
docker-images = {
github = "urbint/docker-images";
path = "${config.urbint.projectPath}/docker-images";
};
gitops = {
github = "urbint/gitops";
path = "${config.urbint.projectPath}/gitops";
};
};
programs.zsh.shellAliases = aliases;
programs.bash.shellAliases = aliases;
programs.zsh.envExtra = ''
export DRONE_SERVER=https://ci.urbinternal.com
'';
};
}
|