Compare commits

...

2 commits

Author SHA1 Message Date
db5366102b forgor to stage changes
but git management in vscodium do be fire ngl
2025-12-16 16:51:22 +01:00
3d09e64139 modularizing modules ig 2025-12-16 16:50:47 +01:00
13 changed files with 119 additions and 69 deletions

View file

@ -10,7 +10,10 @@
}: }:
{ {
nix.settings.experimental-features = [ "flakes" "nix-command" ]; nix.settings.experimental-features = [
"flakes"
"nix-command"
];
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix

View file

@ -22,22 +22,25 @@
marty-pc = nixpkgs.lib.nixosSystem { marty-pc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./configuration.nix
./marty-pc.nix ./marty-pc.nix
./configuration.nix
]; ];
}; };
marty-server = nixpkgs.lib.nixosSystem { marty-server = nixpkgs.lib.nixosSystem {
system = "x86_64"; system = "x86_64";
modules = [ modules = [
./configuration.nix
./marty-server.nix ./marty-server.nix
./configuration.nix
]; ];
}; };
marty-latitude = nixpkgs.lib.nixosSystem { marty-latitude = nixpkgs.lib.nixosSystem {
system = "x86_64"; system = "x86_64";
modules = [ modules = [
./configuration.nix
./marty-latitude.nix ./marty-latitude.nix
./configuration.nix
]; ];
}; };
}; };

View file

@ -5,9 +5,30 @@
... ...
}: }:
{ let
imports = [ modules =
./system/imports.nix if config.networking.hostName == "marty-pc" then
[
./system/import_system.nix
./modules/imports.nix ./modules/imports.nix
];
]
else if config.networking.hostName == "marty-latitude" then
[
./system/import_system.nix
./modules/imports.nix
]
else if config.networking.hostName == "marty-server" then
[
./system/import_system.nix
./modules/imports.nix
]
else
[ ];
in
{
imports = modules;
} }

View 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;
}

View file

@ -5,21 +5,11 @@
... ...
}: }:
let
enable_vscode =
if config.networking.hostName == "marty-pc"
then true
else if config.networking.hostName == "marty-latitude"
then true
else false;
in
{ {
programs.vscode = { programs.vscode = {
enable = enable_vscode; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;
defaultEditor = enable_vscode; defaultEditor = true;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
catppuccin.catppuccin-vsc catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons catppuccin.catppuccin-vsc-icons

View file

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

View file

@ -1,14 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./window_manager/imports.nix
./git.nix
./vscodium.nix
];
}

View file

@ -5,23 +5,14 @@
... ...
}: }:
let
enable_hyprland =
if config.networking.hostName == "marty-pc"
then true
else if config.networking.hostName == "marty-latitude"
then true
else false;
in
{ {
programs = { programs = {
hyprland = { hyprland = {
enable = enable_hyprland; enable = true;
xwayland.enable = enable_hyprland; xwayland.enable = true;
}; };
hyprlock = { hyprlock = {
enable = enable_hyprland; enable = true;
}; };
}; };
} }

View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}:
let
modules =
if config.networking.hostName == "marty-pc" then
[
./hyprland.nix
./waybar.nix
]
else if config.networking.hostName == "marty-latitude" then
[
./hyprland.nix
./waybar.nix
]
else if config.networking.hostName == "marty-server" then
[
]
else
[ ];
in
{
imports = modules;
}

View file

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

View file

@ -5,19 +5,10 @@
... ...
}: }:
let
enable_waybar =
if config.networking.hostName == "marty-pc"
then true
else if config.networking.hostName == "marty-latitude"
then true
else false;
in
{ {
programs = { programs = {
waybar = { waybar = {
enable = enable_waybar; enable = true;
}; };
}; };
} }

View file

@ -8,5 +8,6 @@
{ {
imports = [ imports = [
./boot.nix ./boot.nix
]; ];
} }