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
+4
View File
@@ -7,6 +7,10 @@
# i3 配置,基于 https://github.com/endeavouros-team/endeavouros-i3wm-setup
# 直接从当前文件夹中读取配置文件作为配置内容
imports = [
./x11-apps.nix
];
# wallpaper, binary file
home.file.".config/i3/wallpaper.png".source = ../wallpapers/wallpaper.png;
home.file.".config/i3/config".source = ./config;
+37
View File
@@ -0,0 +1,37 @@
{
pkgs,
...
}: {
home.packages = with pkgs; [
firefox
];
# 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.google-chrome;
# commandLineArgs = [
# ];
};
vscode = {
enable = true;
# use the stable version
# package = pkgs.vscode.override {
# commandLineArgs = [
# ];
# };
# let vscode sync and update its configuration & extensions across devices, using github account.
# userSettings = {};
};
};
}