feat(home): Rofi

This commit is contained in:
punkfairie 2024-11-17 19:01:26 -08:00
parent 0e03c73ac4
commit fbfc001be3
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
5 changed files with 57 additions and 0 deletions

View file

@ -324,11 +324,28 @@
"type": "github" "type": "github"
} }
}, },
"rofi-themes": {
"flake": false,
"locked": {
"lastModified": 1731895428,
"narHash": "sha256-9qFW+xTSizd6NYzJhUtBm80inOR4AgrdAZ3I2LFbuN8=",
"ref": "refs/heads/main",
"rev": "912ae5df827e71b7e20fa275c918335b3ce3d729",
"revCount": 113,
"type": "git",
"url": "https://codewith.babesonthe.net/punkfairie/rofi-themes"
},
"original": {
"type": "git",
"url": "https://codewith.babesonthe.net/punkfairie/rofi-themes"
}
},
"root": { "root": {
"inputs": { "inputs": {
"devenv": "devenv", "devenv": "devenv",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"rofi-themes": "rofi-themes",
"rose-pine": "rose-pine", "rose-pine": "rose-pine",
"rose-pine-amfora": "rose-pine-amfora", "rose-pine-amfora": "rose-pine-amfora",
"rose-pine-qt5ct": "rose-pine-qt5ct", "rose-pine-qt5ct": "rose-pine-qt5ct",

View file

@ -52,5 +52,11 @@
url = "github:piperbly/rose-pine-qt5ct"; url = "github:piperbly/rose-pine-qt5ct";
flake = false; flake = false;
}; };
# Rofi
rofi-themes = {
url = "git+https://codewith.babesonthe.net/punkfairie/rofi-themes";
flake = false;
};
}; };
} }

View file

@ -53,6 +53,7 @@ in
neo = enabled; neo = enabled;
rbw = enabled; rbw = enabled;
ripgrep = enabled; ripgrep = enabled;
rofi = enabled;
ssh = enabled; ssh = enabled;
starship = enabled; starship = enabled;
systemctl = enabled; systemctl = enabled;

View file

@ -0,0 +1,23 @@
{
lib,
config,
pkgs,
inputs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.programs.rofi;
in
{
options.marleyos.programs.rofi.enable = mkEnableOption "rofi";
config = mkIf cfg.enable {
home.packages = with pkgs; [
rofi
];
xdg.configFile."rofi".source = "${inputs.rofi-themes}/files";
};
}

10
overlays/rofi/default.nix Normal file
View file

@ -0,0 +1,10 @@
_: final: prev: {
rofi-unwrapped = prev.rofi-unwrapped.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(prev.fetchpatch {
url = "https://git.causa-arcana.com/PolytreeDE/rofi/commit/b341ed01d2bdca60e2be5882f369c2f519101304.patch";
sha256 = "sha256-Ekb+xyRavcUR0YHAtaRUClhPnarI6KK40ZnHbeM+hNs=";
})
];
});
}