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