1
0
Fork 0
conf/nixos/leena/configuration.nix

103 lines
2.7 KiB
Nix
Raw Normal View History

2023-05-02 02:50:02 +03:00
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "leena"; # Define your hostname.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Europe/Helsinki";
# Select internationalisation properties.
i18n.defaultLocale = "fi_FI.UTF-8";
console = {
keyMap = "fi";
# useXkbConfig = true; # use xkbOptions in tty.
};
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.dnsname.enable = true;
};
};
2023-05-02 18:18:14 +03:00
nix.settings.auto-optimise-store = true;
2023-05-02 02:50:02 +03:00
nixpkgs.config.allowUnfree = true;
programs.iftop.enable = true;
programs.iotop.enable = true;
programs.htop.enable = true;
programs.tmux.enable = true;
programs.bash = {
shellAliases = {
2023-05-02 02:57:13 +03:00
cross="NIX_STORE=/nix/store cross";
2023-05-02 02:50:02 +03:00
};
};
users.users.jt = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ]; # Enable sudo for the user.
packages = with pkgs; [
rustup
2023-05-02 02:58:05 +03:00
rust-analyzer
2023-05-02 02:50:02 +03:00
cargo-cross
2023-05-02 05:09:50 +03:00
gcc
2023-05-02 02:55:41 +03:00
#appimage-run
2023-05-02 05:09:50 +03:00
steam-run-native
2023-05-02 02:50:02 +03:00
];
};
environment.systemPackages = with pkgs; [
wget
git
emacs
2023-05-02 05:09:50 +03:00
sqlite
2023-05-02 02:50:02 +03:00
nano
parted
unrar
unzip
zip
p7zip
python3
];
services.openssh.enable = true;
2023-05-02 05:09:17 +03:00
services.cloudflare-dyndns = {
enable = true;
domains = [ "leena.jakest.us" ];
apiTokenFile = "/home/jt/conf/cloudflare.token";
};
2023-05-02 02:50:02 +03:00
networking.firewall.enable = true;
2023-05-02 18:23:35 +03:00
networking.firewall.allowedTCPPorts = [ 80 ];
2023-05-02 02:50:02 +03:00
# networking.firewall.allowedUDPPorts = [ ... ];
2023-05-02 18:18:14 +03:00
services.nginx = {
enable = true;
virtualHosts = {
"leena.jakest.us" = {
root = "/var/www/leena.jakest.us";
};
};
};
2023-05-02 02:50:02 +03:00
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}