update gitea
This commit is contained in:
1 parent
87c4a50e29
commit
c889c4b2de
4 files changed
+9
-37
No files matched your search
Generated
+3
-3
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787525875,
|
"lastModified": 1790340521,
|
||||||
"narHash": "sha256-sKbMlkDCBVmAjUVT94LwhVtET/YEMtZaFdn5UduWxz8=",
|
"narHash": "sha256-cRrWlIjVRJ6BHDr9caUdXsZ3owzWIKYHpNmGPHBInIU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a3b98866eecd08edac6e61a3081e69540a35020f",
|
"rev": "f5c082a40f7571c266e74e80ae2e68aadd8a9fc7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
image: docker.gitea.com/gitea:1.27.2
|
image: docker.gitea.com/gitea:1.27.3
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||||
postgresql-db.url = "path:../../homelab-services/postgresql-db";
|
postgresql-db.url = "path:../../homelab-services/postgresql-db";
|
||||||
sops-nix = {
|
|
||||||
url = "github:Mic92/sops-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
@@ -24,7 +20,6 @@
|
|||||||
modules = [
|
modules = [
|
||||||
./virtual.nix
|
./virtual.nix
|
||||||
postgresql-db.nixosModules.postgresql-db
|
postgresql-db.nixosModules.postgresql-db
|
||||||
sops-nix.nixosModules.sops
|
|
||||||
|
|
||||||
# declare the vm output
|
# declare the vm output
|
||||||
"${inputs.nixpkgs}/nixos/modules/virtualisation/incus-virtual-machine.nix"
|
"${inputs.nixpkgs}/nixos/modules/virtualisation/incus-virtual-machine.nix"
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
meta,
|
meta,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
# Decrypt credentials to use in VM
|
||||||
|
# This exposes them in the VM. Images should be considered 'confidential'
|
||||||
|
# Though all secrets here should really only be able to access things inside the VM
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
@@ -44,33 +48,6 @@
|
|||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
|
||||||
# ================================ #
|
|
||||||
# SOPS #
|
|
||||||
# ================================ #
|
|
||||||
|
|
||||||
sops = {
|
|
||||||
# make sure that the age key is generated from the persisted host key
|
|
||||||
age = {
|
|
||||||
sshKeyPaths = [ "/persist/etc/ssh/ssh_host_ed25519_key" ];
|
|
||||||
keyFile = "/persist/var/lib/sops-nix/key.txt";
|
|
||||||
generateKey = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
|
|
||||||
secrets = {
|
|
||||||
"postgresql-credentials" = {
|
|
||||||
sopsFile = ./secrets/psql.yaml;
|
|
||||||
key = "credentials";
|
|
||||||
format = "yaml";
|
|
||||||
owner = "postgres";
|
|
||||||
group = "postgres";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
|
|
||||||
|
|
||||||
# ================================ #
|
# ================================ #
|
||||||
# K3S SERVICE #
|
# K3S SERVICE #
|
||||||
# ================================ #
|
# ================================ #
|
||||||
@@ -97,7 +74,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/var/lib/postgresql";
|
dataDir = "/var/lib/postgresql";
|
||||||
port = 5432;
|
port = 5432;
|
||||||
credentialsFile = config.sops.secrets."postgresql-credentials".path;
|
credentialsFile = "";
|
||||||
databases = [
|
databases = [
|
||||||
"test"
|
"test"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user