summaryrefslogtreecommitdiff
path: root/modules/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/default.nix')
-rw-r--r--modules/default.nix42
1 files changed, 42 insertions, 0 deletions
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" ];
+ };
+ };
+ };
+}