From 48d9230d23febf9308cf1cfac906b129b6e72723 Mon Sep 17 00:00:00 2001 From: randomuser Date: Wed, 20 Dec 2023 15:19:01 -0600 Subject: [PATCH] changes --- bootstrap.nix | 10 ++++++++++ flake.nix | 22 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 bootstrap.nix create mode 100644 flake.nix diff --git a/bootstrap.nix b/bootstrap.nix new file mode 100644 index 0000000..f9219eb --- /dev/null +++ b/bootstrap.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6bc88c4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,22 @@ +{ + description = "rndusr's nixos flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; + home-manager = { + url = "github:nix-community/home-manager/release-23.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + "virtbox" = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + + modules = [ + ./bootstrap.nix + ./boxes/virtbox.nix + ]; + }; + }; +}