flake: add homeManagerModules for each user

This commit is contained in:
Aly Raffauf 2024-07-07 21:07:35 -04:00
parent d0e45edce8
commit d2c45940d3
8 changed files with 20 additions and 15 deletions

View file

@ -72,8 +72,12 @@
'';
});
homeManagerModules.default =
import ./homeManagerModules inputs self;
homeManagerModules = {
default = import ./homeManagerModules inputs self;
aly = import ./homes/aly inputs self;
dustin = import ./homes/dustin inputs self;
morgan = import ./homes/morgan inputs self;
};
nixosModules = {
base = import ./baseModules inputs;

View file

@ -1,9 +1,7 @@
{
inputs: self: {
config,
inputs,
lib,
pkgs,
self,
...
}: {
imports = [

View file

@ -1,9 +1,7 @@
{
inputs: self: {
config,
inputs,
lib,
pkgs,
self,
...
}: {
home = {

View file

@ -1,9 +1,7 @@
{
inputs: self: {
config,
inputs,
lib,
pkgs,
self,
...
}: {
home = {

View file

@ -3,6 +3,7 @@
inputs,
lib,
pkgs,
self,
...
}: {
home-manager = {
@ -14,7 +15,7 @@
];
users.aly = lib.mkForce {
imports = [../../homes/aly];
imports = [self.homeManagerModules.aly];
systemd.user = {
services = {
backblaze-sync = {

View file

@ -1,14 +1,16 @@
{
config,
inputs,
lib,
pkgs,
self,
...
}: {
config = lib.mkIf config.ar.users.aly.enable {
home-manager.users.aly =
lib.attrsets.optionalAttrs
config.ar.users.aly.manageHome
(import ../../homes/aly);
(import ../../homes/aly inputs self);
users.users.aly = {
description = "Aly Raffauf";

View file

@ -1,14 +1,16 @@
{
config,
inputs,
lib,
pkgs,
self,
...
}: {
config = lib.mkIf config.ar.users.dustin.enable {
home-manager.users.dustin =
lib.attrsets.optionalAttrs
config.ar.users.dustin.manageHome
(import ../../homes/dustin);
(import ../../homes/dustin inputs self);
users.users.dustin = {
description = "Dustin Raffauf";

View file

@ -1,14 +1,16 @@
{
config,
inputs,
lib,
pkgs,
self,
...
}: {
config = lib.mkIf config.ar.users.morgan.enable {
home-manager.users.morgan =
lib.attrsets.optionalAttrs
config.ar.users.morgan.manageHome
(import ../../homes/morgan);
(import ../../homes/morgan inputs self);
users.users.morgan = {
description = "Morgan Tamayo";