Compare commits
2 commits
39b698ddeb
...
e008184451
| Author | SHA1 | Date | |
|---|---|---|---|
| e008184451 | |||
| 67c35b2dc5 |
4 changed files with 23 additions and 25 deletions
|
|
@ -6,12 +6,6 @@
|
|||
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,21 +41,6 @@ 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,8 +45,11 @@
|
|||
};
|
||||
git = {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
inherit (cfg) email name;
|
||||
settings = {
|
||||
alias.patch = "push rad HEAD:refs/patches";
|
||||
user = {
|
||||
inherit (cfg) email name;
|
||||
};
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -42,6 +42,12 @@ 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;
|
||||
|
|
@ -77,8 +83,18 @@ in {
|
|||
"format_short_signature(signature)" = "signature";
|
||||
};
|
||||
revset-aliases = {
|
||||
"immutable_heads()" = ''
|
||||
builtin_immutable_heads() | (trunk().. & ~mine())
|
||||
"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")
|
||||
'';
|
||||
};
|
||||
git = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue