fix(shell)!: accept a hostname parameter

Pass along device `hostname` into `home-manager` (and more) configs
Used for the `rebuild` command since `nix-on-droid` uses the `default` system instead of the `$(hostname)` one (because that requires root to change on-device)
This commit is contained in:
reo101 2023-07-26 09:43:14 +03:00
parent bc81e59950
commit 20e7547b0c
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
4 changed files with 45 additions and 120 deletions

View file

@ -1,4 +1,4 @@
{ inputs, outputs, lib, pkgs, config, ... }:
{ inputs, outputs, hostname, lib, pkgs, config, ... }:
{
# Home Manager needs a bit of information about you and the
@ -102,6 +102,7 @@
reo101.shell = {
enable = true;
username = "reo101";
inherit hostname;
direnv = true;
zoxide = true;
};