summaryrefslogtreecommitdiff
path: root/core.nix
blob: 99b2f7694beb7cd6cd6c596c86cd1baa54a2d1ea (plain)
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
# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, ... }:

{
    boot = {
        tmpOnTmpfs = true;
        supportedFilesystems = [ "ntfs" ];
        kernel.sysctl = {
            "kernel.sysrq"=1;
        };
    };

    hardware = {
        enableRedistributableFirmware = true;
    };

    networking = {
        # Firewall configuration
        # firewall.enable = true; yeah who needs that shit

        networkmanager = {
            enable = true;
        };
    };

    # Select internationalisation properties.
    i18n = {
        defaultLocale = "en_DK.UTF-8";
    };

    console = {
        keyMap = "us";
        font = "Lat2-Terminus16";
    };

    # Set your time zone.
    time.timeZone = "Europe/Copenhagen";

    # Enabled services

    # Enable the OpenSSH daemon.
    # services.openssh.enable = true;

    # List packages installed in system profile. To search, run:
    # $ nix search wget
    nixpkgs.config.allowUnfree = true;
    environment = {
        systemPackages = with pkgs; [
            # General stuff
            wget vim neovim git htop zsh tree dnsutils zip
            unzip tig file whois nmap usbutils lshw gnumake
            pv jq killall netcat-gnu perl pciutils
            cowsay man-pages gcc binutils python3 python
            lm_sensors tmux fish kakoune ncdu
        ];
    };
}