Created
November 13, 2024 12:26
-
-
Save letThemPlay/f0e53bb4779a73a933ee5d22f7fd4d1b to your computer and use it in GitHub Desktop.
Different Hyprland Profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs, ... }; | |
| { | |
| imports = [ ./profile1.nix ./profile2.nix ]; | |
| programs = { | |
| home-manager.enable = true; | |
| }; | |
| home = { | |
| username = "bob"; | |
| homeDirectory = "/home/bob"; | |
| }; | |
| my = { | |
| profile1.enable = true; | |
| profile2.enable = false; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { 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 | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { 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