]> xn--ix-yja.es Git - alex.git/commitdiff
Add Emacs
authoralex <alex@pdp7.net>
Sat, 5 Oct 2024 09:38:55 +0000 (11:38 +0200)
committeralexpdp7 <alex@corcoles.net>
Sat, 5 Oct 2024 09:40:14 +0000 (11:40 +0200)
personal_infra/puppet/modules/workstation/manifests/init.pp

index c8e8d1a549d5ed947010be891ec471b117a2f995..56271e2987b6cb6e9db2f54603410030ad5ec758 100644 (file)
@@ -4,6 +4,19 @@ class workstation {
   if ($facts['os']['family'] == 'Debian') {
     package {['nextcloud-desktop']:}
 
+    file {'/etc/apt/preferences.d/90_emacs':
+      content => @(EOT)
+      Package: src:emacs
+      Pin: release n=bookworm-backports
+      Pin-Priority: 990
+      | EOT
+      ,
+    }
+    ~>
+    Exec["/usr/bin/apt update"]
+    ->
+    package {'emacs-nox':}
+
     file {'/etc/apt/keyrings/packages.mozilla.org.asc':
       content => @(EOT)
       -----BEGIN PGP PUBLIC KEY BLOCK-----