laptop config, flakes config

This commit is contained in:
2023-08-11 18:57:56 -04:00
parent 18adcedbbf
commit a20395c2c1
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
+19
View File
@@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
with lib;
{
options.modules.gpg = {
enable = mkOption { type = types.bool; default = false; };
openFirewall = mkOption { type = types.bool; default = false; };
};
config = mkIf config.modules.gpg.enable {
environment.systemPackages = [ pkgs.pinentry-curses ];
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
enableSSHSupport = true;
};
};
}