diff --git a/flake.lock b/flake.lock index f50ba3d..4de49f5 100644 --- a/flake.lock +++ b/flake.lock @@ -38,15 +38,15 @@ "fromYaml": "fromYaml" }, "locked": { - "lastModified": 1745452037, + "lastModified": 1745523430, "narHash": "sha256-EAYWV+kXbwsH+8G/8UtmcunDeKwLwSOyfcmzZUkWE/c=", - "owner": "awwpotato", + "owner": "SenchoPens", "repo": "base16.nix", - "rev": "985d704b4ff9f75627f279ef091b2899f8456690", + "rev": "58bfe2553d937d8af0564f79d5b950afbef69717", "type": "github" }, "original": { - "owner": "awwpotato", + "owner": "SenchoPens", "repo": "base16.nix", "type": "github" } @@ -109,11 +109,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1745502635, - "narHash": "sha256-n/Qcnlu2c87F+HoUB2kdsNE+FOex7KvcFk4dZTenMuY=", + "lastModified": 1745639917, + "narHash": "sha256-Ditv708pRlb5YOIY3CYm96XPJ26EbrUKDkPyWh0p4gM=", "owner": "chaotic-cx", "repo": "nyx", - "rev": "b68444ecb5cac35f06aab3d69c66a8dc66da560e", + "rev": "6f06893b89a33074b7036e076010b235ddd6ad51", "type": "github" }, "original": { @@ -148,11 +148,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1745570541, - "narHash": "sha256-D0lp/me1gWWw1bcBP9g003JETpoAz+4anSRgKKyzDsA=", + "lastModified": 1745656657, + "narHash": "sha256-/L4zO/4m2+QffG8aSmSsnY+vMxqCJWI9Ijx2uV1UQOQ=", "owner": "marienz", "repo": "nix-doom-emacs-unstraightened", - "rev": "b183a151617b80cfd45fc030b7dd3092fb75cca0", + "rev": "2cef5c91f5ed844893b2af112ba5d295113210ae", "type": "github" }, "original": { @@ -187,11 +187,11 @@ ] }, "locked": { - "lastModified": 1745547387, - "narHash": "sha256-YfDZB7jXdvsMzoIBCUgvu8mdAY2gnOBbR0YhRn1gn8I=", + "lastModified": 1745655630, + "narHash": "sha256-z7HM7dWfE+/Cl58VlmXmTKh9GCFpeavoZk9KumfHARU=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "7e630e5c5e5b860f89d05a64129e51f342766b70", + "rev": "dbc579e088c6f297995073d964fb8eaf2eb78524", "type": "github" }, "original": { @@ -209,11 +209,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1745303921, - "narHash": "sha256-zYucemS2QvJUR5GKJ/u3eZAoe82AKhcxMtNVZDERXsw=", + "lastModified": 1745563104, + "narHash": "sha256-YXpJiegajPiUooLCmKtaA3x63oUXTw/C/9c80Vd6Czw=", "owner": "nix-community", "repo": "fenix", - "rev": "14850d5984f3696a2972f85f19085e5fb46daa95", + "rev": "b4a3938f8161678897983c6fa2461eb5ce54371b", "type": "github" }, "original": { @@ -493,11 +493,11 @@ ] }, "locked": { - "lastModified": 1745421701, - "narHash": "sha256-mZoVHMwj8uF1nnd8nHGzcTzTcVNApymIoo4NemJjnzU=", + "lastModified": 1745555634, + "narHash": "sha256-lhVyVn1utb2UVTbyKJ6mfKB7wLTjrj14OlebvO0WU2s=", "owner": "nix-community", "repo": "home-manager", - "rev": "b7527e2daf755437a2948f09761a8ed07debd075", + "rev": "98f4fef7fd7b4a77245db12e33616023162bc6d9", "type": "github" }, "original": { @@ -513,11 +513,11 @@ ] }, "locked": { - "lastModified": 1745555634, - "narHash": "sha256-lhVyVn1utb2UVTbyKJ6mfKB7wLTjrj14OlebvO0WU2s=", + "lastModified": 1745627989, + "narHash": "sha256-mOCdFmxocBPae7wg7RYWOtJzWMJk34u9493ItY0dVqw=", "owner": "nix-community", "repo": "home-manager", - "rev": "98f4fef7fd7b4a77245db12e33616023162bc6d9", + "rev": "4d2d32231797bfa7213ae5e8ac89d25f8caaae82", "type": "github" }, "original": { @@ -623,11 +623,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1745541469, - "narHash": "sha256-M4eoWX2yBwVwYtp2rNNTvudnPdZuGKiJWQYTU5s9g1E=", + "lastModified": 1745593751, + "narHash": "sha256-TJ/Nijr83ydAi473NGeazYqcQ0t8lCPU7aaQv98oGg8=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "41f5f67f6c8675ec48d893007ca93f8bf6c0049a", + "rev": "742bce016cb848d222fbfcfcf8d3894ea3fdaeff", "type": "github" }, "original": { @@ -837,11 +837,11 @@ ] }, "locked": { - "lastModified": 1745389204, - "narHash": "sha256-gGP+nJ513TrZVL3gbri6iJgMUnNwQz+ntGQE/T5H5rs=", + "lastModified": 1745487384, + "narHash": "sha256-WvQ4XXi0vMtEpPqhfo8ztxjeaeHkbW5tfR4O5+w8r5U=", "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", - "rev": "25ef314fdbff45e1ec790416f1ddb030bcd2af61", + "rev": "0168e4a65c9d43c22ac38ff27f5fa31c7d535148", "type": "github" }, "original": { @@ -896,11 +896,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1745391562, - "narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", + "lastModified": 1745526057, + "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", + "rev": "f771eb401a46846c1aebd20552521b233dd7e18b", "type": "github" }, "original": { @@ -945,11 +945,11 @@ }, "nixpkgs-small": { "locked": { - "lastModified": 1745557573, - "narHash": "sha256-W09rY1EmNLtQU0gb5VIvcGZv+i1QOtCFurw35sGqzFQ=", + "lastModified": 1745688173, + "narHash": "sha256-fgvG1O5JvSSjeQx+ea0DJ3GfMbLPVhAQta/DqQ2y6jc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f6b308c2f2fa73649a21d7a56e97138c8c205505", + "rev": "6a2957c7978b189202e03721aab901c0a9dc1e1a", "type": "github" }, "original": { @@ -977,11 +977,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1745391562, - "narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=", + "lastModified": 1745526057, + "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7", + "rev": "f771eb401a46846c1aebd20552521b233dd7e18b", "type": "github" }, "original": { @@ -1021,11 +1021,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1745571195, - "narHash": "sha256-CmCG8vgurVDLLddf5CtAbWw2OgsTe3aFsFKaaAWV8r8=", + "lastModified": 1745699472, + "narHash": "sha256-QuvSG3NT+zuYgLu91eVXkMo9oJ820KteLzGXNW9txAk=", "owner": "nix-community", "repo": "nur", - "rev": "7b4b52c8a1f1a8920b033ce9885df3e1ddcbd0d6", + "rev": "2bb4f81c3dbbb49ab63e50818f19406bfc00ed6f", "type": "github" }, "original": { @@ -1101,11 +1101,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1745247864, - "narHash": "sha256-QA1Ba8Flz5K+0GbG03HwiX9t46mh/jjKgwavbuKtwMg=", + "lastModified": 1745499382, + "narHash": "sha256-YqhoUWJuWlS7GFvbvu9rzpniNfL738vV+L2cuodhcyU=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "31dbec70c68e97060916d4754c687a3e93c2440f", + "rev": "dd41cda70ecf05308d7a3d418be00f351b2b0619", "type": "github" }, "original": { @@ -1159,11 +1159,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1745541960, - "narHash": "sha256-CnkPq3sjuxB2HC93JVSotfMCF3dDrdKo3e4JOImKiLs=", + "lastModified": 1745618823, + "narHash": "sha256-WGKSI0+CY3Ep2YnRASmBRU8oMIvTW4ngFyjA0dVcKgQ=", "owner": "danth", "repo": "stylix", - "rev": "4846adbc2a0334687c024aed0ca77ecd93ccdb0d", + "rev": "11ceb2fde1901dc227421bbbef2d0800339f5126", "type": "github" }, "original": { diff --git a/hosts/workstation/toggles.nix b/hosts/workstation/toggles.nix index c5f78b9..48d74ae 100644 --- a/hosts/workstation/toggles.nix +++ b/hosts/workstation/toggles.nix @@ -6,6 +6,7 @@ let enableList = func: list: list |> map func |> builtins.listToAttrs; in { + stylix.enable = true; emacs.enable = true; enableContainers = true; servers.drpp.enable = true; diff --git a/stylix.nix b/stylix.nix index 1ce9c42..a27e29a 100644 --- a/stylix.nix +++ b/stylix.nix @@ -1,39 +1,57 @@ -{ pkgs, lib, ... }: { - stylix = { - enable = true; - image = ./wallpapers/pirates.jpg; - cursor = { - package = pkgs.bibata-cursors; - name = "Bibata-Modern-Ice"; - size = 30; - }; - fonts = { - monospace = { - package = pkgs.nerd-fonts.comic-shanns-mono; - name = "ComicShansMono Nerd Font Mono"; + pkgs, + lib, + config, + ... +}: +let + cfg = config.my.stylix; + iconTheme = pkgs.papirus-icon-theme; +in +{ + options.my.stylix.enable = lib.mkEnableOption "enable"; + config = { + stylix = { + enable = cfg.enable; + image = ./wallpapers/pirates.jpg; + cursor = { + package = pkgs.bibata-cursors; + name = "Bibata-Modern-Ice"; + size = 30; }; - sansSerif = { - package = pkgs.dejavu_fonts; - name = "DejaVu Sans"; + fonts = { + monospace = { + 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 = { - package = pkgs.dejavu_fonts; - name = "DejaVu Serif"; + targets.qt.platform = lib.mkForce "qtct"; + }; + 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" ]; }; }; }