i forogr
This commit is contained in:
parent
efe09d0045
commit
4120f3a090
6 changed files with 28 additions and 32 deletions
|
@ -68,7 +68,6 @@ in {
|
||||||
useXkbConfig = mkDefault true;
|
useXkbConfig = mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# set the time zone
|
|
||||||
services.automatic-timezoned.enable = mkDefault true;
|
services.automatic-timezoned.enable = mkDefault true;
|
||||||
time.timeZone = mkDefault null; # handled by automatic-timezoned
|
time.timeZone = mkDefault null; # handled by automatic-timezoned
|
||||||
|
|
||||||
|
@ -77,7 +76,6 @@ in {
|
||||||
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# set the location
|
|
||||||
location.provider = mkDefault "geoclue2";
|
location.provider = mkDefault "geoclue2";
|
||||||
services.geoclue2 = {
|
services.geoclue2 = {
|
||||||
enable = mkDefault true;
|
enable = mkDefault true;
|
||||||
|
@ -90,6 +88,8 @@ in {
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
|
programs.nix-ld.enable = mkDefault true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
openssh mosh
|
openssh mosh
|
||||||
unrar unzip
|
unrar unzip
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# archives
|
# archives
|
||||||
zip xz unzip p7zip zstd
|
zip xz unzip p7zip zstd
|
||||||
# utils
|
# utils
|
||||||
ffmpeg ripgrep jq libqalculate
|
ffmpeg ripgrep jq libqalculate imagemagick
|
||||||
# nix
|
# nix
|
||||||
nix-output-monitor nix-prefetch-scripts nix-top
|
nix-output-monitor nix-prefetch-scripts nix-top
|
||||||
# system
|
# system
|
||||||
|
@ -78,6 +78,7 @@
|
||||||
system.syncthing.enable = true;
|
system.syncthing.enable = true;
|
||||||
system.flatpak.enable = true;
|
system.flatpak.enable = true;
|
||||||
system.mpv.enable = true;
|
system.mpv.enable = true;
|
||||||
|
system.ananicy.enable = true;
|
||||||
# editors
|
# editors
|
||||||
editors.micro.enable = true;
|
editors.micro.enable = true;
|
||||||
editors.vscode.enable = true;
|
editors.vscode.enable = true;
|
||||||
|
@ -86,7 +87,6 @@
|
||||||
# distractions
|
# distractions
|
||||||
distractions.discord.enable = true;
|
distractions.discord.enable = true;
|
||||||
distractions.discord.vesktop = true;
|
distractions.discord.vesktop = true;
|
||||||
distractions.gamemode.enable = true;
|
|
||||||
distractions.steam.enable = true;
|
distractions.steam.enable = true;
|
||||||
# tools
|
# tools
|
||||||
tools.gpg.enable = true;
|
tools.gpg.enable = true;
|
||||||
|
|
|
@ -11,6 +11,11 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
hardware.bluetooth.settings = {
|
||||||
|
General = {
|
||||||
|
Experimental = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# frontend
|
# frontend
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.software.distractions.gamemode;
|
|
||||||
in {
|
|
||||||
options.modules.software.distractions.gamemode = {
|
|
||||||
enable = mkEnableOption "Enable Gamemode, a program to optimize your system performance on demand";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
# optimize linux system performance on demand
|
|
||||||
# https://github.com/FeralInteractive/gamemode
|
|
||||||
user.extraGroups = [ "gamemode" ];
|
|
||||||
programs.gamemode = {
|
|
||||||
enable = true;
|
|
||||||
enableRenice = true;
|
|
||||||
settings = {
|
|
||||||
general = {
|
|
||||||
softrealtime = "auto";
|
|
||||||
renice = 10;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
programs.steam.protontricks.enable = true;
|
||||||
user.packages = [ pkgs.protontricks pkgs.steam-run ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
18
modules/software/system/ananicy.nix
Normal file
18
modules/software/system/ananicy.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.software.system.ananicy;
|
||||||
|
in {
|
||||||
|
options.modules.software.system.ananicy = {
|
||||||
|
enable = mkEnableOption "Enable Ananicy, an auto nice daemon with community rules support";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.ananicy = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ananicy-cpp;
|
||||||
|
rulesProvider = pkgs.ananicy-rules-cachyos;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue