upgrade system and add wayland shimejis

This commit is contained in:
2025-01-30 17:57:15 +02:00
parent b5e782f395
commit cf5caba831
7 changed files with 251 additions and 276 deletions

View File

@@ -0,0 +1,28 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, wayland, waylandProtocols, wlrProtocols, libspng }:
stdenv.mkDerivation rec {
pname = "wl_shimeji";
version = "1.0.0"; # Change to the appropriate version
src = fetchFromGitHub {
owner = "CluelessCatBurger";
repo = "wl_shimeji";
rev = "392a83d5658f283ace77b0c839d5a201cebc8784"; # Change to the appropriate commit
sha256 = "sha256-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX="; # Put the correct sha256 hash
};
nativeBuildInputs = [ pkg-config wayland waylandProtocols wlrProtocols libspng ];
buildInputs = [ ];
installPhase = ''
make install PREFIX=$out
'';
meta = with lib; {
description = "Shimeji reimplementation for Wayland in C";
homepage = "https://github.com/CluelessCatBurger/wl_shimeji";
license = licenses.gpl2;
maintainers = with maintainers; [ ];
};
}

View File

@@ -104,17 +104,25 @@
kitty
inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty
(callPackage ./apps/tuxstrap-crontab.nix {})
(callPackage ./apps/wl-shimeji.nix {})
];
xdg.terminal-exec.enable = true;
environment.variables.XDG_TERMINAL = "${inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty}/bin/ghostty";
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
];
};
environment.variables.XDG_TERMINAL = "${inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty}/bin/ghostty";
environment.variables.XDG_SYSTEM_MONITOR = "${pkgs.htop}/bin/htop";
fileSystems = {
"/".options = [ "compress=zstd" ];
"/home".options = [ "compress=zstd" ];
"/nix".options = [ "compress=zstd" "noatime" ];
"/swap".options = [ "noatime "];
"/swap".options = [ "noatime" ];
};
swapDevices = [ { device = "/swap/swapfile"; } ];
@@ -130,14 +138,22 @@
main-user.userName = "ocbwoy3";
main-user.realName = "OCbwoy3";
programs.dconf.enable = true;
services.gvfs.enable = true;
catppuccin = {
enable = true;
flavor = "mocha";
accent = "blue";
# gtk.enable = true;
};
# home-manager.services.mpris-proxy.enable = true;
home-manager.users.ocbwoy3 = {
services.mpris-proxy.enable = true;
programs.chromium = {
enable = true;
package = pkgs.brave;

View File

@@ -18,4 +18,18 @@
'';
};
system.activationScripts.xdgDesktopPortal = {
text = ''
echo "${pkgs.xdg-desktop-portal-gtk}/libexec/xdg-desktop-portal-gtk" > /.xdg.sh
'';
};
# error code 126
system.activationScripts.catppuccinGtk = {
text = ''
${pkgs.curl}/bin/curl "https://raw.githubusercontent.com/catppuccin/gtk/v1.0.3/install.py" > /tmp/install.py
${pkgs.python3}/bin/python3 /tmp/install.py mocha blue
'';
};
}