From 2c0562ab3071390deec44048b664bac28c19fb37 Mon Sep 17 00:00:00 2001
From: Thiago Sposito
Date: Sat, 20 Sep 2025 23:27:51 -0300
Subject: [PATCH] chore: optmize build on nixbook, removing ollama and steam
---
flake.lock | 24 ++++++++++++------------
flake.nix | 2 +-
home-manager/home.nix | 8 --------
home-manager/nixstation.nix | 26 ++++++++++++++++++++++++++
hosts/common/default.nix | 22 +++++++++++-----------
5 files changed, 50 insertions(+), 32 deletions(-)
create mode 100644 home-manager/nixstation.nix
diff --git a/flake.lock b/flake.lock
index 1058f9a..386d0a9 100644
--- a/flake.lock
+++ b/flake.lock
@@ -46,11 +46,11 @@
]
},
"locked": {
- "lastModified": 1757256385,
- "narHash": "sha256-WK7tOhWwr15mipcckhDg2no/eSpM1nIh4C9le8HgHhk=",
+ "lastModified": 1758375677,
+ "narHash": "sha256-BLtD+6qWz7fQjPk2wpwyXQLGI0E30Ikgf2ppn2nVadI=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "f35703b412c67b48e97beb6e27a6ab96a084cd37",
+ "rev": "edc7468e12be92e926847cb02418e649b02b59dd",
"type": "github"
},
"original": {
@@ -90,11 +90,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1757068644,
- "narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=",
+ "lastModified": 1758277210,
+ "narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=",
"owner": "nixos",
"repo": "nixpkgs",
- "rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9",
+ "rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
"type": "github"
},
"original": {
@@ -114,11 +114,11 @@
"systems": "systems_2"
},
"locked": {
- "lastModified": 1757343218,
- "narHash": "sha256-GqyytaTh5JFJVraOQefSnxuQNVVSFFGwsJPT/M6St84=",
+ "lastModified": 1758405527,
+ "narHash": "sha256-3OMGX/chlzLpL7OMjXUfcI+xGu5GMeldCnBQ5kM9lZE=",
"owner": "nix-community",
"repo": "nixvim",
- "rev": "d38eb947272dd4e6d138648b1b49360301db6859",
+ "rev": "fd0c42355026185678e93bca152cbdb3b1a67563",
"type": "github"
},
"original": {
@@ -137,11 +137,11 @@
]
},
"locked": {
- "lastModified": 1756738487,
- "narHash": "sha256-8QX7Ab5CcICp7zktL47VQVS+QeaU4YDNAjzty7l7TQE=",
+ "lastModified": 1758272005,
+ "narHash": "sha256-1u3xTH+3kaHhztPmWtLAD8LF5pTYLR2CpsPFWTFnVtQ=",
"owner": "NuschtOS",
"repo": "search",
- "rev": "5feeaeefb571e6ca2700888b944f436f7c05149b",
+ "rev": "aa975a3757f28ce862812466c5848787b868e116",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index c5efb5c..d00f5e2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -63,7 +63,7 @@
};
modules = [
- ./home-manager/home.nix
+ ./home-manager/nixstation.nix
];
};
};
diff --git a/home-manager/home.nix b/home-manager/home.nix
index 25c615e..da8a45b 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -17,11 +17,6 @@
pkg:
builtins.elem (lib.getName pkg) [
"code-cursor"
- "ollama-cuda"
- "steam-original"
- "steam-run"
- "steam"
- "steamtinkerlaunch"
];
};
};
@@ -33,7 +28,6 @@
direnv
fira-code
firefox
- heroic
hwinfo
inkscape
keymapp
@@ -46,12 +40,10 @@
nixfmt-rfc-style
nordic
obsidian
- ollama-cuda
pinentry-curses
python3
ripgrep
statix
- steam
uget
unzip
waydroid
diff --git a/home-manager/nixstation.nix b/home-manager/nixstation.nix
new file mode 100644
index 0000000..6ccc693
--- /dev/null
+++ b/home-manager/nixstation.nix
@@ -0,0 +1,26 @@
+{ pkgs
+, lib
+, ...
+}:
+{
+ imports = [
+ ./home.nix
+ ];
+
+ nixpkgs.config.allowUnfreePredicate =
+ pkg:
+ builtins.elem (lib.getName pkg) [
+ "code-cursor"
+ "ollama-cuda"
+ "steam-original"
+ "steam-run"
+ "steam"
+ "steamtinkerlaunch"
+ ];
+
+ home.packages = with pkgs; [
+ heroic
+ ollama-cuda
+ steam
+ ];
+}
diff --git a/hosts/common/default.nix b/hosts/common/default.nix
index bfea323..2cdbf18 100644
--- a/hosts/common/default.nix
+++ b/hosts/common/default.nix
@@ -1,8 +1,9 @@
-{ config
-, inputs
-, lib
-, pkgs
-, ...
+{
+ config,
+ inputs,
+ lib,
+ pkgs,
+ ...
}:
{
imports = [ ./users/thiago/default.nix ];
@@ -10,12 +11,10 @@
boot.loader.systemd-boot.enable = true;
environment = {
shells = with pkgs; [ zsh ];
- etc = lib.mapAttrs'
- (name: value: {
- name = "nix/path/${name}";
- value.source = value.flake;
- })
- config.nix.registry;
+ etc = lib.mapAttrs' (name: value: {
+ name = "nix/path/${name}";
+ value.source = value.flake;
+ }) config.nix.registry;
systemPackages = with pkgs; [
exfat
file
@@ -46,6 +45,7 @@
nixPath = [ "/etc/nix/path" ];
settings = {
+ download-buffer-size = "512MiB";
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};