Skip to content

Commit

Permalink
separate welcomeTetx
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 1, 2024
1 parent e8058a7 commit 1c017f3
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions modules/flake-parts/template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@
{
default = {
description = mkDescription "nix-darwin/home-manager";
welcomeText = ''
You have just created a nix-dev-home flake.nix.
- Edit `./modules/{home,darwin}/*.nix` to customize your configuration.
- Run `nix run` to apply the configuration.

Enjoy!
'';
path = builtins.path {
path = inputs.self;
filter = path: _:
Expand All @@ -43,6 +36,14 @@

home = let parent = templates.default; in {
description = mkDescription "home-manager";
welcomeText = ''
You have just created a nix-dev-home flake.nix using home-manager.
- Edit `./modules/home/*.nix` to customize your configuration.
- Run `nix run` to apply the configuration.
Enjoy!
'';
path = builtins.path {
path = parent.path;
filter = path: _:
Expand All @@ -52,6 +53,22 @@

nix-darwin = let parent = templates.default; in {
description = mkDescription "nix-darwin";
welcomeText = ''
You have just created a nix-dev-home flake.nix using nix-darwin / home-manager.
- Edit `./modules/{home,darwin}/*.nix` to customize your configuration.
Then, as first-time activation, run:
```sh
sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin
nix --extra-experimental-features "nix-command flakes" run
```
Thereon, you can simply `nix run` whenever changing your configuration.
Enjoy!
'';
path = builtins.path {
path = parent.path;
filter = path: _:
Expand Down

0 comments on commit 1c017f3

Please sign in to comment.