Add asusctl settings
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -70,6 +70,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.template."${home}/.config/k9s/skins/matugen.yaml".source = ./theme.yaml;
|
theme.template.".config/k9s/skins/matugen.yaml".source = ./theme.yaml;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.template."${home}/.config/astal/theme.sass".source = ./theme.sass;
|
theme.template.".config/astal/theme.sass".source = ./theme.sass;
|
||||||
|
|
||||||
systemd.user = {
|
systemd.user = {
|
||||||
targets.tray.Unit = {
|
targets.tray.Unit = {
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
programs.btop.settings.color_theme = "matugen";
|
programs.btop.settings.color_theme = "matugen";
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
template."${home}/.config/btop/themes/matugen.theme".source = ./theme.theme;
|
template.".config/btop/themes/matugen.theme".source = ./theme.theme;
|
||||||
|
|
||||||
reloadExtraConfig = "${
|
reloadExtraConfig = "${
|
||||||
lib.meta.getExe (
|
lib.meta.getExe (
|
||||||
|
@@ -51,6 +51,6 @@
|
|||||||
enabledThemes = [ "matugen.theme.css" ];
|
enabledThemes = [ "matugen.theme.css" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.template."${home}/.config/vesktop/themes/matugen.theme.css".source = ./theme.css;
|
theme.template.".config/vesktop/themes/matugen.theme.css".source = ./theme.css;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ in
|
|||||||
policies = {
|
policies = {
|
||||||
AutofillAddressEnabled = false;
|
AutofillAddressEnabled = false;
|
||||||
AutofillCreditCardEnabled = false;
|
AutofillCreditCardEnabled = false;
|
||||||
DefaultDownloadDirectory = "$HOME/Downloads";
|
DefaultDownloadDirectory = "${home}/Downloads";
|
||||||
DisableFirefoxStudies = true;
|
DisableFirefoxStudies = true;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
DisableSetDesktopBackground = true;
|
DisableSetDesktopBackground = true;
|
||||||
@@ -126,9 +126,5 @@ in
|
|||||||
] (_: "firefox.desktop");
|
] (_: "firefox.desktop");
|
||||||
|
|
||||||
home.sessionVariables.DEFAULT_BROWSER = lib.meta.getExe hmConfig.programs.firefox.finalPackage;
|
home.sessionVariables.DEFAULT_BROWSER = lib.meta.getExe hmConfig.programs.firefox.finalPackage;
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [
|
|
||||||
"$mod, b, exec, ${lib.meta.getExe hmConfig.programs.firefox.finalPackage}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -53,8 +53,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
theme.template = {
|
theme.template = {
|
||||||
"${home}/.config/gtk-3.0/theme.css".source = ./theme.css;
|
".config/gtk-3.0/theme.css".source = ./theme.css;
|
||||||
"${home}/.config/gtk-4.0/theme.css".source = ./theme.css;
|
".config/gtk-4.0/theme.css".source = ./theme.css;
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.initExtraConfig = "${
|
theme.initExtraConfig = "${
|
||||||
|
@@ -163,7 +163,7 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
template."${home}/.config/hypr/theme.conf".source = ./theme.conf;
|
template.".config/hypr/theme.conf".source = ./theme.conf;
|
||||||
|
|
||||||
reloadExtraConfig = "${
|
reloadExtraConfig = "${
|
||||||
lib.meta.getExe (
|
lib.meta.getExe (
|
||||||
|
@@ -31,7 +31,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
template."${home}/.config/kitty/theme.conf".source = ./theme.conf;
|
template.".config/kitty/theme.conf".source = ./theme.conf;
|
||||||
|
|
||||||
reloadExtraConfig = "${
|
reloadExtraConfig = "${
|
||||||
lib.meta.getExe (
|
lib.meta.getExe (
|
||||||
|
@@ -606,12 +606,10 @@ in
|
|||||||
theme.template = lib.attrsets.mapAttrs' (
|
theme.template = lib.attrsets.mapAttrs' (
|
||||||
_: vault:
|
_: vault:
|
||||||
lib.attrsets.nameValuePair
|
lib.attrsets.nameValuePair
|
||||||
"${home}/${vault.target}/.obsidian/plugins/obsidian-style-settings/data.json"
|
"${vault.target}/.obsidian/plugins/obsidian-style-settings/data.json"
|
||||||
{ source = ./theme.json; }
|
{ source = ./theme.json; }
|
||||||
) hmConfig.programs.obsidian.vaults;
|
) hmConfig.programs.obsidian.vaults;
|
||||||
|
|
||||||
sops.secrets."google/geocoding".sopsFile = ../../../../../../secrets/personal/secrets.yaml;
|
sops.secrets."google/geocoding".sopsFile = ../../../../../../secrets/personal/secrets.yaml;
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [ "$mod, o, exec, ${pkgs.obsidian}/bin/obsidian" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
|
|
||||||
theme.template = {
|
theme.template = {
|
||||||
# https://github.com/GabePoel/KvLibadwaita/blob/main/src/KvLibadwaita/KvLibadwaita.kvconfig
|
# https://github.com/GabePoel/KvLibadwaita/blob/main/src/KvLibadwaita/KvLibadwaita.kvconfig
|
||||||
"${home}/.config/Kvantum/KvAdwQt/KvAdwQt.kvconfig".source = ./KvAdwQt/KvAdwQt.kvconfig;
|
".config/Kvantum/KvAdwQt/KvAdwQt.kvconfig".source = ./KvAdwQt/KvAdwQt.kvconfig;
|
||||||
# https://github.com/GabePoel/KvLibadwaita/blob/main/src/KvLibadwaita/KvLibadwaita.svg
|
# https://github.com/GabePoel/KvLibadwaita/blob/main/src/KvLibadwaita/KvLibadwaita.svg
|
||||||
"${home}/.config/Kvantum/KvAdwQt/KvAdwQt.svg".source = ./KvAdwQt/KvAdwQt.svg;
|
".config/Kvantum/KvAdwQt/KvAdwQt.svg".source = ./KvAdwQt/KvAdwQt.svg;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile =
|
xdg.configFile =
|
||||||
|
@@ -86,6 +86,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
theme.template."${home}/.config/spotify/theme.css".source = ./theme.css;
|
theme.template.".config/spotify/theme.css".source = ./theme.css;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,7 @@ in
|
|||||||
environment.persistence."/persist"."${home}/.config/theme" = { };
|
environment.persistence."/persist"."${home}/.config/theme" = { };
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [ ./options.nix ];
|
imports = [ (import ./options.nix { inherit user home; }) ];
|
||||||
|
|
||||||
theme.enable = true;
|
theme.enable = true;
|
||||||
|
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
{
|
||||||
|
user ? throw "user argument is required",
|
||||||
|
home ? throw "home argument is required",
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
@@ -94,17 +98,11 @@ in
|
|||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
source = mkOption {
|
source = mkOption {
|
||||||
type = nullOr path;
|
type = path;
|
||||||
description = "Path of the source file or directory.";
|
description = "Path of the source file or directory.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
text = mkOption {
|
|
||||||
type = nullOr str;
|
|
||||||
description = "Text of the file.";
|
|
||||||
default = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
target = mkOption {
|
target = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
defaultText = literalExpression "name";
|
defaultText = literalExpression "name";
|
||||||
@@ -497,8 +495,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
templates = builtins.mapAttrs (name: template: {
|
templates = builtins.mapAttrs (name: template: {
|
||||||
input_path = template.source or (pkgs.writeText name template.text);
|
input_path = template.source;
|
||||||
output_path = template.target;
|
output_path = "${home}/${template.target}";
|
||||||
}) cfg.template;
|
}) cfg.template;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -102,7 +102,5 @@ in
|
|||||||
crash-reporter-id = "00000000-0000-0000-0000-000000000000";
|
crash-reporter-id = "00000000-0000-0000-0000-000000000000";
|
||||||
password-store = "basic";
|
password-store = "basic";
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.bind = [ "$mod, e, exec, ${lib.meta.getExe pkgs.vscode}" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -7,5 +7,6 @@
|
|||||||
lib.mkIf config.programs.vscode.languages.python.enable {
|
lib.mkIf config.programs.vscode.languages.python.enable {
|
||||||
programs.vscode.profiles.default.extensions = with pkgs.vscode-extensions; [
|
programs.vscode.profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
|
a5huynh.vscode-ron
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -71,7 +71,6 @@
|
|||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||||
logind.lidSwitch = "ignore";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gamescope.env = {
|
programs.gamescope.env = {
|
||||||
|
18
hosts/himalia/hardware/asusd.ron
Normal file
18
hosts/himalia/hardware/asusd.ron
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
(
|
||||||
|
charge_control_end_threshold: 60,
|
||||||
|
disable_nvidia_powerd_on_battery: true,
|
||||||
|
ac_command: "",
|
||||||
|
bat_command: "",
|
||||||
|
platform_profile_linked_epp: true,
|
||||||
|
platform_profile_on_battery: Quiet,
|
||||||
|
change_platform_profile_on_battery: true,
|
||||||
|
platform_profile_on_ac: Quiet,
|
||||||
|
change_platform_profile_on_ac: true,
|
||||||
|
profile_quiet_epp: Power,
|
||||||
|
profile_balanced_epp: BalancePower,
|
||||||
|
profile_custom_epp: Performance,
|
||||||
|
profile_performance_epp: Performance,
|
||||||
|
ac_profile_tunings: {},
|
||||||
|
dc_profile_tunings: {},
|
||||||
|
armoury_settings: {},
|
||||||
|
)
|
@@ -74,14 +74,25 @@
|
|||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||||
logind.lidSwitch = "ignore";
|
|
||||||
asusd = {
|
asusd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableUserService = true;
|
# FIXME: https://gitlab.com/asus-linux/asusctl/-/issues/532
|
||||||
|
# enableUserService = true;
|
||||||
|
asusdConfig.source = ./asusd.ron;
|
||||||
|
};
|
||||||
|
|
||||||
|
supergfxd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
vfio_enable = true;
|
||||||
|
no_logind = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
supergfxd.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.persistence."/persist"."/etc/asusd/aura_19b6.ron" = { };
|
||||||
|
|
||||||
programs.gamescope.env = {
|
programs.gamescope.env = {
|
||||||
__NV_PRIME_RENDER_OFFLOAD = "1";
|
__NV_PRIME_RENDER_OFFLOAD = "1";
|
||||||
__VK_LAYER_NV_optimus = "NVIDIA_only";
|
__VK_LAYER_NV_optimus = "NVIDIA_only";
|
||||||
@@ -93,6 +104,23 @@
|
|||||||
wayland.windowManager.hyprland.settings.env = [
|
wayland.windowManager.hyprland.settings.env = [
|
||||||
"AQ_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
|
"AQ_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
template.".config/asusctl/keyboard".source =
|
||||||
|
pkgs.writeText ".config/asusctl/keyboard" "{{colors.primary_container.default.hex_stripped}}";
|
||||||
|
|
||||||
|
initExtraConfig = "${
|
||||||
|
lib.meta.getExe (
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "theme-asusctl";
|
||||||
|
runtimeInputs = with pkgs; [ asusctl ];
|
||||||
|
text = ''
|
||||||
|
asusctl aura static -c "$(<"$HOME/.config/asusctl/keyboard")"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
||||||
|
} &";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user