laptop config, flakes config (#1)

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2023-08-11 18:59:35 -04:00
parent 18adcedbbf
commit 72c822cd29
19 changed files with 2134 additions and 97 deletions
+35
View File
@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.modules.git = {
enable = mkOption { type = types.bool; default = false; };
};
config = mkIf config.modules.git.enable {
home.packages = with pkgs; [ git ];
home.file.".gitconfig" = {
executable = false;
text = ''
[user]
email = david@dvdt.dev
name = David Lick
[color]
ui = true
'';
};
home.file.".ssh/config" = {
executable = false;
text = ''
Host git.dvdt.dev
User git
Hostname git.dvdt.dev
IdentityFile ~/.ssh/gitea_ed25519
IdentitiesOnly true
'';
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.modules.zsh = {
enable = mkOption { type = types.bool; default = false; };
};
config = mkIf config.modules.zsh.enable {
home.packages = with pkgs; [ zsh ];
home.file.".p10k.zsh".source = ./zsh/.p10k.zsh;
programs.zsh = {
enable = true;
autocd = true;
enableCompletion = true;
enableAutosuggestions = true;
prezto = {
enable = true;
prompt.theme = "powerlevel10k";
editor.keymap = "vi";
syntaxHighlighting.highlighters = [ "main" "brackets" "pattern" "line" "cursor" "root" ];
terminal = {
autoTitle = true;
multiplexerTitleFormat = "%s";
tabTitleFormat = "%s";
windowTitleFormat = "%s";
};
utility.safeOps = true;
};
initExtraFirst = ''
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi
'';
};
};
}
File diff suppressed because it is too large Load Diff