mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
Flake lock file updates: • Removed input 'emacs-overlay' • Removed input 'emacs-overlay/flake-utils' • Removed input 'emacs-overlay/flake-utils/systems' • Removed input 'emacs-overlay/nixpkgs' • Removed input 'emacs-overlay/nixpkgs-stable' • Updated input 'fenix': 'github:nix-community/fenix/5ade7808d45671b545f3516adf61bc9a604a6246' (2023-11-23) → 'github:nix-community/fenix/46a368edf5f1cc16573157797e5acead834d5b2c' (2024-01-30) • Updated input 'fenix/nixpkgs': 'github:nixos/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:nixos/nixpkgs/c002c6aa977ad22c60398daaa9be52f2203d0006' (2024-01-27) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/7ceefc7ee981f7dd9de4cfdd070696e48b4ab43e' (2023-11-22) → 'github:rust-lang/rust-analyzer/d13951f25c4cb880bff09a3c02a796ecc51f69ac' (2024-01-29) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01) → 'github:hercules-ci/flake-parts/60c614008eed1d0383d21daac177a3e036192ed8' (2024-01-29) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29) → 'github:NixOS/nixpkgs/b0d36bd0a420ecee3bc916c91886caca87c894e9?dir=lib' (2023-12-30) • Updated input 'home-manager': 'github:willemml/home-manager/d08f04acae4b7ed2414e5f4d0bc6f1101d20a6ee' (2023-11-12) → 'github:nix-community/home-manager/d634c3abafa454551f2083b054cd95c3f287be61' (2024-01-28) • Updated input 'hyprland': 'github:hyprwm/Hyprland/e55c5a916ab942e641339471bc80b6d2efbc2044' (2023-11-22) → 'github:hyprwm/Hyprland/e65f52bf2d6abb001c402c8302ac7003da8cd06d' (2024-01-30) • Updated input 'hyprland/nixpkgs': 'github:NixOS/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24) → 'github:NixOS/nixpkgs/ae5c332cbb5827f6b1f02572496b141021de335f' (2024-01-25) • Updated input 'hyprland/wlroots': 'gitlab:wlroots/wlroots/5de9e1a99d6642c2d09d589aa37ff0a8945dcee1' (2023-11-06) → 'gitlab:wlroots/wlroots/00b869c1a96f300a8f25da95d624524895e0ddf2' (2024-01-27) • Updated input 'hyprland/xdph': 'github:hyprwm/xdg-desktop-portal-hyprland/22e7a65ff9633e1dedfa5317fdffc49f68de2ff2' (2023-10-22) → 'github:hyprwm/xdg-desktop-portal-hyprland/5a592647587cd20b9692a347df6939b6d371b3bb' (2024-01-25) • Added input 'hyprland/xdph/hyprlang': 'github:hyprwm/hyprlang/6624f2bb66d4d27975766e81f77174adbe58ec97' (2024-01-03) • Added input 'hyprland/xdph/hyprlang/nixpkgs': follows 'hyprland/xdph/nixpkgs' • Updated input 'nix-github-actions': 'github:nix-community/nix-github-actions/4bb5e752616262457bc7ca5882192a564c0472d2' (2023-11-03) → 'github:nix-community/nix-github-actions/5163432afc817cf8bd1f031418d1869e4c9d5547' (2023-12-29) • Updated input 'nix-index-database': 'github:nix-community/nix-index-database/27920146e671a0d565aaa7452907383be14d8d82' (2023-11-19) → 'github:nix-community/nix-index-database/c782f2a4f6fc94311ab5ef31df2f1149a1856181' (2024-01-28) • Updated input 'nixos-apple-silicon': 'github:tpwrules/nixos-apple-silicon/14b327ca47703c376ebb82ba16dc42ca2baa57d8' (2023-11-19) → 'github:tpwrules/nixos-apple-silicon/6e324ab06cb27a19409ebc1dc2664bf1e585490a' (2024-01-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:nixos/nixpkgs/c002c6aa977ad22c60398daaa9be52f2203d0006' (2024-01-27) • Removed input 'nixvim' • Removed input 'nixvim/beautysh' • Removed input 'nixvim/beautysh/nixpkgs' • Removed input 'nixvim/beautysh/poetry2nix' • Removed input 'nixvim/beautysh/poetry2nix/flake-utils' • Removed input 'nixvim/beautysh/poetry2nix/nixpkgs' • Removed input 'nixvim/beautysh/utils' • Removed input 'nixvim/flake-utils' • Removed input 'nixvim/flake-utils/systems' • Removed input 'nixvim/nixpkgs' • Removed input 'nixvim/pre-commit-hooks' • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/e558068cba67b23b4fbc5537173dbb43748a17e8' (2023-11-15) → 'github:cachix/pre-commit-hooks.nix/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf' (2024-01-28) • Updated input 'pre-commit-hooks/flake-compat': 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) → 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04) • Updated input 'pre-commit-hooks/flake-utils': 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31) → 'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04) • Updated input 'pre-commit-hooks/gitignore': 'github:hercules-ci/gitignore.nix/a20de23b925fd8264fd7fad6454652e142fd7f73' (2022-08-14) → 'github:hercules-ci/gitignore.nix/43e1aa1308018f37118e34d3a9cb4f5e75dc11d5' (2023-12-29) • Updated input 'pre-commit-hooks/nixpkgs-stable': 'github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373' (2023-06-03) → 'github:NixOS/nixpkgs/3dc440faeee9e889fe2d1b4d25ad0f430d449356' (2024-01-10) • Updated input 'stylix': 'github:willemml/stylix/2ed2b0086b41d582aca26e083c19c0e47c8991e3' (2023-12-05) → 'github:danth/stylix/7a7c90015de7454060e103e94bb4e6010b5aa062' (2024-01-28) • Updated input 'stylix/base16-alacritty': 'github:aarowill/base16-alacritty/63d8ae5dfefe5db825dd4c699d0cdc2fc2c3eaf7' (2023-01-21) → 'github:aarowill/base16-alacritty/c95c200b3af739708455a03b5d185d3d2d263c6e' (2023-12-31) • Added input 'stylix/base16-alacritty-yaml': 'github:aarowill/base16-alacritty/63d8ae5dfefe5db825dd4c699d0cdc2fc2c3eaf7' (2023-01-21) • Updated input 'stylix/home-manager': 'github:nix-community/home-manager/c3ab5ea047e6dc73df530948f7367455749d8906' (2023-08-12) → 'github:nix-community/home-manager/3df2a80f3f85f91ea06e5e91071fa74ba92e5084' (2024-01-23)
119 lines
3.6 KiB
Nix
119 lines
3.6 KiB
Nix
{
|
|
description = "Willem's Nix configurations";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
darwin.url = "github:willemml/nix-darwin?ref=feat/networking.hosts";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
fenix.url = "github:nix-community/fenix";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
|
|
nix-github-actions.inputs.nixpkgs.follows = "nixpkgs";
|
|
nix-github-actions.url = "github:nix-community/nix-github-actions";
|
|
|
|
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
|
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
|
|
|
nixos-apple-silicon.inputs.nixpkgs.follows = "nixpkgs";
|
|
nixos-apple-silicon.url = "github:tpwrules/nixos-apple-silicon";
|
|
|
|
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
|
|
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
|
|
|
|
stylix.url = "github:danth/stylix";
|
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
darwin,
|
|
nixpkgs,
|
|
self,
|
|
...
|
|
} @ inputs: let
|
|
globals = import ./common/globals.nix;
|
|
in
|
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} rec {
|
|
systems = [
|
|
"x86_64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
flake = let
|
|
mkSystem = type: system: definition: (type {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit inputs globals;
|
|
overlays = self.overlays;
|
|
};
|
|
modules = definition;
|
|
});
|
|
|
|
mkNixos = arch: (mkSystem nixpkgs.lib.nixosSystem "${arch}-linux");
|
|
mkDarwin = arch: (mkSystem darwin.lib.darwinSystem "${arch}-darwin");
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in rec {
|
|
overlays = {
|
|
default = import ./packages;
|
|
fenix = inputs.fenix.overlays.default;
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
x86_64-live = mkNixos "x86_64" [./nixos/hosts/x86_64-live.nix];
|
|
aarch64-live = mkNixos "aarch64" [./nixos/hosts/aarch64-live.nix];
|
|
|
|
nixbox = mkNixos "x86_64" [./nixos/hosts/nixbox.nix];
|
|
thinkpad = mkNixos "x86_64" [./nixos/hosts/thinkpad.nix];
|
|
|
|
darwin-arm-minimal-vm = mkNixos "aarch64" [./nixos/hosts/vms/aarch64-darwin-host/minimal.nix];
|
|
darwin-arm-homeconsole-vm = mkNixos "aarch64" [./nixos/hosts/vms/aarch64-darwin-host/home-console.nix];
|
|
};
|
|
|
|
darwinConfigurations.zeus = mkDarwin "aarch64" [./nixos/hosts/zeus.nix];
|
|
|
|
packages = {
|
|
aarch64-darwin = {
|
|
minimal-vm = self.nixosConfigurations.darwin-arm-minimal-vm.config.system.build.vm;
|
|
homeconsole-vm = self.nixosConfigurations.darwin-arm-homeconsole-vm.config.system.build.vm;
|
|
default = self.darwinConfigurations.zeus.config.system.build.toplevel;
|
|
};
|
|
|
|
x86_64-linux.live-image = self.nixosConfigurations.x86_64-live.config.system.build.isoImage;
|
|
aarch64-linux.live-image = self.nixosConfigurations.x86_64-live.config.system.build.isoImage;
|
|
};
|
|
|
|
hydraJobs.x86_64-linux = packages.x86_64-linux;
|
|
};
|
|
|
|
perSystem = {
|
|
system,
|
|
self',
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
checks.pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
|
src = ./.;
|
|
hooks = {
|
|
alejandra.enable = true;
|
|
};
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
inherit (self'.checks.pre-commit-check) shellHook;
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
}
|