feat: rename to sims

This commit is contained in:
2026-05-03 20:03:46 +02:00
parent fb206667c4
commit c10709df26
41 changed files with 93 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
{
description = "Fabric Bar Example";
description = "sims status bar (companion to fenster WM).";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/24.11";
@@ -34,22 +34,21 @@
devShells.default = pkgs.callPackage ./nix/shell.nix { inherit pkgs; };
packages = {
default = pkgs.callPackage ./nix/derivation.nix { inherit (pkgs) lib python3Packages; };
makku = pkgs.writeShellScriptBin "makku" ''
dbus-send --session --print-reply --dest=org.Fabric.fabric.bar /org/Fabric/fabric org.Fabric.fabric.Evaluate string:"finder.show()" > /dev/null 2>&1
'';
notmuch-refresh = pkgs.writeShellScriptBin "notmuch-refresh" ''
dbus-send --session --print-reply --dest=org.Fabric.fabric.bar /org/Fabric/fabric org.Fabric.fabric.Evaluate string:"notmuch_widget.service.update_unread_count() if notmuch_widget else None" > /dev/null 2>&1
'';
sims-cli = pkgs.writeShellApplication {
name = "sims-cli";
runtimeInputs = [ pkgs.dbus ];
text = builtins.readFile ./scripts/sims-cli.sh;
};
};
apps.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/bar";
program = "${self.packages.${system}.default}/bin/sims";
};
}
)
// {
homeManagerModules = {
makku-bar =
sims =
{
config,
lib,
@@ -57,18 +56,18 @@
...
}:
let
cfg = config.services.makku-bar;
cfg = config.services.sims;
settingsFormat = pkgs.formats.yaml { };
in
{
options.services.makku-bar = {
enable = lib.mkEnableOption "makku-bar status bar";
options.services.sims = {
enable = lib.mkEnableOption "sims status bar";
package = lib.mkOption {
type = lib.types.package;
default = self.packages.${pkgs.system}.default;
description = "The makku-bar package to use.";
description = "The sims package to use.";
};
settings = lib.mkOption {
@@ -159,19 +158,19 @@
};
};
config = lib.mkIf config.services.makku-bar.enable {
systemd.user.services.makku-bar =
config = lib.mkIf config.services.sims.enable {
systemd.user.services.sims =
let
configFile = settingsFormat.generate "config.yaml" cfg.settings;
in
{
Unit = {
Description = "Makku Status Bar";
Description = "sims status bar";
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${config.services.makku-bar.package}/bin/bar --config ${configFile}";
ExecStart = "${config.services.sims.package}/bin/sims --config ${configFile}";
Restart = "on-failure";
};
@@ -181,7 +180,7 @@
};
};
};
stylix-makku-bar = import ./nix/stylix/hm.nix;
stylix-sims = import ./nix/stylix/hm.nix;
};
};
}