aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-14 08:56:53 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-14 08:56:53 -0700
commitc4afe667db7734f41de3fca9d1c18e309abcc1d8 (patch)
tree3b3d88d4c7c38a1758d5313e8116181900b8e864 /flake.nix
parentcreate common network configuration for nixos (diff)
downloadinfra-c4afe667db7734f41de3fca9d1c18e309abcc1d8.tar.gz
import my website under `src`
This does not import the history of the previous repository.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 5d21c49..f3d31ff 100644
--- a/flake.nix
+++ b/flake.nix
@@ -102,6 +102,13 @@
;
};
+ mkFcunyNet =
+ system:
+ let
+ pkgs = getPkgs system;
+ in
+ import ./src/fcuny.net { inherit pkgs; };
+
# Create a treefmt-nix evaluation for a system
mkTreefmtEval =
system:
@@ -144,6 +151,29 @@
};
in
{
+ packages = forAllSystems (
+ system:
+ let
+ fcunyNet = mkFcunyNet system;
+ in
+ {
+ "fcuny_net" = fcunyNet.site;
+ }
+ );
+
+ apps = forAllSystems (
+ system:
+ let
+ fcunyNet = mkFcunyNet system;
+ in
+ {
+ "fcuny_net-serve" = {
+ type = "app";
+ program = "${fcunyNet.serve}/bin/serve-fcuny-net";
+ };
+ }
+ );
+
# nix fmt
formatter = forAllSystems (
system: