feat(profiles): Add home profile

This commit is contained in:
Mr Hedgehog 2022-01-29 13:25:46 -05:00
parent 6be60628f9
commit a142612150
No known key found for this signature in database
GPG key ID: A5F69F6C161FDA7E
2 changed files with 96 additions and 1 deletions

View file

@ -25,7 +25,7 @@
deploy.url = "github:input-output-hk/deploy-rs";
deploy.inputs.nixpkgs.follows = "nixpkgs";
digga.url = "github:Pacman99/digga/customBuilds-mkDefault";
digga.url = "github:divnix/digga";
digga.inputs.nixpkgs.follows = "nixpkgs";
digga.inputs.nixlib.follows = "nixpkgs";
digga.inputs.home-manager.follows = "home";

View file

@ -0,0 +1,95 @@
{ config
, lib
, pkgs
, ...
}:
let
sshconf = import ./config/ssh.nix;
nvimconf = import ./config/nvim.nix;
in
{
home = {
homeDirectory = "/home/mrhedgehog/";
stateVersion = "22.05";
username = "mrhedgehog";
packages =
with pkgs;
[
atomicparsley
# buku
cargo-audit
cargo-bloat
cargo-crev
cargo-edit
cargo-outdated
cargo-tarpaulin
cargo-watch
cmus
darktable
dracula-theme
discord
ffmpeg
fossil
# freetube
hyperfine
josm
md-tangle
nvchecker-bin
rnix-lsp
senpai
shellcheck
stylua
taskell
taskwarrior-tui
tokei
wdisplays
wget
yt-dlp
ytfzf
zk
zulip-term
zulip
];
file = {
".config/senpai/senpai.scfg" = { source = ./config/senpai.scfg; };
".config/kanshi/config" = { source = ./config/kanshi.cfg; };
};
};
programs = {
home-manager = { enable = true; path = "./home-manager"; };
atuin = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
enableFishIntegration = true;
settings = { auto_sync = true; sync_address = "https://api.atuin.sh"; sync_frequency = "15m"; search_mode = "prefix"; };
};
bat = { enable = true; config = { theme = "Dracula"; }; };
exa = { enable = true; enableAliases = false; };
fish = {
enable = true;
shellAliases = {
"lg" = "${ pkgs.lazygit }/bin/lazygit";
"cat" = "${ pkgs.bat }/bin/bat";
"gls" = "${ pkgs.exa }/bin/exa -lah@ --icons --git --git-ignore --no-user";
"ls" = "${ pkgs.exa }/bin/exa --icons -a";
"ll" = "${ pkgs.exa }/bin/exa --icons -lah@";
"lt" = "${ pkgs.exa }/bin/exa --icons --tree -a";
"hmr" =
"${ pkgs.home-manager }/bin/home-manager build --flake ~/nix && ${ pkgs.home-manager }/bin/home-manager switch --flake ~/nix";
};
shellInit =
''
set -x GPG_TTY (tty)
set -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
'';
};
himalaya = { enable = true; };
lazygit = { enable = true; };
pandoc = { enable = true; };
zoxide = { enable = true; enableFishIntegration = true; enableBashIntegration = true; enableZshIntegration = true; };
ssh = sshconf pkgs lib;
neovim = nvimconf pkgs lib;
};
}