flakes now also nano nix also moved private vars off repo
This commit is contained in:
@@ -59,6 +59,10 @@ in
|
||||
source "$(blesh-share)/ble.sh"
|
||||
# ---- prompt --------------------------------------------------------
|
||||
source ${bash-seafly-prompt}/command_prompt.bash
|
||||
|
||||
# ---- machine-local non-public env --------------------------------------
|
||||
[ -r "$HOME/.config/private-env" ] && source "$HOME/.config/private-env"
|
||||
|
||||
# needed for gpg-sign
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."nano/nanorc".text = ''
|
||||
set autoindent
|
||||
set linenumbers
|
||||
#set smooth
|
||||
|
||||
set backup
|
||||
set backupdir "~/.cache/nano"
|
||||
|
||||
set titlecolor brightblue,black
|
||||
set statuscolor brightgreen,blue
|
||||
set selectedcolor brightwhite,magenta
|
||||
set numbercolor yellow
|
||||
set keycolor brightcyan
|
||||
set functioncolor green
|
||||
set nohelp
|
||||
'';
|
||||
home.file.".cache/nano/.keep".text = "";
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
# Template. Copy to private.nix and fill in; private.nix is gitignored.
|
||||
#
|
||||
# cp home/private.nix.example home/private.nix
|
||||
#
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
home.sessionVariables = {
|
||||
# HELLO=WORLD
|
||||
};
|
||||
}
|
||||
+3
-7
@@ -1,4 +1,4 @@
|
||||
# Imported from /etc/nixos/configuration.nix
|
||||
# Entry point for the shihaam home-manager profile (see flake.nix).
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
@@ -6,12 +6,8 @@
|
||||
./bash.nix
|
||||
./packages.nix
|
||||
./fonts.nix
|
||||
] ++ (
|
||||
# import non public vars
|
||||
if builtins.pathExists ./private.nix
|
||||
then [ ./private.nix ]
|
||||
else lib.warn "home/private.nix not found -- private session variables will be unset" [ ]
|
||||
);
|
||||
./nano.nix
|
||||
];
|
||||
|
||||
home.username = "shihaam";
|
||||
home.homeDirectory = "/home/shihaam";
|
||||
|
||||
Reference in New Issue
Block a user