mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
refactor: prepare new modules structure
This commit is contained in:
parent
d25e24c15b
commit
bf82970b9e
65 changed files with 94 additions and 94 deletions
25
legacy_modules/dev/aider.nix
Normal file
25
legacy_modules/dev/aider.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgsUnstable,
|
||||
username,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
age.secrets.llm-api-key = {
|
||||
rekeyFile = ../../secrets/llm-api-key.env.age;
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgsUnstable; [
|
||||
aider-chat
|
||||
];
|
||||
fireproof.home-manager = {
|
||||
home.file.".aider.conf.yml".text = ''
|
||||
# Aider configuration file
|
||||
# This file is used to configure the Aider chat client
|
||||
# It is a YAML file
|
||||
sonnet: true
|
||||
env-file: ${config.age.secrets.llm-api-key.path}
|
||||
'';
|
||||
};
|
||||
}
|
||||
6
legacy_modules/dev/clickhouse.nix
Normal file
6
legacy_modules/dev/clickhouse.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{pkgsUnstable, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgsUnstable.clickhouse
|
||||
pkgsUnstable.envsubst
|
||||
];
|
||||
}
|
||||
22
legacy_modules/dev/docker.nix
Normal file
22
legacy_modules/dev/docker.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
username,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.docker
|
||||
pkgs.docker-compose
|
||||
];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
enableOnBoot = lib.mkDefault false;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
};
|
||||
|
||||
users.extraGroups.docker.members = [username];
|
||||
}
|
||||
5
legacy_modules/dev/javascript.nix
Normal file
5
legacy_modules/dev/javascript.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.nodejs
|
||||
];
|
||||
}
|
||||
5
legacy_modules/dev/just.nix
Normal file
5
legacy_modules/dev/just.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgsUnstable, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgsUnstable.just
|
||||
];
|
||||
}
|
||||
30
legacy_modules/dev/k8s.nix
Normal file
30
legacy_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";
|
||||
};
|
||||
};
|
||||
}
|
||||
5
legacy_modules/dev/postgres.nix
Normal file
5
legacy_modules/dev/postgres.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.postgresql
|
||||
];
|
||||
}
|
||||
18
legacy_modules/dev/python.nix
Normal file
18
legacy_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
legacy_modules/dev/tilt.nix
Normal file
5
legacy_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