initial refactor

This commit is contained in:
alsaiduq-lab 2025-06-29 20:22:27 -06:00
parent 37a297ca9d
commit bab94c7f22
5 changed files with 74 additions and 16 deletions

View file

@ -3,18 +3,25 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
rpcs3_latest = {
url = "github:RPCS3/rpcs3";
flake = false;
};
unstable = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
};
outputs = {
@ -23,10 +30,18 @@
home-manager,
nix-gaming,
rpcs3_latest,
unstable,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
unstablePkgs = import unstable {
inherit system;
config = {allowUnfree = true;};
};
customPkgs = import "${self}/pkgs" {
inherit pkgs;
lib = nixpkgs.lib;
@ -36,6 +51,7 @@
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
{
nixpkgs = {
@ -45,6 +61,7 @@
};
hostPlatform = system;
overlays = [
(final: prev: {ollama = unstablePkgs.ollama;})
(final: prev: {
inherit
(customPkgs)
@ -56,6 +73,7 @@
binary-font
;
})
(final: prev: {
clear-sans = prev.clear-sans.clear-sans;
binary-font = prev.binary-font.binary-clock-font;