[gnome-build-meta/alatiera/setup-nightly] vm: setup gnome nightly repo by default
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/setup-nightly] vm: setup gnome nightly repo by default
- Date: Thu, 30 Jul 2020 11:40:13 +0000 (UTC)
commit c679ac652b175e1c060c05a65d434eb11a967331
Author: Jordan Petridis <jordan centricular com>
Date: Thu Jul 30 14:39:39 2020 +0300
vm: setup gnome nightly repo by default
elements/vm/common-deps.bst | 1 +
elements/vm/gnome-nightly-config.bst | 17 +++++++++++++++++
files/vm/gnome-nightly-config/add-nightly.preset | 1 +
files/vm/gnome-nightly-config/add-nightly.service | 12 ++++++++++++
4 files changed, 31 insertions(+)
---
diff --git a/elements/vm/common-deps.bst b/elements/vm/common-deps.bst
index 4a4ca1b6..ec4cb27f 100644
--- a/elements/vm/common-deps.bst
+++ b/elements/vm/common-deps.bst
@@ -9,6 +9,7 @@ runtime-depends:
- vm/dev-repo-script.bst
- vm/flathub-config.bst
+- vm/gnome-nightly-config.bst
- vm/ostree-config.bst
- vm/plymouth-gnome-theme.bst
- vm/resize-root.bst
diff --git a/elements/vm/gnome-nightly-config.bst b/elements/vm/gnome-nightly-config.bst
new file mode 100644
index 00000000..0a2fd9bc
--- /dev/null
+++ b/elements/vm/gnome-nightly-config.bst
@@ -0,0 +1,17 @@
+kind: manual
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+runtime-depends:
+- core-deps/flatpak.bst
+
+config:
+ install-commands:
+ - |
+ install -Dm644 -t "%{install-root}%{indep-libdir}/systemd/system" add-nightly.service
+ install -Dm644 -t "%{install-root}%{indep-libdir}/systemd/system-preset" add-nightly.preset
+
+sources:
+- kind: local
+ path: files/vm/gnome-nightly-config
diff --git a/files/vm/gnome-nightly-config/add-nightly.preset
b/files/vm/gnome-nightly-config/add-nightly.preset
new file mode 100644
index 00000000..dfa4a848
--- /dev/null
+++ b/files/vm/gnome-nightly-config/add-nightly.preset
@@ -0,0 +1 @@
+enable add-nightly.service
diff --git a/files/vm/gnome-nightly-config/add-nightly.service
b/files/vm/gnome-nightly-config/add-nightly.service
new file mode 100644
index 00000000..2570f7e1
--- /dev/null
+++ b/files/vm/gnome-nightly-config/add-nightly.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Add GNOME Nightly
+ConditionFirstBoot=yes
+Wants=network-online.target
+After=network-online.target systemd-resolved.service nss-lookup.target
+
+[Service]
+Type=oneshot
+ExecStart=flatpak remote-add gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
+
+[Install]
+WantedBy=multi-user.target
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]