* move custom kernel to separate file (it dont work on Swordsmachine (it's nvidia (i hate nvidia)))
* add hypridle, hyprlock (primitive config), swaybg
This commit is contained in:
parent
25e91205fe
commit
3fa1c97cc8
5 changed files with 326 additions and 278 deletions
|
|
@ -1,12 +1,6 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.chaotic.nixosModules.nyx-cache
|
||||
inputs.chaotic.nixosModules.nyx-overlay
|
||||
inputs.chaotic.nixosModules.nyx-registry
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
|
|
@ -16,8 +10,6 @@
|
|||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_cachyos;
|
||||
};
|
||||
|
||||
services.scx = {
|
||||
|
|
|
|||
11
common/kernel.nix
Executable file
11
common/kernel.nix
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.chaotic.nixosModules.nyx-cache
|
||||
inputs.chaotic.nixosModules.nyx-overlay
|
||||
inputs.chaotic.nixosModules.nyx-registry
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_cachyos;
|
||||
}
|
||||
|
|
@ -8,6 +8,8 @@
|
|||
../../common/desktop
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
|
||||
../../common/kernel.nix
|
||||
];
|
||||
|
||||
home-manager.users.wo2w = {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
../../common/desktop
|
||||
../../modules/common
|
||||
../../modules/nixos
|
||||
../../modules/nixos/niri.nix
|
||||
|
||||
../../modules/common/niri.nix
|
||||
|
||||
inputs.nixos-hardware.nixosModules.dell-xps-15-9570-nvidia
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,20 +10,23 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mako
|
||||
xwayland-satellite
|
||||
(flameshot.override { enableWlrSupport = true; })
|
||||
mako # notif daemon, may replace
|
||||
swaybg # wayland compositor wallpaper program
|
||||
xwayland-satellite # necessary for xwayland on niri
|
||||
(flameshot.override { enableWlrSupport = true; }) # screenshot program
|
||||
];
|
||||
|
||||
home-manager.users.wo2w.programs = {
|
||||
home-manager.users.wo2w = {
|
||||
programs = {
|
||||
niri = {
|
||||
settings = {
|
||||
binds = {
|
||||
# custom binds
|
||||
"Mod+Space".action.spawn = [ "rofi" "-show" "drun" ];
|
||||
"Print".action.spawn = [ "sh" "-c" "QT_QPA_PLATFORM=xcb" "flameshot" "screen" ];
|
||||
"Shift+Print".action.spawn = [ "sh" "-c" "QT_QPA_PLATFORM=xcb" "flameshot" "gui" ];
|
||||
"Mod+Print".action.spawn = [ "sh" "-c" "QT_CPA_PLATFORM=xcb" "flameshot" "full" ];
|
||||
"Print".action.spawn = [ "sh" "-c" "QT_QPA_PLATFORM=xcb" "DISPLAY=:0" "flameshot" "screen" ];
|
||||
"Shift+Print".action.spawn = [ "sh" "-c" "QT_QPA_PLATFORM=xcb" "DISPLAY=:0" "flameshot" "gui" ];
|
||||
"Mod+Print".action.spawn = [ "sh" "-c" "QT_QPA_PLATFORM=xcb" "DISPLAY=:0" "flameshot" "full" ];
|
||||
|
||||
|
||||
# default binds
|
||||
|
||||
|
|
@ -251,7 +254,7 @@
|
|||
};
|
||||
|
||||
spawn-at-startup = [
|
||||
{ command = [ "" ]; }
|
||||
{ command = [ "xwayland-satellite" ]; }
|
||||
];
|
||||
|
||||
window-rules = [
|
||||
|
|
@ -291,7 +294,46 @@
|
|||
hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# stop hm complaining about the default config conflicting with custom config (bug?)
|
||||
background = {
|
||||
path = "/home/wo2w/Pictures/uni1.jpg";
|
||||
blur_passes = 3;
|
||||
color = "rgb(1a1b26)";
|
||||
};
|
||||
|
||||
label = {
|
||||
text = "$DESC";
|
||||
};
|
||||
|
||||
input-field = {
|
||||
size = "200, 50";
|
||||
position = "0, -80";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "hyprlock";
|
||||
before_sleep_cmd = "hyprlock";
|
||||
after_sleep_cmd = "hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "systemctl sleep";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue