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 # Type definitions for nix variables used in this configuration
options = with lib; options = with lib;
with types; { with types; {
myWallPaperPath = mkOption {type = path;};
myUserName = mkOption {type = str;}; myUserName = mkOption {type = str;};
myHostName = mkOption {type = str;}; myHostName = mkOption {type = str;};
myWallPaperPathString = mkOption {type = str;}; myWallPaperPathString = mkOption {type = str;};
@ -21,6 +22,7 @@
# Default values for this configuration # Default values for this configuration
config = rec { config = rec {
myUserName = "stvnliu"; myUserName = "stvnliu";
myWallPaperPath = ../home-manager/${myUserName}/assets/road-wallpaper.jpg;
myHostName = "nixos-msi"; myHostName = "nixos-msi";
displayScale = 2; displayScale = 2;
myWallPaperPathString = "/home/${myUserName}/wallpaper.jpg"; 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}"; username = "${config.myUserName}";
homeDirectory = "/home/${config.myUserName}"; homeDirectory = "/home/${config.myUserName}";
# copy wallpaper from assets # copy wallpaper from assets
file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;}; file = {"wallpaper.jpg".source = config.myWallPaperPath;};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
prismlauncher prismlauncher

View file

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