Re: Network does not work inside Virtual Machine

2019-07-08 Thread pelzflorian (Florian Pelz)
On Mon, Jul 08, 2019 at 10:26:57PM -0400, Raghav Gururajan wrote:
> > […]
> > administrator should create a virtual NIC on the host machine for
> > […]
> 
> Thanks! Could you please guide me on how to create that?
> 

I do not know about libvirt and if that works here, but could this be
a case for the section on NetworkManager’s dnsmasq in `info guix`?

Regards,
Florian



Re: Network does not work inside Virtual Machine

2019-07-08 Thread Raghav Gururajan


> An important note, in order for virtual NICs to be used, the host
> machine must have a physical NIC that is "up", but is not assigned
> any
> network address. In a situation where there is only one physical NIC,
> an
> administrator should create a virtual NIC on the host machine for
> networking instead of using the physical NIC.

Thanks! Could you please guide me on how to create that?

Regards,
RG.



Re: Network does not work inside Virtual Machine

2019-07-08 Thread Kristofer Buffington
An important note, in order for virtual NICs to be used, the host
machine must have a physical NIC that is "up", but is not assigned any
network address. In a situation where there is only one physical NIC, an
administrator should create a virtual NIC on the host machine for
networking instead of using the physical NIC.

-kb



Re: Network does not work inside Virtual Machine

2019-07-08 Thread Raghav Gururajan


> If the openvswitch-service-type is part of the operating-system
> services
> then virt-manager should be able to add virtual network devices on a
> per-VM basis.

Could you tell me what options appear in network settings of your VM?
Mine shows "No Virtual Networks Found", "Ethernet: macvtap" and "WiFi:
macvtap". This is even after enabling openvswitch service.

Also, what is the use of including `(unix-socks-group "wheel")` inside
libvirt service configuration?

Regards,
RG.



Need help installing ProtonMail Bridge

2019-07-08 Thread Gary Johnson
Hi Guix,

I've been trying to get the ProtonMail Bridge
(https://protonmail.com/bridge/) installed on my GuixSD system for the
past several days, and I'm running into a bit of a wall. I'm hoping that
one of you package wizards can help me figure out what I'm screwing up
here, and help me get my package code working correctly.

So without further ado, here it is (further explanation below):

;;== BEGIN PACKAGE 

(define-module (my-packages protonmail-bridge)
  #:use-module ((guix packages) #:prefix p:)
  #:use-module ((guix licenses) #:prefix l:)
  #:use-module ((guix download) #:prefix d:)
  #:use-module ((guix build-system trivial) #:prefix build:)
  #:use-module ((guix utils)#:prefix utils:)
  #:use-module ((gnu packages)  #:prefix gp:)
  #:use-module ((gnu packages base) #:prefix base:)
  #:use-module ((gnu packages compression)  #:prefix compression:)
  #:use-module ((gnu packages qt)   #:prefix qt:)
  #:use-module ((gnu packages gnome)#:prefix gnome:)
  #:use-module ((gnu packages fonts)#:prefix fonts:))

(define-public qtbase-5.12
  (p:package
   (inherit qt:qtbase)
   (name "qtbase")
   (version "5.12.4")
   (source (p:origin
(method d:url-fetch)
(uri (string-append "https://download.qt.io/official_releases/qt/";
(utils:version-major+minor version) "/" version
"/submodules/" name "-everywhere-src-"
version ".tar.xz"))
(sha256 (p:base32 
"158i0apc3i8bbgrk9j1k34y2b03v0kwwv8m7aaaxpxsglppwgyr0"))
;; Use TZDIR to avoid depending on package "tzdata".
;; (patches (gp:search-patches "qtbase-use-TZDIR.patch"
;; "qtbase-old-kernel.patch"))
(modules '((guix build utils)))
(snippet
 ;; corelib uses bundled harfbuzz, md4, md5, sha3
 '(begin
(with-directory-excursion "src/3rdparty"
  (for-each delete-file-recursively
(list "double-conversion" "freetype" "harfbuzz-ng"
  "libpng" "libjpeg" "pcre2" "sqlite" "xcb"
  "zlib"))
  #t)))

;; FIXME: Update propagated-inputs to address these 2 runtime linking errors:
;; - libstdc++.so.6 => not found
;; - libgcc_s.so.1 => not found
(define-public protonmail-bridge
  (p:package
   (name "protonmail-bridge")
   (version "1.1.6-1")
   (supported-systems '("x86_64-linux"))
   (license l:expat)
   (synopsis "Background service that connects your local mail client to 
ProtonMail's servers.")
   (description "The Bridge is an application that runs on your computer in the 
background and seamlessly encrypts and decrypts your mail as it enters and 
leaves your computer.")
   (home-page "https://www.protonmail.com/bridge";)
   (source (p:origin
(method d:url-fetch)
(uri (string-append 
"https://protonmail.com/download/beta/protonmail-bridge_"; version "_amd64.deb"))
(sha256 (p:base32 
"1x9fl6s15d2061y37hrl1yz6f5l6pqfwa895xcm2fr29s8v8b1z8"
   (build-system build:trivial-build-system)
   (inputs `(("binutils" ,base:binutils)
 ("tar"  ,base:tar)
 ("xz"   ,compression:xz)))
   (propagated-inputs `(("libz"  ,compression:zlib)
("qtbase",qtbase-5.12)
("qtmultimedia"  ,qt:qtmultimedia)
("qtdeclarative" ,qt:qtdeclarative)
("qtsvg" ,qt:qtsvg)
("libsecret" ,gnome:libsecret)
("font-dejavu"   ,fonts:font-dejavu)))
   (arguments '(#:builder (let* ((ar (string-append (assoc-ref 
%build-inputs "binutils") "/bin/ar"))
 (tar(string-append (assoc-ref 
%build-inputs "tar")  "/bin/tar"))
 (xz (string-append (assoc-ref 
%build-inputs "xz")   "/bin/xz"))
 (source (assoc-ref %build-inputs 
"source")) ; /gnu/store/...-protonmail-bridge_1.1.6-1_amd64.deb
 (out(assoc-ref %outputs "out"))
 (unpack-deb (string-append ar " p " source " 
data.tar.xz | " xz " --decompress | " tar " x")))
(mkdir out)
(chdir out)
(system unpack-deb)
(rename-file "usr/bin"   "bin")
(rename-file "usr/lib"   "lib")
(rename-file "usr/share" "share")
(rmdir "usr")
(delete-file "bin/protonmail-bridge")
(symlink (string-append out 
"/lib/protonmail/

Re: mount store in a separated partition

2019-07-08 Thread Reza Alizadeh Majd
Thanks for you reply.  I tried to install GuixSD on a DigitalOcean 
droplet and wanted to use a "Block Storage" as my store 
location. 

I contact their support, and it seems that they don't support 
this,  and Block Storages are only accessible after boot. 

Best, 
Reza



Re: Why reproducibility is breaking by metadata?

2019-07-08 Thread Konrad Hinsen
Hi Giovanni,

> Just "food for thought": git-annex metadata allows users to attach
> arbitrary metadata to their annexed files, «metadata is stored in the
> git-annex branch, and so is automatically kept in sync with the rest of
> git-annex's state»

That's indeed a nice example of how to handle metadata in a better way.
But it does require more than a plain files, so publishing and archiving
the metadata requires additional tools (git in this case).

> I doubt this could be applied to `guix pack`, but it's an intereting
> approach to "sidecar" metadata

We could adapt the idea to the Guix store. Write the metadata to a
separate file in the store that has the same filename as the packed
archive, but an additional extension. Since the filename contains the
hash of the archive contents, the relation between data and metadata
is also maintained.

Konrad.