feat: added some host logic

This commit is contained in:
Nick 2025-03-21 18:29:14 -05:00
parent f462a6f1a7
commit 8dd81e1326
2 changed files with 14 additions and 5 deletions

View file

@ -1,16 +1,17 @@
{
flake,
osConfig,
pkgs,
...
}:
let
inherit (flake.config.aesthetics.themes)
fonts
;
inherit (flake.config.aesthetics.themes) fonts;
inherit (flake.config.machines.devices) deimos;
hostname = osConfig.networking.hostName;
in
{
confirm-close-surface = false;
window-decoration = false;
window-decoration = if hostname == deimos.name then true else false;
font-size = fonts.sizes.terminal.size0;
font-family = fonts.names.name0;
window-padding-x = 10;

View file

@ -2,11 +2,19 @@
config,
flake,
pkgs,
osConfig,
...
}:
let
configPath = ./config;
settingsPath = import (configPath + /settings.nix) { inherit flake pkgs; };
settingsPath = import (configPath + /settings.nix) {
inherit
flake
config
osConfig
pkgs
;
};
themesPath = import (configPath + /themes.nix) { inherit config flake; };
in
{