Skip to content

Instantly share code, notes, and snippets.

@letThemPlay
Created November 13, 2024 12:26
Show Gist options
  • Select an option

  • Save letThemPlay/f0e53bb4779a73a933ee5d22f7fd4d1b to your computer and use it in GitHub Desktop.

Select an option

Save letThemPlay/f0e53bb4779a73a933ee5d22f7fd4d1b to your computer and use it in GitHub Desktop.
Different Hyprland Profiles
{ pkgs, ... };
{
imports = [ ./profile1.nix ./profile2.nix ];
programs = {
home-manager.enable = true;
};
home = {
username = "bob";
homeDirectory = "/home/bob";
};
my = {
profile1.enable = true;
profile2.enable = false;
};
}
{ lib, config, ... }
let
cfg = config.my.hyprland;
{
options.my.hyprland = {
profile1.enable = lib.mkEnableOption {
default = false;
type = lib.types.bool;
};
};
config = lib.mkIf cfg.my.hyprland.profile1.enable {
# Hyprland config
};
}
{ lib, config, ... }
let
cfg = config.my.hyprland;
{
options.my.hyprland = {
profile2.enable = lib.mkEnableOption {
default = false;
type = lib.types.bool;
};
};
config = lib.mkIf cfg.my.hyprland.profile2.enable {
# Hyprland config
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment