Skip to content

Commit

Permalink
feat: add lomiri
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Oct 29, 2024
1 parent df5f213 commit 95dc97a
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 1 deletion.
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

0 comments on commit 95dc97a

Please # to comment.