aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-15 12:27:46 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-15 12:27:46 -0800
commit28b0f67914b11069d3afddd42b574197126b846d (patch)
tree84c1c1ad6d33e38c7d882cd2dac60e45b7bb9cb2
parentfix name of systemd unit for fcuny-net (diff)
downloadx-28b0f67914b11069d3afddd42b574197126b846d.tar.gz
rename fcuny-net to website
-rw-r--r--flake.nix6
-rw-r--r--nix/modules/website.nix (renamed from nix/modules/fcuny.net.nix)8
-rw-r--r--nix/packages/default.nix2
-rw-r--r--nix/packages/website.nix (renamed from nix/packages/fcuny.net.nix)6
4 files changed, 11 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index f96be8b..1bb3e90 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,10 +25,10 @@
# Import NixOS modules
nixosModules = {
- fcuny-net = import ./nix/modules/fcuny.net.nix;
+ website = import ./nix/modules/website.nix;
default = {
imports = [
- ./nix/modules/fcuny.net.nix
+ ./nix/modules/website.nix
];
};
};
@@ -68,7 +68,7 @@
in
{
packages = packages // {
- default = packages.fcuny-net;
+ default = packages.website;
};
formatter = treefmtEval.config.build.wrapper;
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";
};
}