From 7dbe7d8f81055a94fe33e17f75b0fa183193f96d Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Mon, 27 Feb 2023 14:27:17 +0000 Subject: [PATCH] Update README and set timezone --- README.md | 20 ++++++++++++++++++-- nixos/modules/common.nix | 4 +++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c2409c4..42981e3 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,24 @@ This repo contains my personal dotfiles and configurations for my computers. I use NixOS as my main OS, and for that I have written a few modules in [`nixos/modules`](./nixos/modules). Are those settings perfect? No, but they are my opinionated defaults. :stuck_out_tongue_winking_eye: -*Build-Command Example:* +## Useful Commands + +*Generate Hash For Password File* ```bash -sudo nixos-rebuild switch --flake '.#kevin-tp' --impure +mkpasswd -m sha-512 +``` + +*Edit / Create SOPS File* + +```bash +cd nixos +nix-shell -p sops --run "EDITOR=vim sops shared/secrets/passwords.yaml" +``` + +*Create New AGE-Key* + +```bash +mkdir -p ~/.config/sops/age +nix-shell -p age --run "age-keygen -o ~/.config/sops/age/keys.txt" ``` diff --git a/nixos/modules/common.nix b/nixos/modules/common.nix index 1d1f830..4e1651d 100644 --- a/nixos/modules/common.nix +++ b/nixos/modules/common.nix @@ -1,10 +1,12 @@ -{ pkgs, ... }: { +{ pkgs, lib, ... }: { imports = [ ./ssh.nix ]; nixpkgs.config.allowUnfree = true; i18n.defaultLocale = "en_US.UTF-8"; kevin.ssh.server.enable = true; + time.timeZone = lib.mkDefault "Europe/Berlin"; + console = { font = "Lat2-Terminus16"; keyMap = "de";