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

View file

@ -2,11 +2,19 @@
config, config,
flake, flake,
pkgs, pkgs,
osConfig,
... ...
}: }:
let let
configPath = ./config; 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; }; themesPath = import (configPath + /themes.nix) { inherit config flake; };
in in
{ {