Files
nixfiles/flake.nix
2025-12-06 15:19:07 -05:00

132 lines
3.5 KiB
Nix

{
description = "Root System NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.3-2.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
oscgoesbrrr = {
url = "github:TheButlah/OscGoesBrrr";
inputs.nixpkgs.follows = "nixpkgs";
};
go-bsb-cam = {
url = "git+https://repo.abby.cafe/pager/go-bsb-cams.git";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix = {
url = "github:yaxitech/ragenix";
inputs.nixpkgs.follows = "nixpkgs";
};
# baballonia = {
# url = "github:Project-Babble/Baballonia";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# lemonake.url = "github:passivelemon/lemonake";
# wayvr-dashbourd.url = "github:PassiveLemon/lemonake/master/pkgs/wayvr-dashboard"
};
outputs = { self, nixpkgs, lix-module, ragenix, home-manager, ...}@inputs:
{
nixosConfigurations.pewter =
let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = system;
};
in
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
lix-module.nixosModules.default
./vr-overlay.nix
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.abby = ./home.nix;
home-manager.sharedModules = [
ragenix.homeManagerModules.default
];
home-manager.extraSpecialArgs = {
username = "abby";
inherit inputs;
system = system;
use_syncthing = true;
};
}
];
};
homeConfigurations."abby@copper" =
let
system = "aarch64-linux";
pkgs = import nixpkgs {
system = system;
overlays = [ inputs.nixgl.overlay ];
};
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
lix-module.nixosModules.default
ragenix.homeManagerModules.default
./home.nix
];
extraSpecialArgs = {
inherit system;
username = "abby";
inherit inputs;
use_syncthing = false;
};
};
homeConfigurations."pager@nicrosil" =
let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = system;
overlays = [ inputs.nixgl.overlay ];
};
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# specialArgs = inputs;
modules = [
lix-module.nixosModules.default
ragenix.homeManagerModules.default
./home.nix
];
extraSpecialArgs = {
inherit system;
username = "pager";
inherit inputs;
use_syncthing = false;
};
};
};
}