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 options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
}; };
monitor1 = ""; # Empty matches all
username = "martin"; username = "martin";
# This value determines the NixOS release from which the default # 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: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
brightnessctl
wget wget
xdg-utils xdg-utils
xdg-desktop-portal xdg-desktop-portal

View File

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

View File

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

View File

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

3
modules/battery.nix Normal file
View File

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

View File

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

View File

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