From 08d92d1711c32811501287cc7b851ab2a6694bed Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 14 Aug 2023 07:11:18 -0400 Subject: [PATCH] flake time? --- configuration.nix | 7 +++++++ flake.nix | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index 9f841a3..6dc718c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,6 +5,13 @@ { config, pkgs, ... }: { + nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + } + imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2e1a28e --- /dev/null +++ b/flake.nix @@ -0,0 +1,14 @@ +{ + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + inputs.home-manager.url = "github:nix-community/home-manager"; + inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs"; + + outputs = {self, nixpkgs, home-manager }: { + nixosConfigurations = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ]; + } + } +}