-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a75ee4
commit 11f1cc1
Showing
2 changed files
with
112 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,61 @@ | ||
{ inputs, lib, config, pkgs, ... }: | ||
# This is your home-manager configuration file | ||
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) | ||
let | ||
primary_user = "djinn"; # TODO: make dynamic | ||
in | ||
{ | ||
imports = [ | ||
./firefox | ||
./neovim | ||
]; | ||
|
||
home = { | ||
username = "${primary_user}"; | ||
homeDirectory = "/home/${primary_user}"; | ||
|
||
keyboard = { | ||
layout = "us"; | ||
variant = "dvorak"; | ||
options = [ | ||
"caps: swapescape" # use caps lock as escape key | ||
"ctrl: swap_ralt_rctl" | ||
]; | ||
}; | ||
let | ||
primary_user = "djinn"; # TODO: make dynamic | ||
in | ||
{ | ||
imports = [ | ||
./firefox | ||
./neovim | ||
]; | ||
|
||
home = { | ||
username = "${primary_user}"; | ||
homeDirectory = "/home/${primary_user}"; | ||
|
||
keyboard = { | ||
layout = "us"; | ||
variant = "dvorak"; | ||
options = [ | ||
"caps: swapescape" # use caps lock as escape key | ||
"ctrl: swap_ralt_rctl" | ||
]; | ||
}; | ||
|
||
sessionVariables = { | ||
EDITOR = "nvim"; | ||
VISUAL = "nvim"; | ||
TERMINAL = "foot"; | ||
WLR_NO_HARDWARE_CURSORS = "1"; | ||
}; | ||
sessionVariables = { | ||
EDITOR = "nvim"; | ||
VISUAL = "nvim"; | ||
TERMINAL = "foot"; | ||
WLR_NO_HARDWARE_CURSORS = "1"; | ||
GPG_TTY= "$(tty)"; | ||
}; | ||
|
||
# add user packages here! | ||
packages = with pkgs; | ||
let | ||
python-linters = python-packages: with python-packages; [ | ||
flake8 | ||
flake8-bugbear | ||
bandit | ||
black | ||
]; | ||
python-with-linters = python3.withPackages python-linters; | ||
in | ||
[ | ||
brightnessctl | ||
curl | ||
gh | ||
jq | ||
obsidian # TODO: add overlay to include plugins & vault already connected | ||
pfetch | ||
protonvpn-cli | ||
python-with-linters | ||
ripgrep | ||
zenith | ||
let | ||
python-linters = python-packages: with python-packages; [ | ||
flake8 | ||
flake8-bugbear | ||
bandit | ||
black | ||
]; | ||
python-with-linters = python3.withPackages python-linters; | ||
in | ||
[ | ||
brightnessctl | ||
chatgpt-cli | ||
curl | ||
gh | ||
gnupg | ||
jq | ||
obsidian # TODO: add overlay to include plugins & vault already connected | ||
pfetch | ||
protonvpn-cli | ||
python-with-linters | ||
ripgrep | ||
zenith | ||
]; | ||
}; | ||
|
||
fonts.fontconfig.enable = true; # access fonts in home.packages | ||
|
@@ -88,12 +91,16 @@ in | |
enable = true; | ||
userName = "data-djinn"; | ||
userEmail = "[email protected]"; | ||
signing = { | ||
signByDefault = true; | ||
key = "A974448D85A49F02"; | ||
}; | ||
diff-so-fancy.enable = true; | ||
aliases = { | ||
a = "add"; | ||
c = "commit -m"; | ||
ca = "commit --amend"; | ||
can = "commit --amend --no-edit"; | ||
c = "commit -Sm"; | ||
ca = "commit -S --amend"; | ||
can = "commit -S --amend --no-edit"; | ||
co = "checkout"; | ||
d = "diff"; | ||
f = "fetch"; | ||
|
@@ -116,12 +123,34 @@ in | |
pull = { | ||
rebase = true; | ||
}; | ||
gpg.format = "ssh"; | ||
user.signingkey = "$/home/{primary_user}/.ssh/id_ed255519.pub"; | ||
}; | ||
}; | ||
|
||
gpg.enable = true; | ||
gpg = { | ||
enable = true; | ||
settings = { # copied from dr duh | ||
personal-cipher-preferences = "AES256 AES192 AES"; | ||
personal-digest-preferences = "SHA512 SHA384 SHA256"; | ||
personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed"; | ||
default-preference-list = "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed"; | ||
cert-digest-algo = "SHA512"; | ||
s2k-digest-algo = "SHA512"; | ||
s2k-cipher-algo = "AES256"; | ||
charset = "utf-8"; | ||
fixed-list-mode = true; # show unix timestamps | ||
no-comments = true; | ||
no-emit-version = true; | ||
no-greeting = true; | ||
keyid-format = "0xlong"; # long hexadecimal key format | ||
list-options = "show-uid-validity"; | ||
verify-options = "show-uid-validity"; | ||
with-fingerprint = true; | ||
require-cross-certification = true; | ||
no-symkey-cache = true; | ||
use-agent = true; # enable smartcard | ||
throw-keyids = true; | ||
}; | ||
}; | ||
|
||
home-manager = { | ||
enable = true; | ||
|
@@ -138,6 +167,13 @@ in | |
}; | ||
}; | ||
|
||
services.gpg-agent = { | ||
enable = true; | ||
enableSshSupport = true; | ||
pinentryFlavor = "curses"; | ||
}; | ||
|
||
|
||
# ===== Sway (Wayland Tiling Window Manager) ===== | ||
wayland.windowManager.sway = { | ||
enable = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters