aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-25 08:26:40 +0100
committerMartin Fischer <martin@push-f.com>2026-10-25 08:26:40 +0100
commit8207e9a5ee305358b43101eef291069fcdee3d79 (patch)
treeadfd82419f8bd12e025dcc29d4b32e3c09d8db71
parent067e52bc973931680da025b4f012f92f94bdbe53 (diff)
refactor: rename package and service to geopos
-rw-r--r--default.nix2
-rw-r--r--service.nix10
2 files changed, 6 insertions, 6 deletions
diff --git a/default.nix b/default.nix
index 5b1f258..13268b1 100644
--- a/default.nix
+++ b/default.nix
@@ -1,7 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
- name = "geopos-share";
+ name = "geopos";
src = ./src;
diff --git a/service.nix b/service.nix
index f10c4ab..0b03630 100644
--- a/service.nix
+++ b/service.nix
@@ -1,16 +1,16 @@
{ config, lib, pkgs, ... }:
let
- geoposShare = pkgs.callPackage ./default.nix {};
- cfg = config.services.geopos-share;
+ geopos = pkgs.callPackage ./default.nix {};
+ cfg = config.services.geopos;
nginxVhostOptions =
(import <nixpkgs/nixos/modules/services/web-servers/nginx/vhost-options.nix> {
inherit config lib;
}).options;
in
{
- options.services.geopos-share = {
- enable = lib.mkEnableOption "geopos-share";
+ options.services.geopos = {
+ enable = lib.mkEnableOption "geopos";
virtualHost = lib.mkOption {
type = lib.types.str;
@@ -32,7 +32,7 @@ in
virtualHosts.${cfg.virtualHost} = lib.mkMerge [
cfg.nginx
{
- root = "${geoposShare}";
+ root = "${geopos}";
}
];
};