diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-10 19:25:28 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-10 19:25:28 -0800 |
commit | 7aba98b341fca5a9109ea6bfb633a7aead1f5b41 (patch) | |
tree | 487a7d6966f1fe3d26c9c687a0b1edd1c0281d81 /hosts | |
parent | nix: enable flakes (diff) | |
download | world-7aba98b341fca5a9109ea6bfb633a7aead1f5b41.tar.gz |
hosts: set hostname from configuration
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/carmel/default.nix | 8 |
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; |