Compare commits
2 Commits
786be7bdc9
...
49deb7991d
| Author | SHA1 | Date | |
|---|---|---|---|
|
49deb7991d
|
|||
|
039cd96329
|
@@ -18,7 +18,10 @@
|
|||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
theme.enable = true;
|
theme.enable = true;
|
||||||
obs.enable = true;
|
obs = {
|
||||||
|
enable = true;
|
||||||
|
autostart = false;
|
||||||
|
};
|
||||||
blender.enable = false;
|
blender.enable = false;
|
||||||
bottles.enable = false;
|
bottles.enable = false;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
|||||||
@@ -1,17 +1,20 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
let
|
||||||
|
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "power_save";
|
CPU_SCALING_GOVERNOR_ON_BAT = "laptop-battery-powersave";
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
PCIE_ASPM_ON_AC = "performance";
|
PCIE_ASPM_ON_AC = "performance";
|
||||||
PCIE_ASPM_ON_BAT = "powersave";
|
PCIE_ASPM_ON_BAT = "laptop-battery-powersave";
|
||||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
||||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
powerManagement.powertop.enable = true;
|
# services.tuned.enable = true;
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
services.upower = {
|
services.upower = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -23,5 +26,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
|
# one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
|
||||||
powerManagement.enable = true;
|
powerManagement = {
|
||||||
|
enable = true;
|
||||||
|
powertop.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,10 @@
|
|||||||
kitty.enable = true;
|
kitty.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
theme.enable = true;
|
theme.enable = true;
|
||||||
obs.enable = true;
|
obs = {
|
||||||
|
enable = true;
|
||||||
|
autostart = true;
|
||||||
|
};
|
||||||
blender.enable = true;
|
blender.enable = true;
|
||||||
bottles.enable = true;
|
bottles.enable = true;
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ in
|
|||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
sync_to_monitor = "yes";
|
sync_to_monitor = "yes";
|
||||||
background_opacity = 0.5;
|
background_opacity = 0.6;
|
||||||
cursor_trail = 1;
|
cursor_trail = 1;
|
||||||
### Blur is handled in hyprland config ###
|
### Blur is handled in hyprland config ###
|
||||||
# enable_background_blur = "true";
|
# enable_background_blur = "true";
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ in
|
|||||||
{
|
{
|
||||||
options.modules.obs = {
|
options.modules.obs = {
|
||||||
enable = lib.mkEnableOption "obs";
|
enable = lib.mkEnableOption "obs";
|
||||||
|
autostart = lib.mkEnableOption "autostart with reply";
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs = {
|
programs = {
|
||||||
@@ -49,7 +50,7 @@ in
|
|||||||
''}";
|
''}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services.obs-autostart = lib.mkIf cfg.enable {
|
systemd.user.services.obs-autostart = lib.mkIf cfg.autostart {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "OBS daemon";
|
Description = "OBS daemon";
|
||||||
After = [ "hyprland-session.target" ];
|
After = [ "hyprland-session.target" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user