mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
starting
This commit is contained in:
parent
bc81713c7d
commit
2b95839d67
92 changed files with 7 additions and 4495 deletions
144
flake.nix
144
flake.nix
|
|
@ -1,143 +1,13 @@
|
|||
{
|
||||
description = "Entry point for NixOS";
|
||||
description = "CrOS Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
||||
nix-darwin.url = "github:LnL7/nix-darwin/master";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nvix.url = "github:TheWanderingCrow/nvix";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
crowpkgs.url = "github:TheWanderingCrow/crowpkgs";
|
||||
nix-secrets = "github:TheWanderingCrow/nix-secrets";
|
||||
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
nix-secrets.url = "git+ssh://git@github.com/TheWanderingCrow/nix-secrets";
|
||||
terranix.url = "github:terranix/terranix";
|
||||
the-nest.url = "github:TheWanderingCrow/the-nest";
|
||||
nix-topology.url = "github:oddlama/nix-topology";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
sops-nix,
|
||||
terranix,
|
||||
nix-topology,
|
||||
...
|
||||
} @ inputs: let
|
||||
baseModules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
topology = [
|
||||
nix-topology.nixosModules.default
|
||||
];
|
||||
in {
|
||||
#########
|
||||
# NixOS #
|
||||
#########
|
||||
nixosConfigurations = {
|
||||
###################
|
||||
# Primary Desktop #
|
||||
###################
|
||||
Parzival = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/Parzival
|
||||
]
|
||||
++ baseModules
|
||||
++ topology;
|
||||
};
|
||||
###################
|
||||
# Personal Laptop #
|
||||
###################
|
||||
Parzival-Mobile = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/Parzival-Mobile
|
||||
]
|
||||
++ baseModules;
|
||||
};
|
||||
######################
|
||||
# Work Issued Laptop #
|
||||
######################
|
||||
Parzival-Framework = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/Parzival-Framework
|
||||
]
|
||||
++ baseModules;
|
||||
};
|
||||
################
|
||||
# Wife Desktop #
|
||||
################
|
||||
Dragneel = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/Dragneel
|
||||
]
|
||||
++ baseModules;
|
||||
};
|
||||
###############
|
||||
# Home Server #
|
||||
###############
|
||||
WCE-Overseer = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/WCE-Overseer
|
||||
]
|
||||
++ baseModules
|
||||
++ topology;
|
||||
};
|
||||
###################################
|
||||
# ISO Installer w/ recovery tools #
|
||||
###################################
|
||||
Parzival-Live = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs;};
|
||||
modules =
|
||||
[
|
||||
./hosts/Parzival-Live
|
||||
]
|
||||
++ baseModules;
|
||||
};
|
||||
};
|
||||
############
|
||||
# Terranix #
|
||||
############
|
||||
terranix = {
|
||||
wce = terranix.lib.terranixConfiguration {
|
||||
system = "x86_64-linux";
|
||||
modules = [./infra/wce.nix];
|
||||
};
|
||||
};
|
||||
################
|
||||
# Nix Topology #
|
||||
################
|
||||
topology.x86_64-linux = let
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [nix-topology.overlays.default];
|
||||
};
|
||||
in
|
||||
import nix-topology {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
./infra/topology.nix
|
||||
{
|
||||
nixosConfigurations = {
|
||||
WCE-Overseer = self.nixosConfigurations.WCE-Overseer;
|
||||
Parzival = self.nixosConfigurations.Parzival;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue