nix/hosts/laptop/default.nix

37 lines
918 B
Nix
Raw Normal View History

2024-12-02 03:57:34 -07:00
{ inputs, ... }:
{
imports = [
2024-12-15 23:36:16 -07:00
## External modules
2024-12-21 11:15:14 -07:00
2024-12-15 23:36:16 -07:00
# Better command-not-found
inputs.nix-index-database.nixosModules.nix-index
{ programs.nix-index-database.comma.enable = true; }
# Home manager
inputs.home-manager.nixosModules.home-manager
../../home-manager
{ meta.home-manager.preset = "plasma-desktop"; }
2024-12-21 11:15:14 -07:00
2024-12-15 23:36:16 -07:00
## Normal configuration
2024-12-02 03:57:34 -07:00
./hardware-configuration.nix
2024-12-15 23:36:16 -07:00
./config
2024-12-02 03:57:34 -07:00
];
system.stateVersion = "24.05";
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://colmena.cachix.org"
];
trusted-public-keys = [
"colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg="
];
auto-optimise-store = true;
};
nix.gc.automatic = true;
2024-12-21 11:15:14 -07:00
}