122 lines
4.1 KiB
Diff
122 lines
4.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Victor Fuentes <vmfuentes64@gmail.com>
|
|
Date: Thu, 1 Aug 2024 16:00:43 -0400
|
|
Subject: [PATCH] Adds unfree qml to packagechooserq
|
|
|
|
---
|
|
.../packagechooserq/packagechooserq.qrc | 1 +
|
|
.../packagechooserq@unfree.qml | 75 +++++++++++++++++++
|
|
src/modules/packagechooserq/unfree.conf | 11 +++
|
|
3 files changed, 87 insertions(+)
|
|
create mode 100644 src/modules/packagechooserq/packagechooserq@unfree.qml
|
|
create mode 100644 src/modules/packagechooserq/unfree.conf
|
|
|
|
diff --git a/src/modules/packagechooserq/packagechooserq.qrc b/src/modules/packagechooserq/packagechooserq.qrc
|
|
index 1b892dce1..ee80a934b 100644
|
|
--- a/src/modules/packagechooserq/packagechooserq.qrc
|
|
+++ b/src/modules/packagechooserq/packagechooserq.qrc
|
|
@@ -4,5 +4,6 @@
|
|
<file>images/libreoffice.jpg</file>
|
|
<file>images/no-selection.png</file>
|
|
<file>images/plasma.png</file>
|
|
+ <file>packagechooserq@unfree.qml</file>
|
|
</qresource>
|
|
</RCC>
|
|
diff --git a/src/modules/packagechooserq/packagechooserq@unfree.qml b/src/modules/packagechooserq/packagechooserq@unfree.qml
|
|
new file mode 100644
|
|
index 000000000..5e36d77d9
|
|
--- /dev/null
|
|
+++ b/src/modules/packagechooserq/packagechooserq@unfree.qml
|
|
@@ -0,0 +1,75 @@
|
|
+/* === This file is part of Calamares - <https://calamares.io> ===
|
|
+ *
|
|
+ * SPDX-FileCopyrightText: 2021 Anke Boersma <demm@kaosx.us>
|
|
+ * SPDX-License-Identifier: GPL-3.0-or-later
|
|
+ *
|
|
+ * Calamares is Free Software: see the License-Identifier above.
|
|
+ *
|
|
+ */
|
|
+
|
|
+import io.calamares.core 1.0
|
|
+import io.calamares.ui 1.0
|
|
+
|
|
+import QtQuick 2.15
|
|
+import QtQuick.Controls 2.15
|
|
+import QtQuick.Layouts 1.3
|
|
+
|
|
+Item {
|
|
+
|
|
+ SystemPalette {
|
|
+ id: palette
|
|
+ colorGroup: SystemPalette.Active
|
|
+ }
|
|
+
|
|
+ width: parent.width
|
|
+ height: parent.height
|
|
+
|
|
+ Rectangle {
|
|
+ anchors.fill: parent
|
|
+ color: palette.window
|
|
+
|
|
+ ButtonGroup {
|
|
+ id: switchGroup
|
|
+ }
|
|
+
|
|
+ Column {
|
|
+ id: column
|
|
+ anchors.centerIn: parent
|
|
+ spacing: 5
|
|
+
|
|
+ Rectangle {
|
|
+ width: 700
|
|
+ height: 250
|
|
+ color: palette.base
|
|
+ radius: 10
|
|
+ border.width: 0
|
|
+ Text {
|
|
+ color: palette.text
|
|
+ width: 600
|
|
+ height: 200
|
|
+ anchors.centerIn: parent
|
|
+ text: qsTr("NixOS is fully open source, but it also provides optional software packages that do not respect users' freedom to run, copy, distribute, study, change and improve the software, and are commonly not open source. By default such \"unfree\" packages are not allowed, but you can enable it here. If you check this box, you agree that unfree software may be installed which might have additional End User License Agreements (EULAs) that you need to agree to. If not enabled, some hardware (notably Nvidia GPUs and some WiFi chips) might not work or not work optimally.<br/>")
|
|
+ font.pointSize: 12
|
|
+ wrapMode: Text.WordWrap
|
|
+ }
|
|
+
|
|
+ CheckBox {
|
|
+ id: element2
|
|
+ anchors.horizontalCenter: parent.horizontalCenter
|
|
+ y: 190
|
|
+ text: qsTr("Allow unfree software")
|
|
+ checked: false
|
|
+
|
|
+ onCheckedChanged: {
|
|
+ if ( checked ) {
|
|
+ config.packageChoice = "unfree"
|
|
+ } else {
|
|
+ config.packageChoice = "free"
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
+}
|
|
diff --git a/src/modules/packagechooserq/unfree.conf b/src/modules/packagechooserq/unfree.conf
|
|
new file mode 100644
|
|
index 000000000..da79a8eac
|
|
--- /dev/null
|
|
+++ b/src/modules/packagechooserq/unfree.conf
|
|
@@ -0,0 +1,11 @@
|
|
+# SPDX-FileCopyrightText: no
|
|
+# SPDX-License-Identifier: CC0-1.0
|
|
+#
|
|
+---
|
|
+qmlLabel:
|
|
+ label: "Unfree Software"
|
|
+method: legacy
|
|
+mode: required
|
|
+labels:
|
|
+ step: "Unfree Software"
|
|
+packageChoice: free
|