mirror of
https://github.com/blahai/nyx.git
synced 2025-06-08 07:03:01 -04:00
Format with alejandra
This commit is contained in:
parent
4771948682
commit
e08f66d286
31 changed files with 398 additions and 278 deletions
|
@ -1,6 +1,5 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.catppuccin.nixosModules.catppuccin ];
|
||||
{inputs, ...}: {
|
||||
imports = [inputs.catppuccin.nixosModules.catppuccin];
|
||||
|
||||
config.catppuccin = {
|
||||
enable = true;
|
||||
|
|
|
@ -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; [
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ pkgs, config, ... }: {
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings = { General = { Experimental = true; }; };
|
||||
settings = {General = {Experimental = true;};};
|
||||
};
|
||||
services.blueman.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
{...}: {
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
./tailscale.nix
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "client";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue