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

@ -34,6 +34,7 @@
outputs = inputs@{ nixpkgs, home-manager, nixos-hardware ,stylix, zen-browser, grub2-themes, nix-flatpak, ... }:
let
username = "cookiez";
hostname = "nixos";
version = "25.05";
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@ -45,11 +46,14 @@
in
{
nixosConfigurations = {
#Replace the below with your hostname!!! Like: {hostname} = nixpkgs.lib.nixosSystem {
nixos = nixpkgs.lib.nixosSystem {
${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs username version system;
inherit inputs;
inherit username;
inherit version;
inherit system;
host = hostname;
};
modules = [
./modules