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
28
users/hu/user.nix
Normal file
28
users/hu/user.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
environment.variables = {
|
||||
ZDOTDIR = "${config.users.users.hu.home}/.config/zsh";
|
||||
};
|
||||
|
||||
users.users.hu = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
hashedPasswordFile = "/nix/config/secrets/hu/pass";
|
||||
};
|
||||
|
||||
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