From a91317ff35637e8ae761f312f681d5b2bf613975 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Tue, 28 May 2024 12:06:29 +0200 Subject: [PATCH 1/3] accunt: use initialPassword field for initial password --- nix-os/account.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nix-os/account.nix b/nix-os/account.nix index 2b603c6..a9ea40c 100644 --- a/nix-os/account.nix +++ b/nix-os/account.nix @@ -14,8 +14,7 @@ (if config.programs.adb.enable then "adbusers" else null) ]; linger = true; - # Initial password for the account - password = "nixos"; + initialPassword = "nixos"; packages = with pkgs; [ firefox vivaldi From af43682e8bd1c5367e539566eb210f3df2a4d79d Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Tue, 28 May 2024 12:12:51 +0200 Subject: [PATCH 2/3] shell: always show hostname --- nix-os/shell.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index c13ffbe..cee283b 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -120,6 +120,9 @@ in truncation_length = 5; truncation_symbol = "…/"; }; + hostname = { + ssh_only = false; + }; username = { show_always = true; }; From a6568d4891d7323af288ba339368ac6def601b42 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Tue, 28 May 2024 12:18:08 +0200 Subject: [PATCH 3/3] core: create git configuration --- nix-os/core.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix-os/core.nix b/nix-os/core.nix index d79f6e9..a5633da 100644 --- a/nix-os/core.nix +++ b/nix-os/core.nix @@ -29,6 +29,12 @@ ddrescue ]; + programs.git.config = { + init.defaultBranch = "main"; + merge.conflictstyle = "diff3"; + rerere.enabled = true; + }; + # Enable fail2ban because of the OpenSSH server services.fail2ban = { enable = true;