switch to gnome for usb config

This commit is contained in:
2025-10-09 09:36:41 +02:00
parent 2e3b0b6a35
commit 6c53fe1aae
4 changed files with 52 additions and 20 deletions

31
modules/nixos/gnome.nix Normal file
View File

@@ -0,0 +1,31 @@
{
config,
lib,
pkgs,
...
}:
{
options.nix-config.gnome.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable GNOME desktop environment.";
};
config = lib.mkIf config.nix-config.gnome.enable {
services = {
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
gnome = {
core-apps.enable = false;
core-developer-tools.enable = false;
games.enable = false;
};
# Exclude some packages to keep the installation lean
environment.gnome.excludePackages = with pkgs; [
gnome-tour
gnome-user-docs
];
};
};
}

View File

@@ -1,24 +1,24 @@
{
config,
lib,
pkgs,
...
config,
lib,
pkgs,
...
}:
{
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
dockerCompat = false;
dockerCompat = false;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
};
# Useful other development tools
environment.systemPackages = with pkgs; [
podman-compose # start group of containers for dev
];
# Useful other development tools
environment.systemPackages = with pkgs; [
podman-compose # start group of containers for dev
];
}