[hypnos] 重构配置结构, 增加 flake 编写相关配置
This commit is contained in:
+37
-2
@@ -1,4 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.homeDirectory = "/Users/origami";
|
home.homeDirectory = "/Users/origami";
|
||||||
@@ -8,7 +13,6 @@
|
|||||||
../modules/shell.nix
|
../modules/shell.nix
|
||||||
../modules/shell-develop.nix
|
../modules/shell-develop.nix
|
||||||
../modules/zsh.nix
|
../modules/zsh.nix
|
||||||
../modules/darwin-packages.nix
|
|
||||||
../modules/llm.nix
|
../modules/llm.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -17,4 +21,35 @@
|
|||||||
};
|
};
|
||||||
# 外壳同款配色
|
# 外壳同款配色
|
||||||
programs.zsh.initContent = "zstyle ':prompt:grml:*:items:user' pre '%F{#82C8E5}'";
|
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
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.packages =
|
|
||||||
(with pkgs; [
|
|
||||||
autoconf
|
|
||||||
coreutils
|
|
||||||
gawk
|
|
||||||
gnused
|
|
||||||
gnutar
|
|
||||||
gnugrep
|
|
||||||
gnumake
|
|
||||||
pkgconf
|
|
||||||
unar
|
|
||||||
|
|
||||||
codex
|
|
||||||
|
|
||||||
helix
|
|
||||||
uv
|
|
||||||
typst
|
|
||||||
pandoc
|
|
||||||
])
|
|
||||||
;
|
|
||||||
}
|
|
||||||
@@ -76,7 +76,6 @@
|
|||||||
home-manager
|
home-manager
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
nixd
|
nixd
|
||||||
nixpkgs-fmt
|
|
||||||
nix-index
|
nix-index
|
||||||
nix-tree
|
nix-tree
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user