fucked around?
This commit is contained in:
17
flake.nix
17
flake.nix
@@ -18,15 +18,24 @@
|
|||||||
url = "github:Maroka-chan/VPN-Confinement";
|
url = "github:Maroka-chan/VPN-Confinement";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, vpn-confinement, ... }@inputs:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
systems = {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
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
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
snowbelle = nixpkgs.lib.nixosSystem {
|
snowbelle = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
system = systems.x86_64;
|
||||||
|
specialArgs = { inherit inputs stable_pkgs unstable_pkgs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/snowbelle/configuration.nix
|
./hosts/snowbelle/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
|
|||||||
@@ -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 =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
|
|||||||
Reference in New Issue
Block a user