summaryrefslogtreecommitdiff
path: root/kj-laptop01/configuration.nix
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-07 16:32:01 +1000
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2025-09-07 16:32:01 +1000
commit21aac7678f85c81505fc0c7171f46eaa9ccfd2df (patch)
treecbcfd2627c8be52f6676188e5425b2af19e44013 /kj-laptop01/configuration.nix
parent6ad580f49e7412eb428b45b4fa03039f17fb5c8e (diff)
sort of works now
Diffstat (limited to 'kj-laptop01/configuration.nix')
-rw-r--r--kj-laptop01/configuration.nix35
1 files changed, 27 insertions, 8 deletions
diff --git a/kj-laptop01/configuration.nix b/kj-laptop01/configuration.nix
index ae4c54d..d491da7 100644
--- a/kj-laptop01/configuration.nix
+++ b/kj-laptop01/configuration.nix
@@ -10,12 +10,6 @@
imports = [
./disk-config.nix
];
- boot.loader.systemd-boot.enable = true;
- system.stateVersion = "25.05";
- networking.hostName = "kj-laptop01";
- networking.networkmanager.enable = true;
-
-
sops = {
defaultSopsFile = ./secrets.yaml;
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
@@ -31,16 +25,22 @@
};
};
+ boot.loader.systemd-boot.enable = true;
+ system.stateVersion = "25.05";
+
security.sudo.enable = true;
users.mutableUsers = false;
- users.groups.kjtsanaktsidis = {};
+ users.groups.kjtsanaktsidis = { };
users.users = {
kjtsanaktsidis = {
createHome = true;
isNormalUser = true;
description = "KJ Tsanaktsidis";
group = "kjtsanaktsidis";
- extraGroups = [ "wheel" "networkmanager" ];
+ extraGroups = [
+ "wheel"
+ "networkmanager"
+ ];
hashedPasswordFile = config.sops.secrets.kj_hashed_password.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAC/BtvW1c1RbBI8eeGo7oOH2y9byBaxWVDHsErgaE+s kjtsanaktsidis@KJMacbookGroq.local"
@@ -48,6 +48,25 @@
};
};
+ # Enable systemd-resolved for DNS
+ services.resolved = {
+ enable = true;
+ llmnr = "true";
+ extraConfig = ''
+ MulticastDNS=yes
+ '';
+ };
+ networking.hostName = "kj-laptop01";
+ networking.nameservers = [ "127.0.0.53" ];
+ networking.networkmanager = {
+ enable = true;
+ dns = "systemd-resolved";
+ # Enable mDNS on NetworkManager connections
+ connectionConfig = {
+ "connection.mdns" = "2"; # 2 = yes (resolve & register)
+ };
+ };
+
services.openssh = {
enable = true;
hostKeys = [