Files
nixos-configs/hosts/pinwheel/configuration.nix
2023-11-14 09:05:02 +01:00

111 lines
2.7 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.

{ pkgs, ... }:
{
imports =
[
../../config-manager/default.nix
../../nix-wrapper/default.nix
../../shared-modules/syncthing.nix
./hardware-configuration.nix
./modules
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel = {
sysctl = {
"fs.inotify.max_user_instances" = 1024; # default: 128
};
};
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Set your time zone.
time.timeZone = "Europe/Stockholm";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "sv_SE.UTF-8";
LC_IDENTIFICATION = "sv_SE.UTF-8";
LC_MEASUREMENT = "sv_SE.UTF-8";
LC_MONETARY = "sv_SE.UTF-8";
LC_NAME = "sv_SE.UTF-8";
LC_NUMERIC = "sv_SE.UTF-8";
LC_PAPER = "sv_SE.UTF-8";
LC_TELEPHONE = "sv_SE.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.alex = {
isNormalUser = true;
description = "alex";
extraGroups = [ "wheel" ];
};
environment.systemPackages = with pkgs; [
coreutils
gnumake
bash
man-pages
];
config-manager = {
flakePath = "/home/alex/config";
};
nix-wrapper = {
flakesPath = "/home/alex/code/own/flakes";
};
mod = {
nix-index.enable = false;
greetd.enable = true;
hyprland.enable = true;
swaylock.enable = true;
physlock.enable = false;
tlp.enable = true;
wezterm.enable = true;
foot.enable = false;
git.enable = true;
openvpn.enable = true;
go.enable = true;
rust.enable = true;
keyboard.enable = true;
docker.enable = true;
podman.enable = false;
vm.enable = true;
scripts.enable = true;
pppdotpm-site.enable = false;
};
# 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 = "23.05"; # Did you read the comment?
}