Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: prefer id over whoami #114

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor: prefer id over whoami
  • Loading branch information
anntnzrb committed Dec 23, 2024
commit 44eaacf26af9af03744e84260249cd09eee177d4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you are on macOS or running other Linux distros:
1. [Install Nix](https://nixos.asia/en/install):
```sh-session
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install --no-confirm --extra-conf "trusted-users = $(whoami)"
sh -s -- install --no-confirm --extra-conf "trusted-users = $(id -un)"
```
1. Open a new terminal; Initialize[^omnix] your Nix configuration using this repo as template:
```sh-session
Expand Down Expand Up @@ -128,7 +128,7 @@ By default, [home-manager] is configured to run garbage collection automatically

**Problem**: When using home-manager, `nix run` shows an error like: `error: opening lock file '/nix/var/nix/profiles/per-user/utkarsh.pandey1/profile.lock': No such file or directory`

**Solution**: This is an instance of https://github.com/nix-community/home-manager/issues/4611. Run `sudo mkdir /nix/var/nix/profiles/per-user/$(whoami)/ && sudo chown $(whoami) /nix/var/nix/profiles/per-user/$(whoami)` and try again.
**Solution**: This is an instance of https://github.com/nix-community/home-manager/issues/4611. Run `sudo mkdir /nix/var/nix/profiles/per-user/$(id -un)/ && sudo chown $(id -un) /nix/var/nix/profiles/per-user/$(id -un)` and try again.

### `error: unable to download ... Problem with the SSL CA cert (path? access rights?)`

Expand Down
2 changes: 1 addition & 1 deletion modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
params = [
{
name = "username";
description = "Your username as shown by `whoami`";
description = "Your username as shown by `id -un`";
placeholder = "runner";
}
# Git
Expand Down