feat: nixos configs & docs

This commit is contained in:
Ryan Yin
2023-04-23 01:30:45 +08:00
committed by ryan4yin
parent 13efbb259e
commit 699f541539
74 changed files with 16056 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
{
pkgs,
config,
...
}: {
# i3 配置,基于 https://github.com/endeavouros-team/endeavouros-i3wm-setup
# 直接从当前文件夹中读取配置文件作为配置内容
# wallpaper, binary file
home.file.".config/i3/wallpaper.jpg".source = ../../wallpaper.jpg;
home.file.".config/i3/config".source = ./config;
home.file.".config/i3/i3blocks.conf".source = ./i3blocks.conf;
home.file.".config/i3/keybindings".source = ./keybindings;
home.file.".config/i3/scripts" = {
source = ./scripts;
# copy the scripts directory recursively
recursive = true;
executable = true; # make all scripts executable
};
# 直接以 text 的方式,在 nix 配置文件中硬编码文件内容
# home.file.".xxx".text = ''
# xxx
# '';
}