[hypnos] 重构配置结构, 增加 flake 编写相关配置

This commit is contained in:
2026-01-19 13:10:34 +08:00
parent 01197656cd
commit e195cbc591
3 changed files with 37 additions and 26 deletions
+37 -2
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
home.homeDirectory = "/Users/origami";
@@ -8,7 +13,6 @@
../modules/shell.nix
../modules/shell-develop.nix
../modules/zsh.nix
../modules/darwin-packages.nix
../modules/llm.nix
];
@@ -17,4 +21,35 @@
};
# 外壳同款配色
programs.zsh.initContent = "zstyle ':prompt:grml:*:items:user' pre '%F{#82C8E5}'";
# 包
home.packages = (
with pkgs;
[
# 标准 GNU 工具
autoconf
coreutils
gawk
gnused
gnutar
gnugrep
gnumake
pkgconf
unar
# 命令行小工具
helix
uv
typst
pandoc
# NixOS
nix-output-monitor
nixd
nixfmt
nixpkgs-fmt
nix-index
nix-tree
]
);
}
-23
View File
@@ -1,23 +0,0 @@
{ pkgs, ... }:
{
home.packages =
(with pkgs; [
autoconf
coreutils
gawk
gnused
gnutar
gnugrep
gnumake
pkgconf
unar
codex
helix
uv
typst
pandoc
])
;
}