dam you can't conditionally import, cringe
This commit is contained in:
parent
db5366102b
commit
720828a097
7 changed files with 68 additions and 77 deletions
30
imports.nix
30
imports.nix
|
|
@ -5,30 +5,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
modules =
|
|
||||||
if config.networking.hostName == "marty-pc" then
|
|
||||||
[
|
|
||||||
./system/import_system.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;
|
imports = [
|
||||||
|
./system/import_system.nix
|
||||||
|
./modules/import_modules.nix
|
||||||
|
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,22 @@
|
||||||
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 = {
|
programs = {
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = enable_git;
|
||||||
config = {
|
config = {
|
||||||
init = {
|
init = {
|
||||||
defaultBranch = "main";
|
defaultBranch = "main";
|
||||||
|
|
|
||||||
|
|
@ -5,29 +5,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
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;
|
imports = [
|
||||||
|
./git.nix
|
||||||
|
./vscodium.nix
|
||||||
|
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,23 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
enable_vscode =
|
||||||
|
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 = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = enable_vscode;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
defaultEditor = true;
|
defaultEditor = enable_vscode;
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
catppuccin.catppuccin-vsc
|
catppuccin.catppuccin-vsc
|
||||||
catppuccin.catppuccin-vsc-icons
|
catppuccin.catppuccin-vsc-icons
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,26 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = enable_hyprland;
|
||||||
xwayland.enable = true;
|
xwayland.enable = enable_hyprland;
|
||||||
};
|
};
|
||||||
hyprlock = {
|
hyprlock = {
|
||||||
enable = true;
|
enable = enable_hyprland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,26 +5,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
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;
|
imports = [
|
||||||
|
./hyprland.nix
|
||||||
|
./waybar.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,22 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
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 = {
|
programs = {
|
||||||
waybar = {
|
waybar = {
|
||||||
enable = true;
|
enable = enable_waybar;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue