Update system
This commit is contained in:
parent
84b5700555
commit
b222c15014
10 changed files with 150 additions and 209 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue