144 lines
3.5 KiB
Nix
144 lines
3.5 KiB
Nix
{
|
|
description = "nixos configs";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nh = {
|
|
url = "github:viperML/nh";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-gc-env.url = "github:Julow/nix-gc-env";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
emacs-overlay = {
|
|
url = "github:nix-community/emacs-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland-contrib = {
|
|
url = "github:hyprwm/contrib";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
naviterm = {
|
|
url = "gitlab:detoxify92/naviterm";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
pppdotpm-site = {
|
|
url = "git+ssh://gitea@git.ppp.pm:1122/alex/ppp.pm-site.git?ref=main";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
whib-backend = {
|
|
url = "git+ssh://gitea@git.ppp.pm:1122/alex/whib.git?ref=master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
whib-frontend = {
|
|
url = "git+ssh://gitea@git.ppp.pm:1122/alex/whib-react.git?ref=master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ ... }@inputs:
|
|
{
|
|
nixosConfigurations = {
|
|
pinwheel = inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/pinwheel/configuration.nix
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
|
|
./hosts/pinwheel/home.nix
|
|
];
|
|
};
|
|
|
|
manatee = inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/manatee/configuration.nix
|
|
./hosts/manatee/home.nix
|
|
];
|
|
};
|
|
|
|
backwards = inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/backwards/configuration.nix
|
|
./hosts/backwards/home.nix
|
|
];
|
|
};
|
|
|
|
tadpole =
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/tadpole/configuration.nix
|
|
./hosts/tadpole/home.nix
|
|
inputs.whib-backend.nixosModules.${system}.default
|
|
];
|
|
};
|
|
|
|
test-vm =
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
modules = [
|
|
./hosts/test-vm/configuration.nix
|
|
inputs.whib-backend.nixosModules.${system}.default
|
|
];
|
|
};
|
|
};
|
|
|
|
devShells =
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
${system}.default = pkgs.mkShell {
|
|
packages = [ pkgs.nixfmt-rfc-style ];
|
|
};
|
|
};
|
|
};
|
|
}
|