chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -8,23 +8,23 @@
# Options:
# - enable → Enable C compiler toolchain
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.c-compiler;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.c-compiler;
in {
options.nyx-module.system.c-compiler = {
enable = lib.mkEnableOption "Enable C compiler (system module)";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gcc # C & C++
clang # alt C/C++
mono # C#
gcc # C & C++
clang # alt C/C++
mono # C#
];
};
}

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./c-compiler.nix
./go.nix

View file

@ -6,13 +6,14 @@
# Options:
# - enable → Enable Go system module
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.go;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.go;
in {
options.nyx-module.system.go = {
enable = lib.mkEnableOption "Enable Go (system module)";
};

View file

@ -7,13 +7,14 @@
# Options:
# - enable → Enable Lua system module
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.lua;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.lua;
in {
options.nyx-module.system.lua = {
enable = lib.mkEnableOption "Enable Lua (system module)";
};

View file

@ -7,13 +7,14 @@
# Options:
# - enable → Enable Python system module
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.python;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.python;
in {
options.nyx-module.system.python = {
enable = lib.mkEnableOption "Enable Python (system module)";
};

View file

@ -13,13 +13,14 @@
# nyx-module.system.ruby.enable = true;
# nyx-module.system.ruby.bundler = false; # disable Bundler explicitly
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.ruby;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.ruby;
in {
options.nyx-module.system.ruby = {
enable = lib.mkEnableOption "Enable Ruby (system module)";
@ -35,8 +36,7 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages =
with pkgs;
environment.systemPackages = with pkgs;
[
ruby
jruby

View file

@ -7,13 +7,14 @@
# Options:
# - enable → Enable Rust system module
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.rust;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.rust;
in {
options.nyx-module.system.rust = {
enable = lib.mkEnableOption "Enable Rust (system module)";
};