92 lines
2.6 KiB
Nix
92 lines
2.6 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
|
|
|
darwin.url = "github:lnl7/nix-darwin/master";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
firefox-addons = {
|
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
};
|
|
|
|
outputs = { self, darwin,nixpkgs, nixos-hardware, nixos-wsl, home-manager, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
in {
|
|
# Framework - argon
|
|
nixosConfigurations.argon = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit system; inherit inputs; };
|
|
|
|
modules = [
|
|
nixos-hardware.nixosModules.framework-12th-gen-intel
|
|
./_hosts/argon/configuration.nix
|
|
./nixos-modules
|
|
];
|
|
};
|
|
|
|
nixosConfigurations.bromine = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit system; inherit inputs; };
|
|
|
|
modules = [
|
|
nixos-hardware.nixosModules.framework-11th-gen-intel
|
|
./_hosts/bromine/configuration.nix
|
|
./nixos-modules
|
|
];
|
|
};
|
|
|
|
nixosConfigurations.caesium = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit system; inherit inputs; };
|
|
|
|
modules = [
|
|
nixos-hardware.nixosModules.framework-11th-gen-intel
|
|
./_hosts/caesium/configuration.nix
|
|
./nixos-modules
|
|
];
|
|
};
|
|
|
|
nixosConfigurations.caesium-wsl = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit system; inherit inputs; };
|
|
|
|
modules = [
|
|
nixos-wsl.nixosModules.default
|
|
./_hosts/caesium-wsl/configuration.nix
|
|
];
|
|
};
|
|
|
|
darwinConfigurations.cleo-darwin = darwin.lib.darwinSystem {
|
|
specialArgs = { inherit system; inherit inputs; };
|
|
system = "aarch64-darwin";
|
|
modules = [
|
|
./_hosts/cleo-darwin/darwin.nix
|
|
home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users."matthew.bessette" = import ./_hosts/cleo-darwin/home.nix;
|
|
}
|
|
];
|
|
};
|
|
|
|
homeManagerModules.default = "./nixos-modules/home-manager";
|
|
};
|
|
}
|