From 9c3140a764467d55a3a6a6584e9b511490f5871a Mon Sep 17 00:00:00 2001 From: elwrcl Date: Wed, 1 Apr 2026 18:41:30 +0300 Subject: [PATCH] add: cachyos kernel, fixes --- flake.lock | 18 ++++---- flake.nix | 58 +++++++++++++++---------- nixos/boot/default.nix | 14 +++--- nixos/virtualization/vmware/default.nix | 2 +- 4 files changed, 52 insertions(+), 40 deletions(-) diff --git a/flake.lock b/flake.lock index 9b0e2c4..db5ccc6 100644 --- a/flake.lock +++ b/flake.lock @@ -149,11 +149,11 @@ ] }, "locked": { - "lastModified": 1774738535, - "narHash": "sha256-2jfBEZUC67IlnxO5KItFCAd7Oc+1TvyV/jQlR+2ykGQ=", + "lastModified": 1774969509, + "narHash": "sha256-LCmfWlT3tlGVj0Q20TKqs5PBwdH3vnNsxJEhqt0wH1o=", "owner": "nix-community", "repo": "home-manager", - "rev": "769e07ef8f4cf7b1ec3b96ef015abec9bc6b1e2a", + "rev": "a7d2aca3f0dd952b01d8ed5c45536b40af3841eb", "type": "github" }, "original": { @@ -246,11 +246,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1774386573, - "narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=", + "lastModified": 1774709303, + "narHash": "sha256-D3Q07BbIA2KnTcSXIqqu9P586uWxN74zNoCH3h2ESHg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9", + "rev": "8110df5ad7abf5d4c0f6fb0f8f978390e77f9685", "type": "github" }, "original": { @@ -424,11 +424,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1774708879, - "narHash": "sha256-rTYvYkQL69/YkZB+MRA/IaX1qJ1lPx5KXoQS2/9+7Mw=", + "lastModified": 1774848370, + "narHash": "sha256-Esm+aiabP563BcUFfFUCIOlFaTxKUXPp6jw0LMAV7ik=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "d01d23c798cceef42307d5789bfbce70515e8800", + "rev": "712c476500e96df74276be99bb3fa9631f494f3a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index c4f9b1a..8b9fe7f 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,9 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; + zen-browser.url = "github:0xc000022070/zen-browser-flake"; home-manager = { @@ -25,31 +27,41 @@ outputs = inputs@{ self, nixpkgs, chaotic, home-manager, ... }: let system = "x86_64-linux"; + + chaoticOverlay = chaotic.overlays.default; + in { - nixosConfigurations = { - copland = nixpkgs.lib.nixosSystem { - inherit system; - specialArgs = { inherit inputs system; zen-browser = inputs.zen-browser; }; - - modules = [ - chaotic.nixosModules.default - home-manager.nixosModules.home-manager - - { 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 { + inherit system; + specialArgs = { + inherit inputs system; + zen-browser = inputs.zen-browser; }; + + modules = [ + chaotic.nixosModules.default + + home-manager.nixosModules.home-manager + + { + nixpkgs.overlays = [ chaoticOverlay ]; + nixpkgs.config.allowUnfree = true; + } + + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = { inherit inputs system; }; + users.elars = import ./home; + }; + } + + ./machine.nix + ./nixos/default.nix + ]; }; }; + }; } \ No newline at end of file diff --git a/nixos/boot/default.nix b/nixos/boot/default.nix index 2760def..2c8bb0d 100644 --- a/nixos/boot/default.nix +++ b/nixos/boot/default.nix @@ -1,22 +1,22 @@ { config, pkgs, ... }: { - boot.kernelPackages = pkgs.linuxPackages_latest; - + boot.kernelPackages = pkgs.linuxPackages_cachyos-lto; + boot.kernelParams = [ - "i915.enable_guc=2" #make your own params this is for hd4k + "preempt=full" + "i915.enable_guc=2" "i915.fastboot=1" - "mitigations=off" + "mitigations=off" "usbcore.autosuspend=-1" ]; + boot.loader = { timeout = 5; - efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; - systemd-boot = { enable = true; configurationLimit = 15; @@ -24,4 +24,4 @@ editor = false; }; }; -} +} \ No newline at end of file diff --git a/nixos/virtualization/vmware/default.nix b/nixos/virtualization/vmware/default.nix index 4d19907..2e7a42c 100644 --- a/nixos/virtualization/vmware/default.nix +++ b/nixos/virtualization/vmware/default.nix @@ -1,5 +1,5 @@ { config, pkgs, ... }: { - virtualisation.vmware.host.enable = true; + virtualisation.vmware.host.enable = false; }