Restructure to allow for modularity and add home-manager with tmux and git
This commit is contained in:
parent
eff6860aa2
commit
59842a4ba4
9 changed files with 110 additions and 11 deletions
13
users/hu/packages/git.nix
Normal file
13
users/hu/packages/git.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "caem";
|
||||
userEmail = "caem@dirae.org";
|
||||
signing = {
|
||||
key = "D125101DC74D392FEFDFD54AF4F7229F8B860E9F";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
}
|
15
users/hu/packages/tmux.nix
Normal file
15
users/hu/packages/tmux.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
prefix = "C-Space";
|
||||
customPaneNavigationAndResize = true;
|
||||
baseIndex = 1;
|
||||
extraConfig = ''
|
||||
bind v split-window -v
|
||||
bind c split-window -h
|
||||
bind n new-window
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -13,5 +13,16 @@
|
|||
hashedPasswordFile = "/nix/config/secrets/hu/pass";
|
||||
};
|
||||
|
||||
# Todo: home-manager configuration
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = false;
|
||||
home-manager.users.hu = { pkgs, ... }: {
|
||||
home.username = "hu";
|
||||
home.homeDirectory = "/home/hu";
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
|
||||
imports = [
|
||||
./packages/git.nix
|
||||
./packages/tmux.nix
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue