diff --git a/flake.nix b/flake.nix index 10f58b8..689abb1 100644 --- a/flake.nix +++ b/flake.nix @@ -182,6 +182,12 @@ specialArgs = { inherit inputs confDir workDir secretsDir persistentDir self; }; modules = [ ./hosts/tab/nix-on-droid.nix + { + home-manager.extraSpecialArgs = { + inherit self inputs; + hostname = "tab"; + }; + } ]; }; }; diff --git a/hosts/phone/nix-on-droid.nix b/hosts/phone/nix-on-droid.nix index 7322a6c..c518735 100644 --- a/hosts/phone/nix-on-droid.nix +++ b/hosts/phone/nix-on-droid.nix @@ -1,4 +1,4 @@ -{ pkgs, self, config, lib, specialArgs, ... }: +{ pkgs, config, lib, specialArgs, ... }: let sshdTmpDirectory = "${config.user.home}/sshd-tmp"; sshdDirectory = "${config.user.home}/sshd"; @@ -21,12 +21,6 @@ in # Set your time zone. time.timeZone = "Europe/Vienna"; - - # add mybin to path - environment.etc.profile.text = '' - export PATH=$PATH:${self}/mybin - ''; - nix.extraOptions = '' experimental-features = nix-command flakes trusted-users = root @wheel me diff --git a/hosts/tab/nix-on-droid.nix b/hosts/tab/nix-on-droid.nix index 3e0f194..4f25a3f 100644 --- a/hosts/tab/nix-on-droid.nix +++ b/hosts/tab/nix-on-droid.nix @@ -1,4 +1,4 @@ -{ pkgs, self, config, lib, ... }: +{ pkgs, config, ... }: let sshdTmpDirectory = "${config.user.home}/sshd-tmp"; sshdDirectory = "${config.user.home}/sshd"; @@ -22,12 +22,7 @@ in time.timeZone = "Europe/Vienna"; - # add mybin to path - environment.etc.profile.text = '' - export PATH=$PATH:${self}/mybin - ''; - - nix.extraOptions = '' + nix.extraOptions = '' experimental-features = nix-command flakes trusted-users = root @wheel me '';