mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
update
This commit is contained in:
parent
2b7b63a18c
commit
638ef7093e
140 changed files with 307 additions and 121 deletions
14
modules/dev/docker.nix
Normal file
14
modules/dev/docker.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.docker
|
||||
pkgs.docker-compose
|
||||
];
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
users.extraGroups.docker.members = [username];
|
||||
}
|
||||
5
modules/dev/just.nix
Normal file
5
modules/dev/just.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgsUnstable, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgsUnstable.just
|
||||
];
|
||||
}
|
||||
30
modules/dev/k8s.nix
Normal file
30
modules/dev/k8s.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/dev/python.nix
Normal file
18
modules/dev/python.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
pkgs,
|
||||
pkgsUnstable,
|
||||
...
|
||||
}: {
|
||||
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
modules/dev/tilt.nix
Normal file
5
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