Keep going
This commit is contained in:
22
flake.nix
22
flake.nix
@@ -31,7 +31,20 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
})
|
})
|
||||||
// {i3utils = i3utils.packages.${system}.default;};
|
// {
|
||||||
|
i3utils = i3utils.packages.${system}.default;
|
||||||
|
hyprland = hyprland.packages."x86_64-linux".default.overrideAttrs (finalAttrs: previousAttrs: {
|
||||||
|
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
|
||||||
|
postInstall = ''
|
||||||
|
ls -lar $out
|
||||||
|
wrapProgram $out/bin/Hyprland \
|
||||||
|
--set LIBVA_DRIVER_NAME nvidia \
|
||||||
|
--set XDG_SESSION_TYPE wayland \
|
||||||
|
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
|
||||||
|
--set WLR_NO_HARDWARE_CURSORS 1
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
@@ -48,6 +61,13 @@
|
|||||||
|
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
|
||||||
|
hyprland.nixosModules.default
|
||||||
|
{
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
curl
|
curl
|
||||||
fd
|
fd
|
||||||
firefox-wayland
|
firefox
|
||||||
fzf
|
fzf
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# ./i3status-rust
|
# ./i3status-rust
|
||||||
# ./polybar
|
# ./polybar
|
||||||
./hyprland
|
./hyprland
|
||||||
./rofi
|
./waybar
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -6,18 +6,7 @@
|
|||||||
}: {
|
}: {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.hyprland.overrideAttrs (finalAttrs: previousAttrs: {
|
package = pkgs.hyprland;
|
||||||
buildInputs = previousAttrs.buildInputs ++ [pkgs.makeWrapper];
|
|
||||||
postInstall = ''
|
|
||||||
ls -lar $out
|
|
||||||
wrapProgram $out/bin/Hyprland \
|
|
||||||
--set LIBVA_DRIVER_NAME nvidia \
|
|
||||||
--set XDG_SESSION_TYPE wayland \
|
|
||||||
--set GBM_BACKEND nvidia-drm \
|
|
||||||
--set __GLX_VENDOR_LIBRARY_NAME nvidia \
|
|
||||||
--set WLR_NO_HARDWARE_CURSORS 1
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
xwayland = {
|
xwayland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hidpi = true;
|
hidpi = true;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ monitor=,preferred,auto,auto
|
|||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
|
||||||
# Execute your favorite apps at launch
|
# Execute your favorite apps at launch
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
exec-once = waybar
|
||||||
|
|
||||||
# Source a file (multi-file configs)
|
# Source a file (multi-file configs)
|
||||||
# source = ~/.config/hypr/myColors.conf
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|||||||
16
users/daniel/configs/desktop/waybar/config.json
Normal file
16
users/daniel/configs/desktop/waybar/config.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"modules-left": ["wlr/workspaces", "hyprland/window"],
|
||||||
|
"modules-center": ["clock"],
|
||||||
|
"modules-right": ["clock"],
|
||||||
|
"hyprland/window": {
|
||||||
|
},
|
||||||
|
"wlr/workspaces": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||||
|
"on-scroll-down": "hyprctl dispatch workspace e-1"
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||||
|
}
|
||||||
|
}
|
||||||
14
users/daniel/configs/desktop/waybar/default.nix
Normal file
14
users/daniel/configs/desktop/waybar/default.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
hostname,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
main = lib.importJSON ./config.json;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user