1
0
Fork 0
forked from dea/dea-files

hostname configurations

This commit is contained in:
Dea 2026-01-08 13:59:34 -05:00
parent c2b4c31837
commit 73abed8eb5
4 changed files with 42 additions and 9 deletions

View file

@ -2,11 +2,15 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, config, pkgs, ... }:
{
inputs,
config,
pkgs,
...
}:
{
imports =
[
imports = [
inputs.home-manager.nixosModules.home-manager
];
@ -21,7 +25,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
networking.hostName = "tohka"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary

View file

@ -5,7 +5,12 @@ alias hibernate='systemctl hybrid-sleep'
alias restart='systemctl reboot'
alias shutdown='systemctl poweroff'
rebuild() {
if [ -z "$1" ]
then
sudo nixos-rebuild switch --flake ~/dea-files#"$(hostname)"
else
sudo nixos-rebuild switch --flake ~/dea-files#"$1"
fi
}
# alias rebuild='sudo nixos-rebuild switch --flake ~/dea-files'
[ -f "/home/dea/.ghcup/env" ] && . "/home/dea/.ghcup/env" # ghcup-env

View file

@ -0,0 +1,12 @@
{
pkgs,
...
}:
{
networking.hostName = "nahemah";
environment.systemPackages = with pkgs; [
];
}

View file

@ -0,0 +1,12 @@
{
pkgs,
...
}:
{
networking.hostName = "sandalphon";
environment.systemPackages = with pkgs; [
];
}