nixos/flake.nix
Torjus Håkestad a7250e9581
All checks were successful
pre-commit / pre-commit (push) Successful in 2m2s
Add sops
2024-03-06 21:30:11 +01:00

50 lines
1.4 KiB
Nix

{
description = "Torjus 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 = "torjus";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in
{
nixosConfigurations = {
prismo = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user; };
modules = [ ./hosts/prismo ];
};
magicman = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user; };
modules = [ ./hosts/magicman ];
};
gunter = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs self user sops-nix; };
modules = [
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./hosts/gunter
sops-nix.nixosModules.sops
];
};
};
};
}