feat: added git and btop
This commit is contained in:
parent
5b7e7152dd
commit
04973612eb
3 changed files with 92 additions and 1 deletions
35
modules/features/terminal/btop.nix
Normal file
35
modules/features/terminal/btop.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{ self, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
# btop module declaration
|
||||||
|
flake.modules.nixos.btop = { ... }: {
|
||||||
|
|
||||||
|
# for home manager functionality
|
||||||
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
# home manager options
|
||||||
|
home-manager.users.serenity = {
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
|
||||||
|
btop = {
|
||||||
|
|
||||||
|
# enables btop
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# btop settings
|
||||||
|
settings = {
|
||||||
|
color_theme = "adapta";
|
||||||
|
theme_background = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -23,8 +23,11 @@
|
||||||
# shell and prompt
|
# shell and prompt
|
||||||
#self.nixosModules.fish
|
#self.nixosModules.fish
|
||||||
|
|
||||||
|
# system monitor
|
||||||
|
self.nixosModules.btop
|
||||||
|
|
||||||
# version control
|
# version control
|
||||||
#self.nixosModules.git
|
self.nixosModules.git
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
53
modules/features/terminal/git.nix
Normal file
53
modules/features/terminal/git.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
{ self, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
# git module declaration
|
||||||
|
flake.modules.nixos.git = { ... }: {
|
||||||
|
|
||||||
|
# for home manager functionality
|
||||||
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
|
# home manager options
|
||||||
|
home-manager.users.serenity = {
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
|
||||||
|
git = {
|
||||||
|
|
||||||
|
# enables git
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# git settings
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
# user details
|
||||||
|
user = {
|
||||||
|
name = "serenity-F";
|
||||||
|
email = "serenity-F@noreply.codeberg.org";
|
||||||
|
|
||||||
|
#path to signing key
|
||||||
|
signingKey = "/home/serenity/.ssh/id_ed25519.pub";
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# use ssh keys for auth
|
||||||
|
gpg.format = "ssh";
|
||||||
|
commit.gpgSign = true;
|
||||||
|
|
||||||
|
# use 'main' as default branch
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
|
||||||
|
# automatically track remote branch
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue