chore: add xdg-desktop-portal-wlr
This commit is contained in:
parent
f3e4546aba
commit
9f5e11bd3d
|
@ -6,16 +6,18 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# networking
|
||||||
networking.hostName = "neodymium";
|
networking.hostName = "neodymium";
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# use systemd-boot EFI boot loader
|
# use systemd-boot EFI boot loader
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# configure hardware
|
# hardware
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
opengl = {
|
opengl = {
|
||||||
|
@ -24,8 +26,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# internationalisation
|
# internationalisation
|
||||||
time.timeZone = "Europe/Paris";
|
time.timeZone = "Europe/Paris";
|
||||||
i18n.defaultLocale = "en_DK.UTF-8";
|
i18n.defaultLocale = "en_DK.UTF-8";
|
||||||
|
@ -33,11 +33,13 @@
|
||||||
keyMap = "fr";
|
keyMap = "fr";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# fonts
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
fira-code fira-code-symbols
|
fira-code fira-code-symbols
|
||||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# audio
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
@ -48,12 +50,10 @@
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
extraPortals = [
|
||||||
};
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
pkgs.xdg-desktop-portal-wlr
|
||||||
programs.sway = {
|
];
|
||||||
enable = true;
|
|
||||||
wrapperFeatures.gtk = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
rsync
|
rsync
|
||||||
pwgen
|
pwgen
|
||||||
neovim
|
neovim
|
||||||
|
|
||||||
baobab
|
baobab
|
||||||
alacritty
|
alacritty
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
@ -239,7 +239,7 @@
|
||||||
{ command = "element-desktop"; }
|
{ command = "element-desktop"; }
|
||||||
{ command = "thunderbird"; }
|
{ command = "thunderbird"; }
|
||||||
{ command = "webcord"; }
|
{ command = "webcord"; }
|
||||||
{
|
{
|
||||||
command = ''
|
command = ''
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 100 'swaylock -f --grace 3' \
|
timeout 100 'swaylock -f --grace 3' \
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * dpms on"' \
|
||||||
timeout 300 'systemctl suspend' \
|
timeout 300 'systemctl suspend' \
|
||||||
before-sleep 'swaylock -f'
|
before-sleep 'swaylock -f'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
keybindings = {
|
keybindings = {
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
"${modifier}+KP_Up" = "workspace 18";
|
"${modifier}+KP_Up" = "workspace 18";
|
||||||
"${modifier}+KP_Prior" = "workspace 19";
|
"${modifier}+KP_Prior" = "workspace 19";
|
||||||
"${modifier}+KP_Insert" = "workspace 20";
|
"${modifier}+KP_Insert" = "workspace 20";
|
||||||
|
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
"${modifier}+Shift+ampersand" = "move container to workspace number 1";
|
"${modifier}+Shift+ampersand" = "move container to workspace number 1";
|
||||||
"${modifier}+Shift+eacute" = "move container to workspace number 2";
|
"${modifier}+Shift+eacute" = "move container to workspace number 2";
|
||||||
|
|
Loading…
Reference in a new issue