Lot of change on structs

This commit is contained in:
2026-04-09 09:09:13 +02:00
parent e656247a48
commit 90bc1eb63d
42 changed files with 108 additions and 133 deletions
-31
View File
@@ -1,31 +0,0 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.os.gnome.apps;
in
{
options.os.gnome.apps = {
enable = mkEnableOption "System gnome apps service";
};
config = mkIf cfg.enable {
environment = {
systemPackages =
with pkgs;
[ nautilus ]
++ [
papers
loupe
celluloid
];
};
services.gvfs.enable = true; # SMB, FTP, ... access
};
}
-45
View File
@@ -1,45 +0,0 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.os.gnome.shell;
in
{
options.os.gnome.shell = {
enable = mkEnableOption "System gnome shell service";
};
config = mkIf cfg.enable {
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
services.gnome.games.enable = false;
services.gnome.core-apps.enable = false;
services.gnome.core-developer-tools.enable = false;
environment = {
gnome.excludePackages = with pkgs; [
gnome-tour
gnome-user-docs
];
systemPackages = with pkgs; [
# Gnome terminal
ghostty
# Gnome Extensions
gnomeExtensions.paperwm
gnomeExtensions.app-hider
gnomeExtensions.dash-to-dock
];
};
};
}
@@ -1,18 +0,0 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.virtualisation.docker;
in
{
options.os.virtualisation.docker = {
enable = mkEnableOption "System docker service";
};
config = mkIf cfg.enable {
virtualisation.docker = {
enable = true;
daemon.settings.features.cdi = true;
};
};
}
@@ -1,35 +0,0 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.os.virtualisation.podman;
in
{
options.os.virtualisation.podman = {
enable = mkEnableOption "System docker service";
};
config = mkIf cfg.enable {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
};
};
environment = {
systemPackages = with pkgs; [
pods
podman-compose
];
};
};
}