refactor: cleanup (deadnix, nixfmt, statix)

This commit is contained in:
2026-03-11 23:23:38 +01:00
parent 7c92cc5c6a
commit 12481d7468
14 changed files with 20 additions and 22 deletions

View File

@@ -18,8 +18,8 @@ let
};
};
nodes = lib.genAttrs hostDirNames (hostname:
mkNode hostname (utils.hostMeta ../hosts/${hostname}).deployment.tags
nodes = lib.genAttrs hostDirNames (
hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname}).deployment.tags
);
in
inputs.colmena.lib.makeHive {

View File

@@ -32,7 +32,7 @@
home = {
stateVersion = "25.05";
username = config.host.username;
inherit (config.host) username;
homeDirectory = "/home/${config.host.username}";
};

View File

@@ -30,7 +30,7 @@
home = {
stateVersion = "25.05";
username = config.host.username;
inherit (config.host) username;
homeDirectory = "/home/${config.host.username}";
};

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
options.nixgl.wrap = lib.mkOption {

View File

@@ -1,5 +1,4 @@
{
lib,
pkgs,
...
}:

View File

@@ -1,5 +1,3 @@
{ lib, ... }:
{
programs.waybar.settings = [
{

View File

@@ -95,7 +95,7 @@ in
my.yubikey = {
enable = false;
username = config.host.username;
inherit (config.host) username;
keys = [
{
handle = "<KeyHandle1>";

View File

@@ -16,7 +16,7 @@
};
ssh = {
username = config.host.username;
inherit (config.host) username;
publicHostname = config.host.name;
authorizedHosts = [
"andromache"

View File

@@ -17,7 +17,7 @@
};
ssh = {
username = config.host.username;
inherit (config.host) username;
publicHostname = config.host.name;
authorizedHosts = [
"andromache"

View File

@@ -23,7 +23,7 @@
networking.hostName = config.host.name;
ssh = {
username = config.host.username;
inherit (config.host) username;
publicHostname = "server.hektormisplon.xyz";
authorizedHosts = [
"andromache"

View File

@@ -1,5 +1,3 @@
_:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View File

@@ -1,5 +1,3 @@
_:
{
time.timeZone = "Europe/Brussels";
i18n.defaultLocale = "en_US.UTF-8";

View File

@@ -1,5 +1,3 @@
_:
{
services.xserver.windowManager.xmonad = {
enable = true;

View File

@@ -4,8 +4,10 @@
dirNames =
path: builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir path));
hostMeta = hostDir:
if builtins.pathExists (hostDir + "/meta.nix")
then import (hostDir + "/meta.nix")
else throw "meta.nix required in ${hostDir}";
hostMeta =
hostDir:
if builtins.pathExists (hostDir + "/meta.nix") then
import (hostDir + "/meta.nix")
else
throw "meta.nix required in ${hostDir}";
}