From e24ecf528756e1c7657a7eec5e4ae716d4e4356a Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 22 Feb 2025 12:20:20 +0800 Subject: [PATCH] build(nixos): add flake.nix --- configuration.nix | 2 +- flake.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index d4cd3b1..117f568 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 = diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..521fb02 --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + }; +}