Migration
This is my new public git source viewer. Source coming soon. Please contact with concerns/bugs.
Contact me
users/ryan/linux/guix.nix
main
· 1.3 KB · 33 lines
raw
| 1 | { config, pkgs, lib, inputs, ... }: |
| 2 | |
| 3 | # Host glue for the Guix System laptop. Everything generic about running |
| 4 | # standalone home-manager on Guix lives in ../modules/targets/guix; this file |
| 5 | # only holds what's specific to this machine. |
| 6 | { |
| 7 | imports = [ ../modules/targets/guix ]; |
| 8 | |
| 9 | targets.guix.enable = true; |
| 10 | |
| 11 | # Guix's mesa doesn't match nixpkgs', so GL apps built by nix go through |
| 12 | # nixGL. Setting packages also makes config.lib.nixGL.wrap real (it's a |
| 13 | # no-op otherwise) and supersedes HM's systemd-tmpfiles-based GPU setup. |
| 14 | targets.genericLinux.nixGL = { |
| 15 | packages = inputs.nixgl.packages; |
| 16 | defaultWrapper = "mesa"; # nixGLIntel under the hood |
| 17 | }; |
| 18 | home.packages = [ |
| 19 | # Kept under its old name for anything that calls it directly. |
| 20 | inputs.nixgl.packages.${pkgs.stdenv.hostPlatform.system}.nixGLIntel |
| 21 | ]; |
| 22 | |
| 23 | targets.guix.pamWrapped = [ pkgs.hyprlock ]; |
| 24 | |
| 25 | # gpg-agent is socket-activated through Shepherd now (translated from HM's |
| 26 | # gpg-agent.socket units), so no launch here; Hyprland's own environment |
| 27 | # still needs the socket path for apps it spawns. |
| 28 | wayland.windowManager.hyprland.extraConfig = '' |
| 29 | exec-once = sh -c 'hyprctl setenv SSH_AUTH_SOCK "$(gpgconf --list-dirs agent-ssh-socket)"' |
| 30 | ''; |
| 31 | |
| 32 | programs.gpg.scdaemonSettings.disable-ccid = true; |
| 33 | } |