2024-03-26 12:04:52 -08:00
|
|
|
# vim: set foldlevel=0 foldmethod=marker foldenable :
|
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-04-07 15:35:12 -08:00
|
|
|
nur.url = github:nix-community/NUR;
|
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-23 12:38:47 -08:00
|
|
|
mir-home = {
|
|
|
|
url = "git+https://git.marq42.xyz/mir/home?ref=main";
|
|
|
|
};
|
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-03-09 18:42:05 -09:00
|
|
|
displaylink = {
|
|
|
|
url = "file+https://marq42.xyz/displaylink-580.zip";
|
|
|
|
flake = false;
|
|
|
|
};
|
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-04-07 15:35:12 -08:00
|
|
|
nur,
|
2024-03-02 19:46:31 -09:00
|
|
|
... }: {
|
2024-02-25 15:34:13 -09:00
|
|
|
nixosConfigurations = {
|
2024-03-26 12:04:52 -08:00
|
|
|
kremzeek = # {{{
|
2024-03-18 23:55:12 -08:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
2024-04-11 11:51:27 -08:00
|
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares.nix" {
|
2024-03-18 23:55:12 -08:00
|
|
|
networking.wireless.enable = false;
|
|
|
|
}
|
|
|
|
./configuration.nix {
|
|
|
|
networking.hostName = "kremzeek";
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-04-11 12:54:52 -08:00
|
|
|
# sound.enable = true;
|
|
|
|
# hardware.pulseaudio.enable = true;
|
2024-03-18 23:55:12 -08:00
|
|
|
}
|
|
|
|
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
|
2024-03-26 12:04:52 -08:00
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
|
|
|
|
galvatron = # {{{
|
2024-03-07 11:27:38 -09:00
|
|
|
let
|
|
|
|
system = "aarch64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
2024-03-10 16:30:51 -08:00
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
2024-03-13 08:51:58 -08:00
|
|
|
boot.binfmt.emulatedSystems = ["x86_64-linux"];
|
2024-03-07 11:27:38 -09:00
|
|
|
hardware.asahi = {
|
|
|
|
peripheralFirmwareDirectory = ./galvatron/firmware;
|
|
|
|
# useExperimentalGPUDriver = true;
|
|
|
|
# experimentalGPUInstallMode = "driver";
|
|
|
|
# experimentalGPUInstallMode = "overlay";
|
|
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
2024-04-12 08:30:14 -08:00
|
|
|
networking = {
|
|
|
|
hostName = "galvatron";
|
|
|
|
hostId = "57184c38";
|
|
|
|
};
|
2024-03-13 08:51:58 -08:00
|
|
|
sound.enable = true; # only on unstable?
|
2024-03-07 11:27:38 -09:00
|
|
|
}
|
2024-03-26 10:45:17 -08:00
|
|
|
./hardware/galvatron-hw.nix
|
2024-04-11 12:54:52 -08:00
|
|
|
./modules/sound/pipewire.nix
|
2024-03-07 11:27:38 -09:00
|
|
|
inputs.apple-silicon.nixosModules.apple-silicon-support
|
2024-03-23 12:36:51 -08:00
|
|
|
inputs.home-manager-unstable.nixosModules.home-manager {
|
2024-03-07 11:27:38 -09:00
|
|
|
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
|
2024-03-26 12:04:52 -08:00
|
|
|
nixpkgs-unstable.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
|
|
|
|
breakdown = # {{{
|
2024-03-10 13:35:00 -08:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
|
|
|
networking.hostName = "breakdown";
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
sound.enable = true;
|
|
|
|
}
|
2024-03-18 23:53:37 -08:00
|
|
|
./server/services.nix
|
2024-03-10 13:35:00 -08:00
|
|
|
./hardware/breakdown-hw.nix
|
2024-04-11 12:54:52 -08:00
|
|
|
./modules/sound/pipewire.nix
|
2024-03-10 13:35:00 -08:00
|
|
|
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
|
2024-03-26 12:04:52 -08:00
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
|
|
|
|
starscream = # {{{
|
2024-03-07 11:27:38 -09:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./configuration.nix {
|
2024-03-10 16:30:51 -08:00
|
|
|
services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
|
2024-03-07 11:27:38 -09:00
|
|
|
networking.hostName = "starscream";
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
sound.enable = true;
|
|
|
|
}
|
|
|
|
./hardware/starscream-hw.nix
|
2024-04-11 12:54:52 -08:00
|
|
|
./modules/sound/pipewire.nix
|
2024-03-07 11:27:38 -09:00
|
|
|
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
|
2024-03-26 12:04:52 -08:00
|
|
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
|
|
|
|
knockout = # {{{
|
2024-03-07 11:27:38 -09:00
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
2024-04-07 15:35:12 -08:00
|
|
|
# inputs.nur.nixosModules.nur
|
2024-03-07 11:27:38 -09:00
|
|
|
./configuration.nix {
|
2024-03-10 16:30:51 -08:00
|
|
|
services.xserver.videoDrivers = [ "modesetting" "displaylink" ];
|
2024-03-07 11:27:38 -09:00
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-04-11 11:36:56 -08:00
|
|
|
networking = {
|
|
|
|
hostName = "knockout";
|
|
|
|
hostId = "499130bf";
|
|
|
|
};
|
2024-03-07 11:27:38 -09:00
|
|
|
sound.enable = true;
|
|
|
|
}
|
2024-03-26 10:53:33 -08:00
|
|
|
./modules/droidcam-obs.nix # only this machine
|
2024-03-07 11:27:38 -09:00
|
|
|
./hardware/knockout-hw.nix
|
2024-04-11 12:54:52 -08:00
|
|
|
./modules/sound/pipewire.nix
|
2024-03-18 11:33:45 -08:00
|
|
|
inputs.home-manager-unstable.nixosModules.home-manager
|
2024-03-07 11:27:38 -09:00
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.mir = import ./home.nix;
|
|
|
|
home-manager.extraSpecialArgs = specialArgs;
|
|
|
|
}
|
|
|
|
]; # end of modules
|
|
|
|
in
|
2024-03-26 12:04:52 -08:00
|
|
|
inputs.nixpkgs-unstable.lib.nixosSystem {inherit system modules specialArgs; }; # }}}
|
2024-02-25 15:34:13 -09:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|