This commit is contained in:
2024-05-23 13:34:57 +01:00
parent c945a6c4e5
commit 04ad07459e
4 changed files with 119 additions and 121 deletions
Generated
+48 -66
View File
@@ -88,11 +88,11 @@
"zls": "zls" "zls": "zls"
}, },
"locked": { "locked": {
"lastModified": 1715104037, "lastModified": 1716408918,
"narHash": "sha256-WHJUTRRCtmpTB32o8W30uLgLuVVI9j3hANhQcB1GXZk=", "narHash": "sha256-OGcTrigpdkXOesNmoKJZ/3m6gEvfoqFStPbI8ZFbZZs=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "4dd3b107c67513d6642481eb648fd65ed5c080f7", "rev": "51b6bf46bf4f2302591ae854097e140ee2fcbe1a",
"revCount": 6069, "revCount": 6175,
"type": "git", "type": "git",
"url": "ssh://git@github.com/mitchellh/ghostty.git" "url": "ssh://git@github.com/mitchellh/ghostty.git"
}, },
@@ -130,11 +130,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714679908, "lastModified": 1716457508,
"narHash": "sha256-KzcXzDvDJjX34en8f3Zimm396x6idbt+cu4tWDVS2FI=", "narHash": "sha256-ZxzffLuWRyuMrkVVq7wastNUqeO0HJL9xqfY1QsYaqo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9036fe9ef8e15a819fa76f47a8b1f287903fb848", "rev": "850cb322046ef1a268449cf1ceda5fd24d930b05",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -159,11 +159,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713612213, "lastModified": 1716327911,
"narHash": "sha256-zJboXgWNpNhKyNF8H/3UYzWkx7w00TOCGKi3cwi+tsw=", "narHash": "sha256-PI+wygItS/TKzi4gEAROvKTUzTx9GT+PGBttS/IOA/Q=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprcursor", "repo": "hyprcursor",
"rev": "cab4746180f210a3c1dd3d53e45c510e309e90e1", "rev": "27ca640abeef2d425b5dbecf804f5eb622cef56d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -181,11 +181,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1713472482, "lastModified": 1716309977,
"narHash": "sha256-7Ft5WZTMIjXOGgRCf31DZBwK6RK8xkeKlD5vFXz3gII=", "narHash": "sha256-4jDQIcMDSFOOMBxVTEiC6Ck1vdc0kAFvv+StxnnE59Q=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hypridle", "repo": "hypridle",
"rev": "7cff4581a3753154fc5b41f39a098fad49b777b1", "rev": "cb169c4e06cec9b4349e3668427e729d22328a54",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -197,26 +197,26 @@
"hyprland": { "hyprland": {
"inputs": { "inputs": {
"hyprcursor": "hyprcursor", "hyprcursor": "hyprcursor",
"hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang_2", "hyprlang": "hyprlang_2",
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"systems": "systems_4", "systems": "systems_4",
"wlroots": "wlroots",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1714700359, "lastModified": 1716465152,
"narHash": "sha256-y5ecarXckRPV+K6cmfcWs/RiyvZbNZDkA5su9gEQ/6I=", "narHash": "sha256-5kspSEWu9qNNhGmTorSAIA7ociJpy0UpeDh/uZ9nwnY=",
"owner": "hyprwm", "ref": "refs/heads/main",
"repo": "Hyprland", "rev": "df80fbf70650dfb0d96381a1d86d30811cf516f4",
"rev": "387127b12ab5df8f8f40e8da7d76f47636562cab", "revCount": 4730,
"type": "github" "submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
}, },
"original": { "original": {
"owner": "hyprwm", "submodules": true,
"repo": "Hyprland", "type": "git",
"type": "github" "url": "https://github.com/hyprwm/Hyprland"
} }
}, },
"hyprland-plugins": { "hyprland-plugins": {
@@ -231,11 +231,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714613493, "lastModified": 1715722806,
"narHash": "sha256-OhEh+iBiDRMnMNTWz5cHhfg+63+F71DKM2Xj9a21rw0=", "narHash": "sha256-KrSLG2H3KGELxTFdiBhv8U6D53Q3UsJsQO+KgEabsNA=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland-plugins", "repo": "hyprland-plugins",
"rev": "18daf37b7c4e6e51ca2bf8953ce4cff1c38ca725", "rev": "c28d1011f4868c1a1ee80b10d9ee79900686df82",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -248,10 +248,12 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
"xdph",
"nixpkgs" "nixpkgs"
], ],
"systems": [ "systems": [
"hyprland", "hyprland",
"xdph",
"systems" "systems"
] ]
}, },
@@ -303,11 +305,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713121246, "lastModified": 1715791527,
"narHash": "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0=", "narHash": "sha256-HhQ4zvGHrRjR63ltySSeg+x+0jb0lepiutWdnFhLRoo=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlang", "repo": "hyprlang",
"rev": "78fcaa27ae9e1d782faa3ff06c8ea55ddce63706", "rev": "969cb076e5b76f2e823aeca1937a3e1f159812ee",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -347,11 +349,11 @@
"systems": "systems_6" "systems": "systems_6"
}, },
"locked": { "locked": {
"lastModified": 1714659497, "lastModified": 1716461934,
"narHash": "sha256-CJH9xc2y0AU+2GQSg2dubcPep/iIwb5f/cr2+0LGBWY=", "narHash": "sha256-5j/GfBVkgqGTlEA7s/6CBn0pKK6ohXQi38lkKeno/mA=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlock", "repo": "hyprlock",
"rev": "9cca0dbb45941e13322ff95796f486676f061c6e", "rev": "972c1c27e6b057e5e891b6ae9f5b2c83bac1e087",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -372,11 +374,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714589749, "lastModified": 1716058375,
"narHash": "sha256-zzkb5vc4n/YI5KHrMie7oMZlgCKxs7zm/ybVXNL02Z0=", "narHash": "sha256-CwjWoVnBZE5SBpRx9dgSQGCr4Goxyfcyv3zZbOhVqzk=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprwayland-scanner", "repo": "hyprwayland-scanner",
"rev": "c8c2151c607a036ddfc790f5f70237ab984266aa", "rev": "3afed4364790aebe0426077631af1e164a9650cc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -399,11 +401,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1714253743, "lastModified": 1716330097,
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=", "narHash": "sha256-8BO3B7e3BiyIDsaKA0tY8O88rClYRTjvAp66y+VBUeU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994", "rev": "5710852ba686cc1fd0d3b8e22b3117d43ba374c2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -447,11 +449,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1714635257, "lastModified": 1716330097,
"narHash": "sha256-4cPymbty65RvF1DWQfc+Bc8B233A1BWxJnNULJKQ1EY=", "narHash": "sha256-8BO3B7e3BiyIDsaKA0tY8O88rClYRTjvAp66y+VBUeU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "63c3a29ca82437c87573e4c6919b09a24ea61b0f", "rev": "5710852ba686cc1fd0d3b8e22b3117d43ba374c2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -562,29 +564,9 @@
"type": "github" "type": "github"
} }
}, },
"wlroots": {
"flake": false,
"locked": {
"lastModified": 1713731601,
"narHash": "sha256-bdcKdtLkusvv85DNuJsajZLFeq7bXp+x5AGP1Sd4wD8=",
"owner": "hyprwm",
"repo": "wlroots-hyprland",
"rev": "5c1d51c5a2793480f5b6c4341ad0797052aec2ea",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "wlroots-hyprland",
"rev": "5c1d51c5a2793480f5b6c4341ad0797052aec2ea",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": [ "hyprland-protocols": "hyprland-protocols",
"hyprland",
"hyprland-protocols"
],
"hyprlang": [ "hyprlang": [
"hyprland", "hyprland",
"hyprlang" "hyprlang"
@@ -599,11 +581,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1714060055, "lastModified": 1716290197,
"narHash": "sha256-j43TS9wv9luaAlpxcxw0sjxkbcc2mGANVR2RYgo3RCw=", "narHash": "sha256-1u9Exrc7yx9qtES2brDh7/DDZ8w8ap1nboIOAtCgeuM=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"rev": "0fe840441e43da12cd7865ed9aa8cdc35a8da85a", "rev": "91e48d6acd8a5a611d26f925e51559ab743bc438",
"type": "github" "type": "github"
}, },
"original": { "original": {
+1 -1
View File
@@ -8,7 +8,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland-plugins = { hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins"; url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland"; inputs.hyprland.follows = "hyprland";
+9 -8
View File
@@ -50,7 +50,6 @@
libsForQt5.polkit-kde-agent libsForQt5.polkit-kde-agent
libtool libtool
libreoffice libreoffice
minecraft
mpv mpv
fastfetch fastfetch
networkmanagerapplet networkmanagerapplet
@@ -63,12 +62,14 @@
prismlauncher prismlauncher
qbittorrent qbittorrent
signal-desktop signal-desktop
swayidle
swww swww
texliveFull texliveFull
thunderbird thunderbird
tree tree
wev wev
wl-clipboard
wl-copy
wl-paste
xdg-user-dirs xdg-user-dirs
# etcher ## Currently Uses Electron-19 -- which is marked EOL # etcher ## Currently Uses Electron-19 -- which is marked EOL
]; ];
@@ -160,10 +161,10 @@
recursive = true; recursive = true;
source = ../../modules/old_configs/river; source = ../../modules/old_configs/river;
}; };
"swaylock" = { # "swaylock" = {
recursive = true; # recursive = true;
source = ../../modules/old_configs/swaylock; # source = ../../modules/old_configs/swaylock;
}; # };
"waybar" = { "waybar" = {
recursive = true; recursive = true;
source = ../../modules/old_configs/waybar; source = ../../modules/old_configs/waybar;
@@ -237,7 +238,7 @@
obs-studio = { obs-studio = {
enable = true; enable = true;
}; };
swaylock.enable = true; # swaylock.enable = true;
waybar = { waybar = {
enable = true; enable = true;
systemd.enable = true; systemd.enable = true;
@@ -270,6 +271,6 @@
enableSshSupport = true; enableSshSupport = true;
}; };
nextcloud-client.enable = true; nextcloud-client.enable = true;
swayidle.enable = true; # swayidle.enable = true;
}; };
} }
+40 -25
View File
@@ -9,14 +9,14 @@
{ {
imports = with inputs; [ imports = with inputs; [
hypridle.homeManagerModules.default # hypridle.homeManagerModules.default
hyprlock.homeManagerModules.default # hyprlock.homeManagerModules.default
#hyprpaper.homeManagerModules.default # hyprpaper.homeManagerModules.default
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpicker hyprpicker
# hyprlock hyprlock
# hypridle hypridle
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
@@ -34,7 +34,7 @@
settings = { settings = {
monitor = [ monitor = [
"eDP-1,1920x1080@60,0x0,1" "eDP-1,1920x1080@60,0x0,1"
"HDMI-A-1,1920x1080@60,auto,1,mirror, eDP-1 " "HDMI-A-1,2550x1440@144,auto,1,mirror,eDP-1 "
",preferred,auto,1,mirror,eDP-1" ",preferred,auto,1,mirror,eDP-1"
]; ];
exec-once = [ exec-once = [
@@ -49,7 +49,7 @@
"XDG_CURRENT_DESKTOP,Hyprland" "XDG_CURRENT_DESKTOP,Hyprland"
"XDG_SESSION_TYPE,wayland" "XDG_SESSION_TYPE,wayland"
"XDG_SESSION_DESKTOP,Hyprland" "XDG_SESSION_DESKTOP,Hyprland"
"QT_QPA_PLATFORM,Hyprland" "QT_QPA_PLATFORM,Hyprland;xcb"
]; ];
input = { input = {
kb_layout = "us"; kb_layout = "us";
@@ -169,6 +169,8 @@
# used for screenshots # used for screenshots
"$screenshotarea" = "hyprctl keyword animation 'fadeOut,0,0,default'; grimblast --notify copy area; hyprctl keyword animation 'fadeOut,1,4,default'"; "$screenshotarea" = "hyprctl keyword animation 'fadeOut,0,0,default'; grimblast --notify copy area; hyprctl keyword animation 'fadeOut,1,4,default'";
# for locking screen
"$lock" = "${pkgs.systemd}/bin/loginctl lock-session;${pkgs.hyprlock}/bin/hyprlock";
bind = [ bind = [
# "$mainMod, grave, hyprexpo:expo, toggle" # can be: toggle, off/disable or on/enable # "$mainMod, grave, hyprexpo:expo, toggle" # can be: toggle, off/disable or on/enable
@@ -339,15 +341,24 @@
lib.inputMethod.fcitx5.waylandFrontend = true; lib.inputMethod.fcitx5.waylandFrontend = true;
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
general = { }; settings = {
backgrounds = [ general = {
disable_loading_bar = true;
hide_cursor = true;
no_fade_in = false;
grace = 10;
};
background = [
{ {
path = "/home/liamm/pictures/desert.png"; path = "/home/liamm/pictures/desert.png";
blur_passes = 2;
blur_size = 8;
} }
]; ];
input-fields = [ input-field = [
{ {
outline_thickness = 2; # size = "200, 50";
outline_thickness = 3;
outer_color = "#fe0b00"; outer_color = "#fe0b00";
inner_color = "#0c0c0c"; inner_color = "#0c0c0c";
font_color = "#efefef"; font_color = "#efefef";
@@ -358,45 +369,49 @@
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
} }
]; ];
labels = [ label = [
{ {
text = "$TIME"; text = "$TIME";
text_align = "center";
color = ""; color = "";
font_size = 28; font_size = 28;
font_family = builtins.head osConfig.fonts.fontconfig.defaultFonts.sansSerif; font_family = builtins.head osConfig.fonts.fontconfig.defaultFonts.sansSerif;
} }
]; ];
}; };
};
services = { services.hypridle = {
hypridle = {
enable = true; enable = true;
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; # avoid starting multiple sessions settings = {
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session"; # lock before suspend. general = {
afterSleepCmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # to avoid having to hit key twice to turn on display lock_cmd = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; # avoid starting multiple sessions
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session"; # lock before suspend.
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # to avoid having to hit key twice to turn on display
};
listeners = [ listeners = [
{ {
timeout = 120; timeout = 120;
onTimeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor. on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
onResume = "${pkgs.brightnessctl}/bin/brightnessctl -r"; # monitor backlight restor. on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r"; # monitor backlight restor.
} }
{ {
timeout = 120; timeout = 120;
onTimeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight. on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0"; # turn off keyboard backlight.
onResume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight. on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight"; # turn on keyboard backlight.
} }
{ {
timeout = 180; timeout = 180;
onTimeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock screen when timeout has passed on-timeout = "${pkgs.systemd}/bin/loginctl lock-session"; # lock screen when timeout has passed
} }
{ {
timeout = 300; timeout = 300;
onTimeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; # screen off when timeout has passed on-timeout = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; # screen off when timeout has passed
onResume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired. on-resume = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
} }
{ {
timeout = 300; timeout = 300;
onTimeout = "${pkgs.systemd}/bin/systemctl suspend"; # suspend pc on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; # suspend pc
} }
]; ];
}; };