mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
ready
This commit is contained in:
parent
73d096b328
commit
3b0ed14d85
36 changed files with 663 additions and 1032 deletions
10
parts/modules/dev/docker.nix
Normal file
10
parts/modules/dev/docker.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{username, pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.docker
|
||||
pkgs.docker-compose
|
||||
];
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
users.extraGroups.docker.members = [username];
|
||||
}
|
||||
25
parts/modules/dev/k8s.nix
Normal file
25
parts/modules/dev/k8s.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{pkgs, username, config, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.kubectl
|
||||
];
|
||||
|
||||
age.secrets.k8s-ao-dev = {
|
||||
rekeyFile = ../../../secrets/k8s/ao-dev.age;
|
||||
path = "/home/${username}/.kube/config.ao-dev";
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
age.secrets.k8s-ao-prod = {
|
||||
rekeyFile = ../../../secrets/k8s/ao-prod.age;
|
||||
path = "/home/${username}/.kube/config.ao-prod";
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
fireproof.home-manager = {
|
||||
home.sessionVariables = {
|
||||
KUBECONFIG = "${config.age.secrets.k8s-ao-dev.path}:${config.age.secrets.k8s-ao-prod.path}:$HOME/.kube/config";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,14 @@
|
|||
}: {
|
||||
environment.systemPackages = [
|
||||
pkgsUnstable.uv
|
||||
pkgsUnstable.rye
|
||||
pkgs.python3
|
||||
];
|
||||
|
||||
# uv tool adds executable to $HOME/.local/bin, so add it to PATH
|
||||
fireproof.home-manager = {
|
||||
home.sessionPath = [
|
||||
"$HOME/.local/bin"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
5
parts/modules/dev/tilt.nix
Normal file
5
parts/modules/dev/tilt.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgsUnstable, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgsUnstable.tilt
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue