mirror of
https://github.com/0x1d/nix.git
synced 2026-11-16 00:42:27 +01:00
- Add claude-desktop and opencode-desktop flake inputs - Override claude-desktop to 4.23118.1 from Anthropic's apt repo (packaging flake's auto-update stalled at 2.9939.4); add pipewire - Override opencode-desktop to 2.2.6 for v2 DB schema compatibility - Add claude-code, zed-editor, gh, git-lfs, qemu/OVMF/virtiofsd Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
85 lines
2.9 KiB
Nix
85 lines
2.9 KiB
Nix
{
|
|
description = "flake for nixos";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
|
|
home-manager.url = "github:nix-community/home-manager/release-26.05";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
# XRLinuxDriver from https://github.com/wheaney/XRLinuxDriver/pull/80
|
|
xrlinuxdriver.url = "path:/home/master/src/breezy-desktop-nix";
|
|
xrlinuxdriver.inputs.nixpkgs.follows = "nixpkgs";
|
|
claude-desktop.url = "github:poeck/claude-desktop-nix-flake";
|
|
claude-desktop.inputs.nixpkgs.follows = "nixpkgs";
|
|
opencode-desktop.url = "github:tomsch/opencode-desktop-nix";
|
|
opencode-desktop.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, xrlinuxdriver, claude-desktop, opencode-desktop }:
|
|
let
|
|
breezyPkgs = system: xrlinuxdriver.packages.${system};
|
|
breezyModule = { gnome ? false }:
|
|
{ pkgs, ... }:
|
|
let
|
|
bp = breezyPkgs pkgs.system;
|
|
in {
|
|
imports = [ xrlinuxdriver.nixosModules.default ];
|
|
services.breezy-desktop = {
|
|
enable = true;
|
|
xrlinuxdriver = bp.xrlinuxdriver;
|
|
breezy-gnome = bp.breezy-gnome;
|
|
breezy-desktop-ui = bp.breezy-desktop-ui;
|
|
gnome.enable = gnome;
|
|
};
|
|
};
|
|
in {
|
|
nixosConfigurations = {
|
|
gnome = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
./configuration.nix
|
|
./hardware/lenovo-thinkpad-e14.nix
|
|
./system/base.nix
|
|
./system/packages.nix
|
|
./system/desktop/gnome.nix
|
|
./users/demo.nix
|
|
./users/master.nix
|
|
(breezyModule { gnome = true; })
|
|
];
|
|
specialArgs = { inherit nixpkgs-unstable claude-desktop opencode-desktop; };
|
|
};
|
|
kde = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
./configuration.nix
|
|
./hardware/lenovo-thinkpad-e14.nix
|
|
./system/base.nix
|
|
./system/packages.nix
|
|
./system/desktop/plasma.nix
|
|
./users/demo.nix
|
|
./users/master.nix
|
|
(breezyModule { })
|
|
];
|
|
specialArgs = { inherit nixpkgs-unstable claude-desktop opencode-desktop; };
|
|
};
|
|
hyprland = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
./configuration.nix
|
|
./hardware/lenovo-thinkpad-e14.nix
|
|
./system/base.nix
|
|
./system/packages.nix
|
|
./system/desktop/hyprland.nix
|
|
./users/demo.nix
|
|
./users/master.nix
|
|
(breezyModule { })
|
|
];
|
|
specialArgs = { inherit nixpkgs-unstable claude-desktop opencode-desktop; };
|
|
};
|
|
};
|
|
};
|
|
}
|