aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-15 12:11:43 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-15 12:11:43 -0800
commitde1bf48711ca27f3d6e57e46085df1f667d1bf31 (patch)
tree89617f9e987390d07efbacb91e0172c9f5d511fa /nix
parentignore errors (diff)
downloadx-de1bf48711ca27f3d6e57e46085df1f667d1bf31.tar.gz
remove goget as a package and switch to fcuny-net instead
Diffstat (limited to 'nix')
-rw-r--r--nix/modules/fcuny.net.nix (renamed from nix/modules/goget.nix)14
-rw-r--r--nix/packages/default.nix1
-rw-r--r--nix/packages/goget.nix31
3 files changed, 7 insertions, 39 deletions
diff --git a/nix/modules/goget.nix b/nix/modules/fcuny.net.nix
index 3ed5e04..39f5bef 100644
--- a/nix/modules/goget.nix
+++ b/nix/modules/fcuny.net.nix
@@ -8,13 +8,13 @@
with lib;
let
- cfg = config.services.goget;
+ cfg = config.services.fcuny-net;
in
{
- options.services.goget = {
- enable = mkEnableOption "goget service";
+ options.services.fcuny-net = {
+ enable = mkEnableOption "fcuny.net service";
- package = mkPackageOption pkgs "goget" { };
+ package = mkPackageOption pkgs "fcuny.net" { };
port = mkOption {
type = types.port;
@@ -30,8 +30,8 @@ in
};
config = mkIf cfg.enable {
- systemd.services.goget = {
- description = "goget service";
+ systemd.services.fcuny.net = {
+ description = "fcuny.net service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
wants = [ "network.target" ];
@@ -39,7 +39,7 @@ in
serviceConfig = {
Type = "exec";
DynamicUser = true;
- ExecStart = "${cfg.package}/bin/goget";
+ ExecStart = "${cfg.package}/bin/fcuny-net";
Restart = "always";
RestartSec = "5";
diff --git a/nix/packages/default.nix b/nix/packages/default.nix
index 4b4195b..81fb9eb 100644
--- a/nix/packages/default.nix
+++ b/nix/packages/default.nix
@@ -1,6 +1,5 @@
{ pkgs }:
{
- goget = pkgs.callPackage ./goget.nix { };
fcuny.net = pkgs.callPackage ./fcuny.net.nix { };
}
diff --git a/nix/packages/goget.nix b/nix/packages/goget.nix
deleted file mode 100644
index fe9e4e1..0000000
--- a/nix/packages/goget.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- lib,
- buildGoModule,
-}:
-
-buildGoModule rec {
- pname = "goget";
- version = "0.1.0"; # Consider deriving from git tags: version = builtins.substring 0 8 self.rev;
-
- src = ../..;
-
- vendorHash = "sha256-ylmCf+NJiNba0W1IhQMJVH+kwDDYU9gB6D90QAYnIyA=";
-
- subPackages = [ "cmd/goget" ];
-
- ldflags = [
- "-s"
- "-w"
- ];
-
- doCheck = false;
-
- meta = with lib; {
- description = "A Go tool for getting things"; # Update with actual description
- homepage = "https://github.com/yourusername/yourrepo"; # Update with your repo
- license = licenses.mit;
- maintainers = with maintainers; [ fcuny ];
- platforms = platforms.unix;
- mainProgram = "goget";
- };
-}