From 741e3b973f8522a48d4b0355283f6c4b74726b00 Mon Sep 17 00:00:00 2001 From: Nettika Date: Fri, 5 Jul 2024 16:47:51 -0700 Subject: [PATCH] Convert system configuration to a flake --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 16 ++++++++++++++++ configuration.nix => marauder.nix | 0 3 files changed, 43 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix rename configuration.nix => marauder.nix (100%) diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..aeb4e66 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1717179513, + "narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a1b5510 --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "Nettika NixOS Configurations"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/24.05"; + }; + + outputs = { self, nixpkgs }: { + nixosConfigurations = { + marauder = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ ./marauder.nix ]; + }; + }; + }; +} diff --git a/configuration.nix b/marauder.nix similarity index 100% rename from configuration.nix rename to marauder.nix