refactor: cleanup (deadnix, nixfmt, statix)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
home = {
|
||||
stateVersion = "25.05";
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
homeDirectory = "/home/${config.host.username}";
|
||||
};
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
home = {
|
||||
stateVersion = "25.05";
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
homeDirectory = "/home/${config.host.username}";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.nixgl.wrap = lib.mkOption {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
programs.waybar.settings = [
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ in
|
||||
|
||||
my.yubikey = {
|
||||
enable = false;
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
keys = [
|
||||
{
|
||||
handle = "<KeyHandle1>";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
};
|
||||
|
||||
ssh = {
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
publicHostname = config.host.name;
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
};
|
||||
|
||||
ssh = {
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
publicHostname = config.host.name;
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
networking.hostName = config.host.name;
|
||||
ssh = {
|
||||
username = config.host.username;
|
||||
inherit (config.host) username;
|
||||
publicHostname = "server.hektormisplon.xyz";
|
||||
authorizedHosts = [
|
||||
"andromache"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_:
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_:
|
||||
|
||||
{
|
||||
time.timeZone = "Europe/Brussels";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
_:
|
||||
|
||||
{
|
||||
services.xserver.windowManager.xmonad = {
|
||||
enable = true;
|
||||
|
||||
@@ -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}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user