Re: How to configure smartd and send notifications?

2024-05-23 Thread Felix Lechner via
Hi Tristan,

On Thu, May 23 2024, Tristan Kohl via wrote:

> I did not even think about using Guile as the executable :D

Congratulations!  Maybe you will stop writing shell scripts altogether.

> Wrong type to apply: #

For me, that error often means an extra pair of parentheses, such as
trying to evaluate a constant, but here the issue could be that http-get
returns two values. [1]

Maybe this works without an error?

(use-module (gnu) (guix modules))
(use-package-modules tls)
   
(define smartd-send-ntfy
  (program-file "smartd-send-ntfy"
(with-extensions (list gnutls)
  (with-imported-modules
(source-module-closure '((ice-9 receive)
  (web client)))
#~((use-modules (ice-9 receive)
(web client))
   (receive (_ body)
   (http-get "https://example.com;)
 body)

Instead of the string body, you could return a success value via
something like

(not (string-null? body))

You can look at the values in the comfort of the Guile REPL, or in Emacs
Geiser.

Kind regards
Felix

[1] https://www.gnu.org/software/guile//manual/html_node/Multiple-Values.html



Re: LVM v. LUKS @ manual partitioning

2024-05-23 Thread Felix Lechner via
Hi Yann,

On Thu, May 23 2024, Yann Dupont wrote:

> I don't understand how this can work without activation...

Will you please share your configuration?

Kind regards
Felix



Re: luks device keyfile passed but still ask for passphrase during boot

2024-05-23 Thread Felix Lechner via
Hi Thomas,

On Mon, May 20 2024, Thomas Bennett wrote:

> it stills asks for my passphrase to unlock the backup partition.

I don't use LUKS personally, but I have seen enough message traffic to
believe the Guix does not (or perhaps, did not) support some common key
types for LUKS2.  A fix via GRUB may be in the works.

LUKS2 trouble is the most common question on this list and on IRC.

Kind regards
Felix



Re: LVM v. LUKS @ manual partitioning

2024-05-23 Thread Felix Lechner via
Hi Yann,

On Wed, May 22 2024, Yann Dupont wrote:

> @Felix, are you using LVM2 in this case ?

Yes.  For examples, see here [1] here [2] and here [3].

By the way, there is no LVM1---in case that was part of the question.

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/215fc20a29e553fd8108ba737d557ecb98279540/host/lechner-laptop/operating-system.scm#L36-L40
[2] 
https://codeberg.org/lechner/system-config/src/commit/215fc20a29e553fd8108ba737d557ecb98279540/host/lechner-desktop/operating-system.scm#L111-L114
[3] 
https://codeberg.org/lechner/system-config/src/commit/215fc20a29e553fd8108ba737d557ecb98279540/host/wallace-server/operating-system.scm#L1219-L1222



Re: Unable to access any web pages under https://guix.gnu.org

2024-05-21 Thread Felix Lechner via
Hi Ashvith,

On Sun, May 19 2024, Ashvith Shetty wrote:

> I do not have access to the manual page on the web anymore. How can I
> get access to these manuals once again?

The manuals are probably on your hard drive. Please use C-h R in Emacs
or use your favorite stand-alone info reader.

Expert tip:  Use 'i' to search the index.

> https://bordeaux.guix.gnu.org, which was the fastest and also, the
> primary mirror for my use, has completely stopped working for me.

We have some temporary service issues, which are detailed here:

https://lists.gnu.org/archive/html/info-guix/2024-05/msg0.html

Thanks for using Guix!

Kind regards
Felix



Re: LVM v. LUKS @ manual partitioning

2024-05-21 Thread Felix Lechner via
Hi C.G.,

On Sun, May 19 2024, Braswell Business Communications Services Inc. wrote:

> After configuring the LVM to my needs, I then cannot mount the target
> root file system

I use LVM2 a lot but have not used LUKS2.  (Guix may not support all
LUKS2 key types.)  Will you please post your system configuration?

Kind regards
Felix



Re: How to configure smartd and send notifications?

2024-05-20 Thread Felix Lechner via
Hi Tristan,

On Mon, May 20 2024, Tristan Kohl via wrote:

> smartd then complains that the file is not executable...

Sorry, it was a Monday morning for me.

If you are comfortable using Guile---which I'm sure you almost are by
now--You can use 'program-file':

Please have a look at any of these hooks on one of my systems. [1]

An untested version of your script might look something like this,
although I probably got some of the quoting wrong---either in Scheme or
in your command.

(define smartd-send-ntfy
  (program-file "send-ntfy"
  #~((let* ((subject (getenv "SMARTD_SUBJECT))
(device (getenv "SMARTD_DEVICE))
(failure-type (getenv "SMARTD_FAILTYPE))
(timestamp (getenv "SMARTD_TFIRST"))
(message (getenv "SMARTD_MESSAGE")))
   (system* "curl"
"ntfy.sh/"
"-d" (string-join
  `("curl"
"-Ls"
"-H" ,(string-append "Title: " subject)
"-d" ,subject
"-d" ,(string-append
"'"
(string-join (list "Device:" device
   "Time:" timestamp
   "Message:" message))
"'"

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/215fc20a29e553fd8108ba737d557ecb98279540/host/wallace-server/operating-system.scm#L1134-L1168



Re: How to configure smartd and send notifications?

2024-05-20 Thread Felix Lechner via
Hi Tristan,

On Mon, May 20 2024, Tristan Kohl via wrote:

> (define smartd-config-file
>   (plain-file

Have you tried mixed-text-file?

Kind regards
Felix



Re: Guix system is stuck

2024-05-20 Thread Felix Lechner via
Hi Reza,

On Sat, May 18 2024, Reza Housseini wrote:

> what I am supposed to do ...? 

If you have enough space and resources on the equipment, please pull
from Git (not Guix) and build according to the instructions in the
manual.  Unfortunately, the online versions are not available at the
moment, but you can find it locally in Emacs with C-h R.

Then issue

./pre-inst-env guix system reconfigure /path/to/your/config.

Additional channels can be included with -L as long as you have them on
the local disk, as well.

Kind regards
Felix



Re: How to configure smartd and send notifications?

2024-05-20 Thread Felix Lechner via
Hi Tristan,

On Mon, May 20 2024, Tristan Kohl via wrote:

> (list "/run/current-system/profile/sbin/smartd" "--no-fork" "-c" 
> smartd-config-file)))
> warning "possibly unbound variable smartd-config-file".

Please quoteg the variable smartd-config-file as #$smartd-config-file
inside the G-expression.  Did it work?

Kind regards
Felix



Re: Guix system is stuck

2024-05-19 Thread Felix Lechner via
Hi Reza

On Sat, May 18 2024, Reza Housseini wrote:

> guix pull: error: Git error: the SSL certificate is invalid

How old is your installation (guix describe) and is your system time set
correctly?

Kind regards
Fellix



Re: simple song named "Guix"

2024-05-15 Thread Felix Lechner via
Hi Gottfried,

On Fri, May 03 2024, g...@posteo.at wrote:

> I don’t know how it works with copyright,
> Suggestions are welcome.

I think your your song is a super unique contribution in the Guix
community, but we cannot do much with it other than listen to it
privately.

Per Wikipedia, copyright law gives you "the exclusive ... right to copy,
distribute, adapt, display, and perform." [1]

The word "exclusive" means "nobody but you".  For example, I cannot play
your song at a Guix meeting without a license from you.  I can also not
adapt it for piano and sing it in public, nor can I make my version
available on the internet---no audio, no written score..

There are a lot of resources for artists about licensing.  Folks like
Felipe, who designed the Guix logo, could probably give you a quick
intro into popular, off-the-shelf licensing options.

I have no legal training, so please do not rely on my comments here.
Please consult a competent attorney instead.

> I simply put "copyright GP" on the bottom,
> (so that my name stays in the background).

You may wish use your real name.  Then no one with the same initials can
later claim they wrote your song.

I also see calendar years mentioned in a lot of copyright notices.
That's probably because opyright lasts for a long time.  I think in
Austria it might be your life plus seventy years. [2]

Just something to think about when you have some free time.  I know you
like music, so perhaps it's worth your time.

Thanks again for the song!

Kind regards
Felix

[1] first paragraph, https://en.wikipedia.org/wiki/Copyright
[2] https://en.wikipedia.org/wiki/List_of_copyright_terms_of_countries



Re: Guix deploy ignoring identity

2024-05-13 Thread Felix Lechner via
Hi Kristoffer,

On Mon, May 13 2024, Kristoffer Ström wrote:

> I realize now that my ssh key is password protected, is this maybe not
> supported?

To my knowledge that is not supported, but I'd love to hear otherwise.

Kind regards
Felix



Re: Guix deploy ignoring identity

2024-05-13 Thread Felix Lechner via
Hi Kristoffer,

On Mon, May 13 2024, Kristoffer Ström wrote:

> i'm trying to use guix deploy for a remote vhost

Here is a machine stanza I have been using.  It always works, aside from
name resolution issues or SSH timeouts:


https://codeberg.org/lechner/system-config/src/branch/history/host/wallace-server/machine.scm

Notably, I do not use a 'user' field, but use my current user.

There is no error message?

Kind regards
Felix



Re: how to build dependent packages of a package?

2024-05-10 Thread Felix Lechner via
Hi Andy & everyone,

On Thu, May 09 2024, Andy Tai wrote:

> Hi, I wonder if there is a Guix command to build all packages that
> depend on a particular package?  Mainly useful for testing if updating
> a package will break packages dependent on it

The word "dependent" can mean one of two things.  May I suggest the use
of the terms "prerequisite" and "consumer" instead?

Kind regards
Felix



Re: simple song named "Guix"

2024-05-09 Thread Felix Lechner via
Hi Gottfried,

On Fri, May 03 2024, gfp wrote:

> I put the song down in "Musescore 3.6.2"
> and recorded it with "obs"

I hoped to listen to your song again, but the Tuxedo page is no longer
accessible.  Did you upload the song somewhere else?  Thanks!

Kind regards
Felix



Re: pgp key

2024-05-02 Thread Felix Lechner via
Hi Gottfried,

On Thu, May 02 2024, g...@posteo.at wrote:

> I don't know how it works, how somebody can find it or download
> anything from there.

Thanks for sending those!  You can see your own messages in the list
archive. [1] I can download the score and watch your guitar song
Guix.mp4.

Thank you for giving back to the community!  Guix is so much better
because of you.

Your guitar chords and vocals were a beautiful escape for ten minutes.
I listened to them twice.

Kind regards
Felix

[1] https://lists.gnu.org/archive/html/help-guix/2024-05/threads.html



Re: How to debug failing guix pull?

2024-05-01 Thread Felix Lechner via
Hi Thomas,

On Thu, May 02 2024, Tomas Volf wrote:

>   Updating channel 'guix' from Git repository at 
> 'https://git.wolfsden.cz/.git/guix'...
>   guix pull: error: Git error: SSL error: 0x8880 - SSL - A fatal alert 
> message was received from our peer

Would you please try that again?

On Thu May 2 04:22:58 AM UTC 2024, I ran this command

$ openssl s_client -connect git.wolfsden.cz:443 2>/dev/null | openssl x509 
-noout -dates

and saw this output

notBefore=May  2 03:00:16 2024 GMT
notAfter=Jul 31 03:00:15 2024 GMT

By my math, you possibly wrote your message before the certificate was
valid, namely on or about Thu May 2 00:08:00 AM UTC 2024.

Maybe Guix cared but Git didn't?

Kind regards
Felix



Re: pgp key

2024-05-01 Thread Felix Lechner via
Hi Gottfried,

On Wed, May 01 2024, g...@posteo.at wrote:

> I would like to send it to all

For songs and other creative content it may be better to provide a
download link (for files and signatures) than to copy the entire list.

Some folks, myself included, read emails on devices with limited memory.
Server space, which stores emails, is also valuable.

By providing a link, you offer interested readers---who I am sure are
many---a way to download your files and store them in their playlists.

Kind regards
Felix



Re: pgp key

2024-05-01 Thread Felix Lechner via
Hi Gottfried,

On Wed, May 01 2024, g...@posteo.at wrote:

> I would not like to send it unencrypted, so that somebody may misuse
> it during the sending.

What type of misuse do you envision?  If you want to share the song with
the world, you are not looking for encryption.  That would help keep
your song confidential.

Are you looking for signatures?  When used properly, they prevent
someone from tampering with the content you distribute.

There are two way to do that.

You can sign a PGP/MIME email with PGP.  That happens regularly on Guix
mailing lists, although probably more often on guix-devel.  Here is how
to do it in Emacs's Message Mode. [1] Most modern mail clients will
automatically check the signature and light up when the message was
modified in transit.

You could also publish "detached signatures."  Those are basically
hashes of your songs (with algorithms like SHA-512) that you sign with
your private key.  GnuPG is a tool that allows you to do that [2]
although it would be good to remind recipients that they should verify
your signatures manually.

Kind regards
Felix

[1] 
https://www.gnu.org/software/emacs/manual/html_node/message/Signing-and-encryption.html
[2] https://www.gnupg.org/gph/en/manual/x135.html



Re: Insufficient privileges

2024-04-30 Thread Felix Lechner via
Hi,

On Wed, Apr 24 2024, guix wrote:

> I thinking it is ether dbus or a polkit issue

On my equipment NetworkManager (and Connman) work out of the box.  Will
you please share your configuration?

Kind regards
Felix



Re: pgp key

2024-04-30 Thread Felix Lechner via
Hi Gottfried,

On Tue, Apr 30 2024, Tomas Volf wrote:

> This is a public mailing list, so the messages to it should not be
> encrypted.

If it's okay to elaborate, it is furthermore not necessary to encrypt
carbon copies of public messages to direct recipients.

So when you copy Ludo' on messages to help-guix@, for example, there is
no need to use Ludo's key.  In fact, an emerging standard recommends
against it. [1]

Thank you for encrypting your email (or at least trying)!

Kind regards
Felix

[1] Section 3.2 ("One Cryptographic Status Per Message")
https://datatracker.ietf.org/doc/draft-ietf-lamps-e2e-mail-guidance/



Re: What is the difference between the directories in / and in /run/current-system/profile?

2024-04-29 Thread Felix Lechner via
Hi Nathaniel,

On Sat, Apr 27 2024, Nathan Dehnel wrote:

> These directories are in both locations.

As you already figured out, they contain different things.

> What does it mean for a file to be in one place vs the other?

Files in /var and /etc hold some form of local system state, plus logs.

Files in your system profile's 'var' provide data that packages are
expected to deposit there.

For 'etc' it's basically the same, except for configuration files.  Many
of those are actually in the store by themselves---and that's really the
goal for Guix.

My /bin is empty, except for /bin/sh.  The profile's bin holds symbolic
links to all 'bin' files from packages in your current profile.  The
profile's 'bin' is how your shell finds programs.  (It should also look
in /run/setuid-programs.)

Ideally, / would be empty, except for /gnu/store and mount points for
/home and /root.  Some folks run / on a tmpfs and manage to get pretty
close.  One challenge is that we haven't figured out what to do with
secrets.  The store is public, so they can't go there.

Please don't despair.  Guix is totally different from other operating
systems, but it makes a great deal of sense once you get used to it.
That may involve a year of intense adjustment, or more.

Kind regards
Felix



Re: How to share profile among machines ?

2024-04-25 Thread Felix Lechner via
Hi Emmanuel,

On Wed, Apr 24 2024, Emmanuel Medernach wrote:

> How do you share profiles among machines ?

Do you mean users?

> For instance 2 users wants to have the same profile, user A shares the
> directory /gnu/store/...-profile to user B, user B either get access
> to it directly or from a remote machine

My users manage their profiles via Guix Home.  Those configuration files
can be exchanged.  All my equipment also publishes the local store, so
built files are never far away.

Kind regards
Felix



Re: Is guix the right tool to get package definitions?

2024-04-22 Thread Felix Lechner via
Hi Adam,

On Mon, Apr 22 2024, Adam wrote:

> Anyway, I'm just curious about it. If there are already answers for my
> question, I would like to read them.

I am not familiar with the tarballs Nix uses to deliver updates of
package definitions.  Their repo is probably bigger than Guix.  Here, we
use 'guix pull' together with channel definitions.

Is there a chance you might rephrase your question for a better answer,
please?

Kind regards
Felix



Re: Adding a menu entry on GRUB.

2024-04-21 Thread Felix Lechner via
Hi William,

On Sun, Apr 21 2024, William wrote:

> I ran e2fsck, lsblk, blkid and fdisk on a booted system to verify that
> everything is fine with these partitions, no sign of anything
> unusal...

Are you being bitten by a new incompatibility between GRUB and the new
default options? [1] How did you create your file systems?

Kind regards
Felix

[1] https://lists.gnu.org/archive/html/guix-devel/2024-04/msg00207.html



Re: Pinyin in GNOME

2024-04-21 Thread Felix Lechner via
Hi Tomas,

On Mon, Nov 06 2023, Tomas Volf wrote:

> Not sure about pinyin, but for ibus I need to set
>
> (simple-service
>  'im-env-vars home-environment-variables-service-type
>  '(("GTK_IM_MODULE" . "ibus")
>  ("QT_IM_MODULE" . "ibus")
>  ("XMODIFIERS" . "@im=ibus")
>;; TODO: Are these still required?  If yes, try to get rid of them.
>  ("GUIX_GTK2_IM_MODULE_FILE"
> . "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
>  ("GUIX_GTK3_IM_MODULE_FILE"
> . "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))

That works locally under EXWM, but have been unable to get ibus working
under GNOME.  Would someone please post a complete recipe, including
what to install in which profile, and whether to start GNOME in X or
Wayland?

Kind regards
Felix



Re: Replication question

2024-04-16 Thread Felix Lechner via
Hi Mauritz,

On Tue, Apr 16 2024, Mauritz Stenek wrote:

> How, then, is this environment replicable [...] ?

Soon after switching to Guix System, I also adopted Guix Home.  Together
both more or less ensure a reproducible enviroment.  In your use case, I
believe only the packages are reproducible (such as the executables) but
not the entire environment.

As a Guix noobie, I don't understand all of the intricacies so it would
be prudent to wait for other answers before you draw conclusions.

Thanks for using GNU Guix!

Kind regards
Felix



Re: Server installation is incompatible with guix home

2024-04-14 Thread Felix Lechner via
Hi MSavoritias,

On Fri, Apr 12 2024, MSavoritias wrote:

> Is there [...] a way to make the warning disappear without installing
> all desktop services?

This seems to work for me. [1][2][3] Thanks to unbalanced-paren, who
gave it to me years ago!

There could be subtle differences in our home configurations.  Here are
mine. [4]

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/db9edb46caf36fe15bc6f8abc5d1df184b6d5c5f/host/wallace-server/operating-system.scm#L1931-L1932
[2] 
https://codeberg.org/lechner/system-config/src/branch/history/services/desktop.scm
[3] 
https://codeberg.org/lechner/system-config/src/branch/history/services/greeter.scm
[4] https://codeberg.org/lechner/home-config



Re: Adding a menu entry on GRUB.

2024-04-12 Thread Felix Lechner via
Hi William,

On Fri, Apr 12 2024, William wrote:

> What could be causing this behavior?

Maybe the GRUB module for that particular file system was not loaded (or
was not found).  Please have a look at the documentation for 'insmod'.

Kind regards
Felix



Re: Guix as a non-optional dependency in another project, and Guix resources requirements.

2024-04-11 Thread Felix Lechner via
Hi Andreas,

On Thu, Apr 11 2024, Andreas Enge wrote:

> So if I understand correctly, 2GB is about the amount of memory needed
> for "guix pull".

Probably.  By the way, nothing in my messages should be interpreted to
say that Guix's memory usage is acceptable.  I am merely trying to help.

> Now I have been running out of disk space, but this is another
> problem.

Please have a look at zram [1] which compresses many of your memory
pages and requires no device at all (thus saving valuable disk space),
or zswap [2] which compresses your swap pages.  The latter reduces the
size of your swap partition while keeping the same capacity. [3]

Kind regards
Felix

[1] https://en.wikipedia.org/wiki/Zram
[2] https://en.wikipedia.org/wiki/Zswap
[3] 
https://stackoverflow.com/questions/18437205/difference-between-zram-and-zswap



Re: Inconsistency between resolved issues/patches and source files.

2024-04-09 Thread Felix Lechner via
Hi William,

On Tue, Apr 09 2024, William wrote:

> Could someone explain exactly what the "core-updates" branch is?

The mission of that branch is changing but it's not going away.
Originally, it pooled all edits that resulted in large numbers of
rebuilds on the substitute servers.

After team branches were allowed on Savannah, the branch now pools
updates to "core" packages. [1][2]

Personally, I think we should get rid of the branch. [3]

> Can perhaps "core-updates" be added as an extra channel on Guix
> manually?

You may be able to do that via your home or your system channels
configuration, but I haven't tried.  Instead, I maintain my own branch
which carries the modifications my systems require. [4]

I expect that situation to persist indefinitely.

> And how long usually it takes for these patches to make its way from
> "core-updates" to master?

On average about a year, or a year and a half.  That unusually long
period has been identified as an example where the project's performance
as a group falls short of our collective expectations.

Unfortunately, the fear of causing rebuilds on the substitute servers is
too dominant in our minds.  The group cannot muster the courage to
ignore it in the name of progress.

As nckx pointed out, "no one likes our Gentoo emulation mode."

Kind regards
Felix

[1] https://lists.gnu.org/archive/html/guix-devel/2023-12/msg00059.html
[2] https://lists.gnu.org/archive/html/guix-devel/2024-01/msg00096.html
[3] https://lists.gnu.org/archive/html/guix-devel/2024-02/msg00334.html
[4] https://codeberg.org/lechner/guix/src/branch/lechner-experimental



Re: Guix as a non-optional dependency in another project, and Guix resources requirements.

2024-04-09 Thread Felix Lechner via
Hi,

On Tue, Apr 09 2024, pelzflorian (Florian Pelz) wrote:

> you could make Guix pull an older commit

There is also 'guix deploy' from a stronger machine, which I recommend
for any VPS.

It's a breeze to set up but does currently come with some security
implications.  It requires automated SSH access to the root account on
the targeted equipment.

Kind regards
Felix



Re: Guix as a non-optional dependency in another project, and Guix resources requirements.

2024-04-08 Thread Felix Lechner via
Hi Andreas,

On Mon, Apr 08 2024, Andreas Enge wrote:

> I have a virtual machine that ... had 1GB of memory. This was not
> enough to do a "guix pull".

I operated a 1 GB web server that ran Guix on Linode for a while.  Did
you configure a swap partition?

Kind regards
Felix



Re: icedove crashes when you attach a file

2024-04-06 Thread Felix Lechner via
Hi Gottfried,

On Sat, Apr 06 2024, Gottfried wrote:

> /home/gfp/.guix-profile/lib/gio/modules/libgvfsdbus.so: undefined
> symbol: g_task_set_static_name

Did you install 'gvfs' into your home profile?

It could also be a packaging error. [1][2][3]

Kind regards
Felix

[1] 
https://stackoverflow.com/questions/67869880/undefined-symbol-g-task-set-name-in-glib
[2] https://github.com/AppImageCommunity/pkg2appimage/issues/536
[3] 
https://forums.gentoo.org/viewtopic-t-1164291-start-0-postdays-0-postorder-asc-highlight-.html



Re: guix system reconfigure errors

2024-04-01 Thread Felix Lechner via
Hi Oleander,

On Fri, Mar 29 2024, Oleander via wrote:

> 354:39 4 (_ #< name: guix url: "https://git.savannah.gn…>)

> Git error: the SSL certificate is invalid

Those log lines are abbreviated, but the certificate error strikes me as
likely to be transient.

Savannah is maintained by volunteers and occasionally experiences
downtimes.  Friday was also a super confusing day for system
adminstrators around the world due to the xz-utils backdoor. [1]

Kind regards
Felix

[1] 
https://arstechnica.com/security/2024/04/what-we-know-about-the-xz-utils-backdoor-that-almost-infected-the-world/



Re: VM Guix

2024-03-25 Thread Felix Lechner via
Hi Brian,

On Mon, Mar 25 2024, Brian O'Keefe wrote:

> it eats up disk space like a hog

Yeah, that's Guix for you.  We provide perfect prerequisites, which can
involve many similar versions of the same stuff.

I had 25 GB VM for a while and it was fine, but I did not reconfigure
often.  Also, if you run any kind of graphical enviroment, which you
probably didn't, a root partition of 200 GB may be more appropriate.

Kind regards
Felix



Re: Stuck at boot on fresh install

2024-03-25 Thread Felix Lechner via
Hi David,

On Mon, Mar 25 2024, David Lecompte wrote:

> error: no such cryptodisk found.

Do you use LUKS on boot?  Our GRUB supports only a particular type of
key.  Maybe that's the issue?

Kind regards
Felix



Re: 'static-networking' fails to start

2024-03-25 Thread Felix Lechner via
Hi Fabio,

On Mon, Mar 25 2024, Fabio Natali wrote:

> I wasn't able to un-archive

Debbugs was down. I unarchived Bug#64653 for you.

> I've been trying to reconfigure a machine from static IPv4 to static
> dual-stack or IPv6-only.

I also had issues with static networking two years ago.  Here is what
worked for me at the time. [1]

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/46a0e48fc5ae38f7e6bfb86527ec2bbabc272c71/host/letbox/operating-system.scm#L176-L192



Re: Any success with fingerprint scanner/fprintd for Gnome login?

2024-03-24 Thread Felix Lechner via
Hi Ben,

On Sun, Mar 24 2024, Ben Sturmfels wrote:

> Any suggestions or thoughts on how to troubleshoot this?

I do not use GNOME or fprintd but the manual page says it's a DBus
service that comes with a PAM module.

I am not sure that fprintd-service-type installs the PAM module, so
maybe that happens in GDM.  I was further unable to find your error
message starting with "Sorry" in the Gilab repos for libfprint or
fprintd. [1]

I would snoop around in /var/log/messages or nearby files with grep.
Logging is a wonderful thing.

Kind regards
Felix

[1] https://fprint.freedesktop.org/



Re: Using custom xkbmaps

2024-03-13 Thread Felix Lechner via


Hi Kristoffer,

On Wed, Mar 13 2024, Kristoffer Ström wrote:

> i'm using a custom xkbmap that i've been developing over the last
> decade or so, and i'm looking to migrate to guix system.

When I switched to Guix, I gave up my own Rocket layout. [1] Where is
your layout, please?

> i have found no straightforward way to include a custom mapping
> ... into my operating-system declarations.

That is a well-known restriction, although very few people care about
it..

> Looking around the list history i only found suggestions to patch the
> xkeyboard-config package.

I am now good enough with Guix to propose a generalized solution.  I am
not sure it would involve patching the existing package in the
conventional sense but am curious to read about it.  Where did you find
it, please?

Kind regards
Felix

P.S. Sorry to read about your sister, Amy.

[1] https://codeberg.org/lechner/rocket-layout



Re: Configuring mount for NTFS partition at boot makes the system unbootable.

2024-03-07 Thread Felix Lechner via
Hi William,

On Fri, Mar 08 2024, William wrote:

> you mean absolute paths for mounting points or for ntfs-3g?

I meant store paths inside packages. They may not be visible to
you. Packaging errors can cause some to go missing.

> Shouldn't Sheperd log these issues somewhere?

Logging may be a recent addition to the Shepherd. Please track down
Attila Lendvai for the latest status.

> Where should I check to find logs related to filesystems?

They could appear in /var/log/messages, as long as the boot process
reaches the point when that file is writable.

Kind regards
Felix



Re: Configuring mount for NTFS partition at boot makes the system unbootable.

2024-03-07 Thread Felix Lechner via
Hi William,

On Mon, Mar 04 2024, William wrote:

> the issue is ... ntfs-3g relying on the external FUSE to mount
> partitions.

I am not sure but please consider that GNU Guix relies on absolute paths
to find many things. Perhaps a needed part is not found?

Kind regards
Felix



Re: Patch review session tomorrow (Thursday 7th March)

2024-03-07 Thread Felix Lechner via
Hi,

On Wed, Mar 06 2024, Steve George wrote:

> 18:00 UTC, 18:00 GMT (London), 19:00 CET (Paris), 13:00 EST (New York)

As one of the weirdos out in California, I'll add 10 AM Pacific.

Please join!

Kind regards
Felix



Re: Staging Scheme code to run as one-shot service

2024-03-04 Thread Felix Lechner via
Hi Owen,

On Sat, Mar 02 2024, Owen T. Heisler wrote:

>(start #~(lambda ()
>   #$(say-hello)))

My code works when I place it directly into the 'start' G-exp. [1]

By comparison, I think you have two lambdas (with quoting and
unquoting). I would try something like this:

(start #~(let ((port (open-pipe* OPEN_WRITE "logger" "-plocal0.alert")))
   (display "say-hello\n" port)
   (close-pipe port)))

Kind regards
Felix

[1] 
https://codeberg.org/lechner/juix/src/commit/fe8cac5165bfbe290413cedd36a492109e29e38b/juix/deploy/cachefilesd.scm#L158



Re: Configuring mount for NTFS partition at boot makes the system unbootable.

2024-03-03 Thread Felix Lechner via
Hi William,

It seems that help-guix was inadvertently left off of the recipients.  I
hope you don't mind that I copied the mailing list on your response.

On Sun, Mar 03 2024, William wrote:

> Hello.
>
> Thanks for the input, this certainly helped me diagnose the issue.
>
> I set some options so Guix keeps booting if mounting the filesystem
> fails, now I can boot.
>
> I potentially figured out what the issue may be, the filesystem entry is
> defined on /etc/fstab so I tried running "mount -a" without root, and it
> printed this:
>
>> Mount is denied because setuid and setgid root ntfs-3g is insecure
>> with the external FUSE library. Either remove the setuid/setgid bit
>> from the binary or rebuild NTFS-3G with integrated FUSE support and
>> make it setuid root.
>> Please see more information at
>> https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ
>
> It seems it's another issue with setuid/setgid. I think this could be
> solved if ntfs-3g is compiled with integrated FUSE support, so
> it doesn't require libfuse at all, then the declaration to load the FUSE
> module wouldn't be needed either I suppose.

I also use FUSE every day and believe it's compiled into our kernels
(i.e. no module). Perhaps someone can help you find our kernel
configurations.

The security concern may also be further explained here. [1]

> Maybe this should be reported as an issue on the Guix tracker?

There is already a bug about it. [2] The filing is from 2021. There is
no proposed solution.

I would write to the bug [3] and ask if there are workarounds. Please
make sure to cc Abdelhakim, whose address you can find here. [4] (I also
copied him on this message.) No one else will receive or read your
message to the bug tracker.

Kind regards
Felix

P.S. Sorry about the complexity of our bug reporting tools. Some work is
being done to simplify them.

[1] 
https://unparalleled.eu/blog/2022/20220607-help-to-heap-suid-privilege-escalation/
[2] https://issues.guix.gnu.org/46980
[3] 46...@debbugs.gnu.org
[4] https://debbugs.gnu.org/46980



Re: Configuring mount for NTFS partition at boot makes the system unbootable.

2024-03-03 Thread Felix Lechner via
Hi William,

On Sun, Mar 03 2024, William wrote:

> the FUSE kernel module not loading at boot time

Maybe something like that would help when used with your module:

  
https://codeberg.org/lechner/system-config/src/branch/history/host/wallace-server/operating-system.scm#L816

Alternatively, you could set 'mount?' to #f, as described here [1] and
load the module manually after booting (and then mount your filesystem).

Kind regards
Felix

[1] https://guix.gnu.org/manual/en/html_node/File-Systems.html#File-Systems-1



Re: abstract question about guix

2024-02-27 Thread Felix Lechner via
Hi Matt,

On Sun, Feb 25 2024, m...@jmgresham.xyz wrote:

> If could please contemplate a script that installs utilities before other 
> certain
> things are installed after first a minimal install of a distribution of
> GNU/Linux onto the computer. What if the package manager that the
> script would use were guix? What systems like typical setups usually
> found on free systems, particularly setups or configurations that
> have X setup differently or displayed differently? I am not just
> writing: I plan to use this sort of logic with a minimal install
> of Trisquel.

Your questions are indeed abstract. Moreover, the situation you describe
is hypothetical. How about you install Guix and then come back with your
questions?

Everyone on this list uses Guix as their package manager, and many folks
here are helpful.

You may not need Trisquel. The "Guix System," which should probably be
renamed in order ro distinguish it from the package manager, is a
fully-fledged operating system.

Thanks for experimenting with GNU Guix!

Kind regards,
Felix



Re: PostgreSQL 15 service

2024-02-26 Thread Felix Lechner via
Hi Mauritz,

On Sun, Feb 25 2024, Mauritz Stenek wrote:

> I added the postgres service

I use that service, too [1] 

> exception caught while executing 'start' on service 'postgres':

but I do not get that message upon 'restart'. I was also not able to
find anything like that in my logs.

Maybe it's a permission issue?

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/branch/history/host/wallace-server/operating-system.scm#L877-L895



Re: [HOWTO] Start X server manually instead of using a login manager

2024-02-26 Thread Felix Lechner via
Hi Tomas,

On Mon, Feb 26 2024, Tomas Volf wrote:

> There is patch #68289

Not sure where the message originated, but I use the script below.

Kind regards
Felix

* * *

#!/usr/bin/env -S guile --no-auto-compile -s
!#

(let* ((profile (string-append (getenv "HOME") "/.guix-profile"))
   (virtual-terminal (string-append "vt" (getenv "XDG_VTNR"
  (system* "xinit" "--"
   (string-append profile "/bin/Xorg")
   ":0"
   virtual-terminal "-keeptty"
   "-configdir" (string-append profile "/share/X11/xorg.conf.d")
   "-modulepath" (string-append profile "/lib/xorg/modules")))



Re: Changing the prefix for this libpg_query package

2024-02-25 Thread Felix Lechner via
Hi Marc,

On Tue, Feb 20 2024, Marc Coquand wrote:

> I need to change the prefix to be the guix out directory

To override the variable assigned in the Makefile [1] you are right to
offer it as an argument to 'make'. [2] I'm not sure why that's not
working. I would just replace it in situ:

#:phases (modify-phases %standard-phases
  (add-after 'unpack 'fix-prefix
   (lambda _
(substitute* "Makefile"
 (("/usr/local") $output)

Kind regards
Felix

[1] 
https://github.com/pganalyze/libpg_query/blob/1ec38940e5c6f09a4c1d17a46d839a881c4f2db7/Makefile#L311
[2] https://www.gnu.org/software/make/manual/make.html#Overriding



Re: mcron service and PATH (was: Home service for mbsync?)

2024-02-22 Thread Felix Lechner via
Hi,

> you can find it here
> I've attached my mbsync service
> I just run mbsync as an mcron service.
> +1! I also run it using mcron.
> In my home services I have this:
> I'm doing something similar

First off, thanks for all your responses so far!

On Thu, Feb 22 2024, Emmanuel Beffara wrote:

> the command in the mcron job is called with an incomplete PATH.

Has anyone noticed a similar PATH issue with system Mcron jobs?  I have
to do this inside my Mcron jobs:

(setenv "PATH"
(string-join (list "/run/setuid-programs" (getenv "PATH")) ":"))

Otherwise, the setuid copies of my executables like 'sendmail' are not
available in Mcron jobs.

Also, while I have your attention, my fellow Mcron aficionados, please
feel free to check out this little issue. [1] There goes another
afternoon...

Kind regards
Felix

[1] https://lists.gnu.org/archive/html/bug-mcron/2023-12/msg1.html



Home service for mbsync?

2024-02-21 Thread Felix Lechner via
Hi,

Does anyone have an 'mbsync' home service, please? Thanks!

Kind regards
Felix



Re: sending to guix-patches does not seem to show?

2024-02-18 Thread Felix Lechner via
Hi Andy,

On Sun, Feb 18 2024, Andy Tai wrote:

> multiple issues created... now I will go to merge them,

You can do so with "forcemerge" via the control server but if no one has
commented yet, I would instead close the duplicate bugs via messages to
xxx-d...@debbugs.gnu.org that state:

  Duplicate of #YYY. Closing.

Kind regards
Felix



Re: sending to guix-patches does not seem to show?

2024-02-18 Thread Felix Lechner via
Hi Andy,
Hi Artyom,

> sending a patch to guix-patches does not seem to result in the
> creation of a new debbugs issue

> I'm having the same issue

You are not alone. [1][2]

Please note that I do not maintain Debbugs.  I would like to, but lost
an internal appeals process, which was non-public. I wrote:

> The Debbugs system is unmaintainble. FSF is unable and unwilling (!)
> to publish a code base for the version deployed on
> debbugs.gnu.org. I'd call that a disaster for a free-software advocacy
> group.
>
> Without a code base, no one can propose patches. It's absurd for
> anyone working with free software. On a practical level, it is
> impossible to fix or discuss issues like these. [3]

To preserve at least some privacy and perhaps goodwill, I'll paraphrase
the response. I believe it correctly reflects the applicable GPL-2
license [4] yet somehow missed my point:

FSF did not write Debbugs. FSF does not distribute any version of
it. No one who uses a program and patches it has an obligation to
release the private modified version.

I hope that publishing the information did not violate anyone's privacy
expectations.  The Guix community deserved to know.

To sum it up, there are capable people who work on Debbugs. It's just
not me.  Please direct comments about Debbugs to the help-debbugs
mailing list. [5] With some luck, your issue will be addressed shortly.
Maybe it was fixed already. Thank you!

Kind regards
Felix

[1] https://mail.gnu.org/archive/html/help-debbugs/2024-02/msg00028.html
[2] https://mail.gnu.org/archive/html/help-debbugs/2024-02/msg00030.html
[3] https://lists.gnu.org/archive/html/guix-devel/2024-02/msg00187.html
[4] https://codeberg.org/lechner/debbugs-gnu/src/branch/history/COPYING
[5] https://lists.gnu.org/mailman/listinfo/help-debbugs



Re: Unlocking Gnome keychain in EXWM session

2024-02-17 Thread Felix Lechner via
Hi Ian,

On Sat, Feb 17 2024, Ian Eure wrote:

> Is there some way to unlock this on login in non-Gnome sessions? 

I don't use GNOME (or the GNOME keyring) but you may have to use PAM to
unlock the keyring. [1][2]

Kind regards,
Felix

[1] https://askubuntu.com/a/1445123
[2] https://wiki.archlinux.org/title/GNOME/Keyring#PAM_step



How to file Mumi bugs

2024-02-08 Thread Felix Lechner via
Hi,

An effort is under way to bring Mumi [1] and Debbugs [2] closer
together. It's like a giant tongue twister!

Bugs filed against Mumi are in the process of being re-assigned from
'guix' to the 'mumi' package in Debbugs. For the time being, those bugs
may not show up in Mumi anymore, but only in Debbugs. They may appear in
Mumi again in the future.

Please continue to submit patches and bug reports intended for Guix the
way you have. Those filings are not affected.

For issues with Mumi or its command-line tool, however, please send bugs
to sub...@debbugs.gnu.org with a first line that reads

   Package: mumi

Filing instructions are also available here:

   https://debbugs.gnu.org/Reporting.html

Please do not send Mumi bug reports to bug-g...@gnu.org anymore.

For help, please reply narrowly to this message (i.e. pick a
list). Thank you!

Kind regards on behalf of the Debbugs and Mumi maintainers,
Felix

[1] https://debbugs.gnu.org
[2] https://issues.guix.gnu.org
[3] https://debbugs.gnu.org/Reporting.html



Re: Guix Days: Patch flow discussion

2024-02-05 Thread Felix Lechner via
Hi Suhail,

On Mon, Feb 05 2024, suh...@bayesians.ca wrote:

> Felix Lechner via  writes:
>
> Is your position that

First off, I'm sorry I write so much today. For a project the size of
Guix, it's not good for one person to belabor a point repeatedly. I am
responding to your request for a clarification.

> 1. this never happens today and thus, should happen some times when
>warranted.  Or that,
>
> 2. it happens far too rarely today, and should happen more often. Or
>that,
>
> 3. committers should never ask for revisions?

None of the above. I believe committers should commit only changes they
are comfortable with. Otherwise, they should leave a bug to folks with
more experience, perhaps tagging it along the way.

I think there should be a hundred people who do nothing but add new
packages. They would free up valuable capacity for the people
experienced with build systems, Guix services and their configuration,
the user interface, the daemon, cross-compilation and other more
difficult speciality areas.

Kind regards
Felix



Re: Guix Days: Patch flow discussion

2024-02-05 Thread Felix Lechner via
On Mon, Feb 05 2024, Clément Lassieur wrote:

> On Mon, Feb 05 2024, Felix Lechner via "Development of GNU Guix and the GNU 
> System distribution." wrote:
>
> I see no evidence here.  And I'm unsure which plan you are talking
> about (the plan?).

Two people can look at the same thing and reach different conclusions. I
see no evidence that large numbers of non-committers are eager to review
patches.

> What do you mean with "bottom"?

I'm sorry to put words into your mouth. I meant to quote an executive at
a bank who explained that strategy to me. The word "bottom" was his and
should have been a quote.

The executive referred to people without the authority to act on behalf
of the group.

I believe Guix would be better off to delegate responsibility (rather
than competency) by handing out commit access more generously but
imposing limits as to the type of changes a person may make.

The honor system will work fine.

> Reviewing != Closing

Maybe they should be the same. Two people looking at a patch (submitter
and committer) are more efficient than three people, i.e. a submitter, a
reviewer, and a committer.

It's one of several bottlenecks at Guix. Another is that committers
should commit what they think is right rather than ask for revised
patches.

Please give authorship to the submitter.

Kind regards
Felix



Re: Guix Days: Patch flow discussion

2024-02-05 Thread Felix Lechner via
Hi Clément,

On Mon, Feb 05 2024, Clément Lassieur wrote:

> I don't think reviewers have to be committers.

How much more evidence does the project need to see in order to realize
that the plan is not working?

I'll spare the list a lengthy analysis of the social dynamics but the
delegation of competency to the bottom is an unsuccessful practice in
many places.

Maintainers must close bugs in service to the public. There is no other
way.

Kind regards
Felix



Re: Unable to boot installer (i686)

2024-02-02 Thread Felix Lechner via
Hi Kete,

On Fri, Feb 02 2024, Kete Foy wrote:

> I will try your advice.

I am not sure it will work. The last time I tried to install Guix on
32-bit equipment, someone in #guix asked "Why?" and offered to send me a
64-bit product from their retired collection.

Kind regards
Felix



Re: Troublshooting guix-publish make-systemd-constructor

2024-02-01 Thread Felix Lechner via
Hi Jack,

On Thu, Feb 01 2024, Jack Hill wrote:

> I could use some tips on what's wrong with guix-publish, and more 
> generally how to troubleshoot systemd services.

I use this [1] and also have (service avahi-service-type) [2] but do not
know how to troubleshoot. It just worked.

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/a6962d1414d11040072f0e79ffde354fa523137a/service/guix-publish.scm#L4-L8
[2] 
https://codeberg.org/lechner/system-config/src/commit/a6962d1414d11040072f0e79ffde354fa523137a/host/lechner-desktop/operating-system.scm#L191



Re: How to determine the supported file systems for (uuid ...)?

2024-01-31 Thread Felix Lechner via
Hi Rodrigo,

On Fri, Jan 19 2024, Rodrigo Morales wrote:

> when EXT2 is supported, then it is highly likely that EXT3 and EXT4 is
> also supported?

Yes, that's because ext3 and ext4 only add better journaling and other
features to what essentially remains ext2 metadata. [1]

Kind regards
Felix

[1] See "backward compatibility,"
https://en.wikipedia.org/wiki/Ext4#Features



Re: Unable to boot installer (i686)

2024-01-31 Thread Felix Lechner via
Hi Kete,

On Sun, Jan 28 2024, Kete Foy via wrote:

> error: you need to load the kernel first.

I believe your BIOS enumerated your drives differently than the
installer. Either way, I would load grub.cfg manually and make any
needed edits manually before booting, with 'e' in the menu.

In preparation, I might copy guix.scm from its Guix store location to
the more accessible root folder using a rescue USB stick (or the
installer USB itself).

If you have trouble getting into GRUB from your hard drive alone, you
can also boot from the installer USB and load grub.cfg from there.

You seem to know GRUB, so I keep more basic comments to myself. Please
just remember that loading modules via 'insmod' will enhance GRUB's
capabilities as you go, especially 'insmod normal'.

Kind regards
Felix



Re: Cannot build personal channel derivation during guix pull

2024-01-23 Thread Felix Lechner via
Hi Marek,

On Tue, Jan 23 2024, Marek Paśnikowski wrote:

> (exception unbound-variable (value #f) (value "Unbound variable: ~S")
> (value (channel)) (value #f))

Not sure how those get loaded on your side. In my setup using Guix home
[1] I load (guix channels) and get no such error.

Kind regards
Felix

[1] 
https://codeberg.org/lechner/home-config/src/branch/history/service/channels.scm



Re: Help packaging network-manager-sstp and sstp-client

2024-01-21 Thread Felix Lechner via
Hi Lars,

On Sun, Jan 21 2024, Lars Rustand wrote:

> Maybe the setenv is only taking effect inside the added phase and is
> not propagated to the configure phase?

I don't think so. I used the same trick here:

  
https://codeberg.org/lechner/juix/src/commit/fc328c57a4bf100d6b16a7f14e9c96d29a083bad/juix/deploy/debbugs.scm#L366-L390

Please feel to try that without the snippet. The error looked similar to
yours.

Kind regards
Felix



Re: Help packaging network-manager-sstp and sstp-client

2024-01-21 Thread Felix Lechner via
On Sun, Jan 21 2024, Clément Lassieur wrote:

> On Sun, Jan 21 2024, Felix Lechner via wrote:
>
> I forgot to say that in this snippet #$(file-append bash ...), bash
> doesn't refer to the native input, it directly refers to the bash
> package.  To refer to an input, you need to use ‘this-package-input’ or
> ‘this-package-native-input’.

Yeah, I agree! 'search-input-file' may be even more modern, and better.

Kind regards
Felix



Re: Help packaging network-manager-sstp and sstp-client

2024-01-21 Thread Felix Lechner via
Hi Lars,

On Fri, Jan 19 2024, Lars Rustand wrote:

> ./autogen.sh: ./configure: /bin/sh: bad interpreter: No such file or directory

I would use something like this [1]

(arguments
 (list
  #:phases
  #~(modify-phases %standard-phases
  (add-before 'configure 'provide-shell
(lambda _
  (setenv "CONFIG_SHELL" (which "sh")))
(native-inputs (list bash))

although the (which "sh") is kind of lazy and should probably be
replaced by something like

#$(file-append bash "/bin/sh")

Kind regards
Felix

[1] 
https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/config_002estatus-Invocation.html



Re: Make a simple guile script to a package - source local file

2024-01-19 Thread Felix Lechner via
Hi Théo,

On Fri, Jan 19 2024, Théo Tyburn wrote:

> How do I go about packaging it to make the script available from the command 
> line
> without polluting the environment with the dependencies ?

The best way is wrap-program, or my forthcoming wrap-executable.

Kind regards
Felix



Re: Guix Shepherd Service Help

2024-01-19 Thread Felix Lechner via
Hi Samuel,

On Fri, Jan 19 2024, samuel@thewilley.family wrote:

> it seems that even hard-coded paths don't work inside of the
> configuration yaml.

Personally, I would create the configuration file via serializers in
'define-configuration'. It would allow you to use the store paths that
come from package variables instead of paths into the system profile.

It's a bit involved, but works great from then on out.

Kind regards
Felix



Re: Best practice when dealing with a broken package for guix home?

2024-01-18 Thread Felix Lechner via
Hi,

On Thu, Jan 18 2024, Tomas Volf wrote:

> periodically merge from upstream works fairly well.

Hopeful that my patches will eventually get accepted, I carry them
forward---unauthenticated---via rebases.

Kind regards
Felix



Re: Why does sbcl@2.3.7 depends on bash-minimal@5.1.16

2024-01-18 Thread Felix Lechner via
Hi,

On Thu, Jan 18 2024, Simon Tournier wrote:

> What is not clear for me is that bash-minimal is not an inputs of the
> package sbcl.

Does it get pulled in via the use of 'which'? [1]

Kind regards
Felix

[1] 
https://codeberg.org/lechner/guix/src/branch/master/guix/build/utils.scm#L1328



Re: Certbot override trusted CA when using custom server

2024-01-18 Thread Felix Lechner via
Hi,

On Thu, Jan 18 2024, Moisés Simón wrote:

> I'm running my own internal Lets Encrypt server.

What's the point of running Certbot with your own certificate authority?
Aren't there easier ways to distribute your own, long-term certificates?

Kind regards
Felix



Re: IRC

2024-01-18 Thread Felix Lechner via
On Thu, Jan 18 2024, Gottfried wrote:

> to use IRC
> what do I have to install?

I can warmly recommend Circe in Emacs. Before that, I used WeeChat and
Irssi but they are harder to configure, especially the latter.

Kind regards
Felix



Re: How to list all the discoverable Guix systems in my network?

2024-01-17 Thread Felix Lechner via
Hi Rodrigo,

On Wed, Jan 17 2024, Rodrigo Morales wrote:

> how to list all Guix systems that are publishing

Sorry, you may want 'avahi-browse'.

Kind regards'
Felix



Re: How to list all the discoverable Guix systems in my network?

2024-01-17 Thread Felix Lechner via
Hi Rodrigo,

On Wed, Jan 17 2024, Rodrigo Morales wrote:

> I want to know whether system (A) is available

I might try the exit status from 'ping' (although I would use a Guile
script instead of shell).

Kind regards
Felix

[1] https://stackoverflow.com/a/921441



Re: Best practice when dealing with a broken package for guix home?

2024-01-16 Thread Felix Lechner via
Hi Frederik,

On Tue, Jan 16 2024, Fredrik Salomonsson wrote:

>  Or how do you deal with cases when they happen?

I maintain a custom Guix with patches on top, plus my own channel.

Kind regards
Felix



Re: Best practice when dealing with a broken package for guix home?

2024-01-14 Thread Felix Lechner via
Hi,

On Sun, Jan 14 2024, Fredrik Salomonsson wrote:

> My question what is the best practice for this?

Guix Home is somewhat new. Not everyone uses it. There is some work to
be done somewhere, as you already know.

Any functional package manager will require you to specify a prior
derivation in some form, with a closure over the prerequisites. I don't
think Guix has such functionality, but folks with more experience should
please speak up.

A more practical way to mitigate your issuesn would be to improve the
code quality in the development HEAD. For example, we could accept
commits only when they do not break anything. Technically, a solution
might be around the corner, but there is considerable disagreement in
the project whether such a strict standard should be applied. It would
most likely lead to countless rebuilds and unacceptable delays.

Personally, I went for a simple solution with immediate benefits: I keep
a branch that builds everything I need and advance it only every two
months or so. I called it 'prebuilt.' You can find it as here:

https://codeberg.org/lechner/guix/src/branch/prebuilt

I know that's not what you wanted to hear, but it's all I can offer at
this time.

Kind regards
Felix



Re: trivial-build-system: ld can't find existing store files

2024-01-14 Thread Felix Lechner via
Hi Christina,

On Sun, Jan 14 2024, Christina O'Donnell wrote:

> /gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/bin/ld: cannot find 
> crt1.o: No such file or directory
> /gnu/store/cv571kkg5hyk98yw48857h1d0zi9azni-binutils-2.38/bin/ld: cannot find 
> crti.o: No such file or directory

The code below worked for me (with 'guix build -f evhz.scm') although
I'm a novice myself.

Thanks for using Guix!

Kind regards
Felix

* * *

(define-module (gnu packages evhz)
  #:use-module (guix gexp)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system trivial)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages base)
  #:use-module (gnu packages commencement)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages xorg))

(define-public evhz
  (let ((commit "35b7526e0655522bbdf92f6384f4e9dff74f38a0")
(revision "1"))
  (package
(name "evhz")
(version (git-version "0.0.0" revision commit))
(source (origin
  (method git-fetch)
  (uri (git-reference
(url "https://git.sr.ht/~iank/evhz;)
(commit commit)))
  (sha256
   (base32
 "1m2m60sh12jzc8f38g7g67b3avx2vg8ff0lai891jmjqvxw04bcl"
(build-system trivial-build-system)
(arguments
 `(#:modules ((guix build utils))
   #:builder (begin
 (use-modules (guix build utils))
 (let ((source (assoc-ref %build-inputs "source"))
   (glibc (assoc-ref %build-inputs "glibc"))
   (gcc (assoc-ref %build-inputs "gcc"))
   (binutils (assoc-ref %build-inputs "binutils"))
   (linux-libre-headers (assoc-ref %build-inputs 
"linux-libre-headers"))
   (output (assoc-ref %outputs "out")))
   (setenv "PATH" (string-join
   (list (string-append gcc "/bin")
 (string-append binutils "/bin")
 (getenv "PATH"))
   ":"))
   (setenv "LIBRARY_PATH" (string-join
   (list (string-append glibc 
"/lib"))
   ":"))
   (mkdir-p (string-append output "/bin"))
   (invoke (string-append gcc "/bin/gcc")
   "-o" (string-append output "/bin/evhz")
   "-I" (string-append linux-libre-headers 
"/include")
   (string-append source "/evhz.c"))
   #t
(native-inputs
 (list binutils
   gcc
   gcc-toolchain
   glibc
   linux-libre-headers))
(home-page "https://git.sr.ht/~iank/evhz;)
(synopsis "Show mouse refresh rate under linux + evdev.")
(description
 "A simple diagnostic utility to show mouse refresh rate under linux +
evdev.")
(license license:apsl2

evhz



Re: Laptop won’t boot after Guix install

2024-01-09 Thread Felix Lechner via
Hi Ian,

On Mon, Jan 08 2024, Roman Riabenko via wrote:

> Sometimes, the installer makes a BIOS-compatible installation which
> fails to run from UEFI.

I like to check 'efibootmgr' inside the installer. Alternatively, you
can look at the NVRAM contents with evivars. (I don't have experience
yet with the newer efivarfs, but I think that's similar.) If you cannot
find the UEFI boot variables, then GRUB cannot either---and the setup
will be defective. It will not boot in UEFI.

Old GRUB boot sectors can make the boot experience even more confusing.

> The fix might be as simple as choosing a different USB boot option
> before running the installer.

That's how all my equipment, which is up to a decade old, works but it's
always a wire act from USB creation to first boot.

> You might want to try enabling it [secure boot]

I do not recommend Secure Boot for average Linux users. It tends to
create more problems and may not provide the security you expect.

Kind regards
Felix



Re: local and remove mail delivery

2024-01-02 Thread Felix Lechner via
Hi Remco,

On Tue, Jan 02 2024, Remco van 't Veer wrote:

> I did notice that smtpd does pick up a .forward file and tries to
> forward mails outbound.

Yes, it does. OpenSMTPd is vigilant about enforcing.forward files.

> I'll need to setup smtpd to use authentication for my mail provider to
> do that which seems relatively easy to do.  Will need to figure out
> how to properly do secrets in config.scm files

Perhaps my config helps you for a simple nullmailer here [1] or for a
fully-featured mail server here. [2]

Kind regards
Felix

[1] 
https://codeberg.org/lechner/system-config/src/commit/ac36a057f2486b262a5c37593b437fc221c632e1/host/lechner-desktop/operating-system.scm#L224-L237
[2] 
https://codeberg.org/lechner/system-config/src/commit/ac36a057f2486b262a5c37593b437fc221c632e1/host/wallace-server/operating-system.scm#L1260-L1322



Re: changing of Email Address

2024-01-02 Thread Felix Lechner via
Hi Gottfried,

On Tue, Jan 02 2024, Gottfried wrote:

> So could you change it please?

That's not possible because you set a password. Please just unsubscribe
and then resubscribe following the instructions here. [1]

Kind regards
Felix

[1] https://lists.gnu.org/mailman/listinfo/help-guix



Re: local and remove mail delivery

2024-01-02 Thread Felix Lechner via
Hi Remco,

On Tue, Jan 02 2024, Remco van 't Veer wrote:

>   set sendmail=sendmail:/run/current-system/profile/sbin/sendmail

Is the set-gid bit set on that particular sendmail executable? I might
instead try

   set sendmail=/run/setuid-programs/sendmail

Your issue could probably also be solved by adding /run/setuid-programs
to the PATH for system services, which Guix system does not do. (It does
add /run/current-system/profile/sbin). Then you could use the relative
'sendmail' invocation.

I believe the latter part is a bug in Guix System.

Kind regards
Felix



Re: A simple question about the Guix logo.

2023-12-29 Thread Felix Lechner via
Dear Sir,

On Fri, Dec 29 2023, DieRosedesNordens wrote:

> Forgive me, I beseech you, for the absence of a gratuity, yet I ask
> you to accept my gratitude. I hope that your benevolence bears fruit
> and that the benign acts of solidarity you have shown me are returned
> to you twofold.

Thank you, my lord, for your compassion. Generosity is an act of the
mind, anyway. Your noble concern offers a most valuable nourishment to
your obliging servants.

> if the init system of Guix is the GNU Shepherd, why is there a folder
> called “systemd” in “run”, which is located in “/”? Should it come
> with the installation of the operating system, regardless of the
> chosen desktop environment or window manager? If so, why?

Your most favorite folder---or your least, as the case may be---is
wanted by a pesky package called 'elogind' and therefore installed on
all systems using the elogind-service-type. [1][2]

Elogind is most commonly obligatory in the GNOME suite of servant
tools. Your humble respondent cannot speak for the wisdom of the other
environments that aim to support the interactive comfort of your high
excellency.

> is it credible to suppose that the folder exists due to the subsequent
> installation of some package

No. As your highness may discern above, it is part of the
elogind-service-type.

> why this folder is there?

We are an inclusive community, my lord, and aim to please users of
various desktop environments.

Your attention to this matter lifted the souls of many.

With our utmost gratitude,
f

[1] 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/file-systems.scm#n463
[2] 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1254



EFF [was: torbrowser]

2023-12-28 Thread Felix Lechner via
Hi,

On Thu, Dec 28 2023, Clément Lassieur wrote:

> You can check https://coveryourtracks.eff.org to see if browser
> settings make you unique.

I personally would be cautious with EFF going forward.

For over thirty years, EFF has meant a lot to me. That changed on
November 16, when I received a survey invite entitled "Help shape the
future of digital rights - participate in our community survey."

To my surprise, the questions were very personal. EFF asked for my age,
race, religion, gender identity, level of education, married status,
number of childen, and "all forms of income" including interest.

None of the items except gender identity offered a non-pushy option like
"prefer not to say."

By page 2 of 6, I found myself unwilling to complete the survey. Had I
fallen prey to a phishing attempt?

My confusion grew further when I noticed that I was on the website
forms.office.com. Would EFF really outsource the collection of my
personal data to Microsoft?

Appalled, I wrote to EFF.

Someone responded by stating that "Your Microsoft Forms survey
submission to us, should you choose to complete one, is not tied to a
unique identifier other than numbering your response. The data is
encrypted at rest by a key we control and Microsoft does not have access
to."

Looking at my browser's address bar, I noticed that the survey URL
appeared to include a personalized identifier in the parameters.

The message continued "Any personal data you share is protected in
keeping with our privacy policy (eff.org/policy) and Microsoft's service
agreement (https://www.microsoft.com/en-us/servicesagreement)."

About five weeks later, I received a donation drive from the membership
department. It hit all the comfortable and familiar tunes that my
"rights need protection" and that "EFF is not messing around." They
assured me that "EFF has one guiding star: your freedom as a tech user."

I copied that message in below so everyone can see.

Then I cut all ties to EFF and unsubscribed from all their
communications.

Kind regards,
Felix

* * *

Subject: EFF has a guiding star 
Date: Thu, 21 Dec 2023 13:28:22 +

This is a friendly message from the Electronic Frontier Foundation. 
https://eff.org

 _ _ _
|  ___|   __|   __|
|  ___|   ____|
|| __| | __|

EFF - Electronic Frontier Foundation

YEAR-END CHALLENGE!

---
Dear Supporter of Digital Freedom,

Do you ever look at something once and then get targeted ads? Have you ever 
been exposed in some company’s data
breach? Ever heard a lawmaker push restrictions on tech they don’t understand?

To live in the modern world is to interact with technology in ways that are 
wonderful—and others that are an
absolute pain in the butt. It's not fair to trade in your dignity or safety, 
and that’s why people like you stand
with the Electronic Frontier Foundation. Will you keep EFF fighting and boost 
us up in our Year-End Challenge?

GIVE TODAY! https://eff.org/r.ktyq

Make ANY donation by December 31 and you’ll help unlock bonus grants! Every 
supporter gets us closer to a series of
seven Year-End Challenge grants set by EFF’s board. These grants become larger 
as the number of online rights
supporters grows. See the counter.

*EFF is Not Messing Around*

Tech touches nearly every aspect of the world, and your rights need protection. 
Recently, EFF members enabled our
team to:

- Speak out at the United Nations Cybercrime Treaty negotiations to stop the 
countries of the world from agreeing to
undermine our digital rights.
- Work on multiple court cases that likely inspired a federal judge to rule 
that cell phone searches at the U.S.
border require a warrant.
- Call out proposals across the globe that would sacrifice your speech and 
security under the pretense of protecting
children.
- Spell out the dangers of automated license plate readers (ALPRs), leading 
California’s Attorney General to declare
that it’s illegal to share this data out-of-state.
- Lobby to end Section 702 of the FISA Amendments Act to stop the FBI and NSA’s 
massive access to our communications
without a warrant.

EFF has one guiding star: your freedom as a tech user. You can help EFF’s 
lawyers, activists, policy analysts, and
technologists keep advancing toward a brighter future for everybody.

Donate to support digital rights today and you’ll help EFF unlock bonus grants 
before the year ends:
https://eff.org/r.ktyq

For your freedom online,

Aaron Jue
EFF Membership Team

P.S. We’re celebrating TEN YEARS of top ratings from the nonprofit watchdog 
Charity Navigator! EFF is a
member-supported U.S. 501(c)(3) organization and your donation is 
tax-deductible as allowed by law. You can even
start a convenient monthly donation at https://eff.org/r.n4sf

---
Activism | Impact Litigation | Technology

Donate Now: https://eff.org/r.ktyq

About EFF

The Electronic Frontier Foundation is the leading nonprofit defending online 
civil liberties. 

Re: mobile phone with LineageOS, iodeOS, Replicant...

2023-12-21 Thread Felix Lechner via
Hi Gottfried,

On Thu, Dec 21 2023, Gottfried wrote:

> which mobile phone would You support with which free software?

I'm not sure it is free but I am enjoying an ancient Google Pixel 3a
with CalyxOS.

For the first time in thirteen years, I felt comfortable typing anything
on a mobile device. I depended on phones until 2009 and then rejected
them. I am happy with what I have now.

For service, I use a JMP.chat number and their SIM card.

Please stick around, however, and you should get more sophisticated
answers. Thanks for using free software!

Kind regards
Felix



Re: Why bash-minimal is part of sbcl package

2023-12-12 Thread Felix Lechner via
Hi Maxim,

On Tue, Dec 12 2023, Maxim Cournoyer wrote:

> it means bash-minimal should be explicitly added to the inputs,
> otherwise when cross-building the package for another architecture the
> native bash captured wouldn't be executable on the target.

The core-updates branch has a lot of new 'bash-minimal' additions,
presumably for cross-building. Maybe this is a good opportunity to ask
about something I have been working on.

As part of a broader effort to make development in scripting language
like GNU Guile easier, I rewrote the executable wrapper so that it uses
Guile instead of Bash.  My initial hope was that the Guile wrapper could
use /run/current-system/profile/bin/guile (and thereby avoid an explicit
Bash prerequisite) but it is only available on Guix System.

My Guile wrapper will eventually reach you as part of a proposal to
migrate Guix from the Automake build system to my very own Bespoke,
which is likewise written in Guile. Meanwhile, please let me know if
there is any use for a Guile wrapper (instead of Bash). Thanks!

Kind regards
Felix



Re: Running guix system services only

2023-12-08 Thread Felix Lechner via
Hi Benjamin,

On Tue, Nov 21 2023, Benjamin wrote:

> I am trying to transfer smoothly from a standard Debian to a Guix system
> on one of my servers.

I would recommend to migrate to a new Guix server instead and use your
DNS or other configuration methods to coordinate between the two. That's
what I did, from Debian stable, about a year and a half ago.

The Guix part was very painful for me, but I turned off the Debian
server after four weeks. I am still learning about Guix but have reached
a point where I am comfortable trying to contribute.

Guix is an amazing package manager (and distribution) that runs much
more stable than anything I've used in the past. The learning curve is
brutal but was totally worth it!

IRC is your friend.

Kind regards
Felix



Re: Boot using rootfs as root

2023-12-08 Thread Felix Lechner via
Hi Arvid,

On Sun, Nov 26 2023, Arvid Krein wrote:

> This means I do not actually need a switch-root. The boot code does
> however expect one and also expects to mount a device.

Wow, you are trying to so something interesting. Which code are you
looking at, please?

Kind regards
Felix



Re: Frontend for help-guix

2023-12-07 Thread Felix Lechner via
Hi Abdullah,

On Thu, Dec 07 2023, Abdullah Imad wrote:

> Is there a more modern frontend to the help-guix mailing lists? 

I'm not aware of one, but you may be able to view the messages in your
favorite client via https://yhetil.org/.

Kind regards
Felix



Re: Setting up multiple NICs

2023-12-07 Thread Felix Lechner via
Hi Lars,

On Thu, Dec 07 2023, rustand.l...@gmail.com wrote:

> And this is the contents of the newest one:

Actually, I think we need the output of that code when it is being
evaluated. Unfortunately, I do not know how to do that.

Alternatively, we could perhaps look for the output file, if you can
find it. Or maybe it's a goose chase, and someone else can help you
better instead.

Kind regards
Felix



Re: Resize Filesystem Service

2023-12-04 Thread Felix Lechner via
Hi Gabriel,

On Mon, Dec 04 2023, Wicki Gabriel wrote:

> I crafted the service in the file attached but this doesn't work and i
> neither know where to look nor how to debug the issue.

Writing services is probably more complex than it should be, but it can
be done.

Please have a look at the cachefilesd-service [1] which I wrote together
with Bruno Victal (mirai) and which was accepted, or the Heimdal
Kerberos services that are still waiting for review. [2]

My most immediate suggestion is that I would use define-configuration
even when no serialization (which helps write configuration files) is
needed. Also, you have to think carefully about where to place the
G-Expressions, which can be tough to wrap your mind arround. Finally, I
would use "file-append" instead of string-append for some of the
configurable executable paths.

Kind regards
Felix

[1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/linux.scm#n492
[2] https://issues.guix.gnu.org/67555



Re: Setting up multiple NICs

2023-12-02 Thread Felix Lechner via
Hi Lars,

On Sun, Dec 03 2023, rustand.l...@gmail.com wrote:

> Now I changed it to a more minimal configuration like below, using only
> real interfaces and no VLANs, but it still doesn't work. I get the same
> error 17 like before.

On Linux, the static-network-service-type should create a file containing
"set-up-network" in its name [1]. Will you please locate it with

  ls -ld /gnu/store/*set-up-network*

and post it here?

Kind regards
Felix

[1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/base.scm#n2881



Re: Setting up multiple NICs

2023-11-29 Thread Felix Lechner via
Hi Lars,

On Thu, Nov 23 2023, Lars Rustand wrote:

> the correct way to setup a multi NIC networking

On a tangent, you may be interested in my patch allowing MAC-bases
interface names in GNU Guix. [1]

A fixed naming scheme that is independent of BIOS enumeration could help
prevent the inadvertent exposure of your network after making unrelated
hardware changes.

Kind regards
Felix

[1] https://issues.guix.gnu.org/63508#3



Re: guix on nfs based systems

2023-11-23 Thread Felix Lechner via
Hi Efraim,

On Thu, Nov 23 2023, Efraim Flashner wrote:

> One thing we do on the small cluster at UTenn is /gnu and /var/guix (in
> addition to the home directories) are exported across NFS

That's fascinating! Do you ever run 'guix gc', or do you just buy new
disks when space runs low?

Kind regards (and perhaps, happy Thanksgiving)
Felix



Re: Abstractio of Dovecot Users

2023-11-22 Thread Felix Lechner via
Hi Marek,

On Mon, Nov 20 2023, Marek Paśnikowski wrote:

> I recently completed the monumental project of self-hosting my email
> on Guix, all by myself.

Kudos! Will you please blog about your experience or add something to
the Cookbook? [1]

> I need to abstract email accounts from system accounts

There are many ways to do that [2] although more detailed inquiries
might be better placed with the Dovecot folks.

Thanks for using Guix!

Kind regards
Felix

[1] https://guix.gnu.org/en/cookbook/en/guix-cookbook.html
[2] https://doc.dovecot.org/configuration_manual/virtual_users/



Re: documentation on copyright headers?

2023-11-16 Thread Felix Lechner via
Hi Wilko,

On Thu, Nov 16 2023, Wilko Meyer wrote:

> - why a copyright header has to be inserted
> - if a copyright header has to be inserted for all files that are
>   subject to changes (is there a treshold? can it be left out for minor
>   changes to files etc.?) of a sent patch.

For a definitive answer, you should consult an attorney; I have no legal
training.

I believe an important aspect for our collective copyright protection is
that the current year is listed. I always insert my own name, even for
minor edits, when no one else has touched a file in a while.

For an active project like Guix, I personally tend not to add copyright
notices unless I create a new file or unless my contribution appears so
significant that another party would have to expend some effort in order
to recreate it.

Either way, it's better to add copyright notices. In case of doubt,
please add one regardless of what people say.

Kind regards
Felix



Re: Turning off tests leads to a different store item

2023-11-08 Thread Felix Lechner via
Hi Maxim,

On Wed, Nov 08 2023, Maxim Cournoyer wrote:

> A source tree doesn't produce a derivation.  A derivation is the
> complete build recipe that captures the source and the package
> definition, that when built by the daemon produces a store item.

Okay, thanks! Now I'm going to get it right:

The store item that is produced should not change whether build-time
tests run or not.

It does not make sense (and wastes resources) to rebuild a consuming
package because build-time tests were enabled or disabled in an input.

The historical version of openssl gave rise to this thread. It did not
build anymore because the tests no longer worked with the certificates
shipped in that release (a common problem in TLS libraries). Rebuilding
openssl without running the tests rendered the rebuild useless because
it produced a different store item. That should not happen.

Does that make more sense?

Kind regards
Felix



Re: Turning off tests leads to a different store item

2023-11-07 Thread Felix Lechner via
Hi,

On Tue, Nov 07 2023, Maxim Cournoyer wrote:

>> Felix Lechner via  writes:
>>
>>> Those shortfalls are a consequence of our packaging habits. In an ideal
>>> world, would running a test suite ever build a different derivation?
>
> You seem to be confusing 'derivation', which is the build recipe
> description that a package "compiles" to, with the package output, the
> result of executing the derivation.

Maybe that comment was not a response to mine. Either way, please allow
me to restate what I meant:

A source tree should produce the same derivation regardless of whether
build-time tests ran or didn't. It should also pull the same substitute.

Kind regards
Felix



Pinyin in GNOME

2023-11-06 Thread Felix Lechner via
Hi,

What's an easy way to get pinyin input with Guix Home in our standard
GNOME desktop, please?

I once had it but then lost it. I think some environment variables need
to be set. Thanks!

Kind regards
Felix



  1   2   3   >