Bebop: Enable home-menager as NixOS module
This allows easy config of few applications/services - git - htop - fzf - neovim * syncthing is not enabled yet. During previous experimentation it did not work, so need to look more into it
This commit is contained in:
parent
2f27fcc181
commit
73be53cdb5
3 changed files with 71 additions and 0 deletions
|
@ -76,6 +76,15 @@
|
|||
# Host-specific config
|
||||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
./hosts/bebop/configuration.nix
|
||||
|
||||
# User-specific config : Home-manager
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.payas = import ./hosts/bebop/home.nix;
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
13
hosts/bebop/home.nix
Normal file
13
hosts/bebop/home.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../modules/common-home.nix
|
||||
];
|
||||
|
||||
# services = {
|
||||
# syncthing = {
|
||||
# enable = true;
|
||||
# };
|
||||
# };
|
||||
}
|
49
modules/common-home.nix
Normal file
49
modules/common-home.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
aliases = {
|
||||
br = "branch";
|
||||
co = "checkout";
|
||||
# last 5 commits in shortlog-style, with colors
|
||||
last = "log -5 --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
|
||||
# all history, in shortlog-style, with colors (short for colorlog)
|
||||
cl = "log --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
|
||||
};
|
||||
userEmail = "relekarpayas@gmail.com";
|
||||
userName = "Payas Relekar";
|
||||
extraConfig = {
|
||||
core = {
|
||||
editor = "nvim";
|
||||
};
|
||||
merge = {
|
||||
conflictstyle = "zdiff3";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fzf = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
extraConfig = ''
|
||||
set nobackup
|
||||
set number
|
||||
set relativenumber
|
||||
'';
|
||||
withPython3 = false;
|
||||
withRuby = false;
|
||||
};
|
||||
|
||||
htop = {
|
||||
enable = true;
|
||||
# TODO : Setup htop conig via home-manager
|
||||
};
|
||||
};
|
||||
}
|
Reference in a new issue