|
| 1 | +# Edit this configuration file to define what should be installed on |
| 2 | +# your system. Help is available in the configuration.nix(5) man page |
| 3 | +# and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | + |
| 5 | +{ config, pkgs, ... }: |
| 6 | + |
| 7 | +{ |
| 8 | + imports = []; |
| 9 | + |
| 10 | + # Bootloader. |
| 11 | + boot.loader.systemd-boot.enable = true; |
| 12 | + boot.loader.efi.canTouchEfiVariables = true; |
| 13 | + |
| 14 | + networking.hostName = "eros"; # Define your hostname. |
| 15 | + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. |
| 16 | + |
| 17 | + # Configure network proxy if necessary |
| 18 | + # networking.proxy.default = "http://user:password@proxy:port/"; |
| 19 | + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |
| 20 | + |
| 21 | + # Enable networking |
| 22 | + networking.networkmanager.enable = true; |
| 23 | + |
| 24 | + # Set your time zone. |
| 25 | + time.timeZone = "America/New_York"; |
| 26 | + |
| 27 | + # Select internationalisation properties. |
| 28 | + i18n.defaultLocale = "en_US.UTF-8"; |
| 29 | + |
| 30 | + nix = { |
| 31 | + settings = { |
| 32 | + experimental-features = "nix-command flakes"; |
| 33 | + }; |
| 34 | + }; |
| 35 | + |
| 36 | + i18n.extraLocaleSettings = { |
| 37 | + LC_ADDRESS = "en_US.UTF-8"; |
| 38 | + LC_IDENTIFICATION = "en_US.UTF-8"; |
| 39 | + LC_MEASUREMENT = "en_US.UTF-8"; |
| 40 | + LC_MONETARY = "en_US.UTF-8"; |
| 41 | + LC_NAME = "en_US.UTF-8"; |
| 42 | + LC_NUMERIC = "en_US.UTF-8"; |
| 43 | + LC_PAPER = "en_US.UTF-8"; |
| 44 | + LC_TELEPHONE = "en_US.UTF-8"; |
| 45 | + LC_TIME = "en_US.UTF-8"; |
| 46 | + }; |
| 47 | + |
| 48 | + # Enable the X11 windowing system. |
| 49 | + services.xserver = { |
| 50 | + enable = true; |
| 51 | + config = '' |
| 52 | + Section "InputClass" |
| 53 | + Identifier "keyboard defaults" |
| 54 | + MatchIsKeyboard "on" |
| 55 | + Option "AutoRepeat" "200 40" |
| 56 | + EndSection |
| 57 | + ''; |
| 58 | + }; |
| 59 | + |
| 60 | + services.interception-tools = { |
| 61 | + enable = true; |
| 62 | + plugins = [ pkgs.interception-tools-plugins.caps2esc ]; |
| 63 | + udevmonConfig = '' |
| 64 | + - JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.caps2esc}/bin/caps2esc -m 1 | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE" |
| 65 | + DEVICE: |
| 66 | + EVENTS: |
| 67 | + EV_KEY: [KEY_CAPSLOCK, KEY_ESC] |
| 68 | + ''; |
| 69 | + }; |
| 70 | + |
| 71 | + # Enable the GNOME Desktop Environment. |
| 72 | + services.xserver.displayManager.gdm.enable = true; |
| 73 | + services.xserver.desktopManager.gnome.enable = true; |
| 74 | + |
| 75 | + # Configure keymap in X11 |
| 76 | + services.xserver.xkb = { |
| 77 | + layout = "us"; |
| 78 | + variant = ""; |
| 79 | + }; |
| 80 | + |
| 81 | + # Enable CUPS to print documents. |
| 82 | + services.printing.enable = true; |
| 83 | + |
| 84 | + # Enable sound with pipewire. |
| 85 | + hardware.pulseaudio.enable = false; |
| 86 | + security.rtkit.enable = true; |
| 87 | + services.pipewire = { |
| 88 | + enable = true; |
| 89 | + alsa.enable = true; |
| 90 | + alsa.support32Bit = true; |
| 91 | + pulse.enable = true; |
| 92 | + # If you want to use JACK applications, uncomment this |
| 93 | + #jack.enable = true; |
| 94 | + |
| 95 | + # use the example session manager (no others are packaged yet so this is enabled by default, |
| 96 | + # no need to redefine it in your config for now) |
| 97 | + #media-session.enable = true; |
| 98 | + }; |
| 99 | + |
| 100 | + # Enable touchpad support (enabled default in most desktopManager). |
| 101 | + # services.xserver.libinput.enable = true; |
| 102 | + |
| 103 | + # Define a user account. Don't forget to set a password with ‘passwd’. |
| 104 | + users.users.tim = { |
| 105 | + isNormalUser = true; |
| 106 | + description = "Tim Raymond"; |
| 107 | + extraGroups = [ "networkmanager" "wheel" ]; |
| 108 | + packages = with pkgs; [ |
| 109 | + # thunderbird |
| 110 | + ]; |
| 111 | + }; |
| 112 | + |
| 113 | + # Install firefox. |
| 114 | + programs.firefox.enable = true; |
| 115 | + |
| 116 | + # Allow unfree packages |
| 117 | + nixpkgs.config = { |
| 118 | + allowUnfree = true; |
| 119 | + }; |
| 120 | + |
| 121 | + # List packages installed in system profile. To search, run: |
| 122 | + # $ nix search wget |
| 123 | + environment.systemPackages = with pkgs; [ |
| 124 | + gimp |
| 125 | + inkscape |
| 126 | + zeal |
| 127 | + qemu |
| 128 | + wine |
| 129 | + freecad |
| 130 | + cura-appimage |
| 131 | + flashprint |
| 132 | + caprine # facebook messenger |
| 133 | + finamp |
| 134 | + lightburn |
| 135 | + qgis |
| 136 | + gnucash |
| 137 | + nmap |
| 138 | + wireshark |
| 139 | + ]; |
| 140 | + |
| 141 | + # Some programs need SUID wrappers, can be configured further or are |
| 142 | + # started in user sessions. |
| 143 | + # programs.mtr.enable = true; |
| 144 | + # programs.gnupg.agent = { |
| 145 | + # enable = true; |
| 146 | + # enableSSHSupport = true; |
| 147 | + # }; |
| 148 | + |
| 149 | + # List services that you want to enable: |
| 150 | + |
| 151 | + # Enable the OpenSSH daemon. |
| 152 | + # services.openssh.enable = true; |
| 153 | + |
| 154 | + # Open ports in the firewall. |
| 155 | + # networking.firewall.allowedTCPPorts = [ ... ]; |
| 156 | + # networking.firewall.allowedUDPPorts = [ ... ]; |
| 157 | + # Or disable the firewall altogether. |
| 158 | + # networking.firewall.enable = false; |
| 159 | + |
| 160 | + # This value determines the NixOS release from which the default |
| 161 | + # settings for stateful data, like file locations and database versions |
| 162 | + # on your system were taken. It‘s perfectly fine and recommended to leave |
| 163 | + # this value at the release version of the first install of this system. |
| 164 | + # Before changing this value read the documentation for this option |
| 165 | + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 166 | + system.stateVersion = "25.05"; # Did you read the comment? |
| 167 | + |
| 168 | +} |
0 commit comments