mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
108 lines
2.7 KiB
Nix
Executable File
108 lines
2.7 KiB
Nix
Executable File
{
|
|
description = "copland, linux/darwin";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
niri = {
|
|
url = "github:sodiboo/niri-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
chaotic = {
|
|
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nix-darwin = {
|
|
url = "github:nix-darwin/nix-darwin/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
copetch = {
|
|
url = "github:elwrcl/copetch";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
helium = {
|
|
url = "github:AlvaroParker/helium-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
noctalia = {
|
|
url = "github:noctalia-dev/noctalia-shell";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nix-alien = {
|
|
url = "github:thiagokokada/nix-alien";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
nixpkgs,
|
|
nix-darwin,
|
|
home-manager,
|
|
chaotic,
|
|
niri,
|
|
...
|
|
}:
|
|
let
|
|
linuxSystem = "x86_64-linux";
|
|
darwinSystem = "x86_64-darwin";
|
|
in
|
|
{
|
|
nixosConfigurations.copland = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs;
|
|
system = linuxSystem;
|
|
};
|
|
modules = [
|
|
{ nixpkgs.hostPlatform = linuxSystem; }
|
|
home-manager.nixosModules.home-manager
|
|
chaotic.nixosModules.default
|
|
{
|
|
nixpkgs.config.allowUnfree = true;
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
sharedModules = [ inputs.niri.homeModules.niri ];
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
system = linuxSystem;
|
|
};
|
|
users.elars = import ./modules/home/home.nix;
|
|
};
|
|
}
|
|
./main/nixos/machine.nix
|
|
];
|
|
};
|
|
|
|
darwinConfigurations.sohryu-darwin = nix-darwin.lib.darwinSystem {
|
|
specialArgs = {
|
|
inherit inputs;
|
|
system = darwinSystem;
|
|
};
|
|
modules = [
|
|
{
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.allowDeprecatedx86_64Darwin = true;
|
|
}
|
|
./main/darwin/machine.nix
|
|
];
|
|
};
|
|
};
|
|
}
|