summaryrefslogtreecommitdiff
path: root/modules/nixos/laptop.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/laptop.nix')
-rw-r--r--modules/nixos/laptop.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/nixos/laptop.nix b/modules/nixos/laptop.nix
new file mode 100644
index 0000000..9002c49
--- /dev/null
+++ b/modules/nixos/laptop.nix
@@ -0,0 +1,39 @@
+{
+ # bluetooth
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ };
+ services.blueman.enable = true;
+
+ # locale
+ i18n.defaultLocale = "de_DE.UTF-8";
+ time.timeZone = "Europe/Berlin";
+
+ # networking
+ networking = {
+ firewall.enable = true;
+ networkmanager.enable = true;
+ };
+
+ # misc
+ services = {
+ printing.enable = true;
+
+ # trackpad
+ libinput.enable = true;
+
+ # ssh
+ openssh.enable = true;
+ };
+
+ # impermanence
+ environment.persistence."/persist".directories = [
+ # bluetooth
+ "/var/lib/bluetooth"
+ # wifi connections
+ "/etc/NetworkManager/system-connections"
+ # machine ssh keys
+ "/etc/ssh"
+ ];
+}