dotfiles/provision/flake.nix

122 lines
3.8 KiB
Nix
Raw Normal View History

2023-07-10 17:52:34 -07:00
{
2023-07-23 14:59:13 -07:00
description = "Flake for nixos configurations";
2023-07-10 17:52:34 -07:00
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-07-10 17:52:34 -07:00
home-manager = {
url = github:nix-community/home-manager;
2023-07-10 17:52:34 -07:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-21 21:05:02 -07:00
jovian-nixos = {
url = "git+https://github.com/Jovian-Experiments/Jovian-NixOS?ref=development";
2023-08-21 21:05:02 -07:00
flake = false;
};
2023-11-19 15:34:22 -08:00
sops-nix.url = "github:Mic92/sops-nix";
2024-01-07 00:57:07 -08:00
hyprland.url = "github:hyprwm/Hyprland";
2024-02-05 22:55:44 -08:00
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-07-10 17:52:34 -07:00
};
2024-01-07 00:57:07 -08:00
outputs = inputs @ { self, nixpkgs, home-manager, jovian-nixos, sops-nix, hyprland, ... }:
2023-07-10 17:52:34 -07:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
lib = nixpkgs.lib;
user = "tstarr";
in {
nixosConfigurations = {
kestrel = lib.nixosSystem {
inherit system;
2024-01-07 00:57:07 -08:00
specialArgs = { inherit user; inherit inputs; };
2023-07-10 17:52:34 -07:00
modules = [
2023-11-18 17:19:21 -08:00
./modules
2023-07-23 14:59:13 -07:00
./hosts/kestrel/configuration.nix
./hosts/kestrel/hardware.nix
2023-11-19 15:34:22 -08:00
sops-nix.nixosModules.sops
2023-07-10 17:52:34 -07:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
2023-11-18 17:19:21 -08:00
imports = [
./home-modules
./hosts/kestrel/home-configuration.nix
];
2023-07-23 14:59:13 -07:00
};
}
];
};
shivan = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; inherit inputs; };
modules = [
./modules
./hosts/shivan/configuration.nix
./hosts/shivan/hardware.nix
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [
./home-modules
./hosts/shivan/home-configuration.nix
];
};
}
];
};
2023-07-23 14:59:13 -07:00
torus = lib.nixosSystem {
inherit system;
2024-01-07 00:57:07 -08:00
specialArgs = { inherit user; inherit inputs; };
2023-07-23 14:59:13 -07:00
modules = [
2023-11-18 17:19:21 -08:00
./modules
2023-07-23 14:59:13 -07:00
./hosts/torus/configuration.nix
./hosts/torus/hardware.nix
2023-11-19 15:34:22 -08:00
sops-nix.nixosModules.sops
2023-07-23 14:59:13 -07:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
2023-11-18 17:19:21 -08:00
imports = [
./home-modules
./hosts/torus/home-configuration.nix
];
2023-07-10 17:52:34 -07:00
};
}
];
};
2023-08-21 21:10:50 -07:00
bulwark = lib.nixosSystem {
inherit system;
2024-01-07 00:57:07 -08:00
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
2023-08-21 21:10:50 -07:00
modules = [
2023-11-18 17:19:21 -08:00
./modules
2023-08-21 21:10:50 -07:00
./hosts/bulwark/configuration.nix
./hosts/bulwark/hardware.nix
2023-11-19 15:34:22 -08:00
sops-nix.nixosModules.sops
2023-08-21 21:10:50 -07:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
2023-11-18 17:19:21 -08:00
imports = [
./home-modules
./hosts/bulwark/home-configuration.nix
];
2023-08-21 21:10:50 -07:00
};
}
];
};
2023-07-10 17:52:34 -07:00
};
};
}