feat: migrate x11/wayland related apps into i3/hyprland folder

This commit is contained in:
ryan4yin
2023-05-26 00:01:09 +08:00
parent 5503e7bac0
commit c694c81215
7 changed files with 53 additions and 7 deletions
-58
View File
@@ -1,58 +0,0 @@
{
pkgs,
nixpkgs-stable,
config,
nil,
...
}: let
pkgs-stable = import nixpkgs-stable {
system = pkgs.system;
config.allowUnfree = true;
};
in {
home.packages = with pkgs-stable; [
firefox-wayland # firefox with wayland support
# firefox
nil.packages."${pkgs.system}".default # nix language server
];
# TODO vscode & chrome both have wayland support, but they don't work with fcitx5, need to fix it.
programs = {
# source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix
google-chrome = {
enable = true;
# chrome wayland support was broken on nixos-unstable branch, so fallback to stable branch for now
# https://github.com/swaywm/sway/issues/7562
package = pkgs-stable.google-chrome;
commandLineArgs = [
# make it use GTK_IM_MODULE if it runs with Gtk4, so fcitx5 can work with it.
# (only supported by chromium/chrome at this time, not electron)
"--gtk-version=4"
# make it use text-input-v1, which works for kwin 5.27 and weston
# "--enable-wayland-ime"
# enable hardware acceleration - vulkan api
# "--enable-features=Vulkan"
];
};
vscode = {
enable = true;
# use the stable version
package = pkgs-stable.vscode.override {
commandLineArgs = [
# make it use text-input-v1, which works for kwin 5.27 and weston
# "--enable-wayland-ime"
];
};
# let vscode sync and update its configuration & extensions across devices, using github account.
# userSettings = {};
};
};
}
+3 -1
View File
@@ -1,4 +1,4 @@
{pkgs, config, ...}:
{pkgs, config, nil, ...}:
{
@@ -29,6 +29,8 @@
obsidian
hugo
nil.packages."${pkgs.system}".default # nix language server
# IDE
insomnia
jetbrains.pycharm-community
-1
View File
@@ -4,7 +4,6 @@
...
}: {
imports = [
./browsers.nix
./common.nix
./git.nix
./media.nix