From a3436858e891266460299f716ea44c6fbab8bc13 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 31 May 2025 16:18:20 +0200 Subject: [PATCH] Flakeify NixOS configuration --- configuration.nix | 1 + flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 12 ++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index 1ec8ed9..89219f8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,6 +15,7 @@ ./modules/x.nix ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; programs.git.enable = true; programs.firefox.enable = true; diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cd3f169 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1748437600, + "narHash": "sha256-hYKMs3ilp09anGO7xzfGs3JqEgUqFMnZ8GMAqI6/k04=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "7282cb574e0607e65224d33be8241eae7cfe0979", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-25.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..b6ed1a4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,12 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05"; + }; + + outputs = { self, nixpkgs }: { + nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ ./configuration.nix ]; + }; + }; +}