From 6ff336493c30dbe4d6ba441c3bf27c6883472952 Mon Sep 17 00:00:00 2001 From: Olivier <1+olivier@noreply.raspot.in> Date: Tue, 18 Aug 2026 17:32:58 +0200 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"workstation-setup"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workstation-setup/CMakeLists.txt | 40 +++++++++++++++++++ ...org.raspot.nixosworkstations.setup.desktop | 9 +++++ 2 files changed, 49 insertions(+) create mode 100644 workstation-setup/CMakeLists.txt create mode 100644 workstation-setup/org.raspot.nixosworkstations.setup.desktop diff --git a/workstation-setup/CMakeLists.txt b/workstation-setup/CMakeLists.txt new file mode 100644 index 0000000..630de08 --- /dev/null +++ b/workstation-setup/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.21) + +project( + nixos-workstations-setup + VERSION 1.0.0 + LANGUAGES CXX +) + +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_AUTOMOC ON) + +find_package(Qt6 REQUIRED COMPONENTS + Core + Gui + Qml + Quick + QuickControls2 +) + +qt_standard_project_setup(REQUIRES 6.6) + +if(NOT DEFINED PASSWORD_HELPER_PATH) + message(FATAL_ERROR "PASSWORD_HELPER_PATH is required") +endif() + +if(NOT DEFINED PIN_HELPER_PATH) + message(FATAL_ERROR "PIN_HELPER_PATH is required") +endif() + +if(NOT DEFINED TARGET_USER) + message(FATAL_ERROR "TARGET_USER is required") +endif() + +add_subdirectory(src) + +install( + FILES org.raspot.nixosworkstations.setup.desktop + DESTINATION share/applications +) diff --git a/workstation-setup/org.raspot.nixosworkstations.setup.desktop b/workstation-setup/org.raspot.nixosworkstations.setup.desktop new file mode 100644 index 0000000..af8bf78 --- /dev/null +++ b/workstation-setup/org.raspot.nixosworkstations.setup.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Finalisation du poste +Comment=Personnalisation sécurisée des moyens d'authentification +Exec=nixos-workstations-setup +Icon=security-high +Terminal=false +Categories=System;Settings; +NoDisplay=true