home managing, attempt 2
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
home.file = {
|
||||
".profile".text = ''
|
||||
bash /home/k3t/.car/init.sh
|
||||
'';
|
||||
".car/init.sh".source = ../hosts/pi-car/scripts/init.sh;
|
||||
};
|
||||
#programs.zsh.loginExtra = "bash /home/k3t/.car/init.sh";
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "k3t";
|
||||
userEmail = "k3t@k3t.dev";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
programs.htop.settings = {
|
||||
color_scheme = 0;
|
||||
cpu_count_from_one = 0;
|
||||
delay = 1;
|
||||
fields = with config.lib.htop.fields; [
|
||||
PID
|
||||
USER
|
||||
PRIORITY
|
||||
NICE
|
||||
M_SIZE
|
||||
M_RESIDENT
|
||||
M_SHARE
|
||||
STATE
|
||||
PERCENT_CPU
|
||||
PERCENT_MEM
|
||||
TIME
|
||||
COMM
|
||||
];
|
||||
highlight_base_name = 1;
|
||||
highlight_megabytes = 1;
|
||||
highlight_threads = 1;
|
||||
detailed_cpu_time = 1;
|
||||
show_cpu_usage = 1;
|
||||
show_cpu_frequency = 1;
|
||||
show_cpu_temperature = 1;
|
||||
} // (with config.lib.htop; leftMeters [
|
||||
(bar "AllCPUs2")
|
||||
(bar "Memory")
|
||||
(bar "Swap")
|
||||
(text "Zram")
|
||||
]) // (with config.lib.htop; rightMeters [
|
||||
(text "Tasks")
|
||||
(text "LoadAverage")
|
||||
(text "Uptime")
|
||||
(text "Systemd")
|
||||
]);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableVteIntegration = true;
|
||||
autocd = true;
|
||||
autosuggestion.enable = true;
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git" "sudo"
|
||||
];
|
||||
theme = "agnoster";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./cfg/git.nix
|
||||
./cfg/htop.nix
|
||||
./cfg/zsh.nix
|
||||
];
|
||||
|
||||
home.username = "k3t";
|
||||
home.homeDirectory = "/home/k3t";
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user