初步配置,等 GPD 到货后根据实际情况调整
This commit is contained in:
3
home/default.nix
Normal file
3
home/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
user = import ./user;
|
||||
}
|
11
home/user/default.nix
Normal file
11
home/user/default.nix
Normal 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
27
home/user/home.nix
Normal 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
39
home/user/programs.nix
Normal 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
4
home/user/services.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
# Will used for podman
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user