forgor to stage changes
but git management in vscodium do be fire ngl
This commit is contained in:
parent
3d09e64139
commit
db5366102b
8 changed files with 22 additions and 37 deletions
27
modules/development/git.nix
Normal file
27
modules/development/git.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
config = {
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
user = {
|
||||
email = "marty@marty.tf";
|
||||
name = "marty";
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
credential.helper = "libsecret";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
33
modules/development/import_development.nix
Normal file
33
modules/development/import_development.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
./git.nix
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = modules;
|
||||
}
|
||||
25
modules/development/vscodium.nix
Normal file
25
modules/development/vscodium.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = true;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
jnoortheen.nix-ide
|
||||
alefragnani.project-manager
|
||||
naumovs.color-highlight
|
||||
geequlim.godot-tools
|
||||
stylelint.vscode-stylelint
|
||||
ecmel.vscode-html-css
|
||||
esbenp.prettier-vscode
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue