summaryrefslogtreecommitdiff
path: root/modules/default.nix
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-05-09 17:54:45 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-05-09 17:54:45 -0500
commit4ea08b3976188eb01a74548d68b227a7794b4caa (patch)
tree505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /modules/default.nix
downloadnixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz
nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip
Add current configuration
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" ];
+ };
+ };
+ };
+}