From 4ea08b3976188eb01a74548d68b227a7794b4caa Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Fri, 9 May 2025 17:54:45 -0500 Subject: Add current configuration --- modules/default.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 modules/default.nix (limited to 'modules/default.nix') diff --git a/modules/default.nix b/modules/default.nix new file mode 100644 index 0000000..e57947a --- /dev/null +++ b/modules/default.nix @@ -0,0 +1,42 @@ +{ nixpkgs, hostname, lib, config, ... }: + +{ + imports = [ + ./gui.nix + ./laptop.nix + ./locales.nix + ./envfs.nix + ./pc.nix + ./sets.nix + ./syslog.nix + ./hosts.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"; + + services.udev.extraRules = '' + KERNEL=="uinput", MODE="0660", GROUP="input" + ''; + + nix = { + channel.enable = false; + #registry.nixpkgs.flake = nixpkgs; + settings = { + experimental-features = [ "nix-command" "flakes" ]; + }; + }; + }; +} -- cgit v1.2.3