feat(terminal): install apps

This commit is contained in:
Guz
2026-03-24 14:29:52 -03:00
parent f891b1e454
commit 200fa86d4e
3 changed files with 124 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
{
lib,
osConfig,
pkgs,
self,
...
@@ -16,13 +17,131 @@
# Programs
(with pkgs; [
self.packages.${pkgs.stdenv.hostPlatform.system}.audacity
blender
bitwarden-desktop
obs-studio
wezterm
webcord
godot
inkscape
krita
nextcloud-client
obsidian
prismlauncher
# System
pwvucontrol
])
# Fonts
++ (with pkgs; [
google-fonts
nerd-fonts.fira-code
self.packages.${pkgs.stdenv.hostPlatform.system}.cal-sans
]);
home.file = let
godottemplates = pkgs.godot-export-templates-bin;
godotname = builtins.replaceStrings ["-"] ["."] godottemplates.version;
in {
".local/share/godot/export_templates/${godotname}" = {
source = "${godottemplates}/share/godot/export_templates/${godotname}";
};
};
# OBS Studio
programs.obs-studio.enable = true;
# Vesktop (Discord)
programs.vesktop.enable = true;
# Open Tablet Driver configuration
xdg.configFile."OpenTabletDriver/settings.json" = lib.mkIf osConfig.hardware.opentabletdriver.enable {
force = true;
text = builtins.toJSON {
Profiles = let
mkBinding = k: {
Path = "OpenTabletDriver.Desktop.Binding.${
if lib.hasInfix "+" k
then "MultiKeyBinding"
else "KeyBinding"
}";
Settings = [
{
Property =
if lib.hasInfix "+" k
then "Keys"
else "Key";
Value = k;
}
];
Enable = true;
};
in [
{
Tablet = "Huion HS610";
OutputMode.Path = "OpenTabletDriver.Desktop.Output.LinuxArtistMode";
OutputMode.Settings = [];
OutputMode.Enable = true;
Filters = [];
AbsoluteModeSettings.Display = {
Width = 1720.0;
Height = 1080.0;
X = 1280.0;
Y = 540.0;
Rotation = 0.0;
};
AbsoluteModeSettings.Tablet = {
Width = 254.0;
Height = 158.75;
X = 127.0;
Y = 79.375;
Rotation = 0;
};
AbsoluteModeSettings.EnableClipping = true;
AbsoluteModeSettings. EnableAreaLimiting = false;
AbsoluteModeSettings. LockAspectRatio = false;
RelativeModeSettings = {
XSensitivity = 10.0;
YSensitivity = 10.0;
RelativeRotation = 0.0;
RelativeResetDelay = "00:00:00.1000000";
};
Bindings.TipActivationThreshold = 1.0;
Bindings.TipButton = {
Path = "OpenTabletDriver.Desktop.Binding.MouseBinding";
Settings = [
{
Property = "Button";
Value = "Left";
}
];
};
Bindings.EraserActivationThreshold = 1.0;
Bindings.EraserButton = null;
Bindings.PenButtons = [
(mkBinding "Space")
(mkBinding "Control+K")
];
Bindings.AuxButtons = [
null
null
null
null
(mkBinding "D5")
null
(mkBinding "LeftControl")
(mkBinding "LeftShift")
(mkBinding "Control+Z")
(mkBinding "Control+Shift+Z")
(mkBinding "B")
(mkBinding "E")
];
Bindings.MouseButtons = [];
Bindings.MouseScrollUp = null;
Bindings.MouseScrollDown = null;
}
];
LockUsableAreaDisplay = true;
LockUsableAreaTablet = true;
Tools = [];
};
};
# This value determines the Home Manager release that your

View File

@@ -33,7 +33,6 @@ with lib; {
["0700" ".cache/wezterm"]
["0755" ".cache/zellij"]
["0700" ".cache/zen"]
["0755" ".config/sops/age"]
["0755" ".config/Audacity"]
["0755" ".config/audacity4"]
["0755" ".config/blender"]
@@ -48,6 +47,7 @@ with lib; {
["0755" ".local/share/audacity4"]
["0755" ".local/share/direnv"]
["0700" ".local/share/keyrings"]
["0700" ".local/share/Steam"]
];
};
}

View File

@@ -77,6 +77,7 @@
nix.settings.experimental-features = ["nix-command" "flakes"];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"obsidian"
"steam"
"steam-unwrapped"
"via"