From c6d7887dc415456d8789405ebc1eb5f524127fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Santiago?= <52899490+Alexuty07@users.noreply.github.com> Date: Sat, 16 Mar 2024 05:38:28 +0000 Subject: [PATCH] add the first flake --- flake.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fcf1d68 --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "Nixos config flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + # To enable Home Manager later when i feel like doing it + # home-manager = { + # url = "github:nix-community/home-manager"; + # inputs.nixpkgs.follows = "nixpkgs"; + # }; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + nixosConfigurations.default = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + ./configuration.nix + # inputs.home-manager.nixosModules.default + ]; + }; + }; +}