fix: hostname not always set, typo

This commit is contained in:
Leon Schwarzäugl 2025-08-05 01:21:48 +02:00
parent 4fad38afdb
commit 044dbadbe1
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 7 additions and 5 deletions

View file

@ -8,7 +8,7 @@ let
in
{
options.swarselmodules.env = lib.mkEnableOption "env settings";
config = z lib.mkIf config.swarselmodules.env {
config = lib.mkIf config.swarselmodules.env {
home.sessionVariables = {
EDITOR = "e -w";
DISPLAY = ":0";

View file

@ -49,6 +49,7 @@ in
};
networking = {
inherit (config.swarselsystems) hostName;
wireless.iwd = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{ self, lib, pkgs, config, ... }:
{ self, lib, pkgs, config, configName, ... }:
let
inherit (config.swarselsystems) mainUser homeDir xdgDir;
iwd = config.networking.networkmanager.wifi.backend == "iwd";
@ -29,7 +29,7 @@ in
options.swarselsystems = {
hostName = lib.mkOption {
type = lib.types.str;
default = "";
default = configName;
};
fqdn = lib.mkOption {
type = lib.types.str;