{ nixpkgs, hostname, lib, config, ... }: { imports = [ ./gui.nix ./laptop.nix ./thinkpad.nix ./locales.nix ./envfs.nix ./pc.nix ./main.nix ./sets.nix ./syslog.nix ./hosts.nix ./bluetooth.nix ./unfree.nix ./overlays ]; options = { this.defaults.enable = lib.mkEnableOption "default settings" // { default = true; }; }; config = lib.mkIf config.this.defaults.enable { networking.hostName = hostname; security.sudo.enable = false; services.logind.lidSwitch = "ignore"; services.logind.powerKey = "suspend"; documentation.man.generateCaches = true; services.udev.extraRules = '' KERNEL=="uinput", MODE="0660", GROUP="input" ''; programs.bash.shellInit = '' HISTIGNORE="*INSIDE_EMACS*:$HISTIGNORE" ''; nix = { channel.enable = false; #registry.nixpkgs.flake = nixpkgs; nixPath = lib.mkOrder 1000 ["nixpkgs=flake:nixpkgs"]; settings = { experimental-features = [ "nix-command" "flakes" ]; }; }; }; }