Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add lomiri #375

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
username = "nixos";
desktop = "gnome";
};
"nixos@iso-lomiri" = helper.mkHome {
hostname = "iso-lomiri";
username = "nixos";
desktop = "lomiri";
};

"nixos@iso-mate" = helper.mkHome {
hostname = "iso-mate";
username = "nixos";
Expand Down Expand Up @@ -150,6 +156,12 @@
username = "nixos";
desktop = "gnome";
};
iso-lomiri = helper.mkNixos {
hostname = "iso-lomiri";
username = "nixos";
desktop = "lomiri";
};

iso-mate = helper.mkNixos {
hostname = "iso-mate";
username = "nixos";
Expand Down
2 changes: 2 additions & 0 deletions nixos/_mixins/desktop/features/xdg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
] ++ lib.optionals (desktop == "pantheon") [
pkgs.pantheon.xdg-desktop-portal-pantheon
pkgs.xdg-desktop-portal-gtk
] ++ lib.optionals (desktop == "lomiri") [
lxqt.xdg-desktop-portal-lxqt
];
config = {
common = {
Expand Down
60 changes: 60 additions & 0 deletions nixos/_mixins/desktop/lomiri/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
config,
isInstall,
lib,
pkgs,
...
}:
{
environment = {
systemPackages =
with pkgs;
lib.optionals isInstall [
lomiri.morph-browser
lomiri.lomiri-terminal-app
lomiri.lomiri-clock-app
lomiri.lomiri-filemanager-app
lomiri.lomiri-camera-app
lomiri.lomiri-calculator-app
lomiri.teleports
unstable.lomiri.lomiri-gallery-app
unstable.lomiri.lomiri-docviewer-app
];
};

programs = {
dconf.profiles.user.databases = [
{
settings = with lib.gvariant; {
"org/gnome/desktop/interface" = {
clock-format = "24h";
color-scheme = "prefer-dark";
cursor-size = mkInt32 48;
cursor-theme = "catppuccin-mocha-blue-cursors";
document-font-name = "Work Sans 12";
font-name = "Work Sans 12";
gtk-theme = "catppuccin-mocha-blue-standard";
gtk-enable-primary-paste = true;
icon-theme = "Papirus-Dark";
monospace-font-name = "FiraCode Nerd Font Mono Medium 13";
text-scaling-factor = mkDouble 1.0;
};

"org/gnome/desktop/sound" = {
theme-name = "freedesktop";
};

"org/gtk/gtk4/Settings/FileChooser" = {
clock-format = "24h";
};

"org/gtk/Settings/FileChooser" = {
clock-format = "24h";
};
};
}
];
};
services.xserver.displayManager.lightdm.greeters.lomiri.enable = true;
services.desktopManager.lomiri.enable = true;
}
2 changes: 1 addition & 1 deletion nixos/_mixins/scripts/build-iso/build-iso.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ -z "${1}" ]; then
echo "Usage: build-iso <console|gnome|mate|pantheon>"
echo "Usage: build-iso <console|gnome|mate|pantheon|lomiri>"
exit 1
fi

Expand Down
1 change: 1 addition & 0 deletions nixos/iso-lomiri