user module

This commit is contained in:
Zynh Ludwig 2024-05-30 17:15:40 -07:00
parent 84b7c70e27
commit 1e1eb0a547
3 changed files with 17 additions and 3 deletions

View file

@ -5,9 +5,6 @@
./home/modules ./home/modules
]; ];
home.username = "ravenshade";
home.homeDirectory = "/home/ravenshade";
snowhawk.neovim = { snowhawk.neovim = {
enable = true; enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;

View file

@ -7,8 +7,10 @@
./fish.nix ./fish.nix
./git.nix ./git.nix
./tmux.nix ./tmux.nix
./user.nix
]; ];
snowhawk.user.enable = lib.mkDefault true;
snowhawk.tmux.enable = lib.mkDefault true; snowhawk.tmux.enable = lib.mkDefault true;
snowhawk.fish.enable = lib.mkDefault true; snowhawk.fish.enable = lib.mkDefault true;
snowhawk.git.enable = lib.mkDefault true; snowhawk.git.enable = lib.mkDefault true;

15
home/modules/user.nix Normal file
View file

@ -0,0 +1,15 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.user;
in
{
options.snowhawk.user = {
enable = lib.mkEnableOption "user";
};
config = lib.mkIf cfg.enable {
home.username = lib.mkDefault "ravenshade";
home.homeDirectory = lib.mkDefault "/home/ravenshade";
};
}