Merge branch 'flake-parts' into 'master'

Module-based ricing

See merge request bertof/nix-dotfiles!1
This commit is contained in:
Filippo Berto 2024-10-22 16:50:48 +00:00
commit 4d65b238a4
52 changed files with 848 additions and 1277 deletions

View file

@ -1,5 +1,4 @@
{ pkgs
, config
{ config
, lib
, ...
}:
@ -26,7 +25,6 @@
};
services.garage = {
package = pkgs.unstable_pkgs.garage;
enable = true;
settings = {
replication_mode = 1;

View file

@ -2,7 +2,6 @@
{
programs.hyprland = {
enable = true;
# package = pkgs.unstable_pkgs.hyprland;
# enableNvidiaPatches = builtins.elem "nvidia" config.services.xserver.videoDrivers; # removed in 24.x
xwayland.enable = true;
};

62
modules/nixos/rice.nix Normal file
View file

@ -0,0 +1,62 @@
{ pkgs, config, ... }:
with config.nix-rice.lib;
let
theme = kitty-themes.getThemeByName "Nightfox";
inherit (config.nix-rice) rice;
in
{
nix-rice.config = {
colorPalette = rec {
normal = palette.defaultPalette // {
black = theme.color0;
red = theme.color1;
green = theme.color2;
yellow = theme.color3;
blue = theme.color4;
magenta = theme.color5;
cyan = theme.color6;
white = theme.color7;
};
bright = palette.brighten 10 normal // {
black = theme.color8;
red = theme.color9;
green = theme.color10;
yellow = theme.color11;
blue = theme.color12;
magenta = theme.color13;
cyan = theme.color14;
white = theme.color15;
};
dark = palette.darken 10 normal;
primary = {
inherit (theme) background foreground;
bright_foreground = color.brighten 10 theme.foreground;
dim_foreground = color.darken 10 theme.foreground;
};
} // theme;
font = {
normal = {
name = "Cantarell";
package = pkgs.cantarell-fonts;
size = 10;
};
monospace = {
name = "CaskaydiaCove Nerd Font";
package = pkgs.nerdfonts.override { fonts = [ "CascadiaCode" ]; };
# name = "FiraCode Nerd Font Mono";
# package = pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; };
size = 10;
};
};
opacity = 0.95;
};
nixpkgs.overlays = [
(_self: super: {
wl-lockscreen = super.wl-lockscreen.override {
strPalette = palette.toRgbaShortHex rice.colorPalette;
font = rice.font.normal;
};
})
];
}