change hostname theme

This commit is contained in:
Noah Masur 2023-02-11 14:35:38 +00:00
parent a9a06fb5fc
commit fa69557ced
7 changed files with 28 additions and 19 deletions

View File

@ -125,22 +125,23 @@
in rec {
nixosConfigurations = {
desktop = import ./hosts/desktop { inherit inputs globals overlays; };
wsl = import ./hosts/wsl { inherit inputs globals overlays; };
oracle = import ./hosts/oracle { inherit inputs globals overlays; };
tempest = import ./hosts/tempest { inherit inputs globals overlays; };
hydra = import ./hosts/hydra { inherit inputs globals overlays; };
flame = import ./hosts/flame { inherit inputs globals overlays; };
};
darwinConfigurations = {
macbook = import ./hosts/macbook { inherit inputs globals overlays; };
lookingglass =
import ./hosts/macbook { inherit inputs globals overlays; };
};
# For quickly applying local settings with:
# home-manager switch --flake .#desktop
# home-manager switch --flake .#tempest
homeConfigurations = {
desktop =
nixosConfigurations.desktop.config.home-manager.users.${globals.user}.home;
macbook =
darwinConfigurations.macbook.config.home-manager.users."Noah.Masur".home;
tempest =
nixosConfigurations.tempest.config.home-manager.users.${globals.user}.home;
lookingglass =
darwinConfigurations.lookingglass.config.home-manager.users."Noah.Masur".home;
};
# Package servers into images with a generator

View File

@ -1,12 +1,13 @@
{ inputs, globals, overlays, ... }:
with inputs;
# The Flame
# System configuration for an Oracle free server
# How to install:
# https://blog.korfuri.fr/posts/2022/08/nixos-on-an-oracle-free-tier-ampere-machine/
{ inputs, globals, overlays, ... }:
with inputs;
nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = { };
@ -26,7 +27,7 @@ nixpkgs.lib.nixosSystem {
caddy.enable = true;
# FQDNs for various services
networking.hostName = "oracle";
networking.hostName = "flame";
bookServer = "books.masu.rs";
streamServer = "stream.masu.rs";
nextcloudServer = "cloud.masu.rs";

View File

@ -1,8 +1,10 @@
# The Hydra
# System configuration for WSL
{ inputs, globals, overlays, ... }:
with inputs;
# System configuration for WSL
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { };
@ -13,7 +15,7 @@ nixpkgs.lib.nixosSystem {
wsl.nixosModules.wsl
home-manager.nixosModules.home-manager
{
networking.hostName = "wsl";
networking.hostName = "hydra";
nixpkgs.overlays = overlays;
# Set registry to flake packages, used for nix X commands
nix.registry.nixpkgs.flake = nixpkgs;
@ -29,6 +31,7 @@ nixpkgs.lib.nixosSystem {
wslConf.automount.root = "/mnt";
defaultUser = globals.user;
startMenuLaunchers = true;
nativeSystemd = true;
wslConf.network.generateResolvConf = true; # Turn off if it breaks VPN
interop.includePath =
false; # Including Windows PATH will slow down Neovim command mode

View File

@ -1,8 +1,10 @@
# The Looking Glass
# System configuration for my work Macbook
{ inputs, globals, overlays, ... }:
with inputs;
# System configuration for my work MacBook
darwin.lib.darwinSystem {
system = "x86_64-darwin";
specialArgs = { };

View File

@ -1,8 +1,10 @@
# The Tempest
# System configuration for my desktop
{ inputs, globals, overlays, ... }:
with inputs;
# System configuration for my desktop
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { };
@ -15,7 +17,7 @@ nixpkgs.lib.nixosSystem {
home-manager.nixosModules.home-manager
{
physical = true;
networking.hostName = "desktop";
networking.hostName = "tempest";
nixpkgs.overlays = [ nur.overlay ] ++ overlays;
# Set registry to flake packages, used for nix X commands
nix.registry.nixpkgs.flake = nixpkgs;