mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 22:28:03 +03:00
1 parent
48495d5c0b
commit
c8e53bf645
7 files changed
+388
-265
No files matched your search
@@ -1,8 +1,12 @@
|
||||
{
|
||||
description = "copland nixos configurations";
|
||||
description = "copland, linux/darwin niximator";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nix-darwin = {
|
||||
url = "github:LnL7/nix-darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||
oceanix.url = "github:LEXUGE/oceanix";
|
||||
@@ -34,41 +38,69 @@
|
||||
inputs@{
|
||||
self,
|
||||
nixpkgs,
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
nix-cachyos-kernel,
|
||||
...
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
linuxSystem = "x86_64-linux";
|
||||
darwinSystem = "x86_64-darwin";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
copland = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system; };
|
||||
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = system; }
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
nix-cachyos-kernel.overlays.default
|
||||
(final: prev: {
|
||||
copetch = inputs.copetch.packages.${system}.default;
|
||||
})
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs system; };
|
||||
users.elars = import ./home;
|
||||
};
|
||||
}
|
||||
./machine.nix
|
||||
./nixos/default.nix
|
||||
];
|
||||
nixosConfigurations.copland = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
system = linuxSystem;
|
||||
};
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = linuxSystem; }
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
nix-cachyos-kernel.overlays.default
|
||||
(final: prev: {
|
||||
copetch = inputs.copetch.packages.${linuxSystem}.default;
|
||||
})
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
system = linuxSystem;
|
||||
};
|
||||
users.elars = import ./home/linux.nix;
|
||||
};
|
||||
}
|
||||
./machine.nix
|
||||
./nixos/default.nix
|
||||
];
|
||||
};
|
||||
|
||||
darwinConfigurations.copland = nix-darwin.lib.darwinSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
system = darwinSystem;
|
||||
};
|
||||
modules = [
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
nixpkgs.hostPlatform = darwinSystem;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
system = darwinSystem;
|
||||
};
|
||||
users.elars = import ./home/darwin.nix;
|
||||
};
|
||||
}
|
||||
./darwin/default.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user