From b2de08b2dc0496e561f6e1426b24eb1baa150151 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 28 Oct 2024 23:44:26 -0500 Subject: [PATCH] make bashrc available in netbox root account, too --- boxes/netbox/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boxes/netbox/default.nix b/boxes/netbox/default.nix index bacff45..a8ee748 100644 --- a/boxes/netbox/default.nix +++ b/boxes/netbox/default.nix @@ -73,6 +73,18 @@ }; }; + system.activationScripts = { + copyEssentialConfiguration = { + text = '' + ${pkgs.coreutils}/bin/cp /home/ryan/dot_testing/.config/bash/bashrc /root/.bashrc + ${pkgs.coreutils}/bin/cp /home/ryan/dot_testing/.config/bash/profile /root/.bash_profile + ${pkgs.coreutils}/bin/mkdir -p /root/.config/nvim + ${pkgs.coreutils}/bin/cp /home/ryan/dot_testing/.config/nvim/init.min.lua /root/.config/nvim/init.lua + ''; + deps = []; + }; + }; + boot.loader = { grub.enable = true; grub.device = "/dev/vda";