hostname configurations
This commit is contained in:
parent
fad8d83815
commit
222265c092
4 changed files with 42 additions and 9 deletions
|
|
@ -2,13 +2,17 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ inputs, config, pkgs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
inputs.home-manager.nixosModules.home-manager
|
||||||
inputs.home-manager.nixosModules.home-manager
|
];
|
||||||
];
|
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
|
@ -21,7 +25,7 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = 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.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
|
|
@ -184,7 +188,7 @@
|
||||||
## Uncomment if you want to use the libraries provided by default in the steam distribution
|
## Uncomment if you want to use the libraries provided by default in the steam distribution
|
||||||
## but this is quite far from being exhaustive
|
## but this is quite far from being exhaustive
|
||||||
## https://github.com/NixOS/nixpkgs/issues/354513
|
## https://github.com/NixOS/nixpkgs/issues/354513
|
||||||
(pkgs.runCommand "steamrun-lib" {} "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")
|
(pkgs.runCommand "steamrun-lib" { } "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -215,4 +219,4 @@
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.11"; # Did you read the comment?
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,12 @@ alias hibernate='systemctl hybrid-sleep'
|
||||||
alias restart='systemctl reboot'
|
alias restart='systemctl reboot'
|
||||||
alias shutdown='systemctl poweroff'
|
alias shutdown='systemctl poweroff'
|
||||||
rebuild() {
|
rebuild() {
|
||||||
sudo nixos-rebuild switch --flake ~/dea-files#"$1"
|
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'
|
# alias rebuild='sudo nixos-rebuild switch --flake ~/dea-files'
|
||||||
[ -f "/home/dea/.ghcup/env" ] && . "/home/dea/.ghcup/env" # ghcup-env
|
[ -f "/home/dea/.ghcup/env" ] && . "/home/dea/.ghcup/env" # ghcup-env
|
||||||
12
hosts/nahemah/configuration.nix
Normal file
12
hosts/nahemah/configuration.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.hostName = "nahemah";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
|
];
|
||||||
|
}
|
||||||
12
hosts/sandalphon/configuration.nix
Normal file
12
hosts/sandalphon/configuration.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.hostName = "sandalphon";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue