add wm module and other stuff
This commit is contained in:
parent
632727e5aa
commit
a18f813eb3
4 changed files with 27 additions and 23 deletions
10
lib/home.nix
10
lib/home.nix
|
|
@ -2,10 +2,11 @@
|
|||
, name
|
||||
, hyprland
|
||||
, work ? false
|
||||
, displays ? []
|
||||
, displays ? [ ]
|
||||
, userName
|
||||
, ... }:
|
||||
{ config, pkgs, ...}:
|
||||
, ...
|
||||
}:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
(import ./modules/terminal.nix { inherit user; })
|
||||
|
|
@ -21,12 +22,15 @@
|
|||
(import ./modules/dev.nix { inherit user; })
|
||||
(import ./modules/personal.nix { inherit user; })
|
||||
(import ./modules/gamer.nix { inherit user; })
|
||||
(import ./modules/wayland.nix { inherit user; })
|
||||
./scripts.nix
|
||||
../system/global/system.nix
|
||||
../system/${name}/system.nix
|
||||
../hardware/${name}.nix
|
||||
];
|
||||
|
||||
windowManager.hyprland = true;
|
||||
|
||||
home-manager.users.${user}.imports = [
|
||||
../system/global/home.nix
|
||||
../system/${name}/home.nix
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ in
|
|||
hyprland = mkEnableOption "hyprland";
|
||||
sway = mkEnableOption "sway";
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
config = mkIf (cfg.sway || cfg.hyprland) {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue