mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-17 07:44:41 +04:00
nix-update
This commit is contained in:
parent
94da1ce936
commit
284b131058
24 changed files with 7276 additions and 161 deletions
|
|
@ -1,50 +1,67 @@
|
|||
{ pkgs
|
||||
, config
|
||||
, lib
|
||||
, inputs
|
||||
, rootPath
|
||||
, ...
|
||||
}@args:
|
||||
{
|
||||
home.stateVersion = "24.05";
|
||||
}:
|
||||
let
|
||||
cfg = config.kp2pml30;
|
||||
in {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "kp2pml30";
|
||||
homeDirectory = "/home/kp2pml30";
|
||||
packages = with pkgs; [
|
||||
starship
|
||||
jq
|
||||
];
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.backupFileExtension = "bak";
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
frequency = "weekly";
|
||||
};
|
||||
home-manager.users.${cfg.username} = {
|
||||
home = {
|
||||
stateVersion = "24.05";
|
||||
username = cfg.username;
|
||||
homeDirectory = "/home/${cfg.username}";
|
||||
packages = with pkgs; [
|
||||
jq
|
||||
];
|
||||
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "kp2pml30";
|
||||
userEmail = "kp2pml30@gmail.com";
|
||||
lfs.enable = true;
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
sessionVariables = {
|
||||
TERMINAL = "kitty";
|
||||
};
|
||||
};
|
||||
|
||||
fish = {
|
||||
enable = true;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
frequency = "weekly";
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
format = "$cmd_duration$username$hostname$git_branch$git_commit$git_state$git_status$directory$status\n$character";
|
||||
hostname.ssh_only = true;
|
||||
cmd_duration.format = "took [$duration]($style)\n";
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = cfg.username;
|
||||
userEmail = "kp2pml30@gmail.com";
|
||||
lfs.enable = true;
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
|
||||
fish = {
|
||||
enable = true;
|
||||
shellInitLast = builtins.readFile (rootPath + "/home/.config/fish/minimal.fish");
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
format = "$cmd_duration$username$hostname$git_branch$git_commit$git_state$git_status$directory$status\n$character";
|
||||
hostname.ssh_only = true;
|
||||
cmd_duration.format = "took [$duration]($style)\n";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.enable = true;
|
||||
};
|
||||
|
||||
home-manager.enable = true;
|
||||
|
||||
neovim = import ./neovim.nix args;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue