diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-10-02 17:30:27 +0300 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-10-02 17:30:27 +0300 |
commit | 74635a6c6da73114f37fb3dde1021a9cedbc4cb3 (patch) | |
tree | 8d5981f041951cb8af7d2865b14e9d80e71e9b29 | |
parent | 33edc82a6b49a91998a516a8c5f20d9983c34ee1 (diff) | |
download | nixos-configuration-74635a6c6da73114f37fb3dde1021a9cedbc4cb3.tar.gz nixos-configuration-74635a6c6da73114f37fb3dde1021a9cedbc4cb3.tar.bz2 nixos-configuration-74635a6c6da73114f37fb3dde1021a9cedbc4cb3.zip |
feat: update wallpaper and references to image
-rw-r--r-- | common/variables.nix | 2 | ||||
-rw-r--r-- | home-manager/stvnliu/assets/road-wallpaper.jpg | bin | 0 -> 4274974 bytes | |||
-rw-r--r-- | home-manager/stvnliu/home.nix | 2 | ||||
-rw-r--r-- | home-manager/stvnliu/stylix.nix | 19 |
4 files changed, 19 insertions, 4 deletions
diff --git a/common/variables.nix b/common/variables.nix index e8b98e2..5a148ab 100644 --- a/common/variables.nix +++ b/common/variables.nix @@ -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"; diff --git a/home-manager/stvnliu/assets/road-wallpaper.jpg b/home-manager/stvnliu/assets/road-wallpaper.jpg Binary files differnew file mode 100644 index 0000000..ecac14c --- /dev/null +++ b/home-manager/stvnliu/assets/road-wallpaper.jpg diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix index 83ebb83..8998cab 100644 --- a/home-manager/stvnliu/home.nix +++ b/home-manager/stvnliu/home.nix @@ -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 diff --git a/home-manager/stvnliu/stylix.nix b/home-manager/stvnliu/stylix.nix index f672668..8d3c0bf 100644 --- a/home-manager/stvnliu/stylix.nix +++ b/home-manager/stvnliu/stylix.nix @@ -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; + }; }; } |