added hyprlock and hyprpaper, though hyprpaper apparently doesnt exist so its disabled for now

PS: forgot to use git due to sleep deprivation
This commit is contained in:
Gabriella Bere 2024-08-23 02:03:30 +01:00
parent edaa14d665
commit 378a7ff766
3 changed files with 64 additions and 8 deletions

View file

@ -13,10 +13,10 @@
};
};
outputs = { self, nixpkgs, home-manager, ... } @ inputs:
outputs = { self, nixpkgs, stablepkgs, home-manager, ... } @ inputs:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
stable = inputs.stablepkgs.legacyPacakges.x86_64-linux;
stable = stablepkgs.legacyPacakges.x86_64-linux;
in
{
nixosConfigurations.gabbielaptop = nixpkgs.lib.nixosSystem {

View file

@ -20,7 +20,7 @@
home.packages = [
# add grimblast screenshot tool
pkgs.grimblast
pkgs.hyprpaper
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
@ -81,14 +81,18 @@
# Autostart using systemd
systemd.enable = true;
extraConfig = ''
exec-once = waybar
# exec-once = waybar
# Monitor settings
monitor = eDP-2, 2560x1600@165, 0x0, auto # main laptop monitor
monitor = DP-3, 1920x1080@144, -1280x-1080, auto # left external monitor
monitor = DP-2, 1920x1080@144, 640x-1080, auto # right external monitor
monitor = DP-3, 1920x1080@60, -1280x-1080, auto # left external monitor
monitor = DP-2, 1920x1080@60, 640x-1080, auto # right external monitor
debug:disable_logs = false
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow
'';
};
# Hyprland configuration
@ -97,6 +101,7 @@
input = { kb_layout = "gb"; };
bind =
[
# Keybinds for starting programs
"$mod, F, exec, firefox"
", Print, exec, grimblast copy area"
"$mod, 1, exec, alacritty"
@ -164,4 +169,54 @@
# ];
};
};
# programs.hyprpaper = {
# enable = true;
# settings = {
# ipc = "on";
# splash = false;
# splash_offset = 2.0;
# preload = [ "~/Pictures/wallpaper.png" ];
# wallpaper = [
# ",~/Pictures/wallpaper.png"
# ];
# };
# };
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "eDP-2";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
# placeholder_text = "<span foreground="##cad3f5">Password...</span>";
# shadow_passes = 2;
}
];
};
};
}

View file

@ -62,11 +62,12 @@
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
# services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.wayland.enable = true;
# services.desktopManager.plasma6.enable = true;
# Enable the Hyprland WM functionality for NixOS (xdg portals etc.)
programs.hyprland.enable = true;