Made hostname variable (set in flake). Added ncli as a tool for fast nix specific commands (ncli.nix).
This commit is contained in:
10
flake.nix
10
flake.nix
@ -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
|
||||
|
||||
Reference in New Issue
Block a user