forked from auxolotl/templates
Samuel Shuert
3f3ac4306b
Available templates include the following: - system: flake based system similar to the default when starting nix. - darwin: flake based darwin system with ajusted nixpkgs and modules to better suit it. - home-manager: flake and home manager for non darwin systems. Co-Authored-by: isabelroses <isabel@isabelroses.com> Co-Authored-by: Skyler Grey <minion@clicks.codes> Co-Authored-by: Sigmanificient <edhyjox@gmail.com> Co-Authored-by: AxelSilverdew <7677954+AxelSilverdew@users.noreply.github.com>
24 lines
705 B
Nix
24 lines
705 B
Nix
{
|
|
description = "A simple system flake using some Aux defaults";
|
|
|
|
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixpkgs-unstable";
|
|
|
|
outputs =
|
|
{ nixpkgs, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
hostName = builtins.abort "You need to fill in your hostName"; # Set this variable equal to your hostName
|
|
username = builtins.abort "You need to fill in your username"; # Set this variable equal to your username
|
|
in
|
|
{
|
|
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [ ./configuration.nix ];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
};
|
|
};
|
|
}
|