初步配置,等 GPD 到货后根据实际情况调整

This commit is contained in:
Sense T
2023-06-21 13:29:28 +08:00
parent 5c2b9a3cfa
commit d1f1cb7715
13 changed files with 316 additions and 1 deletions

3
home/default.nix Normal file
View File

@@ -0,0 +1,3 @@
{
user = import ./user;
}

11
home/user/default.nix Normal file
View File

@@ -0,0 +1,11 @@
{pkgs, ...}: {
home = import ./home.nix;
programs = import ./programs.nix;
systemd.user.services = import ./sevices.nix;
i18n.inputMethod.enabled = "fcitx5";
i18n.inputMethod.fcitx5.addons = with pkgs; [
fcitx5-configtool
fcitx5-gtk
];
}

27
home/user/home.nix Normal file
View File

@@ -0,0 +1,27 @@
{pkgs, ...}: {
stateVersion = "23.05"; # Static
username = "GPD User";
homeDirectory = "/home/user";
packages = with pkgs; [
btop
bat
thefuck
ranger
icdiff
podman
jdk17
];
shellAliases = {
cao = "fuck";
top = "btop";
ls = "ls --color=auto";
cat = "bat -p --paging=never -u";
diff="icdiff";
};
file = {
# TODO: hyprland
};
}

39
home/user/programs.nix Normal file
View File

@@ -0,0 +1,39 @@
{pkgs, ...}: {
home-manager.enable = true;
vim = {
enable = true;
defaultEditor = true;
};
zsh = {
enable = true;
enableSyntaxHighlighting = true;
oh-my-zsh = {
enable = true;
plugins = [ "sudo" "git" "golang" "thefuck" "kubectl" "emoji" "pip" "npm" "yarn" "vscode" ];
theme = "agnoster";
};
};
waybar = {
enable = true;
systemd.enable = true;
settings = {
};
style = ''
'';
};
kitty = {
enable = true;
font = pkgs.
shellIntegration = {
enableZshIntegration = true;
};
};
}

4
home/user/services.nix Normal file
View File

@@ -0,0 +1,4 @@
# Will used for podman
{
}