From 13f11fda4754980b47a2a9bd307d0ffa48c74f62 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sat, 10 May 2025 16:33:30 +0100 Subject: [PATCH] Initial flake-based system config --- flake.nix | 17 +++++++++++++++++ .../hypr-nix/configuration.nix | 0 docker.nix => hosts/hypr-nix/docker.nix | 0 gpu.nix => hosts/hypr-nix/gpu.nix | 0 .../hypr-nix/hardware-configuration.nix | 0 hyprland.nix => hosts/hypr-nix/hyprland.nix | 0 i3.nix => hosts/hypr-nix/i3.nix | 0 mnt.nix => hosts/hypr-nix/mnt.nix | 0 networking.nix => hosts/hypr-nix/networking.nix | 0 packages.nix => hosts/hypr-nix/packages.nix | 0 sunshine.nix => hosts/hypr-nix/sunshine.nix | 0 result | 1 - 12 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 flake.nix rename configuration.nix => hosts/hypr-nix/configuration.nix (100%) rename docker.nix => hosts/hypr-nix/docker.nix (100%) rename gpu.nix => hosts/hypr-nix/gpu.nix (100%) rename hardware-configuration.nix => hosts/hypr-nix/hardware-configuration.nix (100%) rename hyprland.nix => hosts/hypr-nix/hyprland.nix (100%) rename i3.nix => hosts/hypr-nix/i3.nix (100%) rename mnt.nix => hosts/hypr-nix/mnt.nix (100%) rename networking.nix => hosts/hypr-nix/networking.nix (100%) rename packages.nix => hosts/hypr-nix/packages.nix (100%) rename sunshine.nix => hosts/hypr-nix/sunshine.nix (100%) delete mode 120000 result diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..813f9bf --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "NixOS configuration for hypr-nix"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + nixosConfigurations.hypr-nix = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./hosts/hypr-nix/configuration.nix + ]; + }; + }; +} + diff --git a/configuration.nix b/hosts/hypr-nix/configuration.nix similarity index 100% rename from configuration.nix rename to hosts/hypr-nix/configuration.nix diff --git a/docker.nix b/hosts/hypr-nix/docker.nix similarity index 100% rename from docker.nix rename to hosts/hypr-nix/docker.nix diff --git a/gpu.nix b/hosts/hypr-nix/gpu.nix similarity index 100% rename from gpu.nix rename to hosts/hypr-nix/gpu.nix diff --git a/hardware-configuration.nix b/hosts/hypr-nix/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/hypr-nix/hardware-configuration.nix diff --git a/hyprland.nix b/hosts/hypr-nix/hyprland.nix similarity index 100% rename from hyprland.nix rename to hosts/hypr-nix/hyprland.nix diff --git a/i3.nix b/hosts/hypr-nix/i3.nix similarity index 100% rename from i3.nix rename to hosts/hypr-nix/i3.nix diff --git a/mnt.nix b/hosts/hypr-nix/mnt.nix similarity index 100% rename from mnt.nix rename to hosts/hypr-nix/mnt.nix diff --git a/networking.nix b/hosts/hypr-nix/networking.nix similarity index 100% rename from networking.nix rename to hosts/hypr-nix/networking.nix diff --git a/packages.nix b/hosts/hypr-nix/packages.nix similarity index 100% rename from packages.nix rename to hosts/hypr-nix/packages.nix diff --git a/sunshine.nix b/hosts/hypr-nix/sunshine.nix similarity index 100% rename from sunshine.nix rename to hosts/hypr-nix/sunshine.nix diff --git a/result b/result deleted file mode 120000 index 5ecaf3e..0000000 --- a/result +++ /dev/null @@ -1 +0,0 @@ -/nix/store/2hqaqfwyqgx9fpfcpwzf1ajj723z7hk6-nixos-system-hypr-nix-24.05.7376.b134951a4c9f \ No newline at end of file