summaryrefslogtreecommitdiff
path: root/configuration.nix
blob: 7bd3fde04b3a412d2bdb9876d8e4be9e6e7e7236 (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
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
106
107
# 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, ... }:

{
    imports = [
        ./hardware-configuration.nix
        ./pc_t14.nix
        ./desktop.nix
    ];

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

    # Enable sound.
    sound.enable = true;

    hardware = {
        opengl.enable = true;
        enableRedistributableFirmware = true;

        bluetooth.enable = false;
    };

    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;

    programs = {
        ssh.startAgent = false;
        gnupg.agent = {
            enable = true;
            enableSSHSupport = true;
            pinentryFlavor = "gtk2";
        };
    };
    programs.dconf.enable = true;

    services = {
        udev.packages = [ pkgs.yubikey-personalization ];
    };

    # Define a user account. Don't forget to set a password with ‘passwd’.
    users.users.julian = {
        isNormalUser = true;
        shell = pkgs.zsh;
        extraGroups = [ "wheel" "video" "vboxusers" "cdrom" ];
    };

    virtualisation.docker.enable = false;

    # This value determines the NixOS release with which your system is to be
    # compatible, in order to avoid breaking some software such as database
    # servers. You should change this only after NixOS release notes say you
    # should.
    system.stateVersion = "21.05"; # Did you read the comment?

    # 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 stow pass tree dnsutils gnupg zip
            unzip tig file imagemagick whois nmap usbutils lshw gnumake
            aspell aspellDicts.da aspellDicts.en pv acpi jq killall netcat-gnu perl gopass
            cowsay gdb man-pages sox gcc binutils python3 python

            # Nixos stuff
            nox

            # Network stuff
            networkmanagerapplet networkmanager-openconnect iw batctl
            wirelesstools
        ];
    };
}