diff --git a/flake.lock b/flake.lock index c0ed8b7..b5de0a1 100644 --- a/flake.lock +++ b/flake.lock @@ -444,7 +444,9 @@ "mcmojave-hyprcursor": { "inputs": { "hyprcursor": "hyprcursor", - "nixpkgs": "nixpkgs_4", + "nixpkgs": [ + "nixpkgs" + ], "systems": "systems_3" }, "locked": { @@ -463,7 +465,7 @@ }, "nicks_nextcloud_integrations": { "inputs": { - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_4", "rust-overlay": "rust-overlay_2" }, "locked": { @@ -505,7 +507,7 @@ "inputs": { "flake-compat": "flake-compat_2", "flake-utils": "flake-utils_3", - "nixpkgs": "nixpkgs_7" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1724065442, @@ -587,22 +589,6 @@ } }, "nixpkgs_4": { - "locked": { - "lastModified": 1722062969, - "narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_5": { "locked": { "lastModified": 1692447944, "narHash": "sha256-fkJGNjEmTPvqBs215EQU4r9ivecV5Qge5cF/QDLVn3U=", @@ -618,7 +604,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_5": { "locked": { "lastModified": 1681358109, "narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=", @@ -634,7 +620,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_6": { "locked": { "lastModified": 1723688146, "narHash": "sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz+NG82pbdg=", @@ -650,7 +636,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_7": { "locked": { "lastModified": 1724224976, "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", @@ -666,7 +652,7 @@ "type": "github" } }, - "nixpkgs_9": { + "nixpkgs_8": { "locked": { "lastModified": 1724224976, "narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=", @@ -690,7 +676,7 @@ "git-hooks": "git-hooks", "home-manager": "home-manager_2", "nix-darwin": "nix-darwin", - "nixpkgs": "nixpkgs_9", + "nixpkgs": "nixpkgs_8", "nuschtosSearch": "nuschtosSearch", "treefmt-nix": "treefmt-nix" }, @@ -740,7 +726,7 @@ "mcmojave-hyprcursor": "mcmojave-hyprcursor", "nicks_nextcloud_integrations": "nicks_nextcloud_integrations", "nixos-wsl": "nixos-wsl", - "nixpkgs": "nixpkgs_8", + "nixpkgs": "nixpkgs_7", "nixpkgs-stable": "nixpkgs-stable", "nixvim": "nixvim", "utils": "utils" @@ -784,7 +770,7 @@ "rust-overlay_2": { "inputs": { "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs_6" + "nixpkgs": "nixpkgs_5" }, "locked": { "lastModified": 1692497375, diff --git a/flake.nix b/flake.nix index fb12c2c..f772336 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,10 @@ nixos-wsl.url = "github:nix-community/NixOS-WSL/main"; - mcmojave-hyprcursor.url = "github:libadoxon/mcmojave-hyprcursor"; + mcmojave-hyprcursor = { + url = "github:libadoxon/mcmojave-hyprcursor"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nixpkgs-stable = { url = "github:NixOS/nixpkgs/release-23.11"; @@ -38,7 +41,7 @@ }; }; - outputs = inputs@{ + outputs = { self, nixpkgs, nixpkgs-stable, @@ -49,7 +52,7 @@ atuin, nixos-wsl, ... - }: + } @ inputs: let user = "nixolas"; system = "x86_64-linux"; @@ -99,6 +102,9 @@ # To change username after installing: https://nix-community.github.io/NixOS-WSL/how-to/change-username.html NicksNixWSL = lib.nixosSystem { inherit system; + specialArgs = { + inherit inputs; + }; modules = [ nixos-wsl.nixosModules.default @@ -138,7 +144,7 @@ NicksNixLaptop = lib.nixosSystem { inherit system; specialArgs = { - inherit user; + inherit user inputs; }; modules = [ @@ -170,7 +176,7 @@ NicksNixDesktop = lib.nixosSystem { inherit system; - specialArgs = { inherit user; }; + specialArgs = { inherit user inputs; }; modules = [ { diff --git a/hosts/configuration.nix b/hosts/configuration.nix index f8a6c68..683797e 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -15,6 +15,12 @@ WLR_NO_HARDWARE_CURSORS = "1"; }; + environment.variables.HYPRCURSOR_THEME = "McMojave"; + environment.variables.HYPRCURSOR_SIZE = "32"; + environment.systemPackages = [ + inputs.mcmojave-hyprcursor.packages.${pkgs.stdenv.hostPlatform.system}.default + ]; + programs.hyprland.enable = true; services = { diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index edc9ff4..26e461f 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -16,7 +16,6 @@ in ../ewwbar ./displays.nix ./keybinds.nix - ./hyprcursors.nix ./window_rules.nix ]; diff --git a/modules/hyprland/hyprcursors.nix b/modules/hyprland/hyprcursors.nix deleted file mode 100644 index 6b4cff2..0000000 --- a/modules/hyprland/hyprcursors.nix +++ /dev/null @@ -1,53 +0,0 @@ -# Borrowed from https://github.com/cafetestrest/nixos/blob/87e6b88b39f01c893888e3dea9785b21c2d0b2b9/home-manager/hypr/hyprcursors.nix#L6 -{ config, lib, pkgs, ... }: - -with lib; - -let - cursor = "McMojave"; - - McMojave = with pkgs; stdenv.mkDerivation rec { - name = "McMojave"; - src = fetchFromGitHub { - owner = "OtaK"; - repo = "McMojave-hyprcursor"; - rev = "main"; - sha256 = "sha256-+Qo88EJC0nYDj9FDsNtoA4nttck81J9CQFgtrP4eBjk="; - }; - - installPhase = '' - runHook preInstall - - mkdir -p $out/share/icons/McMojave - cp -R dist/* $out/share/icons/McMojave/ - - runHook postInstall - ''; - - }; - - #TODO rename this and put into hyprcursors folder - - cursorPackage = McMojave; - - cfg = config.module.hypr.hyprcursors; -in -{ - options = { - module.hypr.hyprcursors.enable = mkEnableOption "Enables hyprcursors"; - }; - - config = mkIf cfg.enable { - home.packages = [ - cursorPackage - ]; - - # xdg.dataFile.".icons/${cursor}".source = "${cursorPackage}/share/icons/${cursor}"; - - home.file = { - ".icons/${cursor}" = { - source = "${cursorPackage}/share/icons/${cursor}"; - }; - }; - }; -}