diff --git a/configuration.nix b/configuration.nix index e204b5b..88770b9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,6 +6,7 @@ config, lib, pkgs, + pkgs-plasma-beta, ... }: @@ -15,11 +16,33 @@ ./hardware-configuration.nix ]; - nix.settings.experimental-features = [ - "nix-command" - "flakes" + nixpkgs.overlays = [ + (self: super: { + kdePackages = pkgs-plasma-beta.kdePackages; + }) ]; + nix = { + settings = { + experimental-features = [ + "nix-command" + "flakes" + ]; + builders-use-substitutes = true; + max-jobs = 0; + }; + distributedBuilds = true; + buildMachines = [ + { + hostName = "boss-baby"; + sshUser = "root"; + protocol = "ssh-ng"; + system = pkgs.stdenv.hostPlatform.system; + maxJobs = 4; + } + ]; + }; + boot = { loader = { # Use the systemd-boot EFI boot loader. @@ -31,6 +54,10 @@ kernelPackages = pkgs.linuxPackages_latest; }; + fileSystems."/".options = [ + "compress=zstd" + ]; + networking = { hostName = "chromatic-aberration"; networkmanager.enable = true; diff --git a/flake.lock b/flake.lock index 2155089..0e55014 100644 --- a/flake.lock +++ b/flake.lock @@ -16,9 +16,26 @@ "type": "github" } }, + "nixpkgs-plasma-beta": { + "locked": { + "lastModified": 1758387133, + "narHash": "sha256-Jr/ncxq/IaLkTsTvsqtYFIG5Qe3z8iLqoNKA66PnNas=", + "owner": "K900", + "repo": "nixpkgs", + "rev": "34c691bb97106f5236160b1a163025fcc78f6670", + "type": "github" + }, + "original": { + "owner": "K900", + "ref": "plasma-6.5", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "nixpkgs-plasma-beta": "nixpkgs-plasma-beta" } } }, diff --git a/flake.nix b/flake.nix index 0b0605d..91791af 100644 --- a/flake.nix +++ b/flake.nix @@ -5,16 +5,24 @@ # i.e. nixos-24.11 # Use `nix flake update` to update the flake to the latest revision of the chosen release channel. nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs-plasma-beta.url = "github:K900/nixpkgs/plasma-6.5"; }; outputs = - inputs@{ self, nixpkgs, ... }: + inputs@{ + self, + nixpkgs, + nixpkgs-plasma-beta, + ... + }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; + pkgs-plasma-beta = import nixpkgs-plasma-beta { inherit system; }; in { nixosConfigurations.chromatic-aberration = nixpkgs.lib.nixosSystem { modules = [ ./configuration.nix ]; + specialArgs.pkgs-plasma-beta = pkgs-plasma-beta; }; formatter.${system} = pkgs.nixfmt-tree; };