Restructure to allow for modularity and add home-manager with tmux and git

This commit is contained in:
caem 2024-04-04 13:49:19 +02:00
parent eff6860aa2
commit 59842a4ba4
No known key found for this signature in database
GPG key ID: F4F7229F8B860E9F
9 changed files with 110 additions and 11 deletions

13
users/hu/packages/git.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "caem";
userEmail = "caem@dirae.org";
signing = {
key = "D125101DC74D392FEFDFD54AF4F7229F8B860E9F";
signByDefault = true;
};
};
}

View 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
'';
};
}

View file

@ -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
];
};
}