From af270f5faefd3976bca8a38271211f79d0a641a2 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Wed, 8 Nov 2023 23:35:23 +0100 Subject: [PATCH] per device specific hostname --- common/configuration.nix | 7 ------- flake.nix | 2 +- laptop/configuration.nix | 11 +++++++++++ 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 laptop/configuration.nix diff --git a/common/configuration.nix b/common/configuration.nix index ed8757e..e11f167 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -1,7 +1,3 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, lib, ... }: { @@ -19,9 +15,6 @@ # newest kernel boot.kernelPackages = pkgs.linuxPackages_latest; - networking.hostName = "nixos"; # Define your hostname. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - # Enable networking networking.networkmanager.enable = true; diff --git a/flake.nix b/flake.nix index c2f2ffe..299b406 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ nixos-hardware.nixosModules.framework-13-7040-amd ./common/configuration.nix - ./laptop/hardware-configuration.nix + ./laptop/configuration.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/laptop/configuration.nix b/laptop/configuration.nix new file mode 100644 index 0000000..0fbe74a --- /dev/null +++ b/laptop/configuration.nix @@ -0,0 +1,11 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ]; + + # hostname + networking.hostName = "laptop-luki"; +}