69 lines
1.8 KiB
Nix
69 lines
1.8 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
vscode-server = {
|
|
url = "github:nix-community/nixos-vscode-server";
|
|
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, nixpkgs, nixos-hardware, ... }@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
|
|
];
|
|
};
|
|
|
|
homeManagerModules.default = "./nixos-modules/home-manager";
|
|
};
|
|
}
|