From 862d9291be03dd240afee25011f7fa212ffdec55 Mon Sep 17 00:00:00 2001 From: Laurent Gueret Date: Sat, 18 Jul 2026 15:37:43 +0200 Subject: [PATCH] Update on file and add pantheon --- hosts/nixos/system/os.nix | 9 +++---- modules/system/nixos/graphics/cuda.nix | 9 ------- modules/system/nixos/shells/gnome.nix | 7 ++---- modules/system/nixos/shells/pantheon.nix | 31 ++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 20 deletions(-) create mode 100644 modules/system/nixos/shells/pantheon.nix diff --git a/hosts/nixos/system/os.nix b/hosts/nixos/system/os.nix index 2778294..7a00fea 100755 --- a/hosts/nixos/system/os.nix +++ b/hosts/nixos/system/os.nix @@ -2,7 +2,7 @@ { # System services - os.boot.limine.enable = true; + os.boot.systemd.enable = true; os.boot.plymouth.enable = true; os.graphics.nvidia.enable = true; os.audio.pipewire.enable = true; @@ -17,15 +17,12 @@ # System configurations os.keyboard.apple.enable = true; - # Flatpak configuration - os.flatpak.enable = true; - # Virtualisation Apps os.virtualisation.cuda.enable = false; - os.virtualisation.docker.enable = true; + os.virtualisation.podman.enable = true; # Shells configurations - os.shells.gnome.enable = true; + os.shells.pantheon.enable = true; # Terminal programs.ssh.enableAskPassword = false; # No-window git push fix diff --git a/modules/system/nixos/graphics/cuda.nix b/modules/system/nixos/graphics/cuda.nix index 0ef0b19..af43b25 100644 --- a/modules/system/nixos/graphics/cuda.nix +++ b/modules/system/nixos/graphics/cuda.nix @@ -1,5 +1,4 @@ { - pkgs, lib, config, ... @@ -15,14 +14,6 @@ in config = mkIf cfg.enable { hardware.nvidia-container-toolkit.enable = true; - environment.systemPackages = with pkgs.cudaPackages; [ - cudatoolkit - cudnn - libcublas - libcufile - libcusparse - nccl - ]; }; } diff --git a/modules/system/nixos/shells/gnome.nix b/modules/system/nixos/shells/gnome.nix index 1bd21d9..c5195d7 100644 --- a/modules/system/nixos/shells/gnome.nix +++ b/modules/system/nixos/shells/gnome.nix @@ -33,12 +33,9 @@ in systemPackages = with pkgs; [ - nautilus - loupe papers - simple-scan - ] - ++ (lib.optional config.os.flatpak.enable gnome-software); + nautilus + ]; }; }; diff --git a/modules/system/nixos/shells/pantheon.nix b/modules/system/nixos/shells/pantheon.nix new file mode 100644 index 0000000..ae363a6 --- /dev/null +++ b/modules/system/nixos/shells/pantheon.nix @@ -0,0 +1,31 @@ +{ + lib, + pkgs, + config, + ... +}: +with lib; +let + cfg = config.os.shells.pantheon; +in +{ + options.os.shells.pantheon = { + enable = mkEnableOption "System gnome shell service"; + }; + config = mkIf cfg.enable { + + services.desktopManager.pantheon.enable = true; + + environment = { + pantheon.excludePackages = with pkgs; [ + elementary-calendar + elementary-camera + elementary-mail + elementary-maps + elementary-photos + epiphany + ]; + }; + + }; +}