59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
description = "System nixOS flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
# nixpkgs.url = "github:NixOS/nixpkgs/master";
|
|
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
lanzaboote,
|
|
nixos-hardware,
|
|
agenix,
|
|
...
|
|
}@inputs:
|
|
let
|
|
username = "primary";
|
|
system = "x86_64-linux";
|
|
|
|
in
|
|
{
|
|
# desktop
|
|
nixosConfigurations.yarn = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
hostname = "yarn";
|
|
inherit inputs username;
|
|
};
|
|
modules = [
|
|
./system-yarn.nix
|
|
];
|
|
};
|
|
|
|
# laptop
|
|
nixosConfigurations.mreow = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
hostname = "mreow";
|
|
inherit inputs username;
|
|
};
|
|
modules = [
|
|
./system-mreow.nix
|
|
];
|
|
};
|
|
};
|
|
}
|