dotfiles/falcon-nixos/configuration.nix

57 lines
1.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, lib, pkgs, inputs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nix.settings.experimental-features = ["nix-command" "flakes" ];
networking.hostName = "nixos"; # Define your hostname.
users.users.yadunut = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
neovim
wget
];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG" ];
};
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
git
neovim
wget
inputs.agenix.packages."${pkgs.system}".default
];
age.secrets.tailscale.file = ./secrets/tailscale.age;
programs.zsh.enable = true;
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.qemuGuest.enable = true;
services.openssh.enable = true;
services.tailscale = {
enable = true;
authKeyFile = config.age.secrets.tailscale.path;
extraUpFlags = [ "--login-server" "http://ts.yadunut.com:444" ];
};
environment.variables.EDITOR = "nvim";
system.stateVersion = "23.11"; # Did you read the comment?
}