build(nixos): add flake.nix

This commit is contained in:
Mohammad Rafiq 2025-02-22 12:20:20 +08:00
parent fe5b8d1320
commit e24ecf5287
2 changed files with 17 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
imports =

16
flake.nix Normal file
View file

@ -0,0 +1,16 @@
{
description = "simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ self, nixpkgs, ... }: {
nixosConfigurations.nemesis = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
];
};
};
}