before npins

This commit is contained in:
atagen 2025-04-06 23:50:50 +10:00
parent d429476553
commit 63fbd6d499
22 changed files with 627 additions and 330 deletions

View file

@ -2,11 +2,9 @@
inputs,
lib,
pkgs,
rice,
...
}:
let
inherit (lib) getExe;
in
{
home.stateVersion = "22.11";
@ -53,7 +51,7 @@ in
home.packages =
let
inherit (pkgs.rice) icons fonts cursor;
inherit (rice) icons fonts cursor;
in
fonts.pkgs ++ icons.pkgs ++ [ cursor.package ];

View file

@ -1,13 +1,18 @@
{ pkgs, ... }:
{ pkgs, rice, ... }:
let
get = builtins.attrValues;
in
{
imports = [
../programs/vscode.nix
];
home.packages = with pkgs; [
git-credential-keepassxc
direnv
];
home.packages = get {
inherit (pkgs)
git-credential-keepassxc
direnv
;
};
programs.zed-editor = {
enable = false;
@ -21,8 +26,8 @@
features = {
copilot = false;
};
buffer_font_family = pkgs.rice.fonts.monospace.name;
buffer_font_size = pkgs.rice.fonts.monospace.size;
buffer_font_family = rice.fonts.monospace.name;
buffer_font_size = rice.fonts.monospace.size;
theme = {
mode = "dark";
dark = "Kanagawa Dragon";

View file

@ -2,6 +2,8 @@
pkgs,
lib,
config,
nix-rice,
rice,
...
}:
let
@ -170,7 +172,7 @@ in
hide-after-inactive-ms = 5000;
hide-when-typing = true;
size = 16;
theme = pkgs.rice.cursor.name;
theme = rice.cursor.name;
};
layout = {
always-center-single-column = true;
@ -183,7 +185,7 @@ in
];
focus-ring =
let
pal = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
pal = nix-rice.palette.toRgbHex rice.palette;
in
{
active = {
@ -254,13 +256,13 @@ in
"sirula/style.css".text =
let
pal = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
pal = nix-rice.palette.toRgbHex rice.palette;
in
''
#root-box {
background-color: ${pal.normal.black};
color: ${pal.normal.yellow};
font-family: '${pkgs.rice.fonts.sans.name}';
font-family: '${rice.fonts.sans.name}';
}
/* what's the name of the highlighted search text?
color: ${pal.normal.white};

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{ pkgs, rice, ... }:
{
home.packages = with pkgs; [
gtk-engine-murrine
home.packages = [
pkgs.gtk-engine-murrine
];
fonts.fontconfig.enable = true;
@ -11,19 +11,16 @@
platformTheme.name = "adwaita";
};
gtk =
with pkgs;
with rice;
{
enable = true;
theme = with gtk-theme; {
inherit package name;
};
iconTheme = with icons; {
inherit package name;
};
font = with fonts.sans; {
inherit name size package;
};
gtk = {
enable = true;
theme = {
inherit (rice.gtk-theme) package name;
};
iconTheme = {
inherit (rice.icons) package name;
};
font = {
inherit (rice.fonts.sans) size package name;
};
};
}

View file

@ -1,11 +1,10 @@
{
config,
lib,
pkgs,
nix-rice,
rice,
...
}:
let
palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
palette-hex = nix-rice.palette.toRgbHex rice.palette;
in
{
programs.helix = {

View file

@ -1,17 +1,16 @@
{
lib,
pkgs,
nix-rice,
rice,
...
}:
let
palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
palette-hex = nix-rice.palette.toRgbHex rice.palette;
in
{
programs.kitty = with pkgs.rice; {
programs.kitty = {
enable = true;
font = with fonts; {
inherit (monospace) name;
inherit (monospace) size;
font = {
inherit (rice.fonts.monospace) name size;
};
settings = with palette-hex; {
foreground = util.fg;

View file

@ -1,36 +1,38 @@
{ pkgs, inputs, ... }:
{ rice, inputs, ... }:
{
programs.vscode = {
enable = true;
extensions = with inputs.nix-vscode.extensions.x86_64-linux.vscode-marketplace; [
rust-lang.rust-analyzer
ocamllabs.ocaml-platform
jnoortheen.nix-ide
mkhl.direnv
barbosshack.crates-io
vadimcn.vscode-lldb
kend.dancehelixkey
hikionori.kanagawa-vscode-theme
dbaeumer.vscode-eslint
ms-vscode.extension-test-runner
];
mutableExtensionsDir = false;
userSettings = {
"window.titleBarStyle" = "custom";
"editor.fontFamily" = "${pkgs.rice.fonts.monospace.name}";
"editor.fontSize" = 12;
"editor.formatOnSave" = true;
"workbench.colorTheme" = "KanagawaTheme";
"rust-analyzer.debug.engine" = "vadimcn.vscode-lldb";
"rust-analyzer.inlayHints.chainingHints.enable" = false;
"rust-analyzer.inlayHints.parameterHints.enable" = false;
"rust-analyzer.inlayHints.typeHints.enable" = false;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"nix.serverSettings" = {
nil.formatting.command = [
"nixfmt"
];
profiles.default = {
extensions = with inputs.nix-vscode.extensions.x86_64-linux.vscode-marketplace; [
rust-lang.rust-analyzer
ocamllabs.ocaml-platform
jnoortheen.nix-ide
mkhl.direnv
barbosshack.crates-io
vadimcn.vscode-lldb
kend.dancehelixkey
hikionori.kanagawa-vscode-theme
dbaeumer.vscode-eslint
ms-vscode.extension-test-runner
];
userSettings = {
"window.titleBarStyle" = "custom";
"editor.fontFamily" = "${rice.fonts.monospace.name}";
"editor.fontSize" = 12;
"editor.formatOnSave" = true;
"workbench.colorTheme" = "KanagawaTheme";
"rust-analyzer.debug.engine" = "vadimcn.vscode-lldb";
"rust-analyzer.inlayHints.chainingHints.enable" = false;
"rust-analyzer.inlayHints.parameterHints.enable" = false;
"rust-analyzer.inlayHints.typeHints.enable" = false;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nil";
"nix.serverSettings" = {
nil.formatting.command = [
"nixfmt"
];
};
};
};
};

View file

@ -1,10 +1,11 @@
{
lib,
nix-rice,
rice,
pkgs,
...
}:
let
palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
palette-hex = nix-rice.palette.toRgbHex rice.palette;
in
{
programs.wlogout = {

View file

@ -2,12 +2,13 @@
pkgs,
lib,
config,
inputs,
...
}:
let
inherit (lib) getExe;
inherit (config.home) homeDirectory;
palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
palette-hex = inputs.nix-rice.palette.toRgbHex pkgs.rice.palette;
in
{
ezOneShots = with pkgs; {