1
Fork 0

Update to nixpgks 24.05

This commit is contained in:
prescientmoon 2024-07-26 20:18:26 +02:00
parent 5247160b43
commit a6293a1ba4
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
46 changed files with 475 additions and 991 deletions

20
modules/common/README.md Normal file
View file

@ -0,0 +1,20 @@
# Common modules
## Home-manage & Nixos modules
| Name | Attribute | Description |
| -------------------------------------- | --------------------------- | ----------------------------------- |
| [toggles](toggles.nix) | `satellite.toggles` | Generic interface for feature flags |
| [lua-lib](lua-lib.nix) | `satellite.lib.lua` | Helpers for working with lua code |
| [korora-lua](korora-lua.nix) | - | Nix -> lua encoder |
| [korora-neovim](korora-neovim.nix) | - | Nix -> neovim config helpers |
| [theming](theming.nix) | `satellite.theming` | Stylix theming helpers |
| [lua-colorscheme](lua-colorscheme.nix) | `satellite.colorscheme.lua` | Base16 theme -> lua |
## Other modules
These are special-purpose modules that are used for other purposes
| Name | Attribute | Description |
| ---------------------- | ----------------------- | ------------------------- |
| [octodns](octodns.nix) | `satellite.dns.octodns` | Octodns config generation |

View file

@ -157,11 +157,13 @@ let
${context}
)
'';
tempestBufnr = given: context: lua ''
D.tempest.configure(
${encode given},
{ bufnr = ${context}}
)
tempestBufnr = given: lua ''
function(_, bufnr)
return D.tempest.configure(
${encode given},
{ bufnr = bufnr}
)
end
'';
keymap = mode: mapping: action: desc:
{ inherit mode mapping action desc; };

View file

@ -7,7 +7,7 @@ in
rounding = {
# Note: this is automatically set to true when the radius is strictly positive
enable = lib.mkEnableOption "rounded corners for desktop apps";
radius = lib.mkOption { default = 0.0; type = lib.types.float; };
radius = lib.mkOption { default = 0; type = lib.types.int; };
};
# These pretty much directly map onto hypland options
@ -18,7 +18,7 @@ in
passes = lib.mkOption { default = 4; type = lib.types.int; };
brightness = lib.mkOption { default = 1.0; type = lib.types.float; };
contrast = lib.mkOption { default = 1.2; type = lib.types.float; };
size = lib.mkOption { default = 10.0; type = lib.types.float; };
size = lib.mkOption { default = 10; type = lib.types.int; };
};
get = lib.mkOption {
@ -49,7 +49,7 @@ in
};
config.satellite.theming = {
rounding.enable = cfg.rounding.radius > 0.0;
rounding.enable = cfg.rounding.radius > 0;
blur.enable = cfg.blur.passes > 0;
get = themeMap: