feat(home): Rofi
This commit is contained in:
parent
0e03c73ac4
commit
fbfc001be3
5 changed files with 57 additions and 0 deletions
17
flake.lock
17
flake.lock
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
23
modules/home/programs/rofi/default.nix
Normal file
23
modules/home/programs/rofi/default.nix
Normal 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
10
overlays/rofi/default.nix
Normal 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=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue