initial commit
This commit is contained in:
43
modules/profiles/john.nix
Normal file
43
modules/profiles/john.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user