fix: fix symlinks and waybar package

This commit is contained in:
matt1432 2023-06-28 22:10:01 +02:00
parent fb0a62ad68
commit 633bec1b71
3 changed files with 8 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
let
configDir = "/home/matt/.nix/configs";
@ -16,7 +16,7 @@ in
eww = {
enable = true;
configDir = "${configDir}/eww"; # see hyprland.nix for scripts path
configDir = config.lib.file.mkOutOfStoreSymlink "${configDir}/eww"; # see hyprland.nix for scripts path
package = (builtins.getFlake "github:matt1432/eww-exclusiver").packages.x86_64-linux.default;
};

View file

@ -5,7 +5,6 @@
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
hyprland = (import flake-compat {
# I use release version for plugin support
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz";
}).defaultNix;
@ -43,8 +42,9 @@ in
'';
};
home.file = {
".config/hypr/main.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/main.conf";
".config/hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/hyprpaper.conf";
# https://www.reddit.com/r/NixOS/comments/vc3srj/comment/iccqxw1/?utm_source=share&utm_medium=web2x&context=3
xdg.configFile = {
"hypr/main.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/main.conf";
"hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/hyprpaper.conf";
};
}

View file

@ -8,9 +8,8 @@
waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
# https://discourse.nixos.org/t/how-to-use-waybar-hyprland/27638/6
package = (builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.waybar-hyprland;
};
};