26 lines
915 B
Nix
Executable file
26 lines
915 B
Nix
Executable file
{ config, inputs, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) toString;
|
|
inherit (lib.modules) mkDefault mkIf;
|
|
inherit (lib.my) mapModulesRec';
|
|
in {
|
|
imports =
|
|
[
|
|
inputs.home-manager.nixosModules.home-manager
|
|
inputs.amdl.nixosModules.default
|
|
inputs.vscode-server.nixosModules.default
|
|
]
|
|
++ (mapModulesRec' (toString ./modules) import);
|
|
|
|
# i mostly disagree with state versions, just use the oldest one i have set up
|
|
# they seem reasonable at first but are so messy across multiple hosts
|
|
# a lot of the time they're used for stuff that isn't even state (looking at you, home-manager)
|
|
system.stateVersion = mkDefault "25.11";
|
|
system.configurationRevision = with inputs; mkIf (self ? rev) self.rev;
|
|
|
|
time.timeZone = mkDefault "America/Los_Angeles";
|
|
|
|
# git is needed for flakes, yet, isn't in `environment.corePackages`
|
|
environment.systemPackages = with pkgs; [ git ];
|
|
}
|