Compare commits
No commits in common. "e00818445133c42ebf00cdbf17965119277a8810" and "39b698ddeb6fcac462f6b94dec448eb638be2aaa" have entirely different histories.
e008184451
...
39b698ddeb
4 changed files with 25 additions and 23 deletions
|
|
@ -6,6 +6,12 @@
|
|||
cfg = config.david.programs.niri;
|
||||
in {
|
||||
david.programs.niri = lib.mkIf cfg.enable {
|
||||
waybar.settings = let
|
||||
cfg = config.david.programs.niri.waybar;
|
||||
in [
|
||||
(cfg.template // (cfg.helper.mkBacklight "ddcci13") // {output = "DP-1";})
|
||||
(cfg.template // (cfg.helper.mkBacklight "nvidia_0") // {output = "eDP-2";})
|
||||
];
|
||||
wluma.extraSettings = {
|
||||
output = {
|
||||
backlight = [
|
||||
|
|
|
|||
|
|
@ -41,6 +41,21 @@ in {
|
|||
wluma.extraSettings = lib.mkOption {
|
||||
inherit (options.david.programs.wluma.extraSettings) type;
|
||||
};
|
||||
waybar = {
|
||||
template = lib.mkOption {
|
||||
readOnly = true;
|
||||
type = lib.types.anything;
|
||||
default = config.david.programs.waybar.template;
|
||||
};
|
||||
helper = lib.mkOption {
|
||||
readOnly = true;
|
||||
type = lib.types.anything;
|
||||
default = config.david.programs.waybar.helper;
|
||||
};
|
||||
settings = lib.mkOption {
|
||||
inherit (options.david.programs.waybar.settings) type;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
|
|
|
|||
|
|
@ -45,11 +45,8 @@
|
|||
};
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
alias.patch = "push rad HEAD:refs/patches";
|
||||
user = {
|
||||
inherit (cfg) email name;
|
||||
};
|
||||
settings.user = {
|
||||
inherit (cfg) email name;
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -42,12 +42,6 @@ in {
|
|||
enable = true;
|
||||
settings = {
|
||||
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json";
|
||||
aliases = {
|
||||
dlog = ["log" "-r"];
|
||||
l = ["log" "-r" "(trunk()..@):: | (trunk()..@)-"];
|
||||
fresh = ["new" "trunk()"];
|
||||
tug = ["bookmark" "move" "--from" "closest_bookmark(@)" "--to" "closest_pushable(@)"];
|
||||
};
|
||||
snapshot = {
|
||||
auto-track = "true";
|
||||
max-new-file-size = 0;
|
||||
|
|
@ -83,18 +77,8 @@ in {
|
|||
"format_short_signature(signature)" = "signature";
|
||||
};
|
||||
revset-aliases = {
|
||||
"closest_bookmark(to)" = "heads(::to & bookmarks())";
|
||||
"closest_pushable(to)" = "heads(::to & mutable() & ~description(exact:\"\") & (~empty() | merges()))";
|
||||
"desc(x)" = "description(x)";
|
||||
"pending()" = ".. ~ ::tags() ~ ::remote_bookmarks() ~ @ ~ private()";
|
||||
"private()" = ''
|
||||
description(glob:'wip:*') |
|
||||
description(glob:'private:*') |
|
||||
description(glob:'WIP:*') |
|
||||
description(glob:'PRIVATE:*') |
|
||||
conflicts() |
|
||||
(empty() ~ merges()) |
|
||||
description(substring-i:"DO NOT NAIL")
|
||||
"immutable_heads()" = ''
|
||||
builtin_immutable_heads() | (trunk().. & ~mine())
|
||||
'';
|
||||
};
|
||||
git = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue