From 72378c32de67447e1b2c4b7b083e189a9a8df9f4 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 9 Oct 2025 16:42:37 -0500 Subject: [PATCH] fucked around? --- flake.nix | 17 +++++++++++++---- hosts/snowbelle/configuration.nix | 6 +++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 11e7167..5917472 100644 --- a/flake.nix +++ b/flake.nix @@ -18,15 +18,24 @@ url = "github:Maroka-chan/VPN-Confinement"; }; }; - outputs = { self, nixpkgs, home-manager, vpn-confinement, ... }@inputs: + outputs = { self, nixpkgs, ... }@inputs: let - system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; + systems = { + x86_64 = "x86_64-linux"; + arm64 = "aarch64-linux"; + darwin = "aarch64-darwin"; + } + stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs { system = v; }) systems; + unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable { system = v; }) systems; + + #pkgs = nixpkgs.legacyPackages.${system}; + #unstable = nixpkgs-unstable.legacyPackages.${system}; in { nixosConfigurations = { snowbelle = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; + system = systems.x86_64; + specialArgs = { inherit inputs stable_pkgs unstable_pkgs; }; modules = [ ./hosts/snowbelle/configuration.nix inputs.home-manager.nixosModules.default diff --git a/hosts/snowbelle/configuration.nix b/hosts/snowbelle/configuration.nix index a095c93..3b358ff 100644 --- a/hosts/snowbelle/configuration.nix +++ b/hosts/snowbelle/configuration.nix @@ -1,5 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, stable_pkgs, unstable_pkgs, ... }: +let + pkgs = stable_pkgs.x86_64; + unstable = unstable_pkgs.x86_64; +in { imports = [ # Include the results of the hardware scan.