stylix toggle

This commit is contained in:
Danilo Reyes 2025-05-02 09:04:15 -06:00
parent cccc8dc90b
commit 40a2e802dc
3 changed files with 97 additions and 78 deletions

92
flake.lock generated
View File

@ -38,15 +38,15 @@
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
}, },
"locked": { "locked": {
"lastModified": 1745452037, "lastModified": 1745523430,
"narHash": "sha256-EAYWV+kXbwsH+8G/8UtmcunDeKwLwSOyfcmzZUkWE/c=", "narHash": "sha256-EAYWV+kXbwsH+8G/8UtmcunDeKwLwSOyfcmzZUkWE/c=",
"owner": "awwpotato", "owner": "SenchoPens",
"repo": "base16.nix", "repo": "base16.nix",
"rev": "985d704b4ff9f75627f279ef091b2899f8456690", "rev": "58bfe2553d937d8af0564f79d5b950afbef69717",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "awwpotato", "owner": "SenchoPens",
"repo": "base16.nix", "repo": "base16.nix",
"type": "github" "type": "github"
} }
@ -109,11 +109,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1745502635, "lastModified": 1745639917,
"narHash": "sha256-n/Qcnlu2c87F+HoUB2kdsNE+FOex7KvcFk4dZTenMuY=", "narHash": "sha256-Ditv708pRlb5YOIY3CYm96XPJ26EbrUKDkPyWh0p4gM=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "b68444ecb5cac35f06aab3d69c66a8dc66da560e", "rev": "6f06893b89a33074b7036e076010b235ddd6ad51",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -148,11 +148,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1745570541, "lastModified": 1745656657,
"narHash": "sha256-D0lp/me1gWWw1bcBP9g003JETpoAz+4anSRgKKyzDsA=", "narHash": "sha256-/L4zO/4m2+QffG8aSmSsnY+vMxqCJWI9Ijx2uV1UQOQ=",
"owner": "marienz", "owner": "marienz",
"repo": "nix-doom-emacs-unstraightened", "repo": "nix-doom-emacs-unstraightened",
"rev": "b183a151617b80cfd45fc030b7dd3092fb75cca0", "rev": "2cef5c91f5ed844893b2af112ba5d295113210ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -187,11 +187,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745547387, "lastModified": 1745655630,
"narHash": "sha256-YfDZB7jXdvsMzoIBCUgvu8mdAY2gnOBbR0YhRn1gn8I=", "narHash": "sha256-z7HM7dWfE+/Cl58VlmXmTKh9GCFpeavoZk9KumfHARU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "7e630e5c5e5b860f89d05a64129e51f342766b70", "rev": "dbc579e088c6f297995073d964fb8eaf2eb78524",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -209,11 +209,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1745303921, "lastModified": 1745563104,
"narHash": "sha256-zYucemS2QvJUR5GKJ/u3eZAoe82AKhcxMtNVZDERXsw=", "narHash": "sha256-YXpJiegajPiUooLCmKtaA3x63oUXTw/C/9c80Vd6Czw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "14850d5984f3696a2972f85f19085e5fb46daa95", "rev": "b4a3938f8161678897983c6fa2461eb5ce54371b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -493,11 +493,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745421701, "lastModified": 1745555634,
"narHash": "sha256-mZoVHMwj8uF1nnd8nHGzcTzTcVNApymIoo4NemJjnzU=", "narHash": "sha256-lhVyVn1utb2UVTbyKJ6mfKB7wLTjrj14OlebvO0WU2s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b7527e2daf755437a2948f09761a8ed07debd075", "rev": "98f4fef7fd7b4a77245db12e33616023162bc6d9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -513,11 +513,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745555634, "lastModified": 1745627989,
"narHash": "sha256-lhVyVn1utb2UVTbyKJ6mfKB7wLTjrj14OlebvO0WU2s=", "narHash": "sha256-mOCdFmxocBPae7wg7RYWOtJzWMJk34u9493ItY0dVqw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "98f4fef7fd7b4a77245db12e33616023162bc6d9", "rev": "4d2d32231797bfa7213ae5e8ac89d25f8caaae82",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -623,11 +623,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1745541469, "lastModified": 1745593751,
"narHash": "sha256-M4eoWX2yBwVwYtp2rNNTvudnPdZuGKiJWQYTU5s9g1E=", "narHash": "sha256-TJ/Nijr83ydAi473NGeazYqcQ0t8lCPU7aaQv98oGg8=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "41f5f67f6c8675ec48d893007ca93f8bf6c0049a", "rev": "742bce016cb848d222fbfcfcf8d3894ea3fdaeff",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -837,11 +837,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745389204, "lastModified": 1745487384,
"narHash": "sha256-gGP+nJ513TrZVL3gbri6iJgMUnNwQz+ntGQE/T5H5rs=", "narHash": "sha256-WvQ4XXi0vMtEpPqhfo8ztxjeaeHkbW5tfR4O5+w8r5U=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "25ef314fdbff45e1ec790416f1ddb030bcd2af61", "rev": "0168e4a65c9d43c22ac38ff27f5fa31c7d535148",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -896,11 +896,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745391562, "lastModified": 1745526057,
"narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", "rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -945,11 +945,11 @@
}, },
"nixpkgs-small": { "nixpkgs-small": {
"locked": { "locked": {
"lastModified": 1745557573, "lastModified": 1745688173,
"narHash": "sha256-W09rY1EmNLtQU0gb5VIvcGZv+i1QOtCFurw35sGqzFQ=", "narHash": "sha256-fgvG1O5JvSSjeQx+ea0DJ3GfMbLPVhAQta/DqQ2y6jc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f6b308c2f2fa73649a21d7a56e97138c8c205505", "rev": "6a2957c7978b189202e03721aab901c0a9dc1e1a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -977,11 +977,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1745391562, "lastModified": 1745526057,
"narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", "rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1021,11 +1021,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1745571195, "lastModified": 1745699472,
"narHash": "sha256-CmCG8vgurVDLLddf5CtAbWw2OgsTe3aFsFKaaAWV8r8=", "narHash": "sha256-QuvSG3NT+zuYgLu91eVXkMo9oJ820KteLzGXNW9txAk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "7b4b52c8a1f1a8920b033ce9885df3e1ddcbd0d6", "rev": "2bb4f81c3dbbb49ab63e50818f19406bfc00ed6f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1101,11 +1101,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1745247864, "lastModified": 1745499382,
"narHash": "sha256-QA1Ba8Flz5K+0GbG03HwiX9t46mh/jjKgwavbuKtwMg=", "narHash": "sha256-YqhoUWJuWlS7GFvbvu9rzpniNfL738vV+L2cuodhcyU=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "31dbec70c68e97060916d4754c687a3e93c2440f", "rev": "dd41cda70ecf05308d7a3d418be00f351b2b0619",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1159,11 +1159,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1745541960, "lastModified": 1745618823,
"narHash": "sha256-CnkPq3sjuxB2HC93JVSotfMCF3dDrdKo3e4JOImKiLs=", "narHash": "sha256-WGKSI0+CY3Ep2YnRASmBRU8oMIvTW4ngFyjA0dVcKgQ=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "4846adbc2a0334687c024aed0ca77ecd93ccdb0d", "rev": "11ceb2fde1901dc227421bbbef2d0800339f5126",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -6,6 +6,7 @@ let
enableList = func: list: list |> map func |> builtins.listToAttrs; enableList = func: list: list |> map func |> builtins.listToAttrs;
in in
{ {
stylix.enable = true;
emacs.enable = true; emacs.enable = true;
enableContainers = true; enableContainers = true;
servers.drpp.enable = true; servers.drpp.enable = true;

View File

@ -1,39 +1,57 @@
{ pkgs, lib, ... }:
{ {
stylix = { pkgs,
enable = true; lib,
image = ./wallpapers/pirates.jpg; config,
cursor = { ...
package = pkgs.bibata-cursors; }:
name = "Bibata-Modern-Ice"; let
size = 30; cfg = config.my.stylix;
}; iconTheme = pkgs.papirus-icon-theme;
fonts = { in
monospace = { {
package = pkgs.nerd-fonts.comic-shanns-mono; options.my.stylix.enable = lib.mkEnableOption "enable";
name = "ComicShansMono Nerd Font Mono"; config = {
stylix = {
enable = cfg.enable;
image = ./wallpapers/pirates.jpg;
cursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 30;
}; };
sansSerif = { fonts = {
package = pkgs.dejavu_fonts; monospace = {
name = "DejaVu Sans"; package = pkgs.nerd-fonts.comic-shanns-mono;
name = "ComicShansMono Nerd Font Mono";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
}; };
serif = { targets.qt.platform = lib.mkForce "qtct";
package = pkgs.dejavu_fonts; };
name = "DejaVu Serif"; home-manager.users.jawz = {
gtk = lib.mkIf (!cfg.enable) {
iconTheme = iconTheme;
};
stylix = {
enable = cfg.enable;
iconTheme = {
enable = cfg.enable;
package = iconTheme;
light = "Papirus-Light";
dark = "Papirus-Dark";
};
targets.librewolf = {
firefoxGnomeTheme.enable = cfg.enable;
profileNames = [ "jawz" ];
};
}; };
};
targets.qt.platform = lib.mkForce "qtct";
};
home-manager.users.jawz.stylix = {
iconTheme = {
enable = true;
package = pkgs.papirus-icon-theme;
light = "Papirus-Light";
dark = "Papirus-Dark";
};
targets.librewolf = {
firefoxGnomeTheme.enable = true;
profileNames = [ "jawz" ];
}; };
}; };
} }