moved home manager modules

This commit is contained in:
John Lancaster
2026-03-10 22:39:30 -05:00
parent 6c01156ffe
commit 5ee73c1f44
20 changed files with 31 additions and 31 deletions

View File

@@ -1,8 +1,8 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
flake.homeModules.base = { pkgs, ... }: flake.modules.homeManager.base = { pkgs, ... }:
{ {
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
rebuild rebuild
git git
shell-tools shell-tools

View File

@@ -1,9 +1,9 @@
# This module is for programs with GUIs that run in a desktop environment # This module is for programs with GUIs that run in a desktop environment
{ inputs, ... }: { inputs, ... }:
{ {
flake.homeModules.desktop = flake.modules.homeManager.desktop =
{ {
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
onepassword onepassword
ghostty ghostty
sublime sublime

View File

@@ -1,14 +1,14 @@
# This module provides all the shell options # This module provides all the shell options
{ inputs, lib, ... }: { inputs, lib, ... }:
{ {
flake.homeModules.shell-tools = { config, pkgs, ... }: { flake.modules.homeManager.shell-tools = { config, pkgs, ... }: {
options.shell.program = lib.mkOption { options.shell.program = lib.mkOption {
type = lib.types.enum [ "bash" "zsh" ]; type = lib.types.enum [ "bash" "zsh" ];
default = "zsh"; default = "zsh";
description = "Which interactive shell configuration to enable."; description = "Which interactive shell configuration to enable.";
}; };
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
bash bash
zsh zsh

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.bash = { pkgs, ... }: flake.modules.homeManager.bash = { pkgs, ... }:
{ {
programs.bash = { programs.bash = {
enable = true; enable = true;

View File

@@ -1,6 +1,6 @@
{ inputs, pkgs, lib, ... }: { inputs, pkgs, lib, ... }:
{ {
flake.homeModules.eza = { pkgs, lib, ... }: { flake.modules.homeManager.eza = { pkgs, lib, ... }: {
programs.eza = { programs.eza = {
enable = true; enable = true;
package = pkgs.eza; package = pkgs.eza;

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.files = { pkgs, ... }: flake.modules.homeManager.files = { pkgs, ... }:
{ {
programs.lf.enable = true; programs.lf.enable = true;
programs.lf.cmdKeybindings = { programs.lf.cmdKeybindings = {

View File

@@ -7,7 +7,7 @@
}; };
}; };
flake.homeModules.ghostty = { config, pkgs, lib, ... }: flake.modules.homeManager.ghostty = { config, pkgs, lib, ... }:
{ {
home.sessionVariables = { home.sessionVariables = {
TERMINAL = "ghostty"; TERMINAL = "ghostty";

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.git = { config, lib, ... }: flake.modules.homeManager.git = { config, lib, ... }:
{ {
programs.git = { programs.git = {
enable = true; enable = true;

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.onepassword = { flake.modules.homeManager.onepassword = {
# TODO: Port `_1password = true` behavior into an explicit Home Manager module. # TODO: Port `_1password = true` behavior into an explicit Home Manager module.
}; };
} }

View File

@@ -29,7 +29,7 @@
}; };
}; };
flake.homeModules.resticprofile = { config, lib, pkgs, ... }: flake.modules.homeManager.resticprofile = { config, lib, pkgs, ... }:
let let
cfg = config.programs.resticprofile; cfg = config.programs.resticprofile;
yamlFormat = pkgs.formats.yaml { }; yamlFormat = pkgs.formats.yaml { };

View File

@@ -11,8 +11,8 @@ in
}; };
# Define the homeModules that are used by flake-parts # Define the homeModules that are used by flake-parts
# https://flake.parts/options/home-manager.html#opt-flake.homeModules # https://flake.parts/options/home-manager.html#opt-flake.modules.homeManager
flake.homeModules.sops = { inputs, config, pkgs, lib, ... }: flake.modules.homeManager.sops = { inputs, config, pkgs, lib, ... }:
let let
sopsBin = lib.getExe pkgs.sops; sopsBin = lib.getExe pkgs.sops;
sopsConfigPath = ../../../.sops.yaml; sopsConfigPath = ../../../.sops.yaml;

View File

@@ -11,12 +11,12 @@ in
settings.KbdInteractiveAuthentication = false; settings.KbdInteractiveAuthentication = false;
}; };
home-manager.sharedModules = with inputs.self.homeModules; [ home-manager.sharedModules = with inputs.self.modules.homeManager; [
ssh ssh
]; ];
}; };
flake.homeModules.ssh = { pkgs, config, lib, ... }: flake.modules.homeManager.ssh = { pkgs, config, lib, ... }:
{ {
options.ssh = { options.ssh = {
IdentityFile = lib.mkOption { IdentityFile = lib.mkOption {

View File

@@ -1,6 +1,6 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
flake.homeModules.sublime = { pkgs, lib, ... }: { flake.modules.homeManager.sublime = { pkgs, lib, ... }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
sublime4 sublime4
]; ];

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.vscode = { pkgs, ... }: flake.modules.homeManager.vscode = { pkgs, ... }:
{ {
programs.vscode = { programs.vscode = {
enable = true; enable = true;

View File

@@ -1,5 +1,5 @@
{ {
flake.homeModules.zsh = { pkgs, config, ... }: flake.modules.homeManager.zsh = { pkgs, config, ... }:
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;

View File

@@ -1,6 +1,6 @@
{ inputs, ... }: { inputs, ... }:
{ {
flake.homeModules.rebuild = flake.modules.homeManager.rebuild =
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
{ {
options = { options = {

View File

@@ -13,7 +13,7 @@ in
inputs.self.modules.nixos.docker inputs.self.modules.nixos.docker
]; ];
home-manager.users."${username}" = { home-manager.users."${username}" = {
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
]; ];
docker.enable = true; docker.enable = true;
ssh.matchSets = { ssh.matchSets = {

View File

@@ -1,7 +1,7 @@
{ inputs, ... }: { inputs, ... }:
{ {
flake.homeModules."john-pc-ubuntu" = { pkgs, config, ... }: { flake.modules.homeManager."john-pc-ubuntu" = { pkgs, config, ... }: {
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
john john
desktop desktop
docker docker
@@ -26,7 +26,7 @@
flake.homeConfigurations."john-pc-ubuntu" = inputs.home-manager.lib.homeManagerConfiguration { flake.homeConfigurations."john-pc-ubuntu" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
modules = [ modules = [
inputs.self.homeModules."john-pc-ubuntu" inputs.self.modules.homeManager."john-pc-ubuntu"
# Include another inline module to set the options created through the jsl-home modules # Include another inline module to set the options created through the jsl-home modules
({ config, ... }: { ({ config, ... }: {

View File

@@ -5,14 +5,14 @@
enable = true; enable = true;
}; };
home-manager.sharedModules = [ home-manager.sharedModules = [
inputs.self.homeModules.docker inputs.self.modules.homeManager.docker
]; ];
# users.users.john = { # users.users.john = {
# extraGroups = [ "docker" ]; # extraGroups = [ "docker" ];
# }; # };
}; };
flake.homeModules.docker = { config, lib, pkgs, ... }: flake.modules.homeManager.docker = { config, lib, pkgs, ... }:
{ {
options.docker = { options.docker = {
enable = lib.mkEnableOption "Docker tools and utilities"; enable = lib.mkEnableOption "Docker tools and utilities";

View File

@@ -11,7 +11,7 @@ in
flake.modules.nixos."${username}" = { pkgs, ... }: { flake.modules.nixos."${username}" = { pkgs, ... }: {
home-manager.users."${username}" = { home-manager.users."${username}" = {
imports = [ imports = [
inputs.self.homeModules."${username}" inputs.self.modules.homeManager."${username}"
]; ];
}; };
users.users."${username}" = { users.users."${username}" = {
@@ -26,7 +26,7 @@ in
programs.zsh.enable = true; programs.zsh.enable = true;
}; };
flake.homeModules."${username}" = { flake.modules.homeManager."${username}" = {
home.username = "${username}"; home.username = "${username}";
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
home.stateVersion = "25.11"; home.stateVersion = "25.11";
@@ -35,7 +35,7 @@ in
programs.git.settings.user.name = "John Lancaster"; programs.git.settings.user.name = "John Lancaster";
programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com"; programs.git.settings.user.email = "32917998+jsl12@users.noreply.github.com";
imports = with inputs.self.homeModules; [ imports = with inputs.self.modules.homeManager; [
base base
# docker # docker
# resticprofile # resticprofile
@@ -46,7 +46,7 @@ in
flake.homeConfigurations."${username}" = inputs.home-manager.lib.homeManagerConfiguration { flake.homeConfigurations."${username}" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
modules = [ modules = [
inputs.self.homeModules."${username}" inputs.self.modules.homeManager."${username}"
# Include another inline module to set the options created through the jsl-home modules # Include another inline module to set the options created through the jsl-home modules
{ {