dotfiles/flake.nix
2021-06-12 10:31:25 +01:00

116 lines
2.7 KiB
Nix

{
description = "NixOS configuration with flakes";
outputs = { self, flake-utils, home-manager, nixpkgs-nixos-unstable, nixpkgs-stable, nixos-hardware, nur, bisq, agenix } @ inputs: {
nixosConfigurations = {
foureighty = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./nixos/boxes/foureighty)
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.cyryl = import ./nixos/home-manager;
}
];
specialArgs = { inherit inputs; };
};
skinnyv = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./nixos/boxes/skinnyv)
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.cyryl = import ./nixos/home-manager;
}
];
specialArgs = { inherit inputs; };
};
brix = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./nixos/boxes/brix)
agenix.nixosModules.age
];
specialArgs = { inherit inputs; };
};
vultr1 = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./nixos/boxes/vultr1)
agenix.nixosModules.age
];
specialArgs = { inherit inputs; };
};
};
};
inputs = {
nixpkgs-nixos-unstable = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
nixpkgs-stable = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-21.05";
};
nixos-hardware = {
type = "github";
owner = "cyplo";
repo = "nixos-hardware";
ref = "add-t480";
};
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
ref = "release-21.05";
inputs = {
nixpkgs.follows = "nixpkgs-stable";
};
};
flake-utils = {
type = "github";
owner = "numtide";
repo = "flake-utils";
ref = "master";
};
nur = {
type = "github";
owner = "nix-community";
repo = "NUR";
ref = "master";
};
bisq = {
type = "github";
owner = "emmanuelrosa";
repo = "nixpkgs";
ref = "39d42b8e83726c2fec873c023d4e1d6c37f4a187";
};
agenix = {
type = "github";
owner = "ryantm";
repo = "agenix";
ref = "master";
};
};
}