chore: optmize build on nixbook, removing ollama and steam

This commit is contained in:
Thiago Sposito 2025-09-20 23:27:51 -03:00
parent cab6411899
commit 2c0562ab30
5 changed files with 50 additions and 32 deletions

24
flake.lock generated
View file

@ -46,11 +46,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1757256385, "lastModified": 1758375677,
"narHash": "sha256-WK7tOhWwr15mipcckhDg2no/eSpM1nIh4C9le8HgHhk=", "narHash": "sha256-BLtD+6qWz7fQjPk2wpwyXQLGI0E30Ikgf2ppn2nVadI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f35703b412c67b48e97beb6e27a6ab96a084cd37", "rev": "edc7468e12be92e926847cb02418e649b02b59dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -90,11 +90,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1757068644, "lastModified": 1758277210,
"narHash": "sha256-NOrUtIhTkIIumj1E/Rsv1J37Yi3xGStISEo8tZm3KW4=", "narHash": "sha256-iCGWf/LTy+aY0zFu8q12lK8KuZp7yvdhStehhyX1v8w=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8eb28adfa3dc4de28e792e3bf49fcf9007ca8ac9", "rev": "8eaee110344796db060382e15d3af0a9fc396e0e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -114,11 +114,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1757343218, "lastModified": 1758405527,
"narHash": "sha256-GqyytaTh5JFJVraOQefSnxuQNVVSFFGwsJPT/M6St84=", "narHash": "sha256-3OMGX/chlzLpL7OMjXUfcI+xGu5GMeldCnBQ5kM9lZE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "d38eb947272dd4e6d138648b1b49360301db6859", "rev": "fd0c42355026185678e93bca152cbdb3b1a67563",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -137,11 +137,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1756738487, "lastModified": 1758272005,
"narHash": "sha256-8QX7Ab5CcICp7zktL47VQVS+QeaU4YDNAjzty7l7TQE=", "narHash": "sha256-1u3xTH+3kaHhztPmWtLAD8LF5pTYLR2CpsPFWTFnVtQ=",
"owner": "NuschtOS", "owner": "NuschtOS",
"repo": "search", "repo": "search",
"rev": "5feeaeefb571e6ca2700888b944f436f7c05149b", "rev": "aa975a3757f28ce862812466c5848787b868e116",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -63,7 +63,7 @@
}; };
modules = [ modules = [
./home-manager/home.nix ./home-manager/nixstation.nix
]; ];
}; };
}; };

View file

@ -17,11 +17,6 @@
pkg: pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [
"code-cursor" "code-cursor"
"ollama-cuda"
"steam-original"
"steam-run"
"steam"
"steamtinkerlaunch"
]; ];
}; };
}; };
@ -33,7 +28,6 @@
direnv direnv
fira-code fira-code
firefox firefox
heroic
hwinfo hwinfo
inkscape inkscape
keymapp keymapp
@ -46,12 +40,10 @@
nixfmt-rfc-style nixfmt-rfc-style
nordic nordic
obsidian obsidian
ollama-cuda
pinentry-curses pinentry-curses
python3 python3
ripgrep ripgrep
statix statix
steam
uget uget
unzip unzip
waydroid waydroid

View file

@ -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
];
}

View file

@ -1,8 +1,9 @@
{ config {
, inputs config,
, lib inputs,
, pkgs lib,
, ... pkgs,
...
}: }:
{ {
imports = [ ./users/thiago/default.nix ]; imports = [ ./users/thiago/default.nix ];
@ -10,12 +11,10 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
environment = { environment = {
shells = with pkgs; [ zsh ]; shells = with pkgs; [ zsh ];
etc = lib.mapAttrs' etc = lib.mapAttrs' (name: value: {
(name: value: {
name = "nix/path/${name}"; name = "nix/path/${name}";
value.source = value.flake; value.source = value.flake;
}) }) config.nix.registry;
config.nix.registry;
systemPackages = with pkgs; [ systemPackages = with pkgs; [
exfat exfat
file file
@ -46,6 +45,7 @@
nixPath = [ "/etc/nix/path" ]; nixPath = [ "/etc/nix/path" ];
settings = { settings = {
download-buffer-size = "512MiB";
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
auto-optimise-store = true; auto-optimise-store = true;
}; };