Add initial configuration for dregil
This commit is contained in:
parent
d6ab6b3f48
commit
193639d884
4 changed files with 237 additions and 16 deletions
30
home/cli.nix
30
home/cli.nix
|
|
@ -1,8 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
# minimal config, suitable for servers
|
||||
|
||||
{
|
||||
let
|
||||
myUser = "alex";
|
||||
myName = "Alexander Kobjolke";
|
||||
myMail = "me@failco.de";
|
||||
in {
|
||||
imports = [
|
||||
# shell config
|
||||
#./modules/shell
|
||||
|
|
@ -10,8 +13,8 @@
|
|||
|
||||
programs.home-manager.enable = true;
|
||||
home = {
|
||||
username = "alex";
|
||||
homeDirectory = "/home/alex";
|
||||
username = myUser;
|
||||
homeDirectory = "/home/${myUser}";
|
||||
stateVersion = "21.05";
|
||||
sessionPath = [ "$HOME/.local/bin" "$HOME/.emacs.d/bin" ];
|
||||
};
|
||||
|
|
@ -31,6 +34,7 @@
|
|||
gotop
|
||||
gnumake
|
||||
ripgrep # better grep
|
||||
pijul
|
||||
sqlite.dev
|
||||
sqlite
|
||||
# pass
|
||||
|
|
@ -63,14 +67,22 @@
|
|||
'';
|
||||
};
|
||||
|
||||
xdg.configFile.pijul = {
|
||||
target = "pijul/config.toml";
|
||||
text = ''
|
||||
[author]
|
||||
name = "${myUser}"
|
||||
full_name = "${myName}"
|
||||
email = "${myMail}"
|
||||
'';
|
||||
};
|
||||
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
# enableSyntaxHighlighting = true;
|
||||
shellAliases = {
|
||||
e = "emacsclient -c $@";
|
||||
};
|
||||
shellAliases = { e = "emacsclient -c $@"; };
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" ];
|
||||
|
|
@ -103,8 +115,8 @@
|
|||
git = {
|
||||
enable = true;
|
||||
ignores = [ "*~" "*.swp" "result" "dist-newstyle" ];
|
||||
userEmail = "me@failco.de";
|
||||
userName = "Alexander Kobjolke";
|
||||
userEmail = myMail;
|
||||
userName = myName;
|
||||
aliases = { st = "status"; };
|
||||
extraConfig = { init.defaultBranch = "main"; };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue