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

View file

@ -7,6 +7,7 @@ name:
, laptop ? false
, work ? false
, displays ? []
, userName
, ...
}:
@ -22,36 +23,13 @@ nixpkgs.lib.nixosSystem rec {
};
}
home-manager.nixosModules.home-manager
{
imports = [
(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; })
];
keyboard.dvorak.enable = laptop;
displays = if laptop then {
enable = true;
displays = [{
name = "eDP-1";
scaling = 1.2;
}];
}
else displays;
roles.work.enable = work;
}
../system/global/system.nix
../system/${name}/system.nix
../system/${name}/hardware.nix
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${user}.imports = [
../system/${name}/home.nix
../system/global/home.nix
hyprland.homeManagerModules.default
];
}
(import ./home.nix { inherit user userName name hyprland laptop work; })
];
}