103 lines
2.6 KiB
Nix
103 lines
2.6 KiB
Nix
{
|
|
description = "Your new nix config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
|
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
|
|
sops-nix =
|
|
{
|
|
url = "github:mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Home manager
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
fw-fanctrl = {
|
|
url = "github:TamtamHero/fw-fanctrl/packaging/nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, chaotic
|
|
, fw-fanctrl
|
|
, home-manager
|
|
, nixos-hardware
|
|
, nixpkgs
|
|
# , nixpkgs-unstable
|
|
, sops-nix
|
|
, ...
|
|
} @ inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
|
|
# Supported systems for your flake packages, shell, etc.
|
|
systems = [
|
|
"aarch64-linux"
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
|
|
# This is a function that generates an attribute by calling a function you
|
|
# pass to it, with each system as an argument
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in
|
|
{
|
|
overlays = import ./overlays { inherit inputs; };
|
|
|
|
nixosConfigurations = {
|
|
desktop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./machine/desktop/configuration.nix
|
|
chaotic.nixosModules.default # OUR DEFAULT MODULE
|
|
];
|
|
};
|
|
|
|
framework = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
fw-fanctrl.nixosModules.default
|
|
./machine/framework/configuration.nix
|
|
chaotic.nixosModules.default # OUR DEFAULT MODULE
|
|
];
|
|
};
|
|
|
|
vps-arm = nixpkgs.lib.nixosSystem {
|
|
system = "aarch64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./machine/vps-arm/configuration.nix
|
|
];
|
|
};
|
|
|
|
mini = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./machine/mini/configuration.nix
|
|
];
|
|
};
|
|
|
|
nixos-libvirt = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./machine/nixos-libvirt/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|