buffet
6175bf96d0
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/f33900124c23c4eca5831b9b5eb32ea5894375ce' (2024-03-19) → 'github:nix-community/home-manager/d6bb9f934f2870e5cbc5b94c79e9db22246141ff' (2024-04-06) • Updated input 'nix-index-database': 'github:Mic92/nix-index-database/2844b5f3ad3b478468151bd101370b9d8ef8a3a7' (2024-03-31) → 'github:Mic92/nix-index-database/4676d72d872459e1e3a248d049609f110c570e9a' (2024-04-07) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/9a763a7acc4cfbb8603bb0231fec3eda864f81c0' (2024-03-25) → 'github:NixOS/nixos-hardware/1e3b3a35b7083f4152f5a516798cf9b21e686465' (2024-04-08) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/219951b495fc2eac67b1456824cc1ec1fd2ee659' (2024-03-28) → 'github:NixOS/nixpkgs/e38d7cb66ea4f7a0eb6681920615dfcc30fc2920' (2024-04-06) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29) → 'github:NixOS/nixpkgs/ff0dbd94265ac470dda06a657d5fe49de93b4599' (2024-04-06) • Updated input 'nur': 'github:nix-community/NUR/d7666601c0054c9150a2152da0cfc007c1de3948' (2024-04-02) → 'github:nix-community/NUR/41a02781a370613aa045dbc34f42b0d616dcb200' (2024-04-08)
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
nixos-hardware,
|
|
...
|
|
}: {
|
|
imports = [
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-x270
|
|
];
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
boot = {
|
|
supportedFilesystems = ["bcachefs"];
|
|
kernelPackages = pkgs.linuxPackages_6_8;
|
|
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
networkmanager.enable = true;
|
|
nameservers = ["1.1.1.1"];
|
|
};
|
|
|
|
nix = {
|
|
registry = {
|
|
nixpkgs.flake = nixpkgs;
|
|
nixpkgs-unstable.flake = nixpkgs-unstable;
|
|
};
|
|
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
trusted-users = ["root"];
|
|
};
|
|
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
|
|
assertions = [
|
|
{
|
|
assertion = -1 == builtins.compareVersions pkgs.linuxPackages.kernel.version "6.7.3";
|
|
message = "default kernel has hit 6.7, change linuxPackages to default";
|
|
}
|
|
];
|
|
}
|