per device specific hostname

This commit is contained in:
Lukas Heiligenbrunner 2023-11-08 23:35:23 +01:00
parent 21fed4e5d1
commit af270f5fae
3 changed files with 12 additions and 8 deletions

View File

@ -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;

View File

@ -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;

11
laptop/configuration.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }:
{
imports =
[
./hardware-configuration.nix
];
# hostname
networking.hostName = "laptop-luki";
}