Compare commits
3 commits
9f260c9a73
...
651dfa31cc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
651dfa31cc | ||
|
|
bc0bd35efb | ||
|
|
703e059221 |
|
|
@ -1,5 +1,11 @@
|
|||
--- a/config.def.h
|
||||
+++ b/config.def.h
|
||||
@@ -28,4 +28,4 @@
|
||||
static const float zoom_levels[] = {
|
||||
12.5, 25.0, 50.0, 75.0,
|
||||
- 100.0, 150.0, 200.0, 400.0, 800.0
|
||||
+ 100.0, 150.0, 200.0, 300.0, 400.0, 600.0, 800.0
|
||||
};
|
||||
@@ -191,9 +191,9 @@
|
||||
static const button_t buttons_img[] = {
|
||||
/* modifiers button function argument */
|
||||
|
|
|
|||
|
|
@ -1,26 +1,29 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
deps = {
|
||||
bell = [pkgs.pipewire pkgs.libnotify];
|
||||
nsxiv-rifle = [pkgs.nsxiv];
|
||||
screenshot = [pkgs.maim pkgs.xclip];
|
||||
};
|
||||
ln = config.u.lib.ln "${config.u.confPath}/user/bin";
|
||||
in {
|
||||
u.bin = with pkgs;
|
||||
{
|
||||
edit = [];
|
||||
sh-tmux = [tmux];
|
||||
sm = [];
|
||||
}
|
||||
// lib.optionalAttrs config.u.has.graphical {
|
||||
bell = [pipewire libnotify];
|
||||
nsxiv-rifle = [nsxiv];
|
||||
screenshot = [maim xclip];
|
||||
};
|
||||
home.file = builtins.listToAttrs (
|
||||
map
|
||||
(x: {
|
||||
name = ".local/bin/${x}";
|
||||
value = {source = ln x;};
|
||||
})
|
||||
(
|
||||
builtins.filter
|
||||
(x: x != "default.nix")
|
||||
(builtins.attrNames (builtins.readDir ./.))
|
||||
)
|
||||
(builtins.attrNames config.u.bin)
|
||||
);
|
||||
home.packages = pkgs.lib.lists.flatten (builtins.attrValues deps);
|
||||
home.packages = pkgs.lib.lists.flatten (builtins.attrValues config.u.bin);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@
|
|||
default = "";
|
||||
};
|
||||
};
|
||||
bin = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.listOf lib.types.package);
|
||||
description = "scripts to put in .local/bin and their dependencies";
|
||||
};
|
||||
bookmarks = lib.mkOption {
|
||||
type = lib.types.listOf (lib.types.submodule {
|
||||
options = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue