Format with alejandra

This commit is contained in:
blahai 2024-12-20 15:11:42 +02:00
parent 4771948682
commit e08f66d286
No known key found for this signature in database
31 changed files with 398 additions and 278 deletions

View file

@ -1,6 +1,5 @@
{ inputs, ... }:
{
imports = [ inputs.catppuccin.nixosModules.catppuccin ];
{inputs, ...}: {
imports = [inputs.catppuccin.nixosModules.catppuccin];
config.catppuccin = {
enable = true;

View file

@ -1,8 +1,12 @@
{ config, pkgs, inputs, ... }: {
{
config,
pkgs,
inputs,
...
}: {
nixpkgs = {
overlays = [ inputs.nur.overlays.default ];
config = { allowUnfree = true; };
overlays = [inputs.nur.overlays.default];
config = {allowUnfree = true;};
};
environment.systemPackages = with pkgs; [

View file

@ -1,7 +1,11 @@
{ pkgs, config, ... }: {
{
pkgs,
config,
...
}: {
hardware.bluetooth = {
enable = true;
settings = { General = { Experimental = true; }; };
settings = {General = {Experimental = true;};};
};
services.blueman.enable = true;
}

View file

@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
imports = [
./pipewire.nix
./tailscale.nix

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
services.jellyfin = {
enable = true;
openFirewall = true;

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }: {
{
config,
lib,
pkgs,
...
}: {
services = {
pipewire = {
enable = true;
@ -17,10 +22,12 @@
};
};
pipewire-pulse."92-low-latency" = {
"context.properties" = [{
name = "libpipewire-module-protocol-pulse";
args = { };
}];
"context.properties" = [
{
name = "libpipewire-module-protocol-pulse";
args = {};
}
];
"pulse.properties" = {
"pulse.min.req" = "32/48000";
"pulse.default.req" = "32/48000";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
services.tailscale = {
enable = true;
useRoutingFeatures = "client";

View file

@ -1,12 +1,17 @@
{ pkgs, lib, config, ... }:
let enableIOMMU = true;
{
pkgs,
lib,
config,
...
}: let
enableIOMMU = true;
in {
boot = lib.mkIf enableIOMMU {
initrd.kernelModules = lib.mkBefore [
"kvm-amd"
"vfio_pci"
"vfio_iommu_type1"
"vfio"
initrd.kernelModules = lib.mkBefore [
"kvm-amd"
"vfio_pci"
"vfio_iommu_type1"
"vfio"
];
kernelParams = [
"amd_iommu=on"
@ -35,13 +40,12 @@ in {
};
};
docker = { enable = true; };
docker = {enable = true;};
};
programs = { virt-manager = { enable = true; }; };
programs = {virt-manager = {enable = true;};};
users.users.pingu.extraGroups =
[ "qemu-libvirtd" "libvirtd" "disk" "kvm" "docker" ];
users.users.pingu.extraGroups = ["qemu-libvirtd" "libvirtd" "disk" "kvm" "docker"];
environment.systemPackages = with pkgs; [
python3 # scripts, cba to use nix shell all the time