Port Kurin's changes

This commit is contained in:
2026-04-26 13:53:27 +02:00
parent beaf55ead0
commit 09329c43a1
2 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
{ config, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
{
imports = [
./direnv.nix
@@ -5,7 +8,7 @@
./virt-manager.nix
];
programs.wireshark.enable = true;
programs.wireshark.enable = hasGui;
home-manager.sharedModules = [
./home

View File

@@ -1,4 +1,6 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
{
environment.systemPackages = with pkgs; [
# Languages
@@ -8,7 +10,5 @@
just
nodejs
gcc
wireshark
];
] ++ (if hasGui then [pkgs.wireshark-qt] else []);
}