aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorValentin <valentin@fricklerhandwerk.de>2025-10-14 14:34:11 +0200
committerValentin <valentin@fricklerhandwerk.de>2025-11-06 16:46:27 +0100
commit8264c7ccb1f9566c3e17b45747dd35736c766be1 (patch)
tree8ec92353f94adcfb8c688a4f88c8621a8a1661c0 /flake.nix
Einrichtung des ersten Servers
Das System kann mit einem Befehl beim Hosting-Provider aufgesetzt werden. Es bietet zunächst nur einem SSH-Zugang für Administratoren.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..5c9b8d0
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,26 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
+
+ flake-parts = {
+ url = "github:hercules-ci/flake-parts";
+ inputs.nixpkgs-lib.follows = "nixpkgs";
+ };
+ disko = {
+ url = "github:nix-community/disko";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+ outputs =
+ inputs@{ flake-parts, ... }:
+ flake-parts.lib.mkFlake { inherit inputs; } (
+ { self, lib, ... }:
+ {
+ imports = lib.fileset.toList (
+ # Alle Nix-Dateien in diesem Projekt sind Flake-Parts-Module
+ lib.fileset.fileFilter (file: file.hasExt "nix" && file.name != "flake.nix") ./.
+ );
+ systems = [ "x86_64-linux" ];
+ }
+ );
+}