dotfiles/flake.nix

101 lines
2.3 KiB
Nix
Raw Normal View History

2021-05-30 20:41:33 +01:00
{
description = "NixOS configuration with flakes";
2021-06-01 14:30:39 +01:00
outputs = { self, flake-utils, home-manager, nixpkgs-nixos-unstable, nixpkgs-stable, nur, bisq, agenix } @ inputs: {
2021-05-31 09:15:44 +01:00
nixosConfigurations = {
2021-06-01 14:30:39 +01:00
foureighty = nixpkgs-stable.lib.nixosSystem {
2021-05-31 09:15:44 +01:00
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; };
};
2021-06-01 14:30:39 +01:00
skinnyv = nixpkgs-stable.lib.nixosSystem {
2021-05-31 09:15:44 +01:00
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; };
};
};
};
2021-05-30 20:41:33 +01:00
inputs = {
2021-06-01 14:30:39 +01:00
nixpkgs-nixos-unstable = {
2021-05-30 20:41:33 +01:00
type = "github";
2021-05-30 23:13:31 +01:00
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
2021-05-30 20:41:33 +01:00
};
2021-05-31 09:15:44 +01:00
nixpkgs-stable = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
2021-06-01 14:30:39 +01:00
ref = "nixos-21.05";
2021-05-31 09:15:44 +01:00
};
2021-05-30 20:41:33 +01:00
home-manager = {
type = "github";
owner = "nix-community";
repo = "home-manager";
2021-06-01 14:30:39 +01:00
ref = "release-21.05";
2021-05-30 20:41:33 +01:00
inputs = {
2021-06-01 14:30:39 +01:00
nixpkgs.follows = "nixpkgs-stable";
2021-05-30 20:41:33 +01:00
};
};
2021-05-30 23:13:31 +01:00
flake-utils = {
2021-05-30 20:41:33 +01:00
type = "github";
2021-05-30 23:13:31 +01:00
owner = "numtide";
repo = "flake-utils";
ref = "master";
2021-05-30 20:41:33 +01:00
};
nur = {
type = "github";
owner = "nix-community";
repo = "NUR";
ref = "master";
};
bisq = {
type = "github";
owner = "emmanuelrosa";
repo = "nixpkgs";
2021-06-03 07:27:44 +01:00
ref = "39d42b8e83726c2fec873c023d4e1d6c37f4a187";
2021-05-30 20:41:33 +01:00
};
2021-05-31 09:15:44 +01:00
agenix = {
type = "github";
owner = "ryantm";
repo = "agenix";
ref = "master";
2021-05-30 20:41:33 +01:00
};
};
2021-05-31 09:15:44 +01:00
2021-05-30 20:41:33 +01:00
}