aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu installer proxy)
  #:use-module (gnu installer utils)
  #:use-module (gnu services herd)
  #:export (set-http-proxy
            clear-http-proxy))

(define (set-http-proxy proxy)
  (with-silent-shepherd
    (with-shepherd-action 'guix-daemon
        ('set-http-proxy proxy)
        result
      result)))

(define (clear-http-proxy)
  (with-silent-shepherd
    (with-shepherd-action 'guix-daemon
        ('set-http-proxy)
        result
      result)))

;; Local Variables:
;; eval: (put 'with-silent-shepherd 'scheme-indent-function 0)
;; End:
td> 2023-06-21news: Fix typo....Ludovic Courtès 2023-06-18news: Add entry for 'guix locate'....Ludovic Courtès 2023-05-25guix-install.sh: Install SELinux policy and relabel file systems if needed....Ludovic Courtès 2023-05-25etc: SELinux: Update policy file....Ludovic Courtès 2023-05-24teams: Add Vagrant Cascadian to the embedded team....Vagrant Cascadian 2023-05-24teams: Split Embedded and Bootstrap into separate teams....Vagrant Cascadian 2023-05-19teams: Correct chemistry.scm typo....Antero Mejr 2023-05-18etc: gitconfig: Do not enforced signed commits....Maxim Cournoyer 2023-05-18news: Add entry to 'guix style -S arguments'....Ludovic Courtès 2023-05-18doc: Change '--with-configure-flag' example to something that works....Ludovic Courtès 2023-05-11teams: Fix script to produce a single X-Debbugs-Cc header....Maxim Cournoyer 2023-05-07etc: teams: Add sequoia.scm to the rust team....Efraim Flashner