mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 09:02:40 +02:00
feat: migrate x11/wayland related apps into i3/hyprland folder
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
./wayland-apps.nix
|
||||||
|
];
|
||||||
|
|
||||||
# hyprland configs, based on https://github.com/notwidow/hyprland
|
# hyprland configs, based on https://github.com/notwidow/hyprland
|
||||||
home.file.".config/hypr" = {
|
home.file.".config/hypr" = {
|
||||||
source = ./hypr-conf;
|
source = ./hypr-conf;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
nixpkgs-stable,
|
nixpkgs-stable,
|
||||||
config,
|
config,
|
||||||
nil,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pkgs-stable = import nixpkgs-stable {
|
pkgs-stable = import nixpkgs-stable {
|
||||||
@@ -12,9 +11,6 @@
|
|||||||
in {
|
in {
|
||||||
home.packages = with pkgs-stable; [
|
home.packages = with pkgs-stable; [
|
||||||
firefox-wayland # firefox with wayland support
|
firefox-wayland # firefox with wayland support
|
||||||
# firefox
|
|
||||||
|
|
||||||
nil.packages."${pkgs.system}".default # nix language server
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -7,6 +7,10 @@
|
|||||||
# i3 配置,基于 https://github.com/endeavouros-team/endeavouros-i3wm-setup
|
# i3 配置,基于 https://github.com/endeavouros-team/endeavouros-i3wm-setup
|
||||||
# 直接从当前文件夹中读取配置文件作为配置内容
|
# 直接从当前文件夹中读取配置文件作为配置内容
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./x11-apps.nix
|
||||||
|
];
|
||||||
|
|
||||||
# wallpaper, binary file
|
# wallpaper, binary file
|
||||||
home.file.".config/i3/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
home.file.".config/i3/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
||||||
home.file.".config/i3/config".source = ./config;
|
home.file.".config/i3/config".source = ./config;
|
||||||
|
|||||||
@@ -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 = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, config, ...}:
|
{pkgs, config, nil, ...}:
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -29,6 +29,8 @@
|
|||||||
obsidian
|
obsidian
|
||||||
hugo
|
hugo
|
||||||
|
|
||||||
|
nil.packages."${pkgs.system}".default # nix language server
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
insomnia
|
insomnia
|
||||||
jetbrains.pycharm-community
|
jetbrains.pycharm-community
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./browsers.nix
|
|
||||||
./common.nix
|
./common.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./media.nix
|
./media.nix
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ in rec {
|
|||||||
LESSHISTFILE = cache + "/less/history";
|
LESSHISTFILE = cache + "/less/history";
|
||||||
LESSKEY = c + "/less/lesskey";
|
LESSKEY = c + "/less/lesskey";
|
||||||
WINEPREFIX = d + "/wine";
|
WINEPREFIX = d + "/wine";
|
||||||
XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
|
||||||
|
# set this variable make i3 failed to start
|
||||||
|
# related issue:
|
||||||
|
# https://github.com/sddm/sddm/issues/871
|
||||||
|
# XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority";
|
||||||
|
|
||||||
# set default applications
|
# set default applications
|
||||||
BROWSER = "firefox";
|
BROWSER = "firefox";
|
||||||
|
|||||||
Reference in New Issue
Block a user