fixed zshell config editing aliases, rewrote the 'if (host == 'oganesson')' statements to be more readable

This commit is contained in:
pagedmov
2024-10-22 17:38:57 -04:00
parent b20e6d745c
commit 4ab38e199b
7 changed files with 33 additions and 21 deletions

View File

@@ -1,8 +1,12 @@
{host, ...}: {
{host, ...}:
let
desktop = (host == "oganesson");
in
{
networking = {
networkmanager.enable = true;
hostName =
if (host == "oganesson")
if desktop
then "oganesson"
else "mercury";
hosts = {

View File

@@ -1,4 +1,3 @@
{
inputs,
nixpkgs,
@@ -7,18 +6,18 @@
username,
host,
...
}:
}:
let
desktop_modules = if (host == "oganesson") then
desktop = (host == "oganesson");
desktop_modules = if desktop then
[(import ./virtualization.nix)] ++ [(import ./gaming)]
else [];
in
{
imports =
imports =
[(import ./packages.nix)]
++ [(import ./programs.nix)]
++ [(import ./services.nix)]
++ [(import ./nixvim)]
++ desktop_modules;
}