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

@ -16,7 +16,9 @@
]; ];
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./imports.nix ./system/import_system.nix
./user/marty.nix
]; ];
# programs.walker.enable = true; # programs.walker.enable = true;

View file

@ -31,9 +31,8 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./marty-pc.nix ./hosts/marty-pc.nix
./configuration.nix ./configuration.nix
./user/marty.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
]; ];
}; };
@ -41,9 +40,8 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./marty-server.nix ./hosts/marty-server.nix
./configuration.nix ./configuration.nix
./user/marty.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
]; ];
@ -52,9 +50,8 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./marty-latitude.nix ./hosts/marty-latitude.nix
./configuration.nix ./configuration.nix
./user/marty.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
]; ];
}; };

View file

@ -19,7 +19,7 @@
useUserPackages = true; useUserPackages = true;
users = { users = {
marty = import ./modules/home.nix; marty = import ./../modules/home.nix;
}; };
}; };

View file

@ -26,7 +26,7 @@
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
users = { users = {
marty = import ./modules/home.nix; marty = import ./../modules/home.nix;
}; };
}; };

View file

@ -26,7 +26,7 @@
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
users = { users = {
marty = import ./modules/home.nix; marty = import ./../modules/home.nix;
}; };
}; };

View file

@ -1,15 +0,0 @@
{
config,
lib,
pkgs,
inputs,
...
}:
{
imports = [
./system/import_system.nix
./modules/import_modules.nix
];
}

View file

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

View file

@ -4,34 +4,30 @@
pkgs, 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 = { options = {
git = { development = {
enable = enable_git; git.enable = lib.mkEnableOption "enable git";
config = { };
init = { };
defaultBranch = "main";
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 = { options = {
enable = enable_vscodium; development = {
package = pkgs.vscodium; vscodium.enable = lib.mkEnableOption "enable vscodium";
defaultEditor = enable_vscodium; };
extensions = with pkgs.vscode-extensions; [ };
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons config = lib.mkIf config.development.vscodium.enable {
jnoortheen.nix-ide programs.vscode = {
alefragnani.project-manager enable = true;
naumovs.color-highlight package = pkgs.vscodium;
geequlim.godot-tools profiles.default.extensions = with pkgs.vscode-extensions; [
stylelint.vscode-stylelint catppuccin.catppuccin-vsc
ecmel.vscode-html-css catppuccin.catppuccin-vsc-icons
esbenp.prettier-vscode 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 = [ imports = [
./window_manager ./window_manager
./development
inputs.walker.homeManagerModules.default 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 let
# enable_waybar = enable_waybar =
# if config.networking.hostName == "marty-pc" then if config.networking.hostName == "marty-pc" then
# true true
# else if config.networking.hostName == "marty-latitude" then else if config.networking.hostName == "marty-latitude" then
# true true
# else if config.networking.hostName == "marty-server" then else if config.networking.hostName == "marty-server" then
# false false
# else else
# false; false;
# in in
{ {
programs = { programs = {

View file

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