fixed zshell config editing aliases, rewrote the 'if (host == 'oganesson')' statements to be more readable
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user