aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-10 19:25:28 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-10 19:25:28 -0800
commit7aba98b341fca5a9109ea6bfb633a7aead1f5b41 (patch)
tree487a7d6966f1fe3d26c9c687a0b1edd1c0281d81
parentnix: enable flakes (diff)
downloadinfra-7aba98b341fca5a9109ea6bfb633a7aead1f5b41.tar.gz
hosts: set hostname from configuration
-rw-r--r--hosts/carmel/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix
index 00f370c..11105d3 100644
--- a/hosts/carmel/default.nix
+++ b/hosts/carmel/default.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, hostname, ... }:
{
imports =
@@ -8,17 +8,13 @@
../../modules/desktop
];
- nix = {
- package = pkgs.nixUnstable;
- };
-
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "America/Los_Angeles";
- networking.hostName = "carmel"; # Define your hostname.
+ networking.hostName = hostname;
networking.wireless.enable = false;
networking.interfaces.enp9s0.useDHCP = true;