Skip to content

Commit

Permalink
Add nix-serve
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Oct 14, 2024
1 parent 54c49d1 commit 683a642
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/home-manager/server/services/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{lib, ...}: {
imports = [
./nix-serve.nix
];

nix-serve.enable = lib.mkDefault true;
}
14 changes: 14 additions & 0 deletions modules/home-manager/server/services/nix-serve.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
pkgs,
lib,
config,
...
}: {
options.nix-serve.enable = lib.mkEnableOption "Configure nix-serve for standalone home-manager";

config = lib.mkIf config.nix-serve.enable {
home.packages = with pkgs; [
nix-serve
];
};
}

0 comments on commit 683a642

Please sign in to comment.