Compare commits
5 commits
9d38846b58
...
fbfc001be3
Author | SHA1 | Date | |
---|---|---|---|
fbfc001be3 | |||
0e03c73ac4 | |||
71e79fbcae | |||
d2a20ab153 | |||
ac30155eef |
8 changed files with 85 additions and 3 deletions
4
Justfile
4
Justfile
|
@ -16,3 +16,7 @@ update:
|
|||
|
||||
updatejust this:
|
||||
nix flake update {{this}}
|
||||
|
||||
alias gc := collectgarbage
|
||||
collectgarbage:
|
||||
nix-collect-garbage -d
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -324,11 +324,28 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"devenv": "devenv",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"rofi-themes": "rofi-themes",
|
||||
"rose-pine": "rose-pine",
|
||||
"rose-pine-amfora": "rose-pine-amfora",
|
||||
"rose-pine-qt5ct": "rose-pine-qt5ct",
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -19,6 +19,10 @@
|
|||
outputs-builder = channels: {
|
||||
formatter = channels.nixpkgs.nixfmt-rfc-style;
|
||||
};
|
||||
|
||||
alias = {
|
||||
shells.default = "nix";
|
||||
};
|
||||
};
|
||||
|
||||
inputs = {
|
||||
|
@ -48,5 +52,11 @@
|
|||
url = "github:piperbly/rose-pine-qt5ct";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
# Rofi
|
||||
rofi-themes = {
|
||||
url = "git+https://codewith.babesonthe.net/punkfairie/rofi-themes";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ in
|
|||
|
||||
targets.genericLinux = enabled;
|
||||
|
||||
# TODO: Move this to a dev shell
|
||||
# FIXME: Remove this once nvim is set up
|
||||
home.packages = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
|
@ -53,6 +53,7 @@ in
|
|||
neo = enabled;
|
||||
rbw = enabled;
|
||||
ripgrep = enabled;
|
||||
rofi = enabled;
|
||||
ssh = enabled;
|
||||
starship = enabled;
|
||||
systemctl = enabled;
|
||||
|
|
|
@ -19,6 +19,10 @@ in
|
|||
# general
|
||||
babelfish
|
||||
|
||||
# for fish_greeting()
|
||||
marleyos.figlet-xero-fonts
|
||||
lolcat
|
||||
|
||||
# for extract()
|
||||
gnutar
|
||||
bzip2
|
||||
|
@ -29,8 +33,6 @@ in
|
|||
unrar-free
|
||||
];
|
||||
|
||||
# TODO: Set the greeting to `figlet -f Elite marleyOS`
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
|
@ -71,6 +73,12 @@ in
|
|||
};
|
||||
|
||||
functions = {
|
||||
fish_greeting = # fish
|
||||
''
|
||||
echo ""
|
||||
figlet -f Elite " marleyOS" | lolcat
|
||||
'';
|
||||
|
||||
extract = {
|
||||
argumentNames = "file";
|
||||
body = # fish
|
||||
|
|
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=";
|
||||
})
|
||||
];
|
||||
});
|
||||
}
|
9
shells/nix/default.nix
Normal file
9
shells/nix/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ mkShell, pkgs, ... }:
|
||||
mkShell {
|
||||
packages = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
statix
|
||||
manix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue