orm: serve actual
This commit is contained in:
parent
59bbcc165e
commit
8b04d9039e
46
flake.lock
46
flake.lock
|
@ -1,5 +1,24 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"actual": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1725392458,
|
||||||
|
"narHash": "sha256-sp1Ps5XBrIwDE0e2QOm2dJRRJ12aEWtJBhzohFwn+K4=",
|
||||||
|
"ref": "main",
|
||||||
|
"rev": "4cc6a8289f809ec4470eb01429aa6ed548349a56",
|
||||||
|
"revCount": 14,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.xeno.science/xenofem/actual-nix"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "main",
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.xeno.science/xenofem/actual-nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
"agenix": {
|
"agenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": [],
|
"darwin": [],
|
||||||
|
@ -137,16 +156,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726969270,
|
"lastModified": 1725103162,
|
||||||
"narHash": "sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0+esxqizGc=",
|
"narHash": "sha256-Ym04C5+qovuQDYL/rKWSR+WESseQBbNAe5DsXNx5trY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "23cbb250f3bf4f516a2d0bf03c51a30900848075",
|
"rev": "12228ff1752d7b7624a54e9c1af4b222b3c1073b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.05",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -167,6 +186,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1726969270,
|
||||||
|
"narHash": "sha256-8fnFlXBgM/uSvBlLWjZ0Z0sOdRBesyNdH0+esxqizGc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "23cbb250f3bf4f516a2d0bf03c51a30900848075",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727141325,
|
"lastModified": 1727141325,
|
||||||
|
@ -223,11 +258,12 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"actual": "actual",
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"birdsong": "birdsong",
|
"birdsong": "birdsong",
|
||||||
"colmena": "colmena",
|
"colmena": "colmena",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgsSmall": "nixpkgsSmall",
|
"nixpkgsSmall": "nixpkgsSmall",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"plasma-manager": "plasma-manager",
|
"plasma-manager": "plasma-manager",
|
||||||
|
|
|
@ -33,10 +33,11 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
actual.url = "git+https://git.xeno.science/xenofem/actual-nix?ref=main";
|
||||||
birdsong.url = "git+https://git.qenya.tel/qenya/birdsong?ref=main";
|
birdsong.url = "git+https://git.qenya.tel/qenya/birdsong?ref=main";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, nixpkgsSmall, home-manager, plasma-manager, nur, agenix, colmena, randomcat, birdsong, ... }: {
|
outputs = inputs@{ self, nixpkgs, nixpkgsSmall, home-manager, plasma-manager, nur, agenix, colmena, randomcat, actual, birdsong, ... }: {
|
||||||
nixosConfigurations = (colmena.lib.makeHive self.outputs.colmena).nodes;
|
nixosConfigurations = (colmena.lib.makeHive self.outputs.colmena).nodes;
|
||||||
|
|
||||||
# The name of this output type is not standardised. I have picked
|
# The name of this output type is not standardised. I have picked
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
{ nixpkgs.overlays = [ nur.overlay ]; }
|
{ nixpkgs.overlays = [ nur.overlay ]; }
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
birdsong.nixosModules.default
|
birdsong.nixosModules.default
|
||||||
|
actual.nixosModules.default
|
||||||
./common
|
./common
|
||||||
./services
|
./services
|
||||||
(builtins.toPath "${randomcat}/services/default.nix")
|
(builtins.toPath "${randomcat}/services/default.nix")
|
||||||
|
|
|
@ -21,5 +21,15 @@
|
||||||
privateKeyFile = config.age.secrets.wireguard-peer-orm.path;
|
privateKeyFile = config.age.secrets.wireguard-peer-orm.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
randomcat.services.zfs.datasets = {
|
||||||
|
"rpool_orm/state" = { mountpoint = "none"; };
|
||||||
|
"rpool_orm/state/actual" = { mountpoint = "/var/lib/actual"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
qenya.services.actual = {
|
||||||
|
enable = true;
|
||||||
|
domain = "actual.qenya.tel";
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
31
services/actual.nix
Normal file
31
services/actual.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.qenya.services.actual;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.qenya.services.actual = {
|
||||||
|
enable = mkEnableOption "Actual";
|
||||||
|
domain = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
${cfg.domain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:5006/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
services.actual.enable = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./actual.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./pipewire-low-latency.nix
|
./pipewire-low-latency.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue