mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-06 12:32:54 +00:00
testig HM as module - try 2
This commit is contained in:
@@ -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, ... }:
|
{ inputs, outputs, lib, config, pkgs, hostName, ... }:
|
||||||
# let
|
|
||||||
# getEnv_name = builtins.getEnv "name";
|
|
||||||
# hostname = builtins.getEnv "hostname";
|
|
||||||
# in
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../global.nix
|
../../global.nix
|
||||||
@@ -19,30 +14,23 @@
|
|||||||
defaultSopsFile = "${config._secretstore}/user-secrets.yaml";
|
defaultSopsFile = "${config._secretstore}/user-secrets.yaml";
|
||||||
secrets = {
|
secrets = {
|
||||||
mrconfig = {
|
mrconfig = {
|
||||||
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig"; # optionally define per-secret files
|
sopsFile = "${config._secretstore}/user_dotfiles/mrconfig";
|
||||||
format = "binary";
|
format = "binary";
|
||||||
path = "${config.home.homeDirectory}/.mrconfig";
|
path = "${config.home.homeDirectory}/.mrconfig";
|
||||||
# path = "${config.home.homeDirectory}/${getEnv_name}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
"ssh/id_rsa" = {
|
"ssh/id_rsa" = {
|
||||||
# owner = "${config.home.username}";
|
|
||||||
mode = "0600";
|
mode = "0600";
|
||||||
path = "${config.home.homeDirectory}/.ssh/id_rsa";
|
path = "${config.home.homeDirectory}/.ssh/id_rsa";
|
||||||
};
|
};
|
||||||
"ssh/id_rsa_pub" = {
|
"ssh/id_rsa_pub" = {
|
||||||
# owner = "${config.home.username}";
|
|
||||||
mode = "0644";
|
mode = "0644";
|
||||||
path = "${config.home.homeDirectory}/.ssh/id_rsa.pub";
|
path = "${config.home.homeDirectory}/.ssh/id_rsa.pub";
|
||||||
};
|
};
|
||||||
"ssh/id_rsa_git" = {
|
"ssh/id_rsa_git" = {
|
||||||
# owner = "${config.home.username}";
|
|
||||||
mode = "0600";
|
mode = "0600";
|
||||||
path = "${config.home.homeDirectory}/.ssh/id_rsa_git";
|
path = "${config.home.homeDirectory}/.ssh/id_rsa_git";
|
||||||
};
|
};
|
||||||
"ssh/id_rsa_git_pub" = {
|
"ssh/id_rsa_git_pub" = {
|
||||||
# owner = "${config.home.username}";
|
|
||||||
mode = "0644";
|
mode = "0644";
|
||||||
path = "${config.home.homeDirectory}/.ssh/id_rsa_git.pub";
|
path = "${config.home.homeDirectory}/.ssh/id_rsa_git.pub";
|
||||||
};
|
};
|
||||||
@@ -97,41 +85,6 @@
|
|||||||
man.enable = true;
|
man.enable = true;
|
||||||
nix-index.enable = true;
|
nix-index.enable = true;
|
||||||
yt-dlp.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 = {
|
bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
historyControl = [ "ignorespace" ];
|
historyControl = [ "ignorespace" ];
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user