mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
150 lines
5.5 KiB
Nix
150 lines
5.5 KiB
Nix
{
|
|
description = "My NixOS configuration";
|
|
|
|
nixConfig = {
|
|
extra-substituters = [ "https://cache.m7.rs" ];
|
|
extra-trusted-public-keys = [ "cache.m7.rs:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg=" ];
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
|
|
|
hardware.url = "github:nixos/nixos-hardware";
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
sops-nix.url = "github:mic92/sops-nix";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixos-mailserver = {
|
|
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nix-minecraft = {
|
|
# url = "github:infinidoge/nix-minecraft";
|
|
url = "github:misterio77/nix-minecraft";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Nixified software I use
|
|
hyprland.url = "github:hyprwm/hyprland/v0.20.1beta";
|
|
hyprwm-contrib.url = "github:hyprwm/contrib";
|
|
firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
|
|
|
website.url = "github:misterio77/website";
|
|
paste-misterio-me.url = "github:misterio77/paste.misterio.me";
|
|
yrmos.url = "github:misterio77/yrmos";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
|
forEachPkgs = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
|
|
in
|
|
{
|
|
nixosModules = import ./modules/nixos;
|
|
homeManagerModules = import ./modules/home-manager;
|
|
templates = import ./templates;
|
|
|
|
overlays = import ./overlays { inherit inputs outputs; };
|
|
hydraJobs = import ./hydra.nix { inherit inputs outputs; };
|
|
|
|
packages = forEachPkgs (pkgs: import ./pkgs { inherit pkgs; });
|
|
devShells = forEachPkgs (pkgs: import ./shell.nix { inherit pkgs; });
|
|
formatter = forEachPkgs (pkgs: pkgs.nixpkgs-fmt);
|
|
|
|
nixosConfigurations = {
|
|
# Desktop
|
|
atlas = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/atlas ];
|
|
};
|
|
# Laptop
|
|
pleione = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/pleione ];
|
|
};
|
|
electra = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/electra ];
|
|
};
|
|
# Secondary Desktop
|
|
maia = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/maia ];
|
|
};
|
|
# Raspberry Pi 4
|
|
merope = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/merope ];
|
|
};
|
|
# Vultr VPS
|
|
# Used for critical stuff (headscale, email, prometheus, etc)
|
|
alcyone = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/alcyone ];
|
|
};
|
|
# Oracle Ampere VPS (free!)
|
|
# Used for hydra, game servers, etc
|
|
celaeno = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ ./hosts/celaeno ];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
# Desktop
|
|
"misterio@atlas" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/atlas.nix ];
|
|
};
|
|
# Laptop
|
|
"misterio@pleione" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/pleione.nix ];
|
|
};
|
|
"misterio@electra" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/electra.nix ];
|
|
};
|
|
# Secondary Desktop
|
|
"misterio@maia" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/maia.nix ];
|
|
};
|
|
# Raspi 4
|
|
"misterio@merope" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."aarch64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/merope.nix ];
|
|
};
|
|
# Vultr VPS
|
|
"misterio@alcyone" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/alcyone.nix ];
|
|
};
|
|
# Oracle Ampere VPS
|
|
"misterio@celaeno" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."aarch64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/celaeno.nix ];
|
|
};
|
|
# Portable minimum configuration
|
|
"misterio@generic" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ ./home/misterio/generic.nix ];
|
|
};
|
|
};
|
|
};
|
|
}
|