Add dotfiles

This commit is contained in:
muon 2024-03-26 11:39:16 +00:00
commit 39fe550b3e
45 changed files with 4363 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{
config,
lib,
pkgs,
inputs,
stylix,
...
}:
let
theme-name = "mocha";
theme = "${pkgs.base16-schemes}/share/themes/${theme-name}.yaml";
wallpaper = pkgs.runCommand "image.png" {} ''
COLOR=$(${pkgs.yq}/bin/yq -r .base00 ${theme})
COLOR="#"$COLOR
${pkgs.imagemagick}/bin/magick convert -size 1920x1080 xc:$COLOR $out
'';
in {
stylix = {
image = wallpaper;
# polarity = "light";
# base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
base16Scheme = theme;
fonts = {
monospace = {
package = pkgs.mononoki;
name = "Mononoki Nerd Font";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
};
};
services.random-background = {
enable = true;
imageDirectory = "${wallpaper}";
};
programs.zellij.enable = true;
programs.rofi.enable = true;
# config.services.xserver.desktopManager.wallpaper = ./wallpaper.jpg;
}