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-03-03 09:25:54 -09:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
2024-03-02 10:31:42 -09:00
|
|
|
};
|
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-03 09:25:54 -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";
|
2024-03-03 09:25:54 -09:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
2024-03-02 19:49:24 -09:00
|
|
|
};
|
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-03-07 11:27:38 -09:00
|
|
|
galvatron =
|
|
|
|
let
|
|
|
|
system = "aarch64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
|
|
|
hardware.asahi = {
|
|
|
|
peripheralFirmwareDirectory = ./galvatron/firmware;
|
|
|
|
# useExperimentalGPUDriver = true;
|
|
|
|
# experimentalGPUInstallMode = "driver";
|
|
|
|
# experimentalGPUInstallMode = "overlay";
|
|
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
|
|
|
networking.hostName = "galvatron";
|
|
|
|
sound.enable = false;
|
|
|
|
}
|
|
|
|
./galvatron/hardware-configuration.nix
|
|
|
|
inputs.apple-silicon.nixosModules.apple-silicon-support
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
2024-03-07 11:34:30 -09:00
|
|
|
home-manager.extraSpecialArgs = specialArgs;
|
2024-03-07 11:27:38 -09:00
|
|
|
}
|
|
|
|
]; # end of modules
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
|
|
|
starscream =
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
|
|
|
networking.hostName = "starscream";
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
sound.enable = true;
|
|
|
|
}
|
|
|
|
./hardware/starscream-hw.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
2024-03-07 11:34:30 -09:00
|
|
|
home-manager.extraSpecialArgs = specialArgs;
|
2024-03-07 11:27:38 -09:00
|
|
|
}
|
|
|
|
]; # end of modules
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
|
|
|
knockout =
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-03-07 11:34:30 -09:00
|
|
|
networking.hostName = "knockout";
|
2024-03-07 11:27:38 -09:00
|
|
|
sound.enable = true;
|
|
|
|
}
|
|
|
|
./hardware/knockout-hw.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
|
|
|
home-manager.extraSpecialArgs = specialArgs;
|
|
|
|
}
|
|
|
|
]; # end of modules
|
|
|
|
in
|
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
2024-02-25 15:34:13 -09:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|