Update system

This commit is contained in:
outfoxxed 2024-01-01 21:15:39 -08:00
parent 84b5700555
commit b222c15014
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
10 changed files with 150 additions and 209 deletions

View file

@ -1,11 +1,12 @@
{ system, inputs, impurity, lib, config, pkgs, ... }: let
inherit (inputs) hyprland hyprpaper hyprland-hy3;
wrapper = pkgs.writeShellScriptBin "hyprland" ''
# I blame home manager
wrapper = pkgs.callPackage ({ ... }: pkgs.writeShellScriptBin "hyprland" ''
${builtins.readFile ./session.sh}
${config.hyprland-session.prerun}
${hyprland.packages.${system}.default}/bin/Hyprland $@
'';
'') {};
in {
imports = [ hyprland.nixosModules.default ];
@ -31,10 +32,15 @@ in {
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-kde
];
config.common.default = [
"hyprland"
"kde"
];
};
security.pam.services.swaylock = {};
@ -44,6 +50,7 @@ in {
home.packages = with pkgs; [
wrapper
hyprpaper
# environment programs
wl-clipboard
@ -68,7 +75,7 @@ in {
enable = true;
package = wrapper;
plugins = [ hyprland-hy3.packages.${system}.default ];
plugins = [ hyprland-hy3.packages.${system}.default inputs.hyprfocus.packages.${system}.default ];
extraConfig = ''
exec-once = ${hyprpaper.packages.${system}.default}/bin/hyprpaper