update openmodelica

This commit is contained in:
2026-05-07 20:19:40 +09:00
parent 097ad8118e
commit 1a13db8498
5 changed files with 104 additions and 84 deletions

View File

@@ -238,6 +238,10 @@ in
"nix-command"
"flakes"
];
nix.settings.trusted-users = [
"root"
"allen"
];
programs.hyprland.enable = true;

View File

@@ -1,18 +1,25 @@
{ ... }: {
{ ... }:
{
programs.alacritty = {
enable = true;
# custom settings
settings = {
env.TERM = "alacritty";
font = { size = 14; };
font = {
size = 14;
};
window = {
opacity = 1.0;
padding.x = 50;
padding.y = 50;
padding.x = 7;
padding.y = 7;
};
scrolling.multiplier = 5;
selection.save_to_clipboard = true;
colors = { primary = { background = "#040404"; }; };
selection.save_to_clipboard = false;
colors = {
primary = {
background = "#040404";
};
};
};
};
}

View File

@@ -5,7 +5,7 @@ let
desktopItem = pkgs.makeDesktopItem {
name = "openmodelica";
desktopName = "OpenModelica Connection Editor";
exec = "OMEdit";
exec = "env QT_QPA_PLATFORM=xcb QT_QPA_PLATFORMTHEME=qt6ct OMEdit";
icon = "openmodelica";
categories = [
"Development"
@@ -14,10 +14,8 @@ let
];
comment = "Modelica-based modeling and simulation environment";
};
in
with pkgs;
stdenv.mkDerivation {
openmodelica-core = pkgs.stdenv.mkDerivation {
name = "openmodelica-bin";
version = "custom";
src = pkgs.fetchgit {
@@ -91,4 +89,11 @@ stdenv.mkDerivation {
qt6.qttools
lapack-reference
];
};
in
pkgs.symlinkJoin {
name = "openmodelica";
paths = [
openmodelica-core
];
}

View File

@@ -109,4 +109,7 @@ with pkgs;
exfatprogs
python313Packages.scrapy
atopile
cachix
browsh
kdePackages.qt6ct
]

View File

@@ -15,9 +15,10 @@
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
];
config.common.default = "*";
};