treewide: format with nixfmt

This commit is contained in:
insects 2024-09-22 10:56:40 +02:00
parent 303e982a8e
commit 26ad72592a
47 changed files with 380 additions and 725 deletions

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{ pkgs, ... }: {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
@ -8,7 +7,5 @@
pulse.enable = true;
wireplumber.enable = true;
};
environment.systemPackages = with pkgs; [
pavucontrol
];
environment.systemPackages = with pkgs; [ pavucontrol ];
}

View file

@ -1,6 +1 @@
{ ... }:
{
hardware.bluetooth = {
enable = true;
};
}
{ ... }: { hardware.bluetooth = { enable = true; }; }

View file

@ -1,11 +1,5 @@
{ lib, pkgs, ... }:
{
imports = [
./audio.nix
./tailscale.nix
./bluetooth.nix
./printing.nix
];
{ lib, pkgs, ... }: {
imports = [ ./audio.nix ./tailscale.nix ./bluetooth.nix ./printing.nix ];
# use nix version 2.22
nix = {
@ -13,11 +7,7 @@
settings = {
auto-optimise-store = lib.mkDefault true;
experimental-features = [
"nix-command"
"flakes"
"ca-derivations"
];
experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
};
};
@ -33,9 +23,7 @@
# use a tmpfs
boot.tmp.useTmpfs = true;
systemd.services.nix-daemon = {
environment.TMPDIR = "/var/tmp";
};
systemd.services.nix-daemon = { environment.TMPDIR = "/var/tmp"; };
# use fstrim for ssds
services.fstrim.enable = true;

View file

@ -1,5 +1,4 @@
{ ... }:
{
{ ... }: {
services.printing.enable = true;
services.avahi = {

View file

@ -1,6 +1 @@
{ ... }:
{
services.tailscale = {
enable = true;
};
}
{ ... }: { services.tailscale = { enable = true; }; }