Skip to content

Commit

Permalink
Fix: hostname is configurable now
Browse files Browse the repository at this point in the history
  • Loading branch information
rschardt committed Jan 22, 2025
1 parent bc42775 commit 50b6103
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,12 @@ Flakehub esque:
### add more sections to table of contents


### add home-manager module to default modules in nix-roleplay.nix


### refactor and move home-manager import function to nix-roleplay.nix from nix-src/main.nix


## Contact


Expand Down
6 changes: 5 additions & 1 deletion nix-roleplay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
src ? ./.,
nix-roleplay-dir ? "nix-rp",
nixOptions ? [],
hostname ? "${name}",
default_role ? {
func_mods = [
# personal_module
(name: import (src + "/${nix-roleplay-dir}/machines/${name}/nixos/module-list.nix"))

# TODO
# Add dynamic import for home-manager.nix

# nixinate_module
(name: [
{
_module.args.nixinate = {
host = "${name}-root";
host = hostname;
sshUser = "root";
buildOn = "local";
substituteOnTarget = false;
Expand Down

0 comments on commit 50b6103

Please sign in to comment.