78 lines
1.9 KiB
Nix
78 lines
1.9 KiB
Nix
{
|
|
description = "Your new nix config";
|
|
|
|
inputs = {
|
|
# Nixpkgs
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
|
|
|
# Home manager
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
fw-fanctrl = {
|
|
url = "github:TamtamHero/fw-fanctrl/packaging/nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, nixpkgs-unstable
|
|
, home-manager
|
|
, nixos-hardware
|
|
, fw-fanctrl
|
|
, ...
|
|
} @ 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
|
|
];
|
|
};
|
|
|
|
framework = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
fw-fanctrl.nixosModules.default
|
|
./machine/framework/configuration.nix
|
|
];
|
|
};
|
|
|
|
vps-arm = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [
|
|
./machine/vps-arm/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|