Home manager module rewrite
This commit is contained in:
@@ -2909,13 +2909,15 @@ This makes sure all ./assets/copy_stuff ends up in the right folder
|
|||||||
#+begin_src nix :tangle home/copy_stuff.nix :noweb tangle :mkdirp yes.
|
#+begin_src nix :tangle home/copy_stuff.nix :noweb tangle :mkdirp yes.
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
# Ensure the script is executable and available
|
|
||||||
home.packages = [ pkgs.bash ];
|
home.packages = [ pkgs.bash ];
|
||||||
|
home.activation = {
|
||||||
# Add the activation script
|
recreateConfig = {
|
||||||
system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" ''
|
text = ''
|
||||||
${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh
|
${pkgs.bash}/bin/bash "${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh"
|
||||||
'';
|
'';
|
||||||
|
deps = [ pkgs.bash ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user