Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 2, 2024
1 parent 530e336 commit 5e3b89d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,18 @@ NOTE: These instructions do not apply if you use [NixOS](https://nixos.asia/en/n
<img width="587" alt="image" src="https://github.com/user-attachments/assets/2c0d514e-2284-4b92-9b5b-036b1e4393b0">

- Optionally, you may edit `./modules/home/*.nix` to your liking.
1. Run `nix run`[^home-modify] to activate your configuration.
1. Run `nix run` (or the appropriate command printed by the above command) to activate your configuration.
- Does this fail to run? See the [Troubleshooting](#troubleshooting) section below.
1. Restart your terminal.

After steps 1-4, you should expect to see the [starship](https://starship.rs/) prompt:

<img width="236" alt="image" src="https://github.com/user-attachments/assets/bea3a7e5-b06a-483f-b76b-5c3865ce5e55">

Anytime you modify your home configuration in `./modules/home/*.nix`, re-run `nix run` to activate the new configuration.
Anytime you modify your configuration in `./modules/*/*.nix`, re-run `nix run` to activate the new configuration.

[^omnix]: We use [omnix](https://omnix.page/om/init.html) to initialize this repository template.

[^home-modify]: Executing this step will modify the contents of your `$HOME` directory. You will be [warned before overwriting](https://nix-community.github.io/home-manager/index.html#sec-usage-dotfiles), but not before creating links to newly created configuration files in the nix store. Since home-manager does not currently provide an integrated and automated feature to eliminate the links it creates, be aware that if you would like to reverse this operation, you will need to curate your home directory manually.

## Details

The configuration repo has `flake.nix` file in the current directory and some `./modules/home/*.nix` files containing the home-manager configuration that you can review. It also has a [justfile](https://github.com/casey/just), which provides a set of recipes analogous to Make targets to interact with the nix flake.
Expand Down
6 changes: 3 additions & 3 deletions modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

# https://omnix.page/om/init.html#spec
om.templates = {
nix-dev-home-all = {
all = {
template = templates.home;
params = [
{
Expand Down Expand Up @@ -111,15 +111,15 @@
];
};

nix-dev-home-darwin = {
darwin = {
template = templates.nix-darwin;
params = [
{
name = "hostname";
description = "Your system hostname as shown by `hostname -s`";
placeholder = "example";
}
] ++ om.templates.nix-dev-home-all.params;
] ++ om.templates.all.params;
};
};
};
Expand Down

0 comments on commit 5e3b89d

Please sign in to comment.