diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-11-15 12:27:46 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-11-15 12:27:46 -0800 |
| commit | 28b0f67914b11069d3afddd42b574197126b846d (patch) | |
| tree | 84c1c1ad6d33e38c7d882cd2dac60e45b7bb9cb2 /nix | |
| parent | fix name of systemd unit for fcuny-net (diff) | |
| download | x-28b0f67914b11069d3afddd42b574197126b846d.tar.gz | |
rename fcuny-net to website
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/modules/website.nix (renamed from nix/modules/fcuny.net.nix) | 8 | ||||
| -rw-r--r-- | nix/packages/default.nix | 2 | ||||
| -rw-r--r-- | nix/packages/website.nix (renamed from nix/packages/fcuny.net.nix) | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/nix/modules/fcuny.net.nix b/nix/modules/website.nix index eaab7d2..5c82e34 100644 --- a/nix/modules/fcuny.net.nix +++ b/nix/modules/website.nix @@ -8,13 +8,13 @@ with lib; let - cfg = config.services.fcuny-net; + cfg = config.services.website; in { - options.services.fcuny-net = { + options.services.website = { enable = mkEnableOption "fcuny.net service"; - package = mkPackageOption pkgs "fcuny.net" { }; + package = mkPackageOption pkgs "website" { }; port = mkOption { type = types.port; @@ -30,7 +30,7 @@ in }; config = mkIf cfg.enable { - systemd.services.fcuny-net = { + systemd.services.website = { description = "fcuny.net service"; wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; diff --git a/nix/packages/default.nix b/nix/packages/default.nix index 81fb9eb..87c1b99 100644 --- a/nix/packages/default.nix +++ b/nix/packages/default.nix @@ -1,5 +1,5 @@ { pkgs }: { - fcuny.net = pkgs.callPackage ./fcuny.net.nix { }; + website = pkgs.callPackage ./website.nix { }; } diff --git a/nix/packages/fcuny.net.nix b/nix/packages/website.nix index e9ce950..880c93b 100644 --- a/nix/packages/fcuny.net.nix +++ b/nix/packages/website.nix @@ -4,7 +4,7 @@ }: buildGoModule rec { - pname = "fcuny.net"; + pname = "fcuny-net"; version = "0.1.0"; # Consider deriving from git tags: version = builtins.substring 0 8 self.rev; src = ../..; @@ -22,10 +22,10 @@ buildGoModule rec { meta = with lib; { description = "My personal website"; - homepage = "https://code.fcuny.net/fcuny/x/app/fcuny-net"; + homepage = "https://code.fcuny.net/x/tree/app/fcuny-net"; license = licenses.mit; maintainers = with maintainers; [ fcuny ]; platforms = platforms.unix; - mainProgram = "fcuny-net"; + mainProgram = "bin/fcuny-net"; }; } |
