2024-01-05 18:42:21 +01:00
|
|
|
{
|
2024-01-06 18:40:20 +01:00
|
|
|
description = "Geoffrey Frogeye's base configurations";
|
2024-01-05 18:42:21 +01:00
|
|
|
|
|
|
|
inputs = {
|
2024-01-06 18:40:20 +01:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
|
|
|
# OS
|
|
|
|
disko = {
|
|
|
|
url = "disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixos-hardware.url = "nixos-hardware";
|
|
|
|
# HM
|
|
|
|
home-manager = {
|
|
|
|
url = "home-manager/release-23.11";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
stylix = {
|
|
|
|
url = "github:danth/stylix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim/c96d7b46d05a78e695ed1c725d1596b65509b4f9";
|
|
|
|
# 24.05 Anything after this commit works
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixgl = {
|
|
|
|
url = "github:guibou/nixGL";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-05 18:42:21 +01:00
|
|
|
};
|
|
|
|
|
2024-01-06 18:40:20 +01:00
|
|
|
outputs = { self, nixpkgs, disko, nixos-hardware, home-manager, stylix, nixvim, nixgl, ... }:
|
|
|
|
let
|
|
|
|
sharedOverlays = [
|
|
|
|
nixgl.overlay
|
2024-01-05 18:42:21 +01:00
|
|
|
];
|
2024-01-06 18:40:20 +01:00
|
|
|
lib = {
|
|
|
|
nixosSystem = { system, modules }: nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = modules ++ [
|
|
|
|
self.nixosModules.dotfiles
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = sharedOverlays;
|
|
|
|
home-manager.sharedModules = [ self.homeManagerModules.dotfiles ];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
homeManagerConfiguration = { system, modules }: home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = sharedOverlays;
|
|
|
|
};
|
|
|
|
modules = modules ++ [ self.homeManagerModules.dotfiles ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
lib = lib;
|
|
|
|
nixosModules.dotfiles = {
|
|
|
|
imports = [
|
|
|
|
./os
|
|
|
|
disko.nixosModules.disko
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
];
|
|
|
|
};
|
|
|
|
homeManagerModules.dotfiles = {
|
|
|
|
imports = [
|
|
|
|
./hm
|
|
|
|
stylix.homeManagerModules.stylix
|
|
|
|
nixvim.homeManagerModules.nixvim
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nixosConfigurations.curacao = lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./curacao/os.nix
|
|
|
|
nixos-hardware.nixosModules.dell-g3-3779
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nixosConfigurations.pindakaas = lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = [
|
|
|
|
./pindakaas/os.nix
|
|
|
|
nixos-hardware.nixosModules.pine64-pinebook-pro
|
|
|
|
];
|
|
|
|
};
|
2024-01-05 18:42:21 +01:00
|
|
|
};
|
|
|
|
}
|