refactor: cleanup (deadnix, nixfmt, statix)
This commit is contained in:
@@ -18,8 +18,8 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nodes = lib.genAttrs hostDirNames (hostname:
|
nodes = lib.genAttrs hostDirNames (
|
||||||
mkNode hostname (utils.hostMeta ../hosts/${hostname}).deployment.tags
|
hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname}).deployment.tags
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
inputs.colmena.lib.makeHive {
|
inputs.colmena.lib.makeHive {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "25.05";
|
stateVersion = "25.05";
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
homeDirectory = "/home/${config.host.username}";
|
homeDirectory = "/home/${config.host.username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "25.05";
|
stateVersion = "25.05";
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
homeDirectory = "/home/${config.host.username}";
|
homeDirectory = "/home/${config.host.username}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
options.nixgl.wrap = lib.mkOption {
|
options.nixgl.wrap = lib.mkOption {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.waybar.settings = [
|
programs.waybar.settings = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ in
|
|||||||
|
|
||||||
my.yubikey = {
|
my.yubikey = {
|
||||||
enable = false;
|
enable = false;
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
keys = [
|
keys = [
|
||||||
{
|
{
|
||||||
handle = "<KeyHandle1>";
|
handle = "<KeyHandle1>";
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ssh = {
|
ssh = {
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
publicHostname = config.host.name;
|
publicHostname = config.host.name;
|
||||||
authorizedHosts = [
|
authorizedHosts = [
|
||||||
"andromache"
|
"andromache"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ssh = {
|
ssh = {
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
publicHostname = config.host.name;
|
publicHostname = config.host.name;
|
||||||
authorizedHosts = [
|
authorizedHosts = [
|
||||||
"andromache"
|
"andromache"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
networking.hostName = config.host.name;
|
networking.hostName = config.host.name;
|
||||||
ssh = {
|
ssh = {
|
||||||
username = config.host.username;
|
inherit (config.host) username;
|
||||||
publicHostname = "server.hektormisplon.xyz";
|
publicHostname = "server.hektormisplon.xyz";
|
||||||
authorizedHosts = [
|
authorizedHosts = [
|
||||||
"andromache"
|
"andromache"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
_:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
_:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
time.timeZone = "Europe/Brussels";
|
time.timeZone = "Europe/Brussels";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
_:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.xserver.windowManager.xmonad = {
|
services.xserver.windowManager.xmonad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -4,8 +4,10 @@
|
|||||||
dirNames =
|
dirNames =
|
||||||
path: builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir path));
|
path: builtins.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir path));
|
||||||
|
|
||||||
hostMeta = hostDir:
|
hostMeta =
|
||||||
if builtins.pathExists (hostDir + "/meta.nix")
|
hostDir:
|
||||||
then import (hostDir + "/meta.nix")
|
if builtins.pathExists (hostDir + "/meta.nix") then
|
||||||
else throw "meta.nix required in ${hostDir}";
|
import (hostDir + "/meta.nix")
|
||||||
|
else
|
||||||
|
throw "meta.nix required in ${hostDir}";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user