mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:49:41 +00:00
Compare commits
6 commits
6b801a8ec0
...
e8307d3054
Author | SHA1 | Date | |
---|---|---|---|
ItsDrike | e8307d3054 | ||
ItsDrike | 7eaa7d0094 | ||
ItsDrike | e6e366fd6c | ||
ItsDrike | 138613dc11 | ||
ItsDrike | fdf5b7bace | ||
ItsDrike | 7486b5259a |
|
@ -10,10 +10,14 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
lutris.override
|
(lutris.override {
|
||||||
{
|
extraLibraries = pkgs: [
|
||||||
extraPkgs = pkgs: [];
|
pixman
|
||||||
}
|
];
|
||||||
|
extraPkgs = pkgs: [
|
||||||
|
jdk
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
neocmakelsp
|
neocmakelsp
|
||||||
bash-language-server
|
bash-language-server
|
||||||
nixd
|
nixd
|
||||||
emmet-ls
|
emmet-language-server
|
||||||
|
vscode-langservers-extracted
|
||||||
|
|
||||||
# Linters / formatters
|
# Linters / formatters
|
||||||
stylua
|
stylua
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
hadolint
|
hadolint
|
||||||
markdownlint-cli2
|
markdownlint-cli2
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
nodePackages.eslint
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
alejandra
|
alejandra
|
||||||
|
|
|
@ -47,7 +47,7 @@ in {
|
||||||
# Enter suspend/sleep state (10 minutes)
|
# Enter suspend/sleep state (10 minutes)
|
||||||
{
|
{
|
||||||
timeout = 600;
|
timeout = 600;
|
||||||
on-timeout = "systemctl suspend-then-hibernate";
|
on-timeout = "systemctl suspend";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,11 +14,13 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
lockMessage = "System is locked...";
|
lockMessage = "System is locked...";
|
||||||
|
|
||||||
# Don't auto-lock the system with physlock, I prefer other (gui) lockers
|
|
||||||
# I only use physlock manually in some circumstances
|
# I only use physlock manually in some circumstances
|
||||||
lockOn = {
|
lockOn = {
|
||||||
|
# Don't auto-lock the system with physlock on suspend, I prefer other (gui) lockers
|
||||||
suspend = false;
|
suspend = false;
|
||||||
hibernate = false;
|
# Do use physlock on resuming from hibernation though, as this just restored RAM,
|
||||||
|
# potentially bypassing the login screen and even initial disk encryption password
|
||||||
|
hibernate = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,10 +11,10 @@ in {
|
||||||
# despite being under logind, this has nothing to do with login
|
# despite being under logind, this has nothing to do with login
|
||||||
# it's about power management
|
# it's about power management
|
||||||
services.logind = {
|
services.logind = {
|
||||||
lidSwitch = "suspend-then-hibernate";
|
lidSwitch = "suspend";
|
||||||
lidSwitchExternalPower = "suspend";
|
lidSwitchExternalPower = "suspend";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
HandlePowerKey=suspend-then-hibernate
|
HandlePowerKey=suspend
|
||||||
HibernateDelaySec=3600
|
HibernateDelaySec=3600
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue