mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-03-13 03:24:05 +01:00
Compare commits
3 commits
d33c6f314c
...
1e3eee277f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e3eee277f | ||
|
|
d508d19fa6 | ||
|
|
f309ea6e99 |
3 changed files with 15 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ in
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
Enable = "Source,Sink,Media,Socket";
|
Experimental = true; # show battery percentages
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,12 @@ in
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
# disable USB auto suspend for Keychron Q3 HE
|
||||||
|
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0b31", ATTR{power/autosuspend}="-1"
|
||||||
|
# disable USB auto suspend for Keychron Q3
|
||||||
|
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0123", ATTR{power/autosuspend}="-1"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.displayManager.lemurs = {
|
|
||||||
enable = true;
|
# start sway if login happens
|
||||||
settings.environment_switcher.include_tty_shell = true;
|
environment.interactiveShellInit = ''
|
||||||
};
|
if test `tty` = /dev/tty1; then
|
||||||
|
exec sway
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue