2023-09-13 23:17:50 +01:00
|
|
|
{ config, pkgs, callPackage, lib, ... }:
|
2023-09-05 21:37:06 +01:00
|
|
|
|
|
|
|
{
|
2023-09-05 22:42:18 +01:00
|
|
|
nixpkgs = {
|
2023-09-13 23:17:50 +01:00
|
|
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"parsec-bin"
|
|
|
|
"discord"
|
|
|
|
];
|
2023-09-05 22:42:18 +01:00
|
|
|
config.allowUnfree = true;
|
|
|
|
overlays =
|
|
|
|
let
|
|
|
|
discordOverlay = self: super: {
|
|
|
|
discord = super.discord.override { withOpenASAR = true; withVencord = true; };
|
|
|
|
};
|
|
|
|
in
|
|
|
|
[
|
|
|
|
(import (builtins.fetchTarball {
|
|
|
|
url = "https://github.com/nix-community/emacs-overlay/archive/master.tar.gz";
|
2023-10-19 12:48:01 +01:00
|
|
|
sha256 = "0vhw5cl26p64j660nwil1dgs3js4pzdjh29ch2gl1yn8gbacz5xd";
|
2023-09-05 22:42:18 +01:00
|
|
|
})) discordOverlay];
|
|
|
|
};
|
|
|
|
home = {
|
|
|
|
username = "gsimmer";
|
|
|
|
homeDirectory = "/home/gsimmer";
|
|
|
|
};
|
2023-10-27 14:54:18 +01:00
|
|
|
|
|
|
|
services.pueue = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
client = { };
|
|
|
|
daemon.callback = ''
|
|
|
|
${pkgs.libnotify}/bin/notify-send -t 4000 "Task {{id}} finished, status '{{result}}'" "<b>{{exit_code}}</b> {{command}}"
|
|
|
|
'';
|
|
|
|
shared = { };
|
|
|
|
profiles = { };
|
|
|
|
};
|
|
|
|
};
|
2023-09-09 22:53:50 +01:00
|
|
|
|
2023-09-05 22:42:18 +01:00
|
|
|
programs = {
|
|
|
|
bash.enable = false;
|
|
|
|
fish = {
|
|
|
|
enable = false;
|
|
|
|
interactiveShellInit = ''
|
2023-09-05 21:37:06 +01:00
|
|
|
set fish_greeting
|
|
|
|
atuin init fish | source
|
|
|
|
'';
|
2023-09-05 22:42:18 +01:00
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
|
2023-09-05 22:42:18 +01:00
|
|
|
nushell = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig =
|
|
|
|
''
|
2023-09-05 21:37:06 +01:00
|
|
|
$env.config = {
|
|
|
|
shell_integration: true
|
|
|
|
keybindings: [
|
|
|
|
{
|
|
|
|
name: completion_menu
|
|
|
|
modifier: none
|
|
|
|
keycode: tab
|
|
|
|
mode: [emacs vi_normal vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{ send: menu name: completion_menu }
|
|
|
|
{ send: menunext }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: history_menu
|
|
|
|
modifier: control
|
|
|
|
keycode: char_r
|
|
|
|
mode: [emacs, vi_insert, vi_normal]
|
|
|
|
event: { send: menu name: history_menu }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: help_menu
|
|
|
|
modifier: none
|
|
|
|
keycode: f1
|
|
|
|
mode: [emacs, vi_insert, vi_normal]
|
|
|
|
event: { send: menu name: help_menu }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: completion_previous_menu
|
|
|
|
modifier: shift
|
|
|
|
keycode: backtab
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: menuprevious }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: next_page_menu
|
|
|
|
modifier: control
|
|
|
|
keycode: char_x
|
|
|
|
mode: emacs
|
|
|
|
event: { send: menupagenext }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: undo_or_previous_page_menu
|
|
|
|
modifier: control
|
|
|
|
keycode: char_z
|
|
|
|
mode: emacs
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{ send: menupageprevious }
|
|
|
|
{ edit: undo }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: escape
|
|
|
|
modifier: none
|
|
|
|
keycode: escape
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: esc } # NOTE: does not appear to work
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: cancel_command
|
|
|
|
modifier: control
|
|
|
|
keycode: char_c
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: ctrlc }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: quit_shell
|
|
|
|
modifier: control
|
|
|
|
keycode: char_d
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: ctrld }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: clear_screen
|
|
|
|
modifier: control
|
|
|
|
keycode: char_l
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: clearscreen }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: search_history
|
|
|
|
modifier: control
|
|
|
|
keycode: char_q
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: searchhistory }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: open_command_editor
|
|
|
|
modifier: control
|
|
|
|
keycode: char_o
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: { send: openeditor }
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_up
|
|
|
|
modifier: none
|
|
|
|
keycode: up
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menuup}
|
|
|
|
{send: up}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_down
|
|
|
|
modifier: none
|
|
|
|
keycode: down
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menudown}
|
|
|
|
{send: down}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_left
|
|
|
|
modifier: none
|
|
|
|
keycode: left
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menuleft}
|
|
|
|
{send: left}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_right_or_take_history_hint
|
|
|
|
modifier: none
|
|
|
|
keycode: right
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintcomplete}
|
|
|
|
{send: menuright}
|
|
|
|
{send: right}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_left
|
|
|
|
modifier: control
|
|
|
|
keycode: left
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {edit: movewordleft}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_right_or_take_history_hint
|
|
|
|
modifier: control
|
|
|
|
keycode: right
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintwordcomplete}
|
|
|
|
{edit: movewordright}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_start
|
|
|
|
modifier: none
|
|
|
|
keycode: home
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {edit: movetolinestart}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_start
|
|
|
|
modifier: control
|
|
|
|
keycode: char_a
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {edit: movetolinestart}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_end_or_take_history_hint
|
|
|
|
modifier: none
|
|
|
|
keycode: end
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintcomplete}
|
|
|
|
{edit: movetolineend}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_end_or_take_history_hint
|
|
|
|
modifier: control
|
|
|
|
keycode: char_e
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintcomplete}
|
|
|
|
{edit: movetolineend}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_start
|
|
|
|
modifier: control
|
|
|
|
keycode: home
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {edit: movetolinestart}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_to_line_end
|
|
|
|
modifier: control
|
|
|
|
keycode: end
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {edit: movetolineend}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_up
|
|
|
|
modifier: control
|
|
|
|
keycode: char_p
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menuup}
|
|
|
|
{send: up}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_down
|
|
|
|
modifier: control
|
|
|
|
keycode: char_t
|
|
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menudown}
|
|
|
|
{send: down}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_character_backward
|
|
|
|
modifier: none
|
|
|
|
keycode: backspace
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: backspace}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_word_backward
|
|
|
|
modifier: control
|
|
|
|
keycode: backspace
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: backspaceword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_character_forward
|
|
|
|
modifier: none
|
|
|
|
keycode: delete
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: delete}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_character_forward
|
|
|
|
modifier: control
|
|
|
|
keycode: delete
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: delete}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_character_forward
|
|
|
|
modifier: control
|
|
|
|
keycode: char_h
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: backspace}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_word_backward
|
|
|
|
modifier: control
|
|
|
|
keycode: char_w
|
|
|
|
mode: [emacs, vi_insert]
|
|
|
|
event: {edit: backspaceword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_left
|
|
|
|
modifier: none
|
|
|
|
keycode: backspace
|
|
|
|
mode: vi_normal
|
|
|
|
event: {edit: moveleft}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: newline_or_run_command
|
|
|
|
modifier: none
|
|
|
|
keycode: enter
|
|
|
|
mode: emacs
|
|
|
|
event: {send: enter}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_left
|
|
|
|
modifier: control
|
|
|
|
keycode: char_b
|
|
|
|
mode: emacs
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: menuleft}
|
|
|
|
{send: left}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_right_or_take_history_hint
|
|
|
|
modifier: control
|
|
|
|
keycode: char_f
|
|
|
|
mode: emacs
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintcomplete}
|
|
|
|
{send: menuright}
|
|
|
|
{send: right}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: redo_change
|
|
|
|
modifier: control
|
|
|
|
keycode: char_g
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: redo}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: undo_change
|
|
|
|
modifier: control
|
|
|
|
keycode: char_z
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: undo}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: paste_before
|
|
|
|
modifier: control
|
|
|
|
keycode: char_y
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: pastecutbufferbefore}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: cut_word_left
|
|
|
|
modifier: control
|
|
|
|
keycode: char_w
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: cutwordleft}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: cut_line_to_end
|
|
|
|
modifier: control
|
|
|
|
keycode: char_k
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: cuttoend}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: cut_line_from_start
|
|
|
|
modifier: control
|
|
|
|
keycode: char_u
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: cutfromstart}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: swap_graphemes
|
|
|
|
modifier: control
|
|
|
|
keycode: char_t
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: swapgraphemes}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_left
|
|
|
|
modifier: alt
|
|
|
|
keycode: left
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: movewordleft}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_right_or_take_history_hint
|
|
|
|
modifier: alt
|
|
|
|
keycode: right
|
|
|
|
mode: emacs
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintwordcomplete}
|
|
|
|
{edit: movewordright}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_left
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_b
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: movewordleft}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: move_one_word_right_or_take_history_hint
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_f
|
|
|
|
mode: emacs
|
|
|
|
event: {
|
|
|
|
until: [
|
|
|
|
{send: historyhintwordcomplete}
|
|
|
|
{edit: movewordright}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_word_forward
|
|
|
|
modifier: alt
|
|
|
|
keycode: delete
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: deleteword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_word_backward
|
|
|
|
modifier: alt
|
|
|
|
keycode: backspace
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: backspaceword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: delete_one_word_backward
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_m
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: backspaceword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: cut_word_to_right
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_d
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: cutwordright}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: upper_case_word
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_u
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: uppercaseword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: lower_case_word
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_l
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: lowercaseword}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name: capitalize_char
|
|
|
|
modifier: alt
|
|
|
|
keycode: char_c
|
|
|
|
mode: emacs
|
|
|
|
event: {edit: capitalizechar}
|
|
|
|
}
|
|
|
|
]
|
2023-09-05 22:42:18 +01:00
|
|
|
}
|
2023-09-05 21:37:06 +01:00
|
|
|
source ~/.local/share/atuin/init.nu
|
|
|
|
'';
|
2023-09-05 22:42:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
|
2023-09-05 22:42:18 +01:00
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Gabriel Simmer";
|
|
|
|
userEmail = "g@gmem.ca";
|
|
|
|
extraConfig = {
|
|
|
|
gpg = {
|
|
|
|
format = "ssh";
|
|
|
|
};
|
|
|
|
user = {
|
|
|
|
signingkey = "/home/gsimmer/.ssh/yubikey-second.pub";
|
|
|
|
};
|
|
|
|
tag = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
|
|
|
commit = {
|
|
|
|
gpgSign = true;
|
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-05 22:42:18 +01:00
|
|
|
emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs-unstable-pgtk;
|
|
|
|
extraPackages = epkgs: [
|
|
|
|
epkgs.vterm
|
|
|
|
];
|
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
|
2023-09-09 22:53:50 +01:00
|
|
|
eza = {
|
2023-09-05 22:42:18 +01:00
|
|
|
enable = true;
|
|
|
|
enableAliases = true;
|
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
|
2023-09-05 22:42:18 +01:00
|
|
|
bat = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-09-05 21:37:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
bitwarden-cli
|
|
|
|
vlc
|
|
|
|
obs-studio
|
|
|
|
python3
|
|
|
|
thunderbird
|
|
|
|
prismlauncher
|
|
|
|
ripgrep
|
|
|
|
kitty
|
|
|
|
virt-manager
|
|
|
|
jre8
|
|
|
|
parsec-bin
|
|
|
|
nodejs
|
|
|
|
telegram-desktop
|
|
|
|
atuin
|
|
|
|
age-plugin-yubikey
|
|
|
|
rage
|
|
|
|
discord
|
|
|
|
mangohud
|
2023-09-13 23:17:50 +01:00
|
|
|
comma
|
2023-10-19 12:48:01 +01:00
|
|
|
grimblast
|
2023-09-05 21:37:06 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your
|
|
|
|
# configuration is compatible with. This helps avoid breakage
|
|
|
|
# when a new Home Manager release introduces backwards
|
|
|
|
# incompatible changes.
|
|
|
|
#
|
|
|
|
# You can update Home Manager without changing this value. See
|
|
|
|
# the Home Manager release notes for a list of state version
|
|
|
|
# changes in each release.
|
|
|
|
home.stateVersion = "23.05";
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
}
|