Compare commits

...

5 commits

8 changed files with 85 additions and 3 deletions

View file

@ -16,3 +16,7 @@ update:
updatejust this: updatejust this:
nix flake update {{this}} nix flake update {{this}}
alias gc := collectgarbage
collectgarbage:
nix-collect-garbage -d

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

@ -19,6 +19,10 @@
outputs-builder = channels: { outputs-builder = channels: {
formatter = channels.nixpkgs.nixfmt-rfc-style; formatter = channels.nixpkgs.nixfmt-rfc-style;
}; };
alias = {
shells.default = "nix";
};
}; };
inputs = { inputs = {
@ -48,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

@ -11,7 +11,7 @@ in
targets.genericLinux = enabled; targets.genericLinux = enabled;
# TODO: Move this to a dev shell # FIXME: Remove this once nvim is set up
home.packages = with pkgs; [ home.packages = with pkgs; [
nixfmt-rfc-style nixfmt-rfc-style
nil nil
@ -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

@ -19,6 +19,10 @@ in
# general # general
babelfish babelfish
# for fish_greeting()
marleyos.figlet-xero-fonts
lolcat
# for extract() # for extract()
gnutar gnutar
bzip2 bzip2
@ -29,8 +33,6 @@ in
unrar-free unrar-free
]; ];
# TODO: Set the greeting to `figlet -f Elite marleyOS`
programs.fish = { programs.fish = {
enable = true; enable = true;
@ -71,6 +73,12 @@ in
}; };
functions = { functions = {
fish_greeting = # fish
''
echo ""
figlet -f Elite " marleyOS" | lolcat
'';
extract = { extract = {
argumentNames = "file"; argumentNames = "file";
body = # fish body = # fish

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=";
})
];
});
}

9
shells/nix/default.nix Normal file
View file

@ -0,0 +1,9 @@
{ mkShell, pkgs, ... }:
mkShell {
packages = with pkgs; [
nixfmt-rfc-style
nil
statix
manix
];
}