pushing for review

This commit is contained in:
specCon18 2024-04-11 01:21:49 -04:00
parent 786ca732aa
commit dd67b2592c
72 changed files with 1142 additions and 1447 deletions

View file

@ -0,0 +1,9 @@
{pkgs,config,...}:{
imports = [
./tailscale.nix
./pipewire.nix
];
speccon18.tailscale.enable = true;
speccon18.sound.pipewire.enable = true;
}

View file

@ -0,0 +1,23 @@
# https://nixos.wiki/wiki/PipeWire
{pkgs,config,lib, ...}:
{
options.speccon18.sound.pipewire.enable = lib.mkEnableOption "enable pipewire with jack integrations";
config = lib.mkIf config.speccon18.sound.pipewire.enable {
environment.systemPackages = with pkgs; [
pipewire
wireplumber
];
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
};
};
}

View file

@ -0,0 +1,13 @@
{ pkgs, config, lib, ... }: {
options.speccon18.tailscale.enable = lib.mkEnableOption "enables the tailscale service and sets the package to use";
config = lib.mkIf config.speccon18.tailscale.enable {
# make the tailscale command usable to users
environment.systemPackages = with pkgs;[
pkgs.tailscale
];
# enable the tailscale service
services.tailscale.enable = true;
};
}