all repos — flake @ c99245dae35121d098ecc6517ac3abcb7df7f263

got my cool flake

hosts/common/default.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
{ pkgs, ... }:
{
  imports = [
    ./users.nix
    ./nix.nix

    ../../modules/desktop.nix
  ];

  programs = {
    fish.enable = true;
    nix-ld.enable = true;
  };

  security = {
    polkit.enable = true;
    rtkit.enable = true;
  };

  services = {
    tailscale.enable = true;
    openssh = {
      enable = true;
      ports = [ 22 ];
      settings = {
        PasswordAuthentication = true;
        PermitRootLogin = "prohibit-password";
      };
    };
  };

  time.timeZone = "Europe/London";
  i18n = {
    defaultLocale = "en_GB.UTF-8";
    extraLocaleSettings = {
      LC_ADDRESS = "en_GB.UTF-8";
      LC_IDENTIFICATION = "en_GB.UTF-8";
      LC_MEASUREMENT = "en_GB.UTF-8";
      LC_MONETARY = "en_GB.UTF-8";
      LC_NAME = "en_GB.UTF-8";
      LC_NUMERIC = "en_GB.UTF-8";
      LC_PAPER = "en_GB.UTF-8";
      LC_TELEPHONE = "en_GB.UTF-8";
      LC_TIME = "en_GB.UTF-8";
    };
  };

  environment.systemPackages = with pkgs; [
    # dev tools
    htop
    vim
    ripgrep
    fd

    git
    just
    jq

    nixd
    nil
    nixfmt-tree
    nixfmt

    sqlite
    nmap
    dig
    uv
    python3
    nodejs-slim_latest
    zellij

    # file
    unzip
    zip
    file
    tree
    tree-from-tags
    fuse3

    # networking
    wget
    curl
    openssl
    wirelesstools

    # media
    mpv
    imv
    imagemagick
    playerctl
    ffmpeg

    # whatever
    gnupg
    killall
    gnome-keyring
    libsecret

    fastfetch
    hyfetch
    kittysay

    nautilus
  ];
}