macos shit

This commit is contained in:
2025-10-17 15:14:22 -05:00
parent 52d96b7b2d
commit d4f55ea042
4 changed files with 87 additions and 32 deletions

View File

@@ -6,6 +6,10 @@
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
@@ -31,34 +35,48 @@
};
copyparty.url = "github:9001/copyparty";
};
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
let
systems = {
x86_64 = "x86_64-linux";
arm64 = "aarch64-linux";
darwin = "aarch64-darwin";
};
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs { system = v; }) systems;
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable { system = v; }) systems;
in
{
nixosConfigurations = {
snowbelle = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = { inherit inputs stable_pkgs unstable_pkgs; };
modules = [
./hosts/snowbelle/configuration.nix
inputs.home-manager.nixosModules.default
];
};
vaniville = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = { inherit inputs stable_pkgs unstable_pkgs; };
modules = [
./hosts/vaniville/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nix-darwin,
...
} @ inputs: let
systems = {
x86_64 = "x86_64-linux";
arm64 = "aarch64-linux";
darwin = "aarch64-darwin";
};
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
in {
nixosConfigurations = {
snowbelle = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
modules = [
./hosts/snowbelle/configuration.nix
inputs.home-manager.nixosModules.default
];
};
vaniville = nixpkgs.lib.nixosSystem {
system = systems.x86_64;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
modules = [
./hosts/vaniville/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
darwinConfigurations = {
CEN-IT-07 = nix-darwin.lib.darwinSystem {
system = systems.darwin;
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
modules = [
./hosts/cen-it-07/configuration.nix
inputs.home-manager.darwinModules.default
];
};
};
};
}