Bash : Use program to setup.
This commit is contained in:
parent
1d49f37f40
commit
5af57de559
|
@ -1,5 +1,4 @@
|
|||
{ self, config, ... } @args: let
|
||||
bash = import ./bash args;
|
||||
btop = import ./top/btop args;
|
||||
editor = import ./editorconfig args;
|
||||
foot = import ./foot args;
|
||||
|
@ -17,9 +16,6 @@
|
|||
waybar = import ./waybar args;
|
||||
yazi = import ./yazi args;
|
||||
in {
|
||||
".bashrc".text = bash.bashrc;
|
||||
".bash_profile".text = bash.bash_profile;
|
||||
".profile".text = bash.profile;
|
||||
".config/MangoHud/MangoHud.conf".text = mangohud.config;
|
||||
".config/MangoHud/presets.conf".text = mangohud.presets;
|
||||
".config/btop/btop.conf".text = btop.text;
|
||||
|
|
|
@ -20,19 +20,19 @@ in {
|
|||
fi
|
||||
'';
|
||||
|
||||
bash_profile = util.trimTabs ''
|
||||
# Home manager.
|
||||
[ -e ~/.nix-profile/etc/profile.d/nix.sh ] && source ~/.nix-profile/etc/profile.d/nix.sh
|
||||
# bash_profile = util.trimTabs ''
|
||||
# # Home manager.
|
||||
# [ -e ~/.nix-profile/etc/profile.d/nix.sh ] && source ~/.nix-profile/etc/profile.d/nix.sh
|
||||
|
||||
# Bashrc.
|
||||
[ -f ~/.bashrc ] && source ~/.bashrc
|
||||
# # Bashrc.
|
||||
# [ -f ~/.bashrc ] && source ~/.bashrc
|
||||
|
||||
# Profile.
|
||||
[ -f ~/.profile ] && source ~/.profile
|
||||
'';
|
||||
# # Profile.
|
||||
# [ -f ~/.profile ] && source ~/.profile
|
||||
# '';
|
||||
|
||||
profile = util.trimTabs ''
|
||||
# Load HM vars.
|
||||
[ -e ~/.nix-profile/etc/profile.d/hm-session-vars.sh ] && source ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
'';
|
||||
# profile = util.trimTabs ''
|
||||
# # Load HM vars.
|
||||
# [ -e ~/.nix-profile/etc/profile.d/hm-session-vars.sh ] && source ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
# '';
|
||||
}
|
|
@ -1,4 +1,6 @@
|
|||
{ secret, ... } @args: {
|
||||
{ secret, ... } @args: let
|
||||
bash = import ./bash args;
|
||||
in {
|
||||
home-manager.enable = true;
|
||||
|
||||
gpg = {
|
||||
|
@ -7,4 +9,9 @@
|
|||
};
|
||||
|
||||
firefox = import ./firefox args;
|
||||
|
||||
bash = {
|
||||
enable = true;
|
||||
initExtra = bash.bashrc;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs, util, __findFile, ... } @args: let
|
||||
bash = import <home/config/bash> args;
|
||||
bash = import <home/program/bash> args;
|
||||
script = pkgs.writeText "backupScript" ''
|
||||
source ${bash.modulesFile}
|
||||
|
||||
|
|
Loading…
Reference in a new issue