add nix-on-droid home config [WIP]
This commit is contained in:
37
home-manager/nix-on-droid/programs/hyprland/default.nix
Normal file
37
home-manager/nix-on-droid/programs/hyprland/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
options.homeconfig.hyprland.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.homeconfig.hyprland.enable {
|
||||
|
||||
home.sessionVariables.NIX_OZONE_WL = "1";
|
||||
|
||||
programs.kitty.enable = lib.mkDefault true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
pyprland
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
|
||||
enable = true;
|
||||
|
||||
systemd.variables = [ "--all" ];
|
||||
|
||||
extraConfig = let
|
||||
monitor = if config.homeconfig.host == "laptop" then ''
|
||||
monitor=eDP-1,1920x1080@60,0x0,1
|
||||
'' else if config.homeconfig.host == "homebox" then ''
|
||||
monitor=HEADLESS-2,1920x1080@60,0x0,1
|
||||
'' else '''';
|
||||
in ''
|
||||
source = /home/nathan/.config/hypr/main.conf
|
||||
'' + monitor;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user