Unified home and system modules!
This commit is contained in:
14
modules/system/bluetooth.nix
Normal file
14
modules/system/bluetooth.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, self, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.system.bluetooth;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.system.bluetooth = {
|
||||
enable = lib.mkEnableOption "bluetooth";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
};
|
||||
}
|
||||
15
modules/system/tailscale.nix
Normal file
15
modules/system/tailscale.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.samfelag.modules.system.tailscale;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.system.tailscale = {
|
||||
enable = lib.mkEnableOption "tailscale";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
# See https://github.com/tailscale/tailscale/issues/4432
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
services.tailscale.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user