2023-09-26 18:39:38 +00:00
|
|
|
{ inputs, config, pkgs, username, ... }: {
|
2023-09-15 14:53:38 +00:00
|
|
|
imports = [
|
2023-09-26 17:44:54 +00:00
|
|
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
|
|
|
../../pass
|
|
|
|
../../cli
|
|
|
|
../../nvim
|
|
|
|
# TODO:
|
|
|
|
# ../../productivity
|
|
|
|
# ../../games
|
2023-09-15 14:53:38 +00:00
|
|
|
];
|
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
home = {
|
2023-09-26 17:44:54 +00:00
|
|
|
|
|
|
|
persistence = {
|
|
|
|
"/persist/home/gburd" = {
|
|
|
|
directories = [
|
|
|
|
"Documents"
|
|
|
|
"Downloads"
|
|
|
|
"Pictures"
|
|
|
|
"Videos"
|
|
|
|
".local/bin"
|
2023-09-29 18:59:38 +00:00
|
|
|
".config"
|
2023-09-26 17:44:54 +00:00
|
|
|
];
|
|
|
|
allowOther = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
file.".face".source = ./face.png;
|
|
|
|
|
|
|
|
file.".ssh/config".text = ''
|
|
|
|
Host burd.me *.burd.me *.ts.burd.me
|
|
|
|
ForwardAgent yes
|
|
|
|
Host floki
|
|
|
|
ForwardAgent yes
|
|
|
|
RemoteForward /%d/.gnupg-sockets/S.gpg-agent /%d/.gnupg-sockets/S.gpg-agent.extra
|
|
|
|
|
|
|
|
Host *
|
|
|
|
ForwardAgent no
|
|
|
|
Compression no
|
|
|
|
ServerAliveInterval 0
|
|
|
|
ServerAliveCountMax 3
|
|
|
|
HashKnownHosts no
|
|
|
|
UserKnownHostsFile ~/.ssh/known_hosts
|
|
|
|
ControlMaster no
|
|
|
|
ControlPath ~/.ssh/master-%r@%n:%p
|
|
|
|
ControlPersist no
|
|
|
|
|
|
|
|
Host github.com
|
|
|
|
HostName github.com
|
|
|
|
User git
|
|
|
|
'';
|
2023-09-15 14:53:38 +00:00
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
file."Quickemu/nixos-console.conf".text = ''
|
|
|
|
#!/run/current-system/sw/bin/quickemu --vm
|
|
|
|
guest_os="linux"
|
|
|
|
disk_img="nixos-console/disk.qcow2"
|
|
|
|
disk_size="96G"
|
|
|
|
iso="nixos-console/nixos.iso"
|
|
|
|
'';
|
|
|
|
file."Quickemu/nixos-desktop.conf".text = ''
|
|
|
|
#!/run/current-system/sw/bin/quickemu --vm
|
|
|
|
guest_os="linux"
|
|
|
|
disk_img="nixos-desktop/disk.qcow2"
|
|
|
|
disk_size="96G"
|
|
|
|
iso="nixos-desktop/nixos.iso"
|
|
|
|
'';
|
|
|
|
|
2023-09-29 18:59:38 +00:00
|
|
|
file.".inputrc".text = ''
|
|
|
|
"\C-v": ""
|
|
|
|
set enable-bracketed-paste off
|
|
|
|
'';
|
|
|
|
|
2023-10-16 12:39:25 +00:00
|
|
|
file.".config/direnv/direnv.toml".text = ''
|
|
|
|
[global]
|
|
|
|
load_dotenv = true
|
|
|
|
'';
|
|
|
|
|
2024-03-13 16:45:44 +00:00
|
|
|
file.".config/Code/User/settings.json".text = ''
|
|
|
|
{
|
|
|
|
"editor.inlineSuggest.enabled": true,
|
|
|
|
"editor.fontFamily": "'FiraCode Nerd Font Mono', 'Droid Sans Mono', 'monospace', monospace",
|
|
|
|
"editor.fontLigatures": true,
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
file.".config/Code/User/keybindings.json".text = ''
|
|
|
|
// Place your key bindings in this file to override the defaults
|
|
|
|
[
|
|
|
|
// allow arrow keys to work in the find widget
|
|
|
|
{
|
|
|
|
"key": "right",
|
|
|
|
"command": "-emacs-mcx.isearchExit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "left",
|
|
|
|
"command": "-emacs-mcx.isearchExit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "up",
|
|
|
|
"command": "-emacs-mcx.isearchExit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "down",
|
|
|
|
"command": "-emacs-mcx.isearchExit"
|
|
|
|
},
|
|
|
|
// allow ctrl+f to find next in the find widget
|
|
|
|
{
|
|
|
|
"key": "ctrl+f",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
// allow other stuff to functional normally in the find widget
|
|
|
|
{
|
|
|
|
"key": "ctrl+b",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "ctrl+p",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "ctrl+n",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "ctrl+a",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "ctrl+e",
|
|
|
|
"command": "-emacs-mcx.isearchExit",
|
|
|
|
"when": "editorFocus && findWidgetVisible"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "enter",
|
|
|
|
"command": "-emacs-mcx.isearchExit"
|
|
|
|
},
|
|
|
|
// allow curly quotes and ellipses characters on mac
|
|
|
|
{
|
|
|
|
"key": "alt+shift+[",
|
|
|
|
"command": "-emacs-mcx.backwardParagraph"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "alt+shift+]",
|
|
|
|
"command": "-emacs-mcx.forwardParagraph"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "alt+;",
|
|
|
|
"command": "-editor.action.blockComment",
|
|
|
|
"when": "editorTextFocus && !config.emacs-mcx.useMetaPrefixMacCmd && !editorReadonly"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "alt+;",
|
|
|
|
"command": "-emacs-mcx.executeCommands",
|
|
|
|
"when": "editorFocus && findWidgetVisible && !config.emacs-mcx.useMetaPrefixMacCmd"
|
|
|
|
},
|
|
|
|
// stop backward kill word from adding to clipboard
|
|
|
|
{
|
|
|
|
"key": "alt+backspace",
|
|
|
|
"command": "-emacs-mcx.backwardKillWord",
|
|
|
|
"when": "editorTextFocus && !config.emacs-mcx.useMetaPrefixMacCmd && !editorReadonly"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'';
|
|
|
|
|
2023-10-16 12:39:25 +00:00
|
|
|
# file.".config/sublime-text-2/Local/License.sublime_license".text =
|
|
|
|
# config.sops.secrets.sublime-licenses.text.path;
|
|
|
|
|
|
|
|
# file.".config/sublime-merge/Local/License.sublime_license".text =
|
|
|
|
# config.sops.secrets.sublime-licenses.merge.path;
|
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
# A Modern Unix experience
|
|
|
|
# https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/
|
|
|
|
packages = with pkgs; [
|
|
|
|
asciinema # Terminal recorder
|
|
|
|
black # Code format Python
|
|
|
|
bmon # Modern Unix `iftop`
|
|
|
|
breezy # Terminal bzr client
|
|
|
|
butler # Terminal Itch.io API client
|
|
|
|
chafa # Terminal image viewer
|
|
|
|
chroma # Code syntax highlighter
|
|
|
|
clinfo # Terminal OpenCL info
|
|
|
|
curlie # Terminal HTTP client
|
|
|
|
dconf2nix # Nix code from Dconf files
|
|
|
|
debootstrap # Terminal Debian installer
|
|
|
|
diffr # Modern Unix `diff`
|
|
|
|
difftastic # Modern Unix `diff`
|
|
|
|
dogdns # Modern Unix `dig`
|
|
|
|
dua # Modern Unix `du`
|
|
|
|
duf # Modern Unix `df`
|
|
|
|
du-dust # Modern Unix `du`
|
|
|
|
entr # Modern Unix `watch`
|
|
|
|
fast-cli # Terminal fast.com
|
|
|
|
fd # Modern Unix `find`
|
|
|
|
glow # Terminal Markdown renderer
|
|
|
|
gping # Modern Unix `ping`
|
|
|
|
hexyl # Modern Unix `hexedit`
|
|
|
|
httpie # Terminal HTTP client
|
|
|
|
hyperfine # Terminal benchmarking
|
|
|
|
iperf3 # Terminal network benchmarking
|
|
|
|
iw # Terminal WiFi info
|
|
|
|
jpegoptim # Terminal JPEG optimizer
|
|
|
|
jiq # Modern Unix `jq`
|
|
|
|
lazygit # Terminal Git client
|
|
|
|
libva-utils # Terminal VAAPI info
|
|
|
|
lurk # Modern Unix `strace`
|
|
|
|
mdp # Terminal Markdown presenter
|
2024-03-13 16:45:44 +00:00
|
|
|
#moar # Modern Unix `less`
|
2023-09-25 18:05:07 +00:00
|
|
|
mtr # Modern Unix `traceroute`
|
|
|
|
netdiscover # Modern Unix `arp`
|
|
|
|
nethogs # Modern Unix `iftop`
|
|
|
|
nixpkgs-review # Nix code review
|
|
|
|
nodePackages.prettier # Code format
|
|
|
|
nurl # Nix URL fetcher
|
|
|
|
nyancat # Terminal rainbow spewing feline
|
|
|
|
speedtest-go # Terminal speedtest.net
|
|
|
|
optipng # Terminal PNG optimizer
|
|
|
|
procs # Modern Unix `ps`
|
|
|
|
python310Packages.gpustat # Terminal GPU info
|
|
|
|
quilt # Terminal patch manager
|
|
|
|
ripgrep # Modern Unix `grep`
|
|
|
|
rustfmt # Code format Rust
|
|
|
|
shellcheck # Code lint Shell
|
|
|
|
shfmt # Code format Shell
|
|
|
|
tldr # Modern Unix `man`
|
|
|
|
tokei # Modern Unix `wc` for code
|
|
|
|
vdpauinfo # Terminal VDPAU info
|
|
|
|
wavemon # Terminal WiFi monitor
|
|
|
|
yq-go # Terminal `jq` for YAML
|
2023-09-29 15:54:02 +00:00
|
|
|
|
2023-10-18 20:08:51 +00:00
|
|
|
_1password
|
|
|
|
_1password-gui
|
|
|
|
cfssl
|
|
|
|
dig
|
2023-09-29 15:54:02 +00:00
|
|
|
emacs
|
2023-10-16 12:39:25 +00:00
|
|
|
file
|
2023-10-18 20:08:51 +00:00
|
|
|
git-credential-1password
|
|
|
|
htop
|
|
|
|
openssl
|
2023-09-29 18:59:38 +00:00
|
|
|
plocate
|
2023-10-18 20:08:51 +00:00
|
|
|
ripgrep
|
|
|
|
tig
|
2023-10-18 13:29:40 +00:00
|
|
|
tree
|
2023-11-15 18:00:22 +00:00
|
|
|
lsof
|
2023-10-18 13:29:40 +00:00
|
|
|
unstable.flyctl
|
2023-10-18 20:08:51 +00:00
|
|
|
unstable.minio-client
|
2023-10-24 18:04:43 +00:00
|
|
|
unstable.element-desktop
|
2023-11-15 18:42:10 +00:00
|
|
|
erlang
|
|
|
|
rebar3
|
|
|
|
elixir
|
2023-09-25 18:05:07 +00:00
|
|
|
];
|
|
|
|
sessionVariables = {
|
2023-10-16 18:46:06 +00:00
|
|
|
# PAGER = "moar";
|
2023-09-25 18:05:07 +00:00
|
|
|
};
|
2023-10-20 16:31:38 +00:00
|
|
|
|
|
|
|
# http://rski.github.io/2021/09/05/nix-debugging.html
|
|
|
|
# https://github.com/nix-community/home-manager/commit/0056a5aea1a7b68bdacb7b829c325a1d4a3c4259
|
|
|
|
enableDebugInfo = true;
|
2023-09-25 18:05:07 +00:00
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
fish = {
|
|
|
|
shellAliases = {
|
2024-05-03 01:36:17 +00:00
|
|
|
#diff = "diffr";
|
|
|
|
#fast = "fast -u";
|
|
|
|
#glow = "glow --pager";
|
2023-09-25 18:05:07 +00:00
|
|
|
pubip = "curl -s ifconfig.me/ip"; # "curl -s https://api.ipify.org";
|
|
|
|
speedtest = "speedtest-go";
|
2024-05-03 01:36:17 +00:00
|
|
|
vi = "nvim";
|
|
|
|
vim = "nvim";
|
2023-09-25 18:05:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.tmpfiles.rules = [
|
|
|
|
"d ${config.home.homeDirectory}/ws 0755 ${username} users - -"
|
|
|
|
"d ${config.home.homeDirectory}/Dropbox 0755 ${username} users - -"
|
2023-09-26 17:44:54 +00:00
|
|
|
# "d ${config.home.homeDirectory}/Quickemu/nixos-console 0755 ${username} users - -"
|
|
|
|
# "d ${config.home.homeDirectory}/Quickemu/nixos-desktop 0755 ${username} users - -"
|
2023-09-25 18:05:07 +00:00
|
|
|
"d ${config.home.homeDirectory}/bin 0755 ${username} users - -"
|
|
|
|
"d ${config.home.homeDirectory}/Studio/OBS/config/obs-studio/ 0755 ${username} users - -"
|
2023-09-26 17:44:54 +00:00
|
|
|
# "d ${config.home.homeDirectory}/Syncthing 0755 ${username} users - -"
|
2023-09-25 18:05:07 +00:00
|
|
|
"d ${config.home.homeDirectory}/Websites 0755 ${username} users - -"
|
|
|
|
"L+ ${config.home.homeDirectory}/.config/obs-studio/ - - - - ${config.home.homeDirectory}/Studio/OBS/config/obs-studio/"
|
|
|
|
];
|
2023-09-26 19:45:31 +00:00
|
|
|
|
2023-09-15 14:53:38 +00:00
|
|
|
}
|