Add asusctl settings
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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 = {
|
||||
targets.tray.Unit = {
|
||||
|
@@ -13,7 +13,7 @@
|
||||
programs.btop.settings.color_theme = "matugen";
|
||||
|
||||
theme = {
|
||||
template."${home}/.config/btop/themes/matugen.theme".source = ./theme.theme;
|
||||
template.".config/btop/themes/matugen.theme".source = ./theme.theme;
|
||||
|
||||
reloadExtraConfig = "${
|
||||
lib.meta.getExe (
|
||||
|
@@ -51,6 +51,6 @@
|
||||
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 = {
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DefaultDownloadDirectory = "$HOME/Downloads";
|
||||
DefaultDownloadDirectory = "${home}/Downloads";
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableSetDesktopBackground = true;
|
||||
@@ -126,9 +126,5 @@ in
|
||||
] (_: "firefox.desktop");
|
||||
|
||||
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 = {
|
||||
"${home}/.config/gtk-3.0/theme.css".source = ./theme.css;
|
||||
"${home}/.config/gtk-4.0/theme.css".source = ./theme.css;
|
||||
".config/gtk-3.0/theme.css".source = ./theme.css;
|
||||
".config/gtk-4.0/theme.css".source = ./theme.css;
|
||||
};
|
||||
|
||||
theme.initExtraConfig = "${
|
||||
|
@@ -163,7 +163,7 @@
|
||||
'';
|
||||
|
||||
theme = {
|
||||
template."${home}/.config/hypr/theme.conf".source = ./theme.conf;
|
||||
template.".config/hypr/theme.conf".source = ./theme.conf;
|
||||
|
||||
reloadExtraConfig = "${
|
||||
lib.meta.getExe (
|
||||
|
@@ -31,7 +31,7 @@ in
|
||||
};
|
||||
|
||||
theme = {
|
||||
template."${home}/.config/kitty/theme.conf".source = ./theme.conf;
|
||||
template.".config/kitty/theme.conf".source = ./theme.conf;
|
||||
|
||||
reloadExtraConfig = "${
|
||||
lib.meta.getExe (
|
||||
|
@@ -606,12 +606,10 @@ in
|
||||
theme.template = lib.attrsets.mapAttrs' (
|
||||
_: vault:
|
||||
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; }
|
||||
) hmConfig.programs.obsidian.vaults;
|
||||
|
||||
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 = {
|
||||
# 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
|
||||
"${home}/.config/Kvantum/KvAdwQt/KvAdwQt.svg".source = ./KvAdwQt/KvAdwQt.svg;
|
||||
".config/Kvantum/KvAdwQt/KvAdwQt.svg".source = ./KvAdwQt/KvAdwQt.svg;
|
||||
};
|
||||
|
||||
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" = { };
|
||||
|
||||
home-manager.users.${user} = {
|
||||
imports = [ ./options.nix ];
|
||||
imports = [ (import ./options.nix { inherit user home; }) ];
|
||||
|
||||
theme.enable = true;
|
||||
|
||||
|
@@ -1,3 +1,7 @@
|
||||
{
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
@@ -94,17 +98,11 @@ in
|
||||
{
|
||||
options = {
|
||||
source = mkOption {
|
||||
type = nullOr path;
|
||||
type = path;
|
||||
description = "Path of the source file or directory.";
|
||||
default = null;
|
||||
};
|
||||
|
||||
text = mkOption {
|
||||
type = nullOr str;
|
||||
description = "Text of the file.";
|
||||
default = null;
|
||||
};
|
||||
|
||||
target = mkOption {
|
||||
type = str;
|
||||
defaultText = literalExpression "name";
|
||||
@@ -497,8 +495,8 @@ in
|
||||
};
|
||||
|
||||
templates = builtins.mapAttrs (name: template: {
|
||||
input_path = template.source or (pkgs.writeText name template.text);
|
||||
output_path = template.target;
|
||||
input_path = template.source;
|
||||
output_path = "${home}/${template.target}";
|
||||
}) cfg.template;
|
||||
}
|
||||
);
|
||||
|
@@ -102,7 +102,5 @@ in
|
||||
crash-reporter-id = "00000000-0000-0000-0000-000000000000";
|
||||
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 {
|
||||
programs.vscode.profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
rust-lang.rust-analyzer
|
||||
a5huynh.vscode-ron
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user