aboutsummaryrefslogtreecommitdiff
path: root/hosts/enode/default.nix
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-10-04 21:29:47 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-10-06 23:25:49 +0200
commit91629938bb4f455c5c04331d4a8fa60253ffa435 (patch)
tree99d3c012d31d3fb5bfe2c27bdf430921c53ab0ba /hosts/enode/default.nix
parentcdb8341737e398743a5e5b13d24b408fd8398974 (diff)
enode: disk setup, minor fixes
Diffstat (limited to 'hosts/enode/default.nix')
-rw-r--r--hosts/enode/default.nix32
1 files changed, 30 insertions, 2 deletions
diff --git a/hosts/enode/default.nix b/hosts/enode/default.nix
index c2ba04e..c45d7f0 100644
--- a/hosts/enode/default.nix
+++ b/hosts/enode/default.nix
@@ -1,9 +1,31 @@
-{ pkgs, ... }: {
+{
+ pkgs,
+ inputs,
+ ...
+}:
+{
imports = [
+ inputs.impermanence.nixosModules.impermanence
+ inputs.disko.nixosModules.disko
./headscale.nix
./caddy.nix
+ ./disko.nix
];
+ boot.initrd.luks.devices = {
+ cryptroot = {
+ device = "/dev/disk/by-partlabel/luks";
+ allowDiscards = true;
+ preLVM = true;
+ };
+ };
+
+ services.btrfs.autoScrub = {
+ enable = true;
+ interval = "weekly";
+ fileSystems = [ "/" ];
+ };
+
networking = {
networkmanager.enable = true;
useDHCP = false;
@@ -23,6 +45,11 @@
];
};
};
+ time.timeZone = "Europe/Berlin";
+
+ security.sudo.extraConfig = ''
+ Defaults lecture = never
+ '';
boot.loader = {
systemd-boot.enable = true;
@@ -30,7 +57,7 @@
};
users = {
- users.isabella = {
+ users.isabella = {
isNormalUser = true;
description = "Isabella Morgana Bastaja";
extraGroups = [ "wheel" ];
@@ -43,6 +70,7 @@
};
mutableUsers = false;
};
+ console.keyMap = "us";
services.openssh = {
enable = true;