toggle physics

This commit is contained in:
martyTF 2025-12-18 11:47:21 +01:00
parent 44a2f3ee01
commit e13ad6a8ee
13 changed files with 79 additions and 112 deletions

View file

@ -6,6 +6,10 @@
}:
{
development = {
vscodium.enable = true;
git.enable = true;
};
imports = [
./git.nix
./vscodium.nix

View file

@ -4,34 +4,30 @@
pkgs,
...
}:
let
enable_git =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
true
else
false;
in
{
programs = {
git = {
enable = enable_git;
config = {
init = {
defaultBranch = "main";
options = {
development = {
git.enable = lib.mkEnableOption "enable git";
};
};
config = lib.mkIf config.development.git.enable {
programs = {
git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
user = {
email = "marty@marty.tf";
name = "marty";
};
push = {
autoSetupRemote = true;
};
};
user = {
email = "marty@marty.tf";
name = "marty";
};
push = {
autoSetupRemote = true;
};
credential.helper = "libsecret";
};
};
};

View file

@ -5,33 +5,28 @@
...
}:
let
enable_vscodium =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
{
programs.vscode = {
enable = enable_vscodium;
package = pkgs.vscodium;
defaultEditor = enable_vscodium;
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
];
options = {
development = {
vscodium.enable = lib.mkEnableOption "enable vscodium";
};
};
config = lib.mkIf config.development.vscodium.enable {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
profiles.default.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
];
};
};
}

View file

@ -83,6 +83,7 @@
imports = [
./window_manager
./development
inputs.walker.homeManagerModules.default
];

View file

@ -1,13 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./development/import_development.nix
];
}

View file

@ -5,17 +5,17 @@
...
}:
# let
# enable_waybar =
# if config.networking.hostName == "marty-pc" then
# true
# else if config.networking.hostName == "marty-latitude" then
# true
# else if config.networking.hostName == "marty-server" then
# false
# else
# false;
# in
let
enable_waybar =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
{
programs = {

View file

@ -5,17 +5,17 @@
...
}:
# let
# enable_hyprland =
# if config.networking.hostName == "marty-pc" then
# true
# else if config.networking.hostName == "marty-latitude" then
# true
# else if config.networking.hostName == "marty-server" then
# false
# else
# false;
# in
let
enable_hyprland =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
{
xdg.portal = {