laptop config, flakes config (#1)
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user