flakes now also nano nix also moved private vars off repo

This commit is contained in:
2026-09-20 05:07:14 +05:00
parent d02a49f54f
commit 70fd24f60d
9 changed files with 449 additions and 19 deletions
+4
View File
@@ -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)
+21
View File
@@ -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 = "";
}
-11
View File
@@ -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
View File
@@ -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";