From 86668f7707ab8409549d5146545f1c072fa6a0cb Mon Sep 17 00:00:00 2001 From: asnev Date: Fri, 3 Jul 2026 14:45:56 +0700 Subject: [PATCH] LTS kernel & unstable pkgs --- configuration.nix | 4 +--- flake.lock | 19 ++++++++++++++++++- flake.nix | 35 +++++++++++++++++------------------ profiles/kde.nix | 16 +++++++++------- users/coyote/default.nix | 2 +- users/coyote/home.nix | 13 +++++++++++-- 6 files changed, 57 insertions(+), 32 deletions(-) diff --git a/configuration.nix b/configuration.nix index f490f2b..f445ecd 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,7 +15,7 @@ ]; initrd.verbose = false; consoleLogLevel = 3; - kernelPackages = pkgs.linuxPackages_latest; + kernelPackages = pkgs.linuxPackages; }; time.timeZone = "Asia/Jakarta"; @@ -46,8 +46,6 @@ }; }; - nixpkgs.config.allowUnfree = true; - environment = { systemPackages = with pkgs; [ # Nix diff --git a/flake.lock b/flake.lock index aecdd0c..f37b545 100644 --- a/flake.lock +++ b/flake.lock @@ -53,11 +53,28 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1782723713, + "narHash": "sha256-oPXCU/SSUokcGaJREHibG1CBX3+s/W7orDWQOZDsEeQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "b5aa0fbd538984f6e3d201be0005b4463d8b09f8", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", "nix-flatpak": "nix-flatpak", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable" } } }, diff --git a/flake.nix b/flake.nix index ca2f4e0..cb70866 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,9 @@ nix-flatpak = { url = "github:gmodena/nix-flatpak/?ref=latest"; }; + nixpkgs-unstable = { + url = "github:nixos/nixpkgs/nixos-unstable"; + }; }; outputs = inputs @ { @@ -19,6 +22,7 @@ nixpkgs, home-manager, nix-flatpak, + nixpkgs-unstable, ... }: let system = "x86_64-linux"; @@ -28,9 +32,22 @@ inherit system; specialArgs = {inherit inputs;}; modules = [ + ({config, pkgs, ...}: { + nixpkgs.config.allowUnfree = true; + nixpkgs.overlays = [ + (final: prev: { + unstable = import nixpkgs-unstable { + inherit (prev) system; + config.allowUnfree = true; + }; + }) + ]; + }) + ./hosts/phostron/default.nix ./profiles/kde.nix ./users/coyote/default.nix + home-manager.nixosModules.home-manager { home-manager = { @@ -45,24 +62,6 @@ } ]; }; - - devShells.${system}.default = let - pkgs = import nixpkgs { - inherit system; - overlays = [ - (final: prev: { - openblas = - if prev.stdenv.hostPlatform.system == "i686-linux" - then prev.openblas.overrideAttrs (_: {doCheck = false;}) - else prev.openblas; - }) - ]; - }; - in { - pkgs.mkShell = { - buildInputs = with pkgs; [openblas]; - }; - }; }; }; } diff --git a/profiles/kde.nix b/profiles/kde.nix index 6618397..e0118ce 100644 --- a/profiles/kde.nix +++ b/profiles/kde.nix @@ -5,13 +5,15 @@ }; environment = { - systemPackages = with pkgs; [ - kdePackages.kate - kdePackages.bluez-qt - kdePackages.kalk - kdePackages.filelight - kdePackages.kamoso + systemPackages = with pkgs.kdePackages; [ + kate + bluez-qt + kalk + filelight + kamoso + ]; + plasma6.excludePackages = with pkgs.kdePackages; [ + discover ]; - plasma6.excludePackages = with pkgs; [kdePackages.discover]; }; } diff --git a/users/coyote/default.nix b/users/coyote/default.nix index 10bd416..98a9474 100644 --- a/users/coyote/default.nix +++ b/users/coyote/default.nix @@ -22,7 +22,7 @@ in { biwascheme chicken guile - racket + unstable.racket sbcl # LSPs ty diff --git a/users/coyote/home.nix b/users/coyote/home.nix index 1b5320a..934a189 100644 --- a/users/coyote/home.nix +++ b/users/coyote/home.nix @@ -7,10 +7,11 @@ shell.enableShellIntegration = true; packages = with pkgs; [ # productivity - libreoffice + libreoffice-fresh karp keepassxc # multimedia + unstable.audacity obs-studio furnace corrscope @@ -31,10 +32,18 @@ update.onActivation = false; uninstallUnmanaged = false; packages = [ - "org.audacityteam.Audacity" + # { appId = "app.Id.here"; origin = "flathub"; commit = "" } "com.usebottles.bottles" "org.nickvision.tubeconverter" ]; + overrides = { + global = { Context.sockets = ["wayland" "!x11" "!fallback-x11"]; }; + settings = { + Environment = { + XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons"; + }; + }; + }; }; programs = {