chore: reformat using nixd and nixfmt-rfc-style
This commit is contained in:
parent
1ea540535e
commit
813cc599f0
38 changed files with 280 additions and 166 deletions
|
|
@ -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; };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.services.pam = {
|
||||
enable = lib.mkEnableOption "enables PAM";
|
||||
sshd = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.services.audio = {
|
||||
enable = lib.mkEnableOption "enable sound through pipewire and its compat layers";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.services.printing = {
|
||||
enable = lib.mkEnableOption "enable printing";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.settings.services.switcheroo = {
|
||||
enable = lib.mkEnableOption "enable switcheroo-control for nvidia optimus management";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue