configure stylix

This commit is contained in:
2025-11-02 12:27:08 -06:00
parent 400ac5212f
commit edafa28c3e
9 changed files with 87 additions and 32 deletions

2
flake.lock generated
View File

@@ -503,7 +503,7 @@
"flake-parts": "flake-parts_2",
"gnome-shell": "gnome-shell",
"nixpkgs": [
"nixpkgs"
"nixpkgs-unstable"
],
"nur": "nur",
"systems": "systems_2",

View File

@@ -40,7 +40,7 @@
};
stylix = {
url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
copyparty.url = "github:9001/copyparty";
};

View File

@@ -19,7 +19,7 @@
ssh.enable = true;
sops.enable = true;
yubikey.enable = true;
tailscale.enable = false;
tailscale.enable = true;
syncthing.enable = true;
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@@ -21,6 +21,7 @@ in {
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = true;
systemd.variables = ["--all"];
settings = {
# --- displays ---
@@ -57,8 +58,8 @@ in {
gaps_in = 2;
gaps_out = 5;
border_size = 3;
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(595959aa)";
"col.active_border" = lib.mkDefault "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = lib.mkDefault "rgba(595959aa)";
layout = "dwindle";
allow_tearing = false;
};
@@ -217,8 +218,8 @@ in {
services.hyprpaper = {
enable = true;
settings = {
preload = ["~/.nix/users/blake/assets/wallpapers/antartica.png"];
wallpaper = [",~/.nix/users/blake/assets/wallpapers/antartica.png"];
preload = lib.mkDefault ["~/.nix/users/blake/assets/wallpapers/antartica.png"];
wallpaper = lib.mkDefault [",~/.nix/users/blake/assets/wallpapers/antartica.png"];
ipc = "off";
splash = false;
};
@@ -233,12 +234,12 @@ in {
hide_cursor = true;
};
background = [
background = lib.mkDefault [
{
monitor = "";
path = "~/.nix/users/blake/assets/wallpapers/antartica.png";
path = lib.mkDefault "~/.nix/users/blake/assets/wallpapers/antartica.png";
blur_passes = 1;
color = "rgb(0047ab)";
color = lib.mkDefault "rgb(0047ab)";
}
];
@@ -281,7 +282,7 @@ in {
monitor = "";
path = "~/.nix/users/blake/assets/pfps/pikacig.jpg";
size = 350;
border_color = "rgb(0047ab)";
border_color = lib.mkDefault "rgb(0047ab)";
rounding = -1;
position = "0, 85";
halign = "center";
@@ -290,7 +291,7 @@ in {
}
];
input-field = [
input-field = lib.mkDefault [
{
monitor = "";
size = "400, 70";
@@ -298,14 +299,14 @@ in {
dots_size = 0.2;
dots_spacing = 0.2;
dots_center = true;
outer_color = "$accent";
inner_color = "$surface0";
font_color = "$text";
outer_color = lib.mkDefault "$accent";
inner_color = lib.mkDefault "$surface0";
font_color = lib.mkDefault "$text";
fade_on_empty = false;
placeholder_text = "# <span foreground=\"##$textAlpha\"><i>󰌾 Logged in as </i><span foreground=\"##$accentAlpha\">$USER</span></span>";
hide_input = false;
check_color = "rgb(0047ab)";
fail_color = "rgb(ff0000)";
check_color = lib.mkDefault "rgb(0047ab)";
fail_color = lib.mkDefault "rgb(ff0000)";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
capslock_color = "rgb(ff0000)";
position = "0, -185";
@@ -366,19 +367,19 @@ in {
};
};
home.pointerCursor = {
dotIcons.enable = false;
enable = true;
gtk.enable = true;
x11.enable = true;
package = pkgs.posy-cursors;
name = "Posy_Cursor_Black";
size = 48;
hyprcursor = {
enable = true;
size = 64;
};
};
# home.pointerCursor = {
# dotIcons.enable = false;
# enable = true;
# gtk.enable = true;
# x11.enable = true;
# package = pkgs.posy-cursors;
# name = "Posy_Cursor_Black";
# size = 48;
# hyprcursor = {
# enable = true;
# size = 64;
# };
# };
#xdg.configFile."hypr/hyprland.conf" = {
# source = config.lib.file.mkOutOfStoreSymlink "/home/blake/.nix/users/blake/dots/hypr/hyprland.conf";

View File

@@ -27,7 +27,7 @@ in {
cursor_beam_thickness = 2.5;
foreground = "#dddddd";
background = "#2F1730";
background_opacity = 0.9;
#background_opacity = 0.9;
selection_foreground = "none";
selection_background = "none";
term = "xterm-256color";

View File

@@ -7,7 +7,7 @@
}: let
program = "stylix";
cfg = config.dots.${program};
#sec = sops.secrets;
wallpaper = ../../assets/wallpapers/test.jpg;
in {
imports = [inputs.stylix.homeManagerModules.default];
@@ -17,5 +17,57 @@ in {
};
config = lib.mkIf cfg.enable {
stylix = {
enable = true;
autoEnable = false;
image = wallpaper;
polarity = "dark";
cursor = {
package = pkgs.posy-cursors;
name = "Posy_Cursor_Black";
size = 128;
};
fonts = {
sizes = {
applications = 12;
terminal = 12;
desktop = 10;
popups = 10;
};
serif = {
package = pkgs.nerd-fonts.ubuntu;
name = "UbuntuNerdFont Regular";
};
sansSerif = {
package = pkgs.nerd-fonts.ubuntu;
name = "UbuntuNerdFont Regular";
};
monospace = {
package = pkgs.nerd-fonts.ubuntu-mono;
name = "UbuntuMonoNerdFont Regular";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
};
opacity = {
applications = 1.0;
terminal = 0.9;
desktop = 1.0;
popups = 0.9;
};
targets = {
kitty.enable = true;
btop.enable = true;
hyprland.enable = true;
hyprpaper.enable = true;
hyprlock.enable = true;
hyprlock.useWallpaper = true;
nvf.enable = true;
nvf.transparentBackground = true;
};
};
};
}

View File

@@ -21,6 +21,7 @@ in
{
imports = [
inputs.sops-nix.homeManagerModules.sops
#inputs.stylix.homeManagerModules.default
./dots
./dots/nvf
./dots/lf

View File

@@ -16,6 +16,7 @@
kitty.enable = true;
librewolf.enable = true;
firefox.enable = true;
stylix.enable = true;
waybar.enable = true;
dunst.enable = true;
hypr.enable = true;