Made hostname variable (set in flake). Added ncli as a tool for fast nix specific commands (ncli.nix).

This commit is contained in:
2025-11-21 17:16:01 +01:00
parent c42feb3c42
commit 9dd27350e2
4 changed files with 334 additions and 7 deletions

View File

@ -10,7 +10,7 @@
#Nix flake file limit: ulimit -n 500000
{ inputs, config, pkgs, lib, username, version, system, ... }:
{ inputs, config, pkgs, lib, username, host, version, system, ... }:
{
# stylix.enable = true;
# stylix.image = /etc/nixos/other/wallpaper.png;
@ -85,7 +85,7 @@
#Apply
#Manage flags -> Add bios_grub
networking.hostName = "nixos";
networking.hostName = host;
# Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -98,7 +98,7 @@
useUserPackages = true;
users.${username} = ./home.nix;
backupFileExtension = "backup"; # Automatically backs up conflicting files during activation
extraSpecialArgs = { inherit inputs username version system; };
extraSpecialArgs = { inherit inputs username version system host; };
};
# Enable networking