liminalOS/flake.nix
Youwen Wu f3bc3dcf65
flake.lock: Update
Flake lock file updates:

• Updated input 'agenix':
    'github:yaxitech/ragenix/687ee92114bce9c4724376cf6b21235abe880bfa?narHash=sha256-03XIEjHeZEjHXctsXYUB%2BZLQmM0WuhR6qWQjwekFk/M%3D' (2024-09-19)
  → 'github:ryantm/agenix/f6291c5935fdc4e0bef208cfc0dcab7e3f7a1c41?narHash=sha256-b%2Buqzj%2BWa6xgMS9aNbX4I%2BsXeb5biPDi39VgvSFqFvU%3D' (2024-08-10)
• Removed input 'agenix/agenix'
• Removed input 'agenix/agenix/darwin'
• Removed input 'agenix/agenix/darwin/nixpkgs'
• Removed input 'agenix/agenix/home-manager'
• Removed input 'agenix/agenix/home-manager/nixpkgs'
• Removed input 'agenix/agenix/nixpkgs'
• Removed input 'agenix/agenix/systems'
• Removed input 'agenix/crane'
• Added input 'agenix/darwin':
    follows 'nix-darwin'
• Removed input 'agenix/flake-utils'
• Added input 'agenix/home-manager':
    follows 'home-manager'
• Removed input 'agenix/rust-overlay'
• Removed input 'agenix/rust-overlay/nixpkgs'
• Added input 'agenix/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D' (2023-04-09)
• Updated input 'homebrew-cask':
    'github:homebrew/homebrew-cask/9020eb7221b9b11939cac7a7de4764a26ef28e83?narHash=sha256-Tezx3RPu5HvClvnVybPyzIFag0VjbdmM1NLi7o6CsHg%3D' (2024-12-29)
  → 'github:homebrew/homebrew-cask/3197b31a2a37f858e7105480dede4c27abc25ec0?narHash=sha256-j7RHPkUYv95Z%2Bfab8qQ9AoSnWEnuikFLQiIfaDiVjx8%3D' (2024-12-30)
• Updated input 'homebrew-core':
    'github:homebrew/homebrew-core/c5f846e479c1f362cd43b3ee22e332b2d4990e13?narHash=sha256-Zwl9m/y/iCJlf1AteOWBQ0Y4qP%2B3nE4HwhkpgSz6EYk%3D' (2024-12-29)
  → 'github:homebrew/homebrew-core/6c6d0ea613f57bcef5d167e6d6a91b9b4862610e?narHash=sha256-j9Y5S3KA6eRB87%2BaYrxxdZY1RdFX/cJImJqWS5aShl0%3D' (2024-12-30)
• Updated input 'nix-darwin':
    'github:LnL7/nix-darwin/713da7b75b9ed86b1aeef25981dc73f99ea0477f?narHash=sha256-Kx2ungOLiOXw%2BA/GDeeWGF91pu4Pxtf51A9VTJQKG1U%3D' (2024-12-29)
  → 'github:LnL7/nix-darwin/71a3a075e3229a7518d76636bb762aef2bcb73ac?narHash=sha256-Ys9pSP9ch0SthhpbjnkCSJ9ZLfaNKnt/dcy7swjmS1A%3D' (2024-12-29)
• Updated input 'nix-flatpak':
    'github:gmodena/nix-flatpak/13be795cac27df7044a425c0b2de3a42b10ddb18?narHash=sha256-8SCTJhDH1fdNGGFhuGStIqbO7vwUKQokgQu6nQlQagY%3D' (2024-12-22)
  → 'github:gmodena/nix-flatpak/c31b6cbd11707fe2c74ad805ef085d59d75116ae?narHash=sha256-5qmX6YYjYfVYBbsmd2XxbTi7A59YuuN9IwfXU7qFquQ%3D' (2024-12-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/634fd46801442d760e09493a794c4f15db2d0cbb?narHash=sha256-NYVcA06%2BblsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M%3D' (2024-12-27)
  → 'github:nixos/nixpkgs/88195a94f390381c6afcdaa933c2f6ff93959cb4?narHash=sha256-0q9NGQySwDQc7RhAV2ukfnu7Gxa5/ybJ2ANT8DQrQrs%3D' (2024-12-29)
• Updated input 'spicetify':
    'github:Gerg-L/spicetify-nix/ffff5a333a9dea5f3fba352239c5f445b0788083?narHash=sha256-XfC/uQO77JXC4DSOYUjRI7f46xF7Pz2Ipo4z0fYAzdo%3D' (2024-12-29)
  → 'github:Gerg-L/spicetify-nix/52c3363e4a6896c263657491e8177ee8b63af3b4?narHash=sha256-b%2BYz6cOqcDmWYt8BIifTrY1n8q5zTJEHuEh/16nhS7k%3D' (2024-12-30)
• Updated input 'stylix':
    'github:danth/stylix/963e77a3a4fc2be670d5a9a6cbeb249b8a43808a?narHash=sha256-aKLAUkdeMH2N5gMDNiOC7KghRNy1necLtLa9%2BzUcj1g%3D' (2024-12-26)
  → 'github:danth/stylix/a4ed4168fb83289374f24cb8a039c6983637a076?narHash=sha256-R4i8VCdSGLWHt6cL5p2Cmlh9MRodZsYO8moUjvxYb54%3D' (2024-12-30)

flake.lock: Update

Flake lock file updates:

• Updated input 'agenix/darwin':
    'github:lnl7/nix-darwin/71a3a075e3229a7518d76636bb762aef2bcb73ac?narHash=sha256-Ys9pSP9ch0SthhpbjnkCSJ9ZLfaNKnt/dcy7swjmS1A%3D' (2024-12-29)
  → 'github:lnl7/nix-darwin/4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d?narHash=sha256-gzGLZSiOhf155FW7262kdHo2YDeugp3VuIFb4/GGng0%3D' (2023-11-24)
• Updated input 'agenix/home-manager':
    'github:nix-community/home-manager/10e99c43cdf4a0713b4e81d90691d22c6a58bdf2?narHash=sha256-CyCZFhMUkuYbSD6bxB/r43EdmDE7hYeZZPTCv0GudO4%3D' (2024-12-28)
  → 'github:nix-community/home-manager/3bfaacf46133c037bb356193bd2f1765d9dc82c1?narHash=sha256-7ulcXOk63TIT2lVDSExj7XzFx09LpdSAPtvgtM7yQPE%3D' (2023-12-20)
2024-12-30 14:24:26 -08:00

235 lines
6 KiB
Nix
Executable file

{
description = "System configuration flake.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# stablepkgs.url = "github:nixos/nixpkgs/nixos-24.05";
# bleedingpkgs.url = "github:nixos/nixpkgs/master";
# nixpkgs-unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-homebrew = {
url = "github:zhaofengli-wip/nix-homebrew";
inputs.nixpkgs.follows = "nixpkgs";
};
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
ucode.url = "github:e-tho/ucodenix";
apple-silicon = {
url = "github:tpwrules/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
};
apple-firmware = {
url = "git+https://code.youwen.dev/youwen5/apple-firmware";
flake = false;
};
spicetify = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
viminal = {
url = "git+https://code.youwen.dev/youwen5/viminal2";
inputs.nixpkgs.follows = "nixpkgs";
};
vesktop-bin = {
url = "github:youwen5/vesktop-bin-flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
nix-index-database = {
url = "github:marienz/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:yaxitech/ragenix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
wallpapers = {
url = "git+https://code.youwen.dev/youwen5/wallpapers";
flake = false;
};
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs =
inputs@{
nixpkgs,
nix-darwin,
flake-parts,
self,
...
}:
let
buildLiminalOS = import ./lib/buildLiminalOS.nix;
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
# "aarch64-darwin"
# aarch64-darwin is currently disabled due to lack of maintenance
];
flake = {
nixosConfigurations = {
demeter = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs self;
};
modules = [
./reference/hosts/demeter
];
};
callisto = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs self;
};
modules = [
./reference/hosts/callisto
];
};
adrastea = buildLiminalOS {
inherit inputs nixpkgs;
systemModule = ./reference/hosts/adrastea;
};
cassini = buildLiminalOS {
inherit inputs nixpkgs;
systemModule = ./reference/hosts/cassini;
};
};
darwinConfigurations.phobos = nix-darwin.lib.darwinSystem {
specialArgs = {
inherit inputs;
};
modules = [
./hosts/phobos
];
};
nixosModules = rec {
default = liminalOS;
liminalOS = {
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
inputs.home-manager.nixosModules.home-manager
inputs.nixos-wsl.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.agenix.nixosModules.age
./modules/default.nix
./overlays
(
{ pkgs, ... }:
{
home-manager.extraSpecialArgs = {
spicepkgs = inputs.spicetify.legacyPackages.${pkgs.system};
inherit inputs self;
};
nixpkgs.overlays = [
(final: prev: {
zen-browser = inputs.zen-browser.packages.${pkgs.system}.default;
})
];
environment.systemPackages = [ inputs.agenix.packages.${pkgs.system}.default ];
}
)
];
};
};
homeManagerModules = rec {
default = liminalOS;
liminalOS = {
imports = [
inputs.nix-index-database.hmModules.nix-index
inputs.spicetify.homeManagerModules.default
inputs.agenix.homeManagerModules.age
./hm/modules/default.nix
];
};
};
templates = rec {
liminalOS = {
path = ./templates/liminalOS;
description = "Barebones configuration of liminalOS";
};
default = liminalOS;
};
};
perSystem =
{
pkgs,
...
}:
{
formatter = pkgs.nixfmt-rfc-style;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nixd
nixfmt-rfc-style
prettierd
taplo
marksman
];
};
};
};
}