mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add dotfiles
This commit is contained in:
commit
39fe550b3e
45 changed files with 4363 additions and 0 deletions
47
modules/home/theme/default.nix
Normal file
47
modules/home/theme/default.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue