nixos/flake.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{
description = "Benny nixos config flake";
inputs = {
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager?ref=release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix.url = "github:Mic92/sops-nix";
};
outputs =
{ self
, nixpkgs
, nixpkgs-unstable
, sops-nix
, ...
}@inputs:
let
system = "x86_64-linux";
user = "mbeno";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in
{
nixosConfigurations = {
zedd = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user sops-nix; };
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [
overlay-unstable
];
})
2024-03-18 12:11:31 +00:00
./hosts/zedd
2024-03-18 11:58:34 +00:00
sops-nix.nixosModules.sops
];
};
};
};
}