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 = [ imports = [
./direnv.nix ./direnv.nix
@@ -5,7 +8,7 @@
./virt-manager.nix ./virt-manager.nix
]; ];
programs.wireshark.enable = true; programs.wireshark.enable = hasGui;
home-manager.sharedModules = [ home-manager.sharedModules = [
./home ./home

View File

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