testig HM as module - try 2

This commit is contained in:
2023-10-18 19:06:42 +00:00
parent f809cb560f
commit c749e19c2e
2 changed files with 2 additions and 1667 deletions

View File

@@ -1,11 +1,6 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, outputs, lib, config, pkgs, hostName, ... }:
# let
# getEnv_name = builtins.getEnv "name";
# hostname = builtins.getEnv "hostname";
# in
{
imports = [
../../global.nix
@@ -19,30 +14,23 @@
defaultSopsFile = "${config._secretstore}/user-secrets.yaml";
secrets = {
mrconfig = {
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig"; # optionally define per-secret files
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig";
format = "binary";
path = "${config.home.homeDirectory}/.mrconfig";
# path = "${config.home.homeDirectory}/${getEnv_name}";
};
"ssh/id_rsa" = {
# owner = "${config.home.username}";
mode = "0600";
path = "${config.home.homeDirectory}/.ssh/id_rsa";
};
"ssh/id_rsa_pub" = {
# owner = "${config.home.username}";
mode = "0644";
path = "${config.home.homeDirectory}/.ssh/id_rsa.pub";
};
"ssh/id_rsa_git" = {
# owner = "${config.home.username}";
mode = "0600";
path = "${config.home.homeDirectory}/.ssh/id_rsa_git";
};
"ssh/id_rsa_git_pub" = {
# owner = "${config.home.username}";
mode = "0644";
path = "${config.home.homeDirectory}/.ssh/id_rsa_git.pub";
};
@@ -97,41 +85,6 @@
man.enable = true;
nix-index.enable = true;
yt-dlp.enable = true;
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
autocd = true;
defaultKeymap = "viins";
history.expireDuplicatesFirst = true;
initExtra = ''
bindkey '^R' history-incremental-pattern-search-backward
ZSH_AUTOSUGGEST_STRATEGY=(history completion match_prev_cmd)
'';
initExtraBeforeCompInit = ''
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
'';
plugins = [
{
file = "powerlevel10k.zsh-theme";
name = "powerlevel10k";
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
}
{
file = "p10k.zsh";
name = "powerlevel10k-config";
src = "${./.}";
}
];
};
bash = {
enable = true;
historyControl = [ "ignorespace" ];

File diff suppressed because it is too large Load Diff