use bezel flake

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-11-18 23:33:32 -06:00
parent df3057b347
commit 4a3e0290d0
12 changed files with 68 additions and 326 deletions

View file

@ -12,6 +12,8 @@
flatpaks.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/flatpaks";
# hyprland.url = "path:../../flakes/hyprland";
hyprland.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/hyprland";
# beszel.url = "path:../../flakes/beszel";
beszel.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/beszel";
ros_neovim.url = "git+https://git.joshuabell.xyz/ringofstorms/nvim";
};
@ -24,6 +26,7 @@
secrets,
flatpaks,
hyprland,
beszel,
ros_neovim,
...
}:
@ -32,6 +35,7 @@
system = "x86_64-linux";
stateVersion = "25.05";
primaryUser = "josh";
overlayIp = "100.64.0.5";
lib = nixpkgs.lib;
in
{
@ -67,6 +71,17 @@
common.nixosModules.tty_caps_esc
common.nixosModules.zsh
beszel.nixosModules.agent
(
{ ... }:
{
beszelAgent = {
listen = "${overlayIp}:45876";
token = "20208198-87c2-4bd1-ab09-b97c3b9c6a6e";
};
}
)
./configuration.nix
./hardware-configuration.nix
# ./sway_customizations.nix

View file

@ -1,31 +0,0 @@
{
inputs,
config,
...
}:
let
declaration = "services/monitoring/beszel-agent.nix";
nixpkgs = inputs.beszel-nixpkgs;
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
in
{
disabledModules = [ declaration ];
imports = [ "${nixpkgs}/nixos/modules/${declaration}" ];
config = {
services.beszel.agent = {
package = pkgs.beszel;
enable = true;
environment = {
SYSTEM_NAME = config.networking.hostName;
LISTEN = "100.64.0.13:45876";
HUB_URL = "http://100.64.0.13:8090";
# TODO this is only safe since I am running it in the overlay network only, rotate all keys if we change that.
TOKEN = "20208198-87c2-4bd1-ab09-b97c3b9c6a6e";
KEY = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcAr8fbW4XyfL/tCMeMtD+Ou/FFywCNfsHdyvYs3qXf";
};
};
};
}