Created
January 19, 2020 10:16
-
-
Save SandwichChef/4b6806782a35cb5ce25537071731af5e to your computer and use it in GitHub Desktop.
Current work config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix | |
| ]; | |
| # Use the systemd-boot EFI boot loader. | |
| boot.loader.systemd-boot.enable = true; | |
| boot.loader.efi.canTouchEfiVariables = false; | |
| networking.hostName = "vajra-aleph"; # Define your hostname. | |
| # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
| # The global useDHCP flag is deprecated, therefore explicitly set to false here. | |
| # Per-interface useDHCP will be mandatory in the future, so this generated config | |
| # replicates the default behaviour. | |
| networking.useDHCP = false; | |
| networking.interfaces.enp1s0.useDHCP = true; | |
| # Configure network proxy if necessary | |
| # networking.proxy.default = "http://user:password@proxy:port/"; | |
| # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | |
| # Select internationalisation properties. | |
| # i18n = { | |
| # consoleFont = "Lat2-Terminus16"; | |
| # consoleKeyMap = "us"; | |
| # defaultLocale = "en_US.UTF-8"; | |
| # }; | |
| # Enable input in real languages | |
| i18n.inputMethod = { | |
| enabled = "ibus"; | |
| ibus.engines = with pkgs.ibus-engines; [ anthy hangul mozc ]; | |
| }; | |
| # Set your time zone. | |
| time.timeZone = "Asia/Kolkata"; | |
| # List packages installed in system profile. To search, run: | |
| # $ nix search wget | |
| programs.adb.enable = true; | |
| nixpkgs.config.allowUnfree = true; | |
| environment.systemPackages = with pkgs; [ | |
| wget # Download shit | |
| neovim # Edit shit (Honestly, I don't know how to use vim, but I want to learn) | |
| curl # Download shit and test things on the web | |
| tmux # tmux is my terminal multiplexer of choice | |
| zsh # zsh is my shell of choice | |
| ahoviewer # Pretty nice for viewing images quickly, and browsing boorus. I prefer imgbrd-grabber, but there's not a NixOS package for it | |
| yacreader # Pretty nice for reading doujinshi/eromanga/manga | |
| scrcpy # I use this to play mobage on my phone, especially at work | |
| screen # I don't use screen that often, but sometimes it fits situations better than tmux | |
| weechat # My IRC client of choice, though I don't run it locally these days | |
| sublime3-dev # My editor of choice | |
| sublime-merge # My git client of choice, if I don't use regular git for some reason | |
| brave # Web browser of choice, aside from Firefox | |
| firefox # Web browser of choice, aside from Brave | |
| thunderbird # Email client of choice | |
| htop # Process manager | |
| strace # Debugger that works well with htop | |
| neofetch # Speccy alternative | |
| ranger # File manager | |
| lshw # Lists hardware | |
| discord # Dicksword | |
| slack # For work | |
| zoom-us # For work | |
| spotify # For making work tolerable | |
| gparted # Graphical partition manager | |
| parted # Command line partition manager | |
| polkit_gnome # To make mounting flashdrives and shit work in XFCE | |
| ### Below is a copy of Arch's base-devel group ### | |
| autoconf automake binutils bison fakeroot file findutils flex | |
| gawk gcc gettext gnugrep groff gzip libtool m4 gnumake patch pkgconf | |
| gnused texinfo which | |
| ### This concludes the aforementioned group ### | |
| ]; | |
| programs.zsh.enable = true; | |
| programs.zsh.ohMyZsh = { # You know what it is | |
| enable = true; | |
| plugins = [ "git" "python" "man" ]; | |
| theme = "agnoster"; | |
| }; | |
| # Some programs need SUID wrappers, can be configured further or are | |
| # started in user sessions. | |
| # programs.mtr.enable = true; | |
| # programs.gnupg.agent = { | |
| # enable = true; | |
| # enableSSHSupport = true; | |
| # pinentryFlavor = "gnome3"; | |
| # }; | |
| # List services that you want to enable: | |
| # Enable the OpenSSH daemon. | |
| services.openssh.enable = true; | |
| programs.ssh.startAgent = true; # What's the bloody point if it's not started, eh | |
| # Open ports in the firewall. | |
| networking.firewall.allowedTCPPorts = [ | |
| 139 # Samba | |
| 445 # Samba | |
| ]; | |
| networking.firewall.allowedUDPPorts = [ | |
| 137 # Samba | |
| 138 # Samba | |
| ]; | |
| # Or disable the firewall altogether. | |
| # networking.firewall.enable = false; | |
| # Enable CUPS to print documents. | |
| # services.printing.enable = true; | |
| # Enable sound. | |
| sound.enable = true; | |
| hardware.pulseaudio.enable = true; | |
| # Enable Samba | |
| services.samba.enable = true; | |
| # Enable the X11 windowing system. | |
| services.xserver.enableCtrlAltBackspace = true; # Gotta have my zaps | |
| services.xserver.enable = true; | |
| services.xserver.layout = "us"; | |
| services.xserver.windowManager.awesome.enable = true; | |
| # Enable touchpad support. | |
| # services.xserver.libinput.enable = true; | |
| # Define a user account. Don't forget to set a password with ‘passwd’. | |
| users.defaultUserShell = "/run/current-system/sw/bin/zsh"; | |
| users.users.jwmonet = { | |
| isNormalUser = true; | |
| extraGroups = [ "wheel" "networkmanager" "adbusers" ]; | |
| }; | |
| # 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 = "20.03"; # Did you read the comment? | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment