Bash : Use program to setup.
This commit is contained in:
parent
1d49f37f40
commit
5af57de559
home
config
program
bash
default.nix
default.nixmodule
Android.nixArchive.nixAsk.nixAutocomplete.nixBattery.nixBootstrap.nixBrightness.nixCalc.nixCd.nixChecksum.nixChmod.nixColor.nixContainer.nixCopypaste.nixCp.nixDate.nixDconf.nixDisk.nixDistrobox.nixDmenu.nixDocker.nixDvd.nixFfmpeg.nixFile.nixFind.nixFix.nixGit.nixGpg.nixGroup.nixHelp.nixLs.nixMarkdown.nixName.nixNetwork.nixNix.nixNotify.nixOwn.nixPack.nixParse.nixPermission.nixPower.nixPrune.nixPs.nixPs1.nixRandom.nixRecursive.nixSave.nixShopt.nixSsh.nixSteam.nixSu.nixTerminal.nixTmp.nixTmux.nixTodo.nixTranscode.nixTry.nixUtil.nixVdl.nixVi.nixWatch.nix
host/home
|
@ -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