Files
nixfiles/flake.nix

138 lines
4.2 KiB
Nix
Raw Normal View History

2025-07-07 23:54:50 -04:00
{
description = "Root System NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
2025-08-26 15:28:57 -04:00
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-08-20 13:05:06 -04:00
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.3-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-09-29 00:51:48 -04:00
oscgoesbrrr = {
url = "github:TheButlah/OscGoesBrrr";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-09-24 03:05:30 -04:00
# baballonia = {
# url = "github:Project-Babble/Baballonia";
# inputs.nixpkgs.follows = "nixpkgs";
# };
2025-08-19 14:39:12 -04:00
# lemonake.url = "github:passivelemon/lemonake";
2025-08-26 15:28:57 -04:00
2025-07-07 23:54:50 -04:00
# wayvr-dashbourd.url = "github:PassiveLemon/lemonake/master/pkgs/wayvr-dashboard"
};
2025-09-29 00:51:48 -04:00
outputs = { self, nixpkgs, lix-module, home-manager, ...}@inputs:
2025-08-26 15:28:57 -04:00
{
nixosConfigurations.pewter =
let
system = "x86_64-linux";
xrizer = ({config, pkgs, lib, ... }:
{
nixpkgs.overlays = [
(final: prev: {
xrizer =
let
src = final.fetchFromGitHub {
owner = "Mr-Zero88";
repo = "xrizer";
# IMPORTANT: Fill the below field with the latest commit hash from https://github.com/Mr-Zero88-FBT/xrizer/commits/experimental2 (click the Copy full SHA button on the right side)
rev = "63f6c00";
# IMPORTANT: Replace the below field with the correct hash, the error when building with this empty will give you the expected hash.
hash = "sha256-ilPNar7sfdQ5aSeypy5BStEGeVAoXtHw/iWLhqKEsPQ=";
};
in
prev.xrizer.overrideAttrs (drv: {
cargoDeps = drv.cargoDeps.overrideAttrs {
src = src;
outputHashMode = "recursive";
outputHash = "sha256-Z6zTjiuY4avAH/Bh9kofk+nbmHSSvCXaSCQp++w3cOE=";
};
patches = [];
# cargoSha256 = "";
});
})
];
});
pkgs = import nixpkgs {
system = system;
};
in
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
lix-module.nixosModules.default
./configuration.nix
xrizer
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.abby = ./home.nix;
home-manager.extraSpecialArgs = {
username = "abby";
inherit inputs;
system = system;
};
}
];
};
2025-08-26 15:28:57 -04:00
homeConfigurations."abby@copper" =
let
system = "aarch64-linux";
2025-09-29 00:51:48 -04:00
pkgs = import nixpkgs {
system = system;
overlays = [ inputs.nixgl.overlay ];
};
2025-08-26 15:28:57 -04:00
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
lix-module.nixosModules.default
2025-08-26 15:28:57 -04:00
./home.nix
];
2025-09-24 03:05:30 -04:00
extraSpecialArgs = {
inherit system;
2025-09-24 03:05:30 -04:00
username = "abby";
inherit inputs;
2025-09-24 03:05:30 -04:00
};
2025-08-26 15:28:57 -04:00
};
2025-09-10 18:10:40 -04:00
homeConfigurations."pager@nicrosil" =
let
system = "x86_64-linux";
2025-09-29 00:51:48 -04:00
pkgs = import nixpkgs {
system = system;
overlays = [ inputs.nixgl.overlay ];
};
2025-09-10 18:10:40 -04:00
in
home-manager.lib.homeManagerConfiguration {
2025-08-26 15:28:57 -04:00
2025-09-10 18:10:40 -04:00
inherit pkgs;
# specialArgs = inputs;
modules = [
lix-module.nixosModules.default
2025-09-10 18:10:40 -04:00
./home.nix
];
extraSpecialArgs = {
username = "pager";
inherit inputs;
2025-09-10 18:10:40 -04:00
};
};
};
2025-07-07 23:54:50 -04:00
}