From fd90e828b2bd6a85ddedd57d4a40fbe9c6464732 Mon Sep 17 00:00:00 2001 From: Nio Date: Fri, 8 May 2026 10:21:15 +0200 Subject: [PATCH] Flakes --- configuration.nix | 3 +++ flake.nix | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index ef72896..98345c0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -26,6 +26,9 @@ # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + # Flake + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # Enable networking networking.networkmanager.enable = true; diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..98f982f --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "NixOS Konfiguration"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: { + nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ]; + }; + }; +}