style: use alejandra formatter on all nix files

This commit is contained in:
Yorick Barbanneau 2025-09-25 23:33:01 +02:00
parent d563805909
commit 0d8a394dcf
Signed by: ephase
GPG key ID: 246042E52B41FFCF
76 changed files with 1287 additions and 935 deletions

View file

@ -1,5 +1,4 @@
_:
{
_: {
imports = [
./desktop/sway
./gaming/steam

View file

@ -1,9 +1,12 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.desktop.sway;
in
{
pkgs,
lib,
config,
...
}:
with lib; let
cfg = config.modules.desktop.sway;
in {
options.modules.desktop.sway = {
enable = mkEnableOption "Enable Steam Platform";
};

View file

@ -1,9 +1,11 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.gaming.steam;
in
{
lib,
config,
...
}:
with lib; let
cfg = config.modules.gaming.steam;
in {
options.modules.gaming.steam = {
enable = mkEnableOption "Enable Steam Platform";
@ -31,8 +33,8 @@ in
gamescopeSession = {
enable = cfg.gamescope;
args = [
"-O HDMI-A-2"
"-F fsr"
"-O HDMI-A-2"
"-F fsr"
];
};
};

View file

@ -1,15 +1,16 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.hardware.lact;
in
{
lib,
config,
pkgs,
...
}:
with lib; let
cfg = config.modules.hardware.lact;
in {
options.modules.hardware.lact = {
enable = mkEnableOption "Install LACT daemon";
};
config = mkIf cfg.enable {
# Enable Lact (testing purpose for now)
environment.systemPackages = with pkgs; [
lact

View file

@ -1,9 +1,11 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.hardware.laptop;
in
{
lib,
config,
...
}:
with lib; let
cfg = config.modules.hardware.laptop;
in {
options.modules.hardware.laptop = {
enable = mkEnableOption "Install Laptop utils";
@ -25,7 +27,6 @@ in
};
};
config = mkIf cfg.enable {
# Wifi is installed on laptops
networking.wireless.iwd.enable = true;