🔥 remove homestar
This commit is contained in:
parent
e49bed2b6d
commit
12a0213098
1796
flake.lock
generated
1796
flake.lock
generated
File diff suppressed because it is too large
Load Diff
@ -37,12 +37,6 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fission packages
|
|
||||||
fission = {
|
|
||||||
url = "github:fission-codes/nix-overlay";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
# My stuff
|
# My stuff
|
||||||
dotfiles = {
|
dotfiles = {
|
||||||
url = "github:walkah/dotfiles";
|
url = "github:walkah/dotfiles";
|
||||||
@ -60,7 +54,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, deploy-rs, pre-commit-hooks, fission, workon, ... }@inputs:
|
outputs = { self, nixpkgs, flake-utils, deploy-rs, pre-commit-hooks, workon, ... }@inputs:
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
@ -77,7 +71,6 @@
|
|||||||
// {
|
// {
|
||||||
hosts = import ./nix/hosts.nix;
|
hosts = import ./nix/hosts.nix;
|
||||||
overlays.default = nixpkgs.lib.composeManyExtensions [
|
overlays.default = nixpkgs.lib.composeManyExtensions [
|
||||||
fission.overlay
|
|
||||||
workon.overlays.default
|
workon.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ in
|
|||||||
../../modules/postgresql
|
../../modules/postgresql
|
||||||
../../modules/sops
|
../../modules/sops
|
||||||
../../modules/traefik
|
../../modules/traefik
|
||||||
|
|
||||||
../../services/homestar.nix
|
|
||||||
];
|
];
|
||||||
boot = {
|
boot = {
|
||||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
@ -115,9 +113,6 @@ in
|
|||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
filesystems-parthenon = { };
|
filesystems-parthenon = { };
|
||||||
plato-homestar = {
|
|
||||||
owner = "homestar";
|
|
||||||
};
|
|
||||||
upsmon = { };
|
upsmon = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -136,27 +131,6 @@ in
|
|||||||
startAt = "daily";
|
startAt = "daily";
|
||||||
};
|
};
|
||||||
|
|
||||||
homestar = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
node.network = {
|
|
||||||
keypair_config = {
|
|
||||||
existing = {
|
|
||||||
key_type = "ed25519";
|
|
||||||
inherit (secrets.plato-homestar) path;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
libp2p = {
|
|
||||||
node_addresses = [
|
|
||||||
"/dns4/homestar.fission.dev/tcp/7001/p2p/12D3KooWGvhfR6UF1sxqMiGLHS17STtAz9wdwjg7huq28scqJxHz"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
rpc = {
|
|
||||||
port = 9820;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
grafana = {
|
grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
|
|
||||||
# My stuff
|
# My stuff
|
||||||
homestar
|
|
||||||
workon
|
workon
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ akkoma-vapid-public-key: ENC[AES256_GCM,data:HnUAyTq7dwa+A9L1X3YyxkiJ71BoZis5TdE
|
|||||||
akkoma-joken-signer: ENC[AES256_GCM,data:6GbXC7teDXxr0z7eBLm9EvJv59Bvd1FqRuBGntAH9YzM79MVUMsx4JnCZ+bPR9hLiIVgITeAc5djk2tiJewh6w==,iv:q7A8f7kocb1Go7acFkVSxdmhObPxpGlfbPgfrOXHEjg=,tag:lS4UNS1ivVZdmm8AMS/1MQ==,type:str]
|
akkoma-joken-signer: ENC[AES256_GCM,data:6GbXC7teDXxr0z7eBLm9EvJv59Bvd1FqRuBGntAH9YzM79MVUMsx4JnCZ+bPR9hLiIVgITeAc5djk2tiJewh6w==,iv:q7A8f7kocb1Go7acFkVSxdmhObPxpGlfbPgfrOXHEjg=,tag:lS4UNS1ivVZdmm8AMS/1MQ==,type:str]
|
||||||
filesystems-parthenon: ENC[AES256_GCM,data:dYO+QjvWhR3oXrDfAEaUvTLx147NIDFcPUa7p3Jv558ynqmmEnVZ3+fVMUQVIw==,iv:ASmXqNA8/TZvSRo31CFAzt6StsZzZpVFvz15LN5+QmQ=,tag:Wx6kDCXqZ1iSmxpggBKVxA==,type:str]
|
filesystems-parthenon: ENC[AES256_GCM,data:dYO+QjvWhR3oXrDfAEaUvTLx147NIDFcPUa7p3Jv558ynqmmEnVZ3+fVMUQVIw==,iv:ASmXqNA8/TZvSRo31CFAzt6StsZzZpVFvz15LN5+QmQ=,tag:Wx6kDCXqZ1iSmxpggBKVxA==,type:str]
|
||||||
upsmon: ENC[AES256_GCM,data:Rlqkhh7w8S9jD3mwUdkt3g==,iv:hiMkbAhea1f6r5gGTRw49ebepMtTYBVyH+bHwp/T61Q=,tag:cbaxIDuD4JNeCC5MiMGl6w==,type:str]
|
upsmon: ENC[AES256_GCM,data:Rlqkhh7w8S9jD3mwUdkt3g==,iv:hiMkbAhea1f6r5gGTRw49ebepMtTYBVyH+bHwp/T61Q=,tag:cbaxIDuD4JNeCC5MiMGl6w==,type:str]
|
||||||
plato-homestar: ENC[AES256_GCM,data:KfdlHUSy7Wtc9TpKaNm7e2XvE+QXwuuQiqRKTKLbTcgPT+Vq4kCcU4nW4cXh0/Tw1BhPca3t2BCJdnjKxTQ48ooplPQuWwdYjPNbXotXO7wVyTlJwtPtNPAFmr9x1nah/SOd5gMi3sW8bx2jL/tUzQ3A86fI1ks=,iv:YWMZY5+0SfORfWFYevsdv0fHxqjBFOgIOams3DvCCBQ=,tag:dT4ubjuqYve5InxuEAVelQ==,type:str]
|
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
@ -80,8 +79,8 @@ sops:
|
|||||||
dFZacUhiZDFxK0xZMDJJeCtQUmtuSGcKVz2TOsyw5F4mpFgbZnkWPjQPB7nSKkzd
|
dFZacUhiZDFxK0xZMDJJeCtQUmtuSGcKVz2TOsyw5F4mpFgbZnkWPjQPB7nSKkzd
|
||||||
96r8RHs8CrlSpBUP6TG6Q+Tz77G1XIgcZrN9EVyYCQB7zOukIdZ5zw==
|
96r8RHs8CrlSpBUP6TG6Q+Tz77G1XIgcZrN9EVyYCQB7zOukIdZ5zw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-03-15T14:18:53Z"
|
lastmodified: "2024-08-25T17:15:30Z"
|
||||||
mac: ENC[AES256_GCM,data:WbnsF/YBxeLlRTNqgvXvssLhOsYUnHuABSpIJ2dFAnThbEv9U5q5ERDpBb1OPyHmM5qtNt7ENBkOSIZEXK1QIbrRTl2Uva4Nqm/lfvSBcczrcvlnn76jK3IFlLk5TselPZCkMmlW3qbCjsOBXFWXydciAwPG9NC0uLhfJhiWXzM=,iv:WhHCmSroTgO8+8CmjH4hiGUScwl9bwse/icswMrqfJE=,tag:jDKToUBC/rmG+RsitxVg/A==,type:str]
|
mac: ENC[AES256_GCM,data:ZvvD8D4Lv3vbz4Le5/aUjlRbKA3Iqr7f6hSPBRg7t4+3ohBkOn1HMV8UjXUt8ixnUBTAw4/FfT0nzGKB9p2dzRGif8mPB85y//ZPUfQ6DDfUp7gZkMlo5Dnr2rvNQDoFH3bb+L99UDqh9UYUp3SkGnR0VXF1TfUOoCfu0hfzzDo=,iv:onc7AXgH9K6Qxjur6MBRdCdtJcrP6TGtTNdZll9grrQ=,tag:7PjPlc4W4Xrk3M1WckXoqg==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.8.1
|
version: 3.9.0
|
||||||
|
@ -1,85 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.services.homestar;
|
|
||||||
|
|
||||||
format = pkgs.formats.toml { };
|
|
||||||
configFile = format.generate "homestar.toml" cfg.settings;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.services.homestar = {
|
|
||||||
enable = mkEnableOption "homestar";
|
|
||||||
|
|
||||||
package = mkPackageOption pkgs "homestar" { };
|
|
||||||
|
|
||||||
settings = mkOption {
|
|
||||||
inherit ((pkgs.formats.json { })) type;
|
|
||||||
default = { };
|
|
||||||
description = "Homestar settings";
|
|
||||||
};
|
|
||||||
|
|
||||||
user = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
default = "homestar";
|
|
||||||
description = "User under which the Homestar daemon runs";
|
|
||||||
};
|
|
||||||
|
|
||||||
group = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
default = "homestar";
|
|
||||||
description = "Group under which the Homestar daemon runs";
|
|
||||||
};
|
|
||||||
|
|
||||||
dataDir = mkOption {
|
|
||||||
type = types.path;
|
|
||||||
default = "/var/lib/homestar";
|
|
||||||
description = "Homestar data directory";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
environment.systemPackages = [ cfg.package pkgs.sqlite ];
|
|
||||||
networking.firewall = {
|
|
||||||
allowPing = true;
|
|
||||||
allowedTCPPorts = [
|
|
||||||
1337
|
|
||||||
3030
|
|
||||||
4000
|
|
||||||
7001
|
|
||||||
];
|
|
||||||
allowedUDPPorts = [
|
|
||||||
7001
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users = mkIf (cfg.user == "homestar") {
|
|
||||||
homestar = {
|
|
||||||
inherit (cfg) group;
|
|
||||||
home = cfg.dataDir;
|
|
||||||
createHome = true;
|
|
||||||
isSystemUser = true;
|
|
||||||
description = "Homestar daemon user";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups = mkIf (cfg.group == "homestar") {
|
|
||||||
homestar = { };
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.homestar = {
|
|
||||||
description = "Homestar daemon";
|
|
||||||
after = [ "network.target" ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${cfg.package}/bin/homestar start --config ${configFile}";
|
|
||||||
Restart = "always";
|
|
||||||
User = cfg.user;
|
|
||||||
Group = cfg.group;
|
|
||||||
WorkingDirectory = cfg.dataDir;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user