diff --git a/flake.nix b/flake.nix index a0ccd92..5f987c9 100644 --- a/flake.nix +++ b/flake.nix @@ -504,7 +504,6 @@ ]; }; environment.systemPackages = with pkgs; [ - ghostty.outputs.packages.${pkgs.system}.ghostty fw-ectool (writeShellApplication { diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 4212b0a..cc96a87 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -1211,23 +1211,23 @@ home.packages = with pkgs; [ niri fuzzel - xdg-desktop-portal-gnome - xdg-desktop-portal-gtk + # xdg-desktop-portal-gnome + # xdg-desktop-portal-gtk ]; services.gnome-keyring.enable = true; - xdg.portal = { - enable = true; - extraPortals = with pkgs; [xdg-desktop-portal-gtk xdg-desktop-portal-gnome]; - config = { - common = { - default = ["gtk"]; - }; - niri = { - default = ["gtk"]; - }; - }; - }; + # xdg.portal = { + # enable = true; + # extraPortals = with pkgs; [xdg-desktop-portal-gtk xdg-desktop-portal-gnome]; + # config = { + # common = { + # default = ["gtk"]; + # }; + # niri = { + # default = ["gtk"]; + # }; + # }; + # }; home.file."${config.xdg.configHome}/niri" = { source = config.lib.file.mkOutOfStoreSymlink /etc/nix/flake/modules/home-manager/niri; diff --git a/modules/home-manager/niri/config.kdl b/modules/home-manager/niri/config.kdl index a0f9df1..21d9945 100644 --- a/modules/home-manager/niri/config.kdl +++ b/modules/home-manager/niri/config.kdl @@ -3,6 +3,11 @@ // Check the wiki for a full description of the configuration: // https://github.com/YaLTeR/niri/wiki/Configuration:-Overview +switch-events { + lid-close { spawn "swaylock"; } + // lid-open { spawn "notify-send" "The laptop lid is open!"; } +} + // Input device configuration. // Find the full list of options on the wiki: // https://github.com/YaLTeR/niri/wiki/Configuration:-Input diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 58b1fa5..a80837a 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -35,7 +35,7 @@ }; }; - security.pam.services.swaylock = {}; + # security.pam.services.swaylock = {}; programs.dconf.enable = pkgs.lib.mkDefault true; fonts.enableDefaultPackages = pkgs.lib.mkDefault true; security.polkit.enable = true; @@ -275,6 +275,8 @@ }; systemPackages = with pkgs; [ aria2 + iputils + inetutils curl dua bat