add password to users

This commit is contained in:
fwastring 2025-11-23 21:52:13 +01:00
parent 48bb58e1bc
commit 0fb755d91b
5 changed files with 52 additions and 39 deletions

View file

@ -6,6 +6,9 @@
...
}:
{
sops.defaultSopsFile = ../secrets/sops.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
nixpkgs = {
config = {
allowUnfree = true;
@ -49,11 +52,8 @@
efi = {
canTouchEfiVariables = true;
};
systemd-boot.enable = true;
grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
systemd-boot = {
enable = true;
};
};
};
@ -67,10 +67,19 @@
fi
'';
};
environment.etc = lib.mapAttrs' (name: value: {
name = "nix/path/${name}";
value.source = value.flake;
}) config.nix.registry;
environment = {
etc = lib.mapAttrs' (name: value: {
name = "nix/path/${name}";
value.source = value.flake;
}) config.nix.registry;
sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
TERM = "xterm-256color";
};
};
virtualisation = {
docker = {
@ -79,12 +88,6 @@
};
};
environment.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
TERM = "xterm-256color";
};
time.timeZone = "Europe/Stockholm";
fonts.packages = with pkgs; [
@ -108,12 +111,9 @@
console.keyMap = "sv-latin1";
programs.bat = {
enable = true;
};
services.tailscale.enable = true;
networking = {
nftables.enable = true;
networkmanager.enable = true;
firewall = {
checkReversePath = "loose";