add data/services.nix for shared service definitions
Creates a standalone data file that can be imported by both aspects/constants.nix and terranix configurations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
848f79f8bb
commit
bde5e2aabc
20 changed files with 189 additions and 57 deletions
|
|
@ -1,10 +1,7 @@
|
|||
# aspects/server/boot.nix
|
||||
{ inputs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
flake.modules.nixos.server-boot = { config, lib, pkgs, ... }: {
|
||||
# Import parent aspect for inheritance
|
||||
imports = [ inputs.self.modules.nixos.common-boot ];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_hardened;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
flake.modules.nixos.server-nix = { config, lib, pkgs, ... }: {
|
||||
# Import parent aspect for inheritance
|
||||
imports = [ inputs.self.modules.nixos.common-nix ];
|
||||
|
||||
environment.etc."channels/nixpkgs".source = inputs.nixpkgs-stable.outPath;
|
||||
|
||||
nix = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
# aspects/server/tailscale.nix
|
||||
{ inputs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
flake.modules.nixos.server-tailscale = { config, lib, pkgs, ... }: {
|
||||
# Import parent aspect for inheritance
|
||||
imports = [ inputs.self.modules.nixos.common-tailscale ];
|
||||
|
||||
services.tailscale = {
|
||||
extraSetFlags = [ "--advertise-exit-node" ];
|
||||
useRoutingFeatures = "server";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue