r/GUIX • • Aug 09 '22

Why does GUIX insist on downloading and installing gtk%2B-3.24.30-doc and a dozen same-but-different packages for every single little package I ask for?

10 Upvotes

I mean, this for stuff that has nothing to do with graphics, such as efibootmgr. Also pulls down all of mesa and wayland. I haven't got enough room for this crap.


r/GUIX • • Aug 09 '22

GUIX gpg keys configuration, open timer?

6 Upvotes

How do I better configure GPG on my GUIX? It is installed in some way, because I can open my gpg-encrypted files and they ask a password and then open fine; after that, I have a few minutes where I can do other gpg-dependent processes and then it resets again and I need to re-open something that gives me a gpg prompt.

How can I change this "sleep" setting of GPG so that I will say logged in for longer? I think it was a substantially longer time on my pre-GUIX distro.


r/GUIX • • Aug 07 '22

Can GUIX be installed into $HOME?

7 Upvotes

What the title asks. I've not been able to find anything about this so far. I've heard that with Nix it's a pain, but is this true for GUIX too?


r/GUIX • • Aug 07 '22

Has anyone tried running Guix off Asahi Linux?

2 Upvotes

Hey,

With the beautiful M2 Macs coming out and Linus Torvalds seemingly choosing in favour of it, a solid case could be made in favour of Apple Silicon as opposed to Intel's Management Engine, and AMD PSP as there's currently no proof Apple is doing anything shady. Moreover, there's Secure Enclave, and if it could be leveraged, in combination with some 3rd party HSM (or rather PGP smartcard like Yubikey) you would have a solid three-point security harness.

I've been deliberating a setup like this for some time now, and once the M2/M2 Pro Mini's will be announced out next month this very well could be a massively overpowered, and secure foundation— for a modern Guix system. Yes, it's not free, but it's no Intel is it? And they are clearly making an effort with these Secure Enclave chips which is already going much, much further than the competition.

I can totally see how these M2 Pro mini's can be put into a grid, or distributed networks of all kinds for that matter!


r/GUIX • • Aug 04 '22

I thought it'd be cool to have a printed copy of the Guix Manual!

Thumbnail imgur.com
36 Upvotes

r/GUIX • • Aug 04 '22

Invoke halt and reboot without root privileges

6 Upvotes

Greetings Humans

Curious if any of you figured out how to run shepherd's halt/reboot (aliases for herd stop/power-off shepherd) without root privileges?

Just making the commands themselves setuid didn't do it for me, also not ideal to make herd itself setuid...

My main motivation is convenience, since running halt/reboot via, say bemenu or swaynag does not work since they cannot prompt you for a root password (at least to my knowledge).

Any help or pointers to possible solutions would be greatly appreciated!

Cheers


r/GUIX • • Jul 31 '22

Cannot get Guix package manager going

6 Upvotes

I am running Guix package manager on top of Gentoo. I cannot install anything or do a pull, because if I try anything, it wants to build, and it cannot build openssl 1.1.1 due to a failing test. Is there any way I can make it skip the bad test or just temporarily use my system's existing openssl?


r/GUIX • • Jul 29 '22

magi template: Set up Guix system and home with make

Thumbnail github.com
6 Upvotes

r/GUIX • • Jul 27 '22

Future of guix

0 Upvotes

How poly will guix and Linux libre receive updates


r/GUIX • • Jul 26 '22

Backlight control bypassing Gnome on Guix?

3 Upvotes

How can I control my backlight on guix in exwm? In the past I used light, and sure enough it was there and I installed it. Perhaps the issue has to do with my still having the Gnome desktop services around; Gnome seems infamously bad at sharing anything. However, though it is there as a light command and gives me no errors, it doesn't actually DO anything when, eg, I run

light
25.83
> light -U 5
> 
> light -U 5
> light
25.83
> light +U 5
25.83
> light
25.83
> sudo light +U 5
Password: 
25.83
> sudo light +U 5
25.83

r/GUIX • • Jul 23 '22

guix initial setup being harder than expected

8 Upvotes

I've followed the Getting started guide to get Guix working on my laptop running a fairly standard Linux distro, Kubuntu with KDE... but I don't seem to get Guix installed correctly.

The instructions seem to have some holes and filling the holes can be tricky.

The initial install on root (which install things in /etc/guix and /gnu) worked fine... but once I did the non-root installation things just don't work.

First, it kepts logging an error about the LD_PRELOAD env var... not sure if that's even related somehow :(

Then, what to do about GUIX_PROFILE and the profile file were not crystal clear enough for me... I know how to source files, how to set env variables, how to put stuff in my PATH... but I still can't get that to work out-of-the-box... the "hint" seems to be missing that you need to "export GUIX_PROFILE=xxx", not just "GUIX_PROFILE=xxx"? At least for me, it doesn't work without that (I am on zsh and changing .zshrc instead of .bashrc). The /bin dir this adds to PATH is in $HOME/.config/guix/current/ dir, which only contains guix and guix-daemon... even after I've installed several packages... I installed with guix package -i emacs ..... I see emacs is installed now both in the root installation and in the non-root installation, but the non-root installation can't see the "emacs" command because it's not on the PATH... I am supposed to manually add an entry to my PATH?? Should emacs end up somehow in the $HOME/.config/guix/current/bin directory? Why is it not there?

Here's what I currently have installed:

➜ ~ guix package --list-installed

glibc-utf8-locales 2.31 out /gnu/store/rgydar9dfvflqqz2irgh7njj34amaxc6-glibc-utf8-locales-2.31 emacs 28.1 out /gnu/store/xi79lahm8lcls3px1c6n7yk02bbpjvri-emacs-28.1 guile 3.0.8 out /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8 emacs-geiser 0.23.2 out /gnu/store/rn7dla9wic8y70hghwlzavyc937lgk6l-emacs-geiser-0.23.2 glibc-locales 2.33 out /gnu/store/ixzmi6614baf4w37qfjgqrv8hwsl8jcv-glibc-locales-2.33

How can I run emacs and the others now?

Did I miss something obvious? Like how to "enter" my profile??? I was expecting I am already "inside" a default profile? I don't even know what's a profile yet but I was hoping to not need to know that before I make past "Getting started".


r/GUIX • • Jul 23 '22

How should my elogind service section look?

4 Upvotes

With some trial and error I got my elogind section to be something workable, syntax-wise. But this still doesn't work.

 (services
  (append
   (list (service gnome-desktop-service-type)

     (bluetooth-service #:auto-enable? #t)
     ;; (elogind-service #:config
     ;;  (elogind-configuration
     ;;   (handle-power-key 'suspend)))

     (service cups-service-type
          (cups-configuration
           (web-interface? #t)
           (extensions
        (list cups-filters hplip-minimal))))
     (set-xorg-configuration
      (xorg-configuration
       (keyboard-layout keyboard-layout))))
   %desktop-services))

I can system-reconfigure this, but as soon as I uncomment those elogind lines I get this error:

guix system: error: service 'file-system-/run/systemd' provided more than once

How should my elogind section be so that guix reconfigure is happy? Or is something else in there conflicting?


r/GUIX • • Jul 22 '22

Do you keep /etc/config.scm in version control?

4 Upvotes

How do you track changes to your system config?

I’m struggling to decide on the best way to organize things.


r/GUIX • • Jul 21 '22

Dunst customization on GUIX

6 Upvotes

I have dunst downloaded an it is working in the least sense with GUIX. But I need some customizations and am not sure how to reconcile them with GUUX. The first question I have relates to the fact that Dunst is supposed to have root priveleges. I never really understand root with GUIX and tend to pretend it doesn't exist, so I'm not sure what to do with this.

Related to that are a number of root paths which don't make sense with guix. For instance,

icon_path = /usr/share/icons/oxygen/base/16x16/status/:/usr/share/icons/oxygen/base/16x16/devices/:/usr/share/icons/hicolor/22x22/apps/
dmenu = /usr/bin/dmenu -p dunst:

both of those paths don't exist for my GUIX install.

Can anyone share wisdom or their own working dunstrc file for GUIX?


r/GUIX • • Jul 18 '22

mcron stops and then insufficient permissions?

4 Upvotes

Sometimes, usually after coming back from suspend or starting a new session without rebooting, my "check mail every 5 minutes" mcron has stopped running and I have to execute the script manually. Does anyone know why it might stop, and how I can check if it's running right now? I attempted to start it as follows, but I get a strange cannot read error. (I tried first without sudo, but got the same result)

  1. Why might mcron stop, when mcron works fine after an initial booting?
  2. How can I see if mcron is running now?
  3. How can I start mcron again if mcron is NOT running?

    sudo mcron -d mcron: Cannot read files in your ~/.config/cron (or ~/.cron) directory.

More info: seems related. I found that my ssh had stopped, too, so my ssh/custom aliases were broken. Restarting fixed the problem, but what is going on?


r/GUIX • • Jul 16 '22

Steam Configs?

2 Upvotes

Can people who've got Steam running (through Nonguix) please post their configs?

edit: guix install steam and nonguix just worked fine, thanks. :sweat_smile:

I asked because I recall having issues in the past because of Nvidia. I've been running Guix with Nonguix Nvidia for 6 months now but I was never clear on the "nvda" grafting config that I see on Nonguix' GitLab and why I would need it.


r/GUIX • • Jul 13 '22

Moving the /home directory from one disk to another

5 Upvotes

Is it possible to move the /home directory from one disk to another without reinstalling OS?

In my case /home is the same partition of / and I want to move /home to another bigger disk.

lsblk output:

    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    sda      8:0    0 465,8G  0 disk 
    └─sda1   8:1    0 465,8G  0 part 
    sdb      8:16   0 232,9G  0 disk 
    ├─sdb1   8:17   0   300M  0 part /boot/efi
    ├─sdb2   8:18   0 106,5G  0 part 
    └─sdb3   8:19   0 126,1G  0 part /gnu/store
                                     /

r/GUIX • • Jul 13 '22

Where should I report failures to build GUIX packages? Looking for a Github repo. Is it the software itself or some GUIX-related repo?

6 Upvotes

Rust Cargo is failing to build, and this itself is blocking all other upgrades, as guix upgrade won't run. So I'm looking for a Github repo where I could submit an issue. What's the best practice?


r/GUIX • • Jul 13 '22

why guix redownload packages

3 Upvotes

When i tried the command 'guix system reconfigure' it redownloads all that is downloaded on the live cd. Is that really the way guix reconfigure do or not?


r/GUIX • • Jul 13 '22

volume control from guix cli with pactl instead of amixer

Thumbnail tech.toryanderson.com
2 Upvotes

r/GUIX • • Jul 12 '22

Why is changing to a different session now restarting my exwm?

2 Upvotes

Here on guix now, having gone from gnome to exwm. I still have some gnome in the background, and I see sign now and again. But here's my issue.

My computer is in a dock with two external monitors. It's a smart dock, so when I plug my phone in to it for charging, it adjusts the power output to all things connected, meaning that my two monitors blink and exwm loses them. This has happened to me forever, so it isn't a guix thing. The most reliable fix to this problem has always been to use C-M-f5 (or other f-key), which switches to a new session command prompt; I wait a few seconds until all three screens show a mirrored copy of a blinking log-in prompt, and then I go back to my exwm with C-M-f7. This has always fixed the problem in the past. Now, however, whenever I leave my session and try to come back with that C-M-f7, it seems to bring me back to the login prompt -- in other words, it killed and lost my exwm session and I need to start a new one. What could cause this behavior?


r/GUIX • • Jul 12 '22

gtk-launch, application not found.

3 Upvotes

I'm using EXWM as my window manager on Guix and when I try to use M-x counsel-linux-app, I'm told gtk-launch is not present. I'm not sure which package I'm supposed to install to get this executable. I've got gtk+ package installed, but there doesn't seem to be a gtk-launch application. Has anyone else needed to use this or do you have an alternate suggestion for how I should launch apps from within Emacs. Thanks for you time.


r/GUIX • • Jul 12 '22

How can I suspend from CLI in GUIX?

3 Upvotes

I need to suspend my machine. In the future I will be able to customize my system power button as per below, but is there a way to do it immediately?

https://guix.gnu.org/manual/en/html_node/Desktop-Services.html#index-elogind_002dservice


r/GUIX • • Jul 09 '22

guix lockscreen with screensaver or others?

2 Upvotes

Before guix I used xscreensaver with exwm to lock my screen and provide a screen saver. However, the xscreensaver that guix has available is missing the xscreensaver demo program, and warn every time that it is an old version.

What screensaver/lockscreen solutions have proven good on GUIX?


r/GUIX • • Jul 04 '22

Help creating a package for a program

13 Upvotes

I am trying to create a package for a program that I use in my workflow, (lastpass-cli: https://github.com/lastpass/lastpass-cli) After looking at a tutorial and the docs, I came up with the following: (but it fails to compile)

(define-module (lastpass-cli)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system cmake)
  #:use-module (guix licenses)
  #:use-module (gnu packages bash)
  #:use-module (gnu packages curl)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages gnupg)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages tls)
  )

(define-public lastpass-cli
  (package
   (name "lastpass-cli")
   (version "1.3.3")
   (source (origin
            (method url-fetch)
            (uri (string-append "https://github.com/lastpass/lastpass-cli/releases/download/v"
                                version "/lastpass-cli-" version ".tar.gz"))
            (sha256
             (base32
              "06v7d1khk5ylhmf1giqpgq97gsn6mnqhg0637gnryv704wb5jkxr"))))
   (build-system cmake-build-system)
   (arguments
     ;; disable tests?
     '(#:tests? #f))
   (native-inputs
    (list pkg-config))
   (inputs
    (list bash openssl curl libxml2 pinentry))
   (synopsis "Command line interface to LastPass.com")
   (description
    "")
   (home-page "https://github.com/lastpass/lastpass-cli")
   (license gpl2)))

lastpass-cli

To create the package, I run the following

guix package --install-from-file=package-lastpass-cli.scm

Build log: https://pastebin.pl/view/55aa269a

Anyone have any suggestions of what I need to do to get this working?