refactor: statix, deadnix, alejandra

This commit is contained in:
Kat Inskip 2023-01-17 14:26:07 -05:00
parent 961ec369ba
commit 53eed4454d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
57 changed files with 1296 additions and 963 deletions

6
nixos/base.nix Normal file
View file

@ -0,0 +1,6 @@
_: {
boot.loader = {
grub.configurationLimit = 8;
systemd-boot.configurationLimit = 8;
};
}

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: {
{pkgs, ...}: {
services.xserver = {
enable = true;
desktopManager.gnome.enable = true;

View file

@ -1,7 +1,4 @@
{
lib,
...
}: let
{lib, ...}: let
inherit (lib.modules) mkDefault;
in {
powerManagement.cpuFreqGovernor = mkDefault "powersave";

9
nixos/nix.nix Normal file
View file

@ -0,0 +1,9 @@
{lib, ...}: let
inherit (lib.modules) mkDefault;
in {
nix.gc = {
automatic = mkDefault true;
dates = mkDefault "weekly";
options = mkDefault "--delete-older-than 7d";
};
}

View file

@ -1,7 +1,4 @@
{
lib,
...
}: let
{lib, ...}: let
inherit (lib.attrsets) mapAttrsToList;
in {
systemd.tmpfiles.rules = mapAttrsToList (username: _: "f /var/lib/systemd/linger/${username}") config.users.users;