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 = homeManagerModules = {
import ./homeManagerModules inputs self; default = import ./homeManagerModules inputs self;
aly = import ./homes/aly inputs self;
dustin = import ./homes/dustin inputs self;
morgan = import ./homes/morgan inputs self;
};
nixosModules = { nixosModules = {
base = import ./baseModules inputs; base = import ./baseModules inputs;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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