fix the xdg portal configuration, making screensharing work

This commit is contained in:
cydiralis 2025-06-26 12:52:45 +01:00
parent 2d55290697
commit 1d212fcefd
No known key found for this signature in database
7 changed files with 39 additions and 9 deletions

View file

@ -23,6 +23,8 @@
security.sudo.package = pkgs.sudo.override { withInsults = true; }; security.sudo.package = pkgs.sudo.override { withInsults = true; };
programs.steam.extraCompatPackages = with pkgs; [ proton-ge-rtsp-bin ];
programs = { programs = {
adb.enable = true; adb.enable = true;
gamescope = { gamescope = {

View file

@ -21,6 +21,7 @@
services.wivrn.enable = true; services.wivrn.enable = true;
services.wivrn.openFirewall = true; services.wivrn.openFirewall = true;
services.wivrn.defaultRuntime = true; services.wivrn.defaultRuntime = true;
programs.steam.extraCompatPackages = with pkgs; [ proton-ge-rtsp-bin ];
powerManagement.cpuFreqGovernor = "performance"; powerManagement.cpuFreqGovernor = "performance";
# Bootloader. # Bootloader.

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, inputs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
@ -86,10 +86,6 @@
NetworkManager.requires = ["ModemManager.service"]; NetworkManager.requires = ["ModemManager.service"];
}; };
programs.niri = {
enable = true;
package = inputs.niri.packages.${pkgs.stdenv.hostPlatform.system}.niri-unstable;
};
services.tlp.enable = true; services.tlp.enable = true;
services.tlp.settings = { services.tlp.settings = {
CPU_SCALING_GOVERNOR_ON_BAT = "ondemand"; CPU_SCALING_GOVERNOR_ON_BAT = "ondemand";

24
base/callisto/keymap.kbd Normal file
View file

@ -0,0 +1,24 @@
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet cmp rctl
)
(deflayer qwerty
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
@ext a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet cmp rctl
)
(defalias
ext (layer-toggle extend)
)
(deflayer extend
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q up e ~ t y u i o p [ ] \
caps left down right f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet KeyPreviousSong KeyPlayPause KeyNextSong rmet cmp rctl
)

View file

@ -59,7 +59,6 @@
] ++ config.fonts.packages; ] ++ config.fonts.packages;
extraCompatPackages = with pkgs; [ extraCompatPackages = with pkgs; [
steamtinkerlaunch steamtinkerlaunch
proton-ge-rtsp-bin
proton-ge-bin proton-ge-bin
]; ];
remotePlay.openFirewall = true; # Open ports in the fire> remotePlay.openFirewall = true; # Open ports in the fire>

View file

@ -109,7 +109,7 @@
nixosConfigurations."hassie" = nixpkgs.lib.nixosSystem { nixosConfigurations."hassie" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./base/Katara ./base/hassie
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
#imports = [ inputs.nix-index-database.hmModules.nix-index ]; #imports = [ inputs.nix-index-database.hmModules.nix-index ];
home-manager.backupFileExtension = "hm-backup"; home-manager.backupFileExtension = "hm-backup";
@ -118,6 +118,7 @@
vars = { vars = {
isNixOS = true; isNixOS = true;
isTough = true; isTough = true;
useSyncthing = false;
class = "laptop"; class = "laptop";
user = "alyx"; #cursed way of setting username user = "alyx"; #cursed way of setting username
}; };
@ -137,6 +138,7 @@
inherit inputs; inherit inputs;
vars = { vars = {
isNixOS = true; isNixOS = true;
isTough = true;
class = "lowspec"; class = "lowspec";
user = "maya"; user = "maya";
useSyncthing = true; useSyncthing = true;
@ -151,7 +153,7 @@
nixosConfigurations."patio" = nixpkgs.lib.nixosSystem { nixosConfigurations."patio" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./base/Ishima ./base/patio
nixpkgs-xr.nixosModules.nixpkgs-xr nixpkgs-xr.nixosModules.nixpkgs-xr
jovian.nixosModules.jovian jovian.nixosModules.jovian
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
@ -162,6 +164,7 @@
vars = { vars = {
isNixOS = true; isNixOS = true;
isTough = false; isTough = false;
useSyncthing = false;
class = "handheld"; class = "handheld";
user = "alyx"; #cursed way of setting username user = "alyx"; #cursed way of setting username
}; };
@ -175,7 +178,7 @@
nixosConfigurations."umbriel" = nixpkgs.lib.nixosSystem { nixosConfigurations."umbriel" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./base/Umbriel ./base/umbriel
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
#imports = [ inputs.nix-index-database.hmModules.nix-index ]; #imports = [ inputs.nix-index-database.hmModules.nix-index ];
home-manager.backupFileExtension = "hm-backup"; home-manager.backupFileExtension = "hm-backup";
@ -184,6 +187,7 @@
vars = { vars = {
isNixOS = true; isNixOS = true;
isTough = false; isTough = false;
useSyncthing = false;
class = "laptop"; class = "laptop";
user = "alyx"; #cursed way of setting username user = "alyx"; #cursed way of setting username
}; };

View file

@ -2,6 +2,10 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
config.niri = { config.niri = {
default = ["gnome" "gtk"];
"org.freedesktop.impl.portal.Access" = [ "gtk" ];
"org.freedesktop.impl.portal.Notification" = [ "gtk" ];
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
}; };
extraPortals = with pkgs; [ extraPortals = with pkgs; [