diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-11-15 12:11:43 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-11-15 12:11:43 -0800 |
| commit | de1bf48711ca27f3d6e57e46085df1f667d1bf31 (patch) | |
| tree | 89617f9e987390d07efbacb91e0172c9f5d511fa | |
| parent | ignore errors (diff) | |
| download | x-de1bf48711ca27f3d6e57e46085df1f667d1bf31.tar.gz | |
remove goget as a package and switch to fcuny-net instead
| -rw-r--r-- | flake.nix | 6 | ||||
| -rw-r--r-- | nix/modules/fcuny.net.nix (renamed from nix/modules/goget.nix) | 14 | ||||
| -rw-r--r-- | nix/packages/default.nix | 1 | ||||
| -rw-r--r-- | nix/packages/goget.nix | 31 |
4 files changed, 10 insertions, 42 deletions
@@ -25,10 +25,10 @@ # Import NixOS modules nixosModules = { - goget = import ./nix/modules/goget.nix; + fcuny-net = import ./nix/modules/fcuny.net.nix; default = { imports = [ - ./nix/modules/goget.nix + ./nix/modules/fcuny.net.nix ]; }; }; @@ -68,7 +68,7 @@ in { packages = packages // { - default = packages.goget; + default = packages.fcuny-net; }; formatter = treefmtEval.config.build.wrapper; 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"; - }; -} |
