Skip to content

Commit 04354f9

Browse files
committed
Add instructions to use channels via lockfile
1 parent 4d460c5 commit 04354f9

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

guix/README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,6 @@ as a playground for ideas.
1616
--generate-key` as root.
1717
- This is needed for the remote Guix instance to accept packages we build
1818
locally.
19-
- `sops-guix` configured as a channel. For this, add:
20-
21-
```scheme
22-
(cons* (channel
23-
(name 'sops-guix)
24-
(url "https://github.com/fishinthecalculator/sops-guix.git")
25-
(branch "main")
26-
;; Enable signature verification:
27-
(introduction
28-
(make-channel-introduction
29-
"0bbaf1fdd25266c7df790f65640aaa01e6d2dbc9"
30-
(openpgp-fingerprint
31-
"8D10 60B9 6BB8 292E 829B 7249 AED4 1CC1 93B7 01E2"))))
32-
%default-channels)
33-
```
34-
35-
to your `~/.config/guix/channels.scm`. After adding it, run `guix pull`.
3619
- [`sops`](https://github.com/getsops/sops) installed locally, along with
3720
[`age`](https://github.com/FiloSottile/age).
3821

@@ -62,6 +45,12 @@ sudo $(guix system container --network machines/turing.scm)
6245

6346
```sh
6447
# Optional, but recommended
65-
# guix pull
48+
# guix pull
49+
# If you have the sops-guix channel configured locally:
6650
guix deploy deployment.scm
51+
# If you do not have the sops-guix channel configured locally
52+
# and wish to use the pinned versions (as you should):
53+
guix time-machine -C channels-lock.scm -- deploy deployment.scm
54+
# If you wish to sandbox the whole thing in a container:
55+
guix shell --preserve=^SSH_AUTH_SOCK --expose=/etc/guix --expose=$HOME/.ssh --share=$SSH_AUTH_SOCK --container --network --nesting guix -- guix time-machine -C channels-lock.scm -- deploy deployment.scm
6756
```

0 commit comments

Comments
 (0)