-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[ | ||
./browser.nix | ||
./dotfiles.nix | ||
./changes-report.nix | ||
./dotfiles.nix | ||
./hidpi.nix | ||
./megasync.nix | ||
./signal.nix | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ config, lib, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
meta.maintainers = [ hm.maintainers.gvolpe ]; | ||
|
||
options = { | ||
hidpi = lib.mkEnableOption "HiDPI displays"; | ||
|
||
programs = { | ||
alacritty.fontSize = mkOption { | ||
type = types.int; | ||
default = if config.hidpi then 10 else 8; | ||
}; | ||
|
||
browser.settings.dpi = mkOption { | ||
type = types.str; | ||
default = "0"; | ||
}; | ||
|
||
foot.fontSize = mkOption { | ||
type = types.str; | ||
default = if config.hidpi then "14" else "10"; | ||
}; | ||
|
||
signal.scaleFactor = mkOption { | ||
type = types.str; | ||
default = if config.hidpi then "2" else "1.5"; | ||
}; | ||
}; | ||
|
||
services = { | ||
hypridle.dpms = mkOption { | ||
type = types.attrs; | ||
default = if config.hidpi then { } else | ||
{ | ||
timeout = 1200; | ||
on-timeout = "hyprctl dispatch dpms off"; | ||
on-resume = "hyprctl dispatch dpms on"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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