44 lines
981 B
Nix
44 lines
981 B
Nix
{ inputs, self, ... }:
|
|
let
|
|
userName = "john";
|
|
in
|
|
{
|
|
flake.homeModules."${userName}" = {
|
|
home.username = userName;
|
|
home.homeDirectory = "/home/${userName}";
|
|
home.stateVersion = "25.11";
|
|
|
|
programs.git.settings.user.name = "John Lancaster";
|
|
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
|
|
};
|
|
|
|
flake.modules.nixos."${userName}" =
|
|
{ pkgs, ... }:
|
|
{
|
|
users.users."${userName}" = {
|
|
name = "${userName}";
|
|
shell = pkgs.zsh;
|
|
};
|
|
programs.zsh.enable = true;
|
|
|
|
home-manager.users."${userName}" = {
|
|
imports = [
|
|
inputs.self.homeModules."${userName}"
|
|
];
|
|
};
|
|
};
|
|
|
|
flake.homeConfigurations.${userName} = inputs.home-manager.lib.homeManagerConfiguration {
|
|
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
|
|
modules = with inputs.self.homeModules; [
|
|
john
|
|
ssh
|
|
git
|
|
rebuild
|
|
ghostty
|
|
sops
|
|
zsh
|
|
];
|
|
};
|
|
}
|