nix-config/flake.nix

53 lines
1.1 KiB
Nix
Raw Normal View History

{
description = "the silliest NixOS config!";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
2024-08-16 16:42:55 +02:00
sops-nix.url = "github:Mic92/sops-nix";
2024-08-20 10:24:09 +02:00
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
2024-08-24 10:59:32 +02:00
2024-08-25 12:20:43 +02:00
nix-secrets = {
2024-08-25 12:25:03 +02:00
url = "git+https://git.hypervirtual.world/harry123/nix-secrets.git";
2024-08-25 12:20:43 +02:00
flake = false;
};
};
outputs =
{
2024-08-16 16:42:55 +02:00
self,
nixpkgs,
sops-nix,
...
}@inputs:
let
username = "harry123";
2024-08-25 12:44:14 +02:00
secrets = builtins.toString inputs.nix-secrets;
2024-08-16 16:42:55 +02:00
specialArgs = {
inherit username;
2024-08-25 12:44:14 +02:00
inherit secrets;
2024-08-16 16:42:55 +02:00
};
in
{
nixosConfigurations = {
sisyphe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2024-08-25 12:44:14 +02:00
specialArgs = specialArgs;
2024-08-16 16:42:55 +02:00
modules = [
./hosts/sisyphe/configuration.nix
sops-nix.nixosModules.sops
];
};
labouse = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/labouse/configuration.nix
];
};
};
};
}