2024-02-25 15:34:13 -09:00
|
|
|
{
|
|
|
|
description = "NixOS configuration with Home Manager";
|
|
|
|
inputs = {
|
2024-03-02 19:44:54 -09:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/23.11";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-03-02 10:31:42 -09:00
|
|
|
apple-silicon = {
|
|
|
|
url = "github:tpwrules/nixos-apple-silicon";
|
|
|
|
};
|
2024-02-25 15:34:13 -09:00
|
|
|
home-manager = {
|
2024-03-02 19:49:24 -09:00
|
|
|
url = "github:nix-community/home-manager/release-23.11";
|
2024-03-02 14:47:48 -09:00
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
2024-02-25 15:34:13 -09:00
|
|
|
};
|
2024-03-02 19:49:24 -09:00
|
|
|
home-manager-unstable = {
|
|
|
|
url = "github:nix-community/home-manager"; #/release-23.11";
|
|
|
|
inputs.nixpkgs-unstable.follows = "nixpkgs";
|
|
|
|
};
|
2024-03-02 17:38:48 -09:00
|
|
|
emacs-config = {
|
|
|
|
url = "git+https://git.marq42.xyz/mir/emacs?ref=main";
|
2024-03-02 19:44:54 -09:00
|
|
|
flake = false;
|
2024-03-02 17:38:48 -09:00
|
|
|
};
|
2024-02-25 15:34:13 -09:00
|
|
|
};
|
2024-03-02 19:44:54 -09:00
|
|
|
outputs = inputs@{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-unstable,
|
2024-03-02 19:46:31 -09:00
|
|
|
home-manager,
|
|
|
|
... }: {
|
2024-02-25 15:34:13 -09:00
|
|
|
nixosConfigurations = {
|
2024-02-28 13:28:34 -09:00
|
|
|
galvatron = nixpkgs.lib.nixosSystem {
|
2024-02-28 13:30:51 -09:00
|
|
|
system = "aarch64-linux";
|
2024-02-28 13:28:34 -09:00
|
|
|
modules = [
|
2024-02-28 14:39:56 -09:00
|
|
|
./configuration.nix {
|
2024-02-28 14:28:08 -09:00
|
|
|
hardware.asahi.peripheralFirmwareDirectory = ./galvatron/firmware;
|
2024-03-02 15:45:47 -09:00
|
|
|
# hardware.asahi.useExperimentalGPUDriver = true;
|
2024-02-28 14:28:08 -09:00
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
|
|
networking.hostName = "galvatron";
|
2024-02-28 14:42:41 -09:00
|
|
|
sound.enable = false;
|
2024-02-28 14:29:05 -09:00
|
|
|
}
|
2024-02-28 13:28:34 -09:00
|
|
|
./galvatron/hardware-configuration.nix
|
2024-03-02 12:27:24 -09:00
|
|
|
inputs.apple-silicon.nixosModules.apple-silicon-support
|
2024-02-28 13:28:34 -09:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-02-25 15:34:13 -09:00
|
|
|
starscream = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-02-27 09:51:13 -09:00
|
|
|
./configuration.nix {
|
2024-02-27 09:52:33 -09:00
|
|
|
networking.hostName = "starscream";
|
2024-02-28 14:38:42 -09:00
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-02-28 14:44:29 -09:00
|
|
|
sound.enable = true;
|
2024-02-27 09:52:33 -09:00
|
|
|
}
|
2024-02-26 17:23:16 -09:00
|
|
|
./hardware/starscream-hw.nix
|
2024-02-25 15:34:13 -09:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-02-26 17:28:29 -09:00
|
|
|
knockout = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2024-02-27 09:51:13 -09:00
|
|
|
./configuration.nix {
|
2024-02-27 09:52:33 -09:00
|
|
|
networking.hostName = "knockout";
|
2024-02-28 14:38:42 -09:00
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-02-28 14:44:29 -09:00
|
|
|
sound.enable = true;
|
2024-02-27 09:52:33 -09:00
|
|
|
}
|
2024-02-26 17:28:29 -09:00
|
|
|
./hardware/knockout-hw.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
|
|
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-02-25 15:34:13 -09:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|