nixos/flake.nix
2024-05-14 17:42:09 +02:00

54 lines
1.2 KiB
Nix

{
description = "Benny nixos config flake";
inputs = {
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix.url = "github:Mic92/sops-nix";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.flake-parts.follows = "flake-parts";
};
# ...
nix-citizen.url = "github:LovingMelody/nix-citizen";
# Optional - updates underlying without waiting for nix-citizen to update
nix-citizen.inputs.nix-gaming.follows = "nix-gaming";
};
outputs =
{ self
, nixpkgs
, sops-nix
, ...
}@inputs:
let
system = "x86_64-linux";
user = "mbeno";
in
{
nixosConfigurations = {
zedd = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user sops-nix; };
modules = [
({ config, pkgs, ... }: { })
./hosts/zedd
sops-nix.nixosModules.sops
];
};
};
};
}