feat: Added bounds to check for linux / mac

This commit is contained in:
uttarayan21
2025-05-13 17:01:52 +05:30
parent a8342f1766
commit 3cad62f6e0
3 changed files with 10 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
{ {
pkgs, pkgs,
device, lib,
... ...
}: { }: {
home.packages = [ home.packages = lib.optionals pkgs.stdenv.isLinux [
pkgs.bottles pkgs.bottles
]; ];
} }

View File

@@ -1,9 +1,9 @@
{ {
pkgs, pkgs,
device, lib,
... ...
}: { }: {
home.packages = [ home.packages = lib.optionals pkgs.stdenv.isLinux [
pkgs.hyprpicker pkgs.hyprpicker
]; ];
} }

View File

@@ -1,15 +1,18 @@
{ {
pkgs, pkgs,
device, device,
lib,
... ...
}: { }:
# lib.optionalAttrs device.isNix
{
imports = [ imports = [
../../modules/hyprpaper.nix ../../modules/hyprpaper.nix
]; ];
# services.hyprpolkitagent.enable = true; # services.hyprpolkitagent.enable = true;
services.hypridle = { services.hypridle = {
enable = true; enable = device.hasGui && pkgs.stdenv.isLinux;
settings = { settings = {
general = { general = {
after_sleep_cmd = "hyprctl dispatch dpms on"; after_sleep_cmd = "hyprctl dispatch dpms on";
@@ -24,7 +27,7 @@
}; };
}; };
services.hyprsunset = { services.hyprsunset = {
enable = true; enable = device.hasGui && pkgs.stdenv.isLinux;
}; };
programs.hyprpaper = let programs.hyprpaper = let
wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;}; wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;};