~ruther/guix-config

ref: 196a0323d28c5feccbb5637c10c167dc39d81d6c guix-config/home/home-configuration.scm -rw-r--r-- 3.7 KiB
196a0323 — Rutherther feat: add nix service, package 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
;; This "home-environment" file can be passed to 'guix home reconfigure'
;; to reproduce the content of your profile.  This is "symbolic": it only
;; specifies package names.  To reproduce the exact same profile, you also
;; need to capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.

(use-modules (gnu home)
             (gnu packages)
             (gnu packages gnupg)
             (gnu services)
             (guix gexp)
             (gnu home services fontutils)
             (gnu home services desktop)
             (gnu home services shells)
             (gnu home services gnupg)
             (gnu home services sound)
             (gnu home services)
             (home fonts))

(home-environment
 ;; Below is the list of packages that will show up in your
 ;; Home profile, under ~/.guix-home/profile.
 (packages
  (append
   (list
    font-ubuntu)
   (specifications->packages
    (list
     ;; HW interactions
     "blueman" "pavucontrol"
     "network-manager-applet"

     ;; Terminals, utilities
     "foot" "fbset"

     ;; Shell utilities
     "ripgrep-all" "ripgrep"
     "fd" "fzf"

     ;; Fonts
     "font-hack" "font-dejavu"
     "font-ubuntu"
     "font-awesome" "font-google-noto-emoji"

     ;; Browsing
     "librewolf"
     "firefox" ;; No netflix in librewolf :'(

     ;; Development
     "git" "openssh"

     ;; Passwords
     "gnupg" "password-store" "pass-otp"

     ;; For window manager
     "dwl-mine" "waybar-mine"
     "rofi-wayland"
     "brillo"
     "wlr-randr" ;;"dwlmsg"
     ;;"wlopm"
     "grim" "slurp"

     ;; Notebook
     "acpi" "xbacklight"

     ;; Editing
     "emacs" "emacs-vterm"
     "neovim"))))

  ;; Below is the list of Home services.  To search for available
  ;; services, run 'guix home search KEYWORD' in a terminal.
  (services
   (list (service home-bash-service-type
                  (home-bash-configuration
                   (guix-defaults? #t)
                   (aliases '(("grep" . "grep --color=auto")
                              ("ip" . "ip -color=auto")
                              ("ll" . "ls -l")
                              ("ls" . "ls -p --color=auto")))
                   (bashrc (list (local-file ".bashrc" "bashrc")))
                   (bash-profile (list (local-file ".bash_profile"
                                                   "bash_profile")))))

         (service home-files-service-type
                  `((".config/foot/foot.ini" ,(local-file "./foot.ini"))
                    (".config/waybar/config.jsonc" ,(local-file "waybar-config.jsonc"))
                    (".config/waybar/style.css" ,(local-file "waybar-style.css"))
                    (".librewolf/native-messaging-hosts/com.github.browserpass.native.json" ,(file-append (specification->package "browserpass-native") "/lib/browserpass/hosts/firefox/com.github.browserpass.native.json"))))

         (simple-service 'default-fonts
                         home-fontconfig-service-type
                         (list
                          '(alias
                            (family "monospace")
                            (prefer (family "Ubuntu Mono")))
                          '(alias
                            (family "sansSerif")
                            (prefer (family "Ubuntu")))
                          '(alias
                            (family "serif")
                            (prefer (family "Ubuntu")))))

         (service home-gpg-agent-service-type
                  (home-gpg-agent-configuration
                   (pinentry-program
                    (file-append pinentry-gtk2 "/bin/pinentry-gtk-2"))))
         (service home-pipewire-service-type)
         (service home-dbus-service-type))))
Do not follow this link