2024-07-11 03:56:19 -07:00
|
|
|
{
|
|
|
|
description = "System configuration flake.";
|
|
|
|
|
|
|
|
inputs = {
|
2024-11-04 11:56:28 -08:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-09-03 22:07:28 -07:00
|
|
|
# stablepkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-11-11 18:29:01 -08:00
|
|
|
# bleedingpkgs.url = "github:nixos/nixpkgs/master";
|
2024-09-07 02:41:52 -07:00
|
|
|
# nixpkgs-unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-07-11 03:56:19 -07:00
|
|
|
home-manager = {
|
2024-07-31 16:52:12 -07:00
|
|
|
url = "github:nix-community/home-manager";
|
2024-07-11 03:56:19 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-11-11 18:29:01 -08:00
|
|
|
flake-parts = {
|
|
|
|
url = "github:hercules-ci/flake-parts";
|
|
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
2024-08-21 16:48:17 -07:00
|
|
|
nix-darwin = {
|
|
|
|
url = "github:LnL7/nix-darwin";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-09-03 22:07:28 -07:00
|
|
|
nix-homebrew = {
|
|
|
|
url = "github:zhaofengli-wip/nix-homebrew";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-08-05 02:51:43 -07:00
|
|
|
homebrew-core = {
|
|
|
|
url = "github:homebrew/homebrew-core";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-08-05 02:51:43 -07:00
|
|
|
homebrew-cask = {
|
|
|
|
url = "github:homebrew/homebrew-cask";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-07-12 15:21:32 -07:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-11 18:29:01 -08:00
|
|
|
inputs.flake-parts.follows = "flake-parts";
|
2024-07-12 15:21:32 -07:00
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-11-13 13:52:50 -08:00
|
|
|
ucode.url = "github:e-tho/ucodenix";
|
2024-11-12 15:35:52 -08:00
|
|
|
|
2024-08-07 05:55:39 -07:00
|
|
|
apple-silicon = {
|
2024-10-29 13:12:44 -07:00
|
|
|
# url = "github:tpwrules/nixos-apple-silicon";
|
|
|
|
url = "github:zzywysm/nixos-asahi";
|
2024-08-07 05:55:39 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-21 16:48:17 -07:00
|
|
|
|
2024-09-04 11:05:39 -07:00
|
|
|
apple-firmware = {
|
|
|
|
url = "git+https://code.youwen.dev/youwen5/apple-firmware";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
2024-08-24 22:20:28 -07:00
|
|
|
spicetify = {
|
|
|
|
url = "github:Gerg-L/spicetify-nix";
|
2024-08-17 04:49:37 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-23 23:14:53 -07:00
|
|
|
|
2024-09-17 16:26:38 -07:00
|
|
|
viminal = {
|
2024-10-10 01:47:33 -07:00
|
|
|
url = "git+https://code.youwen.dev/youwen5/viminal2";
|
2024-09-03 22:07:28 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-25 06:10:47 -07:00
|
|
|
|
2024-09-03 22:07:28 -07:00
|
|
|
vesktop-bin = {
|
|
|
|
url = "github:youwen5/vesktop-bin-flake";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-11 18:29:01 -08:00
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
2024-09-03 22:07:28 -07:00
|
|
|
};
|
2024-08-26 00:43:36 -07:00
|
|
|
|
2024-10-30 21:38:05 -07:00
|
|
|
stylix.url = "github:danth/stylix";
|
|
|
|
|
2024-11-01 21:35:48 -07:00
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-08-26 00:43:36 -07:00
|
|
|
wallpapers = {
|
|
|
|
url = "git+https://code.youwen.dev/youwen5/wallpapers";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-08-26 15:29:33 -07:00
|
|
|
|
2024-09-03 22:07:28 -07:00
|
|
|
zen-browser = {
|
|
|
|
url = "github:youwen5/zen-browser-flake";
|
|
|
|
};
|
2024-11-26 17:15:31 -08:00
|
|
|
|
|
|
|
nixos-wsl = {
|
|
|
|
url = "github:nix-community/NixOS-WSL";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
2024-09-02 18:16:22 -07:00
|
|
|
outputs =
|
2024-10-24 19:34:08 -07:00
|
|
|
inputs@{
|
2024-09-02 18:16:22 -07:00
|
|
|
nixpkgs,
|
|
|
|
nix-darwin,
|
2024-10-24 19:34:08 -07:00
|
|
|
flake-parts,
|
2024-09-02 18:16:22 -07:00
|
|
|
...
|
2024-10-24 19:34:08 -07:00
|
|
|
}:
|
2024-10-25 14:44:25 -07:00
|
|
|
let
|
|
|
|
buildLiminalOS = import ./lib/buildLiminalOS.nix;
|
|
|
|
in
|
2024-10-24 19:34:08 -07:00
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
|
|
|
flake = {
|
|
|
|
nixosConfigurations = {
|
2024-10-25 14:44:25 -07:00
|
|
|
demeter = buildLiminalOS {
|
|
|
|
inherit inputs nixpkgs;
|
|
|
|
systemModule = ./hosts/demeter;
|
2024-09-02 18:16:22 -07:00
|
|
|
};
|
2024-10-25 14:44:25 -07:00
|
|
|
callisto = buildLiminalOS {
|
|
|
|
inherit nixpkgs inputs;
|
|
|
|
systemModule = ./hosts/callisto;
|
2024-10-24 19:34:08 -07:00
|
|
|
};
|
2024-10-25 14:44:25 -07:00
|
|
|
adrastea = buildLiminalOS {
|
|
|
|
inherit inputs nixpkgs;
|
|
|
|
systemModule = ./hosts/adrastea;
|
2024-09-02 18:16:22 -07:00
|
|
|
};
|
2024-11-26 17:15:31 -08:00
|
|
|
cassini = buildLiminalOS {
|
|
|
|
inherit inputs nixpkgs;
|
|
|
|
systemModule = ./hosts/cassini;
|
|
|
|
};
|
2024-09-02 18:16:22 -07:00
|
|
|
};
|
2024-10-24 19:34:08 -07:00
|
|
|
darwinConfigurations.phobos = nix-darwin.lib.darwinSystem {
|
2024-09-02 18:16:22 -07:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
modules = [
|
2024-10-24 19:34:08 -07:00
|
|
|
./hosts/phobos
|
2024-09-02 18:16:22 -07:00
|
|
|
];
|
|
|
|
};
|
2024-07-21 19:02:10 -07:00
|
|
|
};
|
2024-10-24 19:34:08 -07:00
|
|
|
perSystem =
|
2024-10-29 22:11:27 -07:00
|
|
|
{ pkgs, system, ... }:
|
2024-10-24 19:34:08 -07:00
|
|
|
{
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
2024-10-29 22:11:27 -07:00
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs =
|
|
|
|
with pkgs;
|
|
|
|
[
|
|
|
|
nixd
|
|
|
|
nixfmt-rfc-style
|
|
|
|
prettierd
|
|
|
|
taplo
|
2024-10-30 00:32:32 -07:00
|
|
|
marksman
|
2024-10-29 22:11:27 -07:00
|
|
|
]
|
|
|
|
++ [
|
|
|
|
inputs.viminal.packages.${system}.default
|
|
|
|
];
|
|
|
|
};
|
2024-09-02 18:16:22 -07:00
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
}
|