major rewrite

This commit is contained in:
Charlie Root 2024-08-16 16:03:47 +02:00
commit 4adf705a13
20 changed files with 50 additions and 294 deletions

View file

@ -0,0 +1,19 @@
{
config,
lib,
...
}: let
inherit (config.modules.system.hardware.sound) pipewire;
inherit (lib) mkIf;
in {
config = mkIf pipewire.enable {
services.pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
jack.enable = true;
alsa.enable = true;
};
};
}

View file

@ -7,6 +7,7 @@
imports = [
./documentation.nix # nixos documentation
./nixpkgs.nix # global nixpkgs configuration.nix
./registry.nix
];
nix = {

View file

@ -0,0 +1,22 @@
{
inputs,
pkgs,
...
}: let
inherit (inputs) nixpkgs;
nixpkgsPath = nixpkgs.outPath;
in {
# Big thanks to Dianimo for this!
nix = {
registry = {
nixpkgs.flake = inputs.nixpkgs;
default.flake = inputs.nixpkgs;
};
nixPath = [
"nixpkgs=${nixpkgsPath}"
"n=${nixpkgsPath}"
"default=${nixpkgsPath}"
];
};
}