chore: reformat using nixd and nixfmt-rfc-style

This commit is contained in:
Veneficium 2024-09-18 18:34:21 +02:00
parent 1ea540535e
commit 813cc599f0
38 changed files with 280 additions and 166 deletions

View file

@ -1,9 +1,8 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.fstrim = {
enable = lib.mkEnableOption "enables fstrim";
};
config = lib.mkIf config.settings.services.fstrim.enable {
services.fstrim.enable = true;
};
config = lib.mkIf config.settings.services.fstrim.enable { services.fstrim.enable = true; };
}

View file

@ -1,4 +1,10 @@
{ config, lib, pkgs, ... }: {
{
config,
lib,
pkgs,
...
}:
{
options.settings.gnome = {
enable = lib.mkEnableOption "enable gnome de";
};
@ -21,6 +27,15 @@
hardware.pulseaudio.enable = false;
# remove various bloat
environment.gnome.excludePackages = with pkgs; [ gnome-contacts gnome-maps gnome-music gnome-weather gnome-tour epiphany totem yelp ];
environment.gnome.excludePackages = with pkgs; [
gnome-contacts
gnome-maps
gnome-music
gnome-weather
gnome-tour
epiphany
totem
yelp
];
};
}

View file

@ -1,10 +1,10 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.openssh = {
enable = lib.mkEnableOption "enable openSSH";
usePAM = lib.mkEnableOption "use PAM for ssh authentication";
};
#further move these options into settings
config = lib.mkIf config.settings.services.openssh.enable {
services.openssh = {

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.pam = {
enable = lib.mkEnableOption "enables PAM";
sshd = {

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.audio = {
enable = lib.mkEnableOption "enable sound through pipewire and its compat layers";
};

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.printing = {
enable = lib.mkEnableOption "enable printing";
};

View file

@ -1,4 +1,5 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.switcheroo = {
enable = lib.mkEnableOption "enable switcheroo-control for nvidia optimus management";
};

View file

@ -1,9 +1,8 @@
{ config, lib, ... }: {
{ config, lib, ... }:
{
options.settings.services.tlp = {
enable = lib.mkEnableOption "enables tlp for power management";
};
config = lib.mkIf config.settings.services.tlp.enable {
services.tlp.enable = true;
};
config = lib.mkIf config.settings.services.tlp.enable { services.tlp.enable = true; };
}