Files
nixos/flake.nix
2026-01-04 19:30:21 +00:00

61 lines
1.4 KiB
Nix

{
description = "Impure NixOS flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
elephant.url = "github:abenz1267/elephant";
chataigne.url = "./chataigne";
doot.url = "github:voidarclabs/nixos.doot";
way-edges.url = "github:way-edges/way-edges";
hyprfloat = {
url = "github:nevimmu/hyprfloat";
inputs.nixpkgs.follows = "nixpkgs";
};
walker = {
url = "github:abenz1267/walker";
inputs.elephant.follows = "elephant";
};
};
outputs =
{
self,
nixpkgs,
...
}@inputs:
let
stdenv.hostPlatform.system = "x86_64-linux";
system = stdenv.hostPlatform.system;
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
in
{
nixosConfigurations.mobile02 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration-laptop.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;
}
];
};
nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration-pc.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;
}
];
};
};
}