moar modules

This commit is contained in:
Tristan 2023-05-07 09:17:27 +01:00
parent a1175ba492
commit 011009d22f
17 changed files with 556 additions and 240 deletions

37
lib/home.nix Normal file
View file

@ -0,0 +1,37 @@
{ user
, name
, hyprland
, laptop ? false
, work ? false
, displays ? []
, userName
, ... }:
{ config, pkgs, ...}:
{
imports = [
(import ./modules/terminal.nix { inherit user; })
(import ./modules/scripts.nix { inherit user; })
(import ./modules/editor.nix { inherit user; })
(import ./modules/keyboard.nix { inherit user; })
(import ./modules/display.nix { inherit user; })
(import ./modules/work.nix { inherit user; })
(import ./modules/menu.nix { inherit user; })
(import ./modules/email.nix { inherit user userName; })
(import ./modules/git.nix { inherit user userName; })
(import ./modules/laptop.nix { inherit user; })
./scripts.nix
../system/global/system.nix
../system/${name}/system.nix
../system/${name}/hardware.nix
];
home-manager.users.${user}.imports = [
../system/global/home.nix
../system/${name}/home.nix
];
roles.laptop.enable = laptop;
roles.work.enable = work;
roles.git.enable = true;
}