Hyprsunset, fixed hyprpaper, brightnessctl, upower

This commit is contained in:
Martin Berg Alstad 2025-02-02 18:16:17 +01:00
parent 72cd5d5353
commit c770b16254
Signed by: martials
GPG Key ID: 848D71DE0590C199
8 changed files with 15 additions and 7 deletions

View File

@ -20,6 +20,8 @@ rec {
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
};
monitor1 = ""; # Empty matches all
username = "martin";
# This value determines the NixOS release from which the default

View File

@ -39,6 +39,7 @@ in
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
brightnessctl
wget
xdg-utils
xdg-desktop-portal

View File

@ -5,6 +5,7 @@ let
suspendAfter = 7200;
in
{
wayland.windowManager.hyprland.settings.exec-once = [ "hypridle" ];
services.hypridle = {
enable = true;
settings = {

View File

@ -1,6 +1,9 @@
# Wallpapers
{ pkgs, ... }:
let
common = import ../../common.nix;
in
{
home.packages = with pkgs; [
hyprpaper
@ -12,7 +15,6 @@
let
wallpaperDir = ../../wallpapers;
monitor1 = "${wallpaperDir}/nixos_waves.png";
monitor2 = "${wallpaperDir}/ekg_v2.png";
in
{
ipc = "on";
@ -21,12 +23,10 @@
preload = [
monitor1
monitor2
];
wallpaper = [
"DP-1,${monitor1}"
"DP-3,${monitor2}"
"${common.monitor1},${monitor1}"
];
};
};

View File

@ -7,16 +7,15 @@ in
{
wayland.windowManager.hyprland.settings = {
monitor = [
", 1920x1080@60.05, 0x0, 1"
"${common.monitor1}, 1920x1080@60.05, 0x0, 1"
];
# Autostart
exec-once = [
app.browser
app.terminal
"hypridle"
"systemctl --user start hyprpolkitagent"
"waypaper --restore"
"hyprsunset -t 5000" # Set blue light filter
];
env = [

3
modules/battery.nix Normal file
View File

@ -0,0 +1,3 @@
{
services.upower.enable = true;
}

View File

@ -1,5 +1,6 @@
{
imports = [
./battery.nix
./development.nix
./fonts.nix
./gnome

View File

@ -6,6 +6,7 @@
xdg-desktop-portal-hyprland
hyprpolkitagent # Auth deamon providing modals for password auth
hyprshot # Screenshots
hyprsunset # Blue light filter
# unstable.hyprsysteminfo TODO requires flake update
];