some more server-related tune-ups

This commit is contained in:
pagedMov
2024-11-02 12:15:46 -04:00
parent c216b02858
commit 2458e38dfb
3 changed files with 13 additions and 12 deletions

View File

@@ -1,16 +1,12 @@
{host, lib, config, ...}: let
desktop = host == "oganesson";
in {
{host, lib, config, ...}:
{
options = {
networkModule.enable = lib.mkEnableOption "enables network configuration";
};
config = lib.mkIf config.networkModule.enable {
networking = {
networkmanager.enable = true;
hostName =
if desktop
then "oganesson"
else "mercury";
hostName = "${host}";
hosts = {
"192.168.1.201" = ["xenon"];
"192.168.1.111" = ["argon"];

View File

@@ -4,18 +4,18 @@
};
config = lib.mkIf config.sysProgs.enable {
programs = {
hyprland.enable = true;
zsh.enable = true;
hyprland.enable = lib.mkDefault true;
zsh.enable = lib.mkDefault true;
nix-ld = {
enable = true;
enable = lib.mkDefault true;
libraries = with pkgs; [
stdenv.cc.cc
ffmpeg-full
];
};
gnupg.agent = {
enable = true;
enableSSHSupport = true;
enable = lib.mkDefault true;
enableSSHSupport = lib.mkDefault true;
};
};
};