feat: update wallpaper and references to image

This commit is contained in:
Zhongheng Liu 2024-10-02 17:30:27 +03:00
commit 74635a6c6d
No known key found for this signature in database
4 changed files with 19 additions and 4 deletions

View file

@ -7,6 +7,7 @@
# Type definitions for nix variables used in this configuration
options = with lib;
with types; {
myWallPaperPath = mkOption {type = path;};
myUserName = mkOption {type = str;};
myHostName = mkOption {type = str;};
myWallPaperPathString = mkOption {type = str;};
@ -21,6 +22,7 @@
# Default values for this configuration
config = rec {
myUserName = "stvnliu";
myWallPaperPath = ../home-manager/${myUserName}/assets/road-wallpaper.jpg;
myHostName = "nixos-msi";
displayScale = 2;
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg";

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

View file

@ -44,7 +44,7 @@
username = "${config.myUserName}";
homeDirectory = "/home/${config.myUserName}";
# copy wallpaper from assets
file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;};
file = {"wallpaper.jpg".source = config.myWallPaperPath;};
};
home.packages = with pkgs; [
prismlauncher

View file

@ -1,8 +1,15 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: let
globalOpacity = 0.8;
in {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
image = ./assets/nixos-wallpaper.jpg;
autoEnable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml";
image = config.myWallPaperPath;
fonts = {
sansSerif = {
name = "Aileron";
@ -13,5 +20,11 @@
package = pkgs.nerdfonts.override {fonts = ["IBMPlexMono"];};
};
};
opacity = {
applications = globalOpacity;
desktop = globalOpacity;
popups = globalOpacity;
terminal = globalOpacity;
};
};
}