Skip to content

Commit

Permalink
edit for personal
Browse files Browse the repository at this point in the history
  • Loading branch information
qixyuan committed May 18, 2024
1 parent 2fa7b95 commit 20b6057
Show file tree
Hide file tree
Showing 13 changed files with 169 additions and 52 deletions.
80 changes: 40 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions home/base/core/btop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
theme_background = false; # make btop transparent
};
};
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
}
2 changes: 1 addition & 1 deletion home/base/core/yazi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Changing working directory when exiting Yazi
enableBashIntegration = true;
# TODO: nushellIntegration is broken on release-23.11, wait for master's fix to be released
enableNushellIntegration = false;
enableNushellIntegration = true;
};

xdg.configFile."yazi/theme.toml".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-yazi}/mocha.toml";
Expand Down
1 change: 1 addition & 0 deletions home/base/tui/editors/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
requests
pyquery
pyyaml
boto3

## emacs's lsp-bridge dependenciesge
epc
Expand Down
2 changes: 1 addition & 1 deletion home/linux/gui/base/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
telegram-desktop
discord
pkgs-unstable.qq # https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/networking/instant-messengers/qq

wechat-uos
# remote desktop(rdp connect)
remmina
freerdp # required by remmina
Expand Down
5 changes: 2 additions & 3 deletions home/linux/gui/hyprland/conf/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ dwindle {
}

monitor = eDP-1,2560x1440@165,auto,1
monitor = HDMI-A-1,2560x1440@144,auto,1,bitdepth,10
#-- Window Rules ----------------------------------------------------
windowrule=float,foot-float
windowrule=float,yad|nm-connection-editor|pavucontrolk
Expand Down Expand Up @@ -196,6 +197,4 @@ exec-once=~/.config/hypr/scripts/startup
exec-once=cp ~/.config/fcitx5/profile-bak ~/.config/fcitx5/profile # restore fcitx5 profile managed by nixos
exec-once=fcitx5 -d --replace # start fcitx5 daemon
bind=ALT,E,exec,pkill fcitx5 -9;sleep 1;fcitx5 -d --replace; sleep 1;fcitx5-remote -r
windowrulev2 = stayfocused, class:(Rofi) #fixed focus
exec-once = nm-applet

windowrulev2 = stayfocused, class:(Rofi) #fixed focus
10 changes: 6 additions & 4 deletions hosts/idols-ai/impermanence.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"codes"
"nix-config"
"tmp"

"Downloads"
"Music"
"Pictures"
Expand Down Expand Up @@ -114,16 +114,17 @@
".config/Code/User"
".config/Code - Insiders/User"



# browsers
".mozilla"
".config/google-chrome"
".config/Kingsoft"

# neovim / remmina / flatpak / ...
".local/share"
".local/state"

".cache/JetBrains"

# language package managers
".npm"
".conda" # generated by `conda-shell`
Expand All @@ -139,7 +140,8 @@
files = [
".wakatime.cfg"
".config/nushell/history.txt"
".cache/rofi.druncache"
".cache/rofi3.druncache"
".cache/rofi-entry-history.txt"
];
};
};
Expand Down
66 changes: 66 additions & 0 deletions modules/nixos/base/nix-ld.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{ pkgs, self, ... }:
{
# Enable nix ld
programs.nix-ld.enable = true;
programs.nix-ld.package = pkgs.nix-ld-rs;

programs.nix-ld.libraries = with pkgs; [
alsa-lib
at-spi2-atk
at-spi2-core
atk
cairo
cups
curl
cudatoolkit
dbus
expat
fontconfig
freetype
fuse3
gdk-pixbuf
glib
gtk3
icu
libGL
libappindicator-gtk3
libdrm
libglvnd
libnotify
libpulseaudio
libunwind
libusb1
libuuid
libxkbcommon
libxml2
libkrb5
linuxPackages.nvidia_x11
mesa
nspr
nss
ncurses5
openssl
pango
pipewire
stdenv.cc.cc
systemd
vulkan-loader
xorg.libX11
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
xorg.libxcb
xorg.libxkbfile
xorg.libxshmfence
zlib
wayland

];
}
1 change: 0 additions & 1 deletion modules/nixos/base/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# Manual optimise storage: nix-store --optimise
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
nix.settings.auto-optimise-store = true;
programs.nix-ld.enable = true;

nix.channel.enable = false; # remove nix-channel related tools & configs, we use flakes instead.
}
6 changes: 4 additions & 2 deletions modules/nixos/desktop/fonts.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{pkgs, ...}: {
{pkgs, ...}:
{
# all fonts are linked to /nix/var/nix/profiles/system/sw/share/X11/fonts
fonts = {
# use fonts specified by user rather than default ones
Expand All @@ -9,7 +10,8 @@
# icon fonts
material-design-icons
font-awesome


nur.repos.rewine.ttf-wps-fonts
# Noto 系列字体是 Google 主导的,名字的含义是「没有豆腐」(no tofu),因为缺字时显示的方框或者方框被叫作 tofu
# Noto 系列字族名只支持英文,命名规则是 Noto + Sans 或 Serif + 文字名称。
# 其中汉字部分叫 Noto Sans/Serif CJK SC/TC/HK/JP/KR,最后一个词是地区变种。
Expand Down
9 changes: 9 additions & 0 deletions modules/nixos/desktop/myfonts/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ pkgs, ... }:
let
ttf-ms-fonts = pkgs.callPackage ./ttf-ms-fonts.nix {};
in
{
environment.systemPackages = with pkgs; [
ttf-ms-fonts
];
}
Loading

0 comments on commit 20b6057

Please sign in to comment.