Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
paste.mozilla.org allows you to share code snippets and notes with others. These pastes require a link to be viewed; they are not private. Anyone with the link is able to see the paste and also delete it.


Please refrain from sharing personal or sensitive information on this website to avoid it being viewed by other parties.

  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. { config, pkgs, ... }:
  5. {
  6. imports =
  7. [ # Include the results of the hardware scan.
  8. ./hardware-configuration.nix
  9. ];
  10. # Bootloader.
  11. boot.loader.systemd-boot.enable = true;
  12. boot.loader.efi.canTouchEfiVariables = true;
  13. boot.initrd.luks.devices."luks-2928a067-da38-4867-80ae-fa31f597368c".device = "/dev/disk/by-uuid/2928a067-da38-4867-80ae-fa31f597368c";
  14. networking.hostName = "nixos"; # Define your hostname.
  15. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  16. # Configure network proxy if necessary
  17. # networking.proxy.default = "http://user:password@proxy:port/";
  18. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  19. # Enable networking
  20. networking.networkmanager.enable = true;
  21. # Set your time zone.
  22. time.timeZone = "America/Vancouver";
  23. # Select internationalisation properties.
  24. i18n.defaultLocale = "en_CA.UTF-8";
  25. # Enable the X11 windowing system.
  26. services.xserver.enable = true;
  27. # Enable the GNOME Desktop Environment.
  28. services.xserver.displayManager.gdm.enable = true;
  29. services.xserver.desktopManager.gnome.enable = true;
  30. # Configure keymap in X11
  31. services.xserver = {
  32. xkb = {
  33. layout = "us";
  34. variant = "";
  35. };
  36. };
  37. # Enable CUPS to print documents.
  38. services.printing.enable = true;
  39. # Enable sound with pipewire.
  40. sound.enable = true;
  41. hardware.pulseaudio.enable = false;
  42. security.rtkit.enable = true;
  43. services.pipewire = {
  44. enable = true;
  45. alsa.enable = true;
  46. alsa.support32Bit = true;
  47. pulse.enable = true;
  48. # If you want to use JACK applications, uncomment this
  49. #jack.enable = true;
  50. # use the example session manager (no others are packaged yet so this is enabled by default,
  51. # no need to redefine it in your config for now)
  52. #media-session.enable = true;
  53. };
  54. # Enable touchpad support (enabled default in most desktopManager).
  55. # services.xserver.libinput.enable = true;
  56. # Define a user account. Don't forget to set a password with passwd.
  57. users.users.human = {
  58. isNormalUser = true;
  59. description = "human";
  60. extraGroups = [ "networkmanager" "wheel" ];
  61. packages = with pkgs; [
  62. # thunderbird
  63. ];
  64. };
  65. # Enable automatic login for the user.
  66. services.displayManager.autoLogin.enable = true;
  67. services.displayManager.autoLogin.user = "human";
  68. # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
  69. systemd.services."getty@tty1".enable = false;
  70. systemd.services."autovt@tty1".enable = false;
  71. # Install firefox.
  72. programs.firefox.enable = true;
  73. # programs.steam.enable = true;
  74. # programs.kdeconnect.enable = true;
  75. # programs.hyprland.enable = true;
  76. # Allow unfree packages
  77. nixpkgs.config.allowUnfree = true;
  78. # List packages installed in system profile. To search, run:
  79. # $ nix search wget
  80. environment.systemPackages = with pkgs; [
  81. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
  82. wget
  83. vscode
  84. git
  85. fish
  86. gnome.gnome-terminal
  87. gedit
  88. ];
  89. # Some programs need SUID wrappers, can be configured further or are
  90. # started in user sessions.
  91. # programs.mtr.enable = true;
  92. # programs.gnupg.agent = {
  93. # enable = true;
  94. # enableSSHSupport = true;
  95. # };
  96. # List services that you want to enable:
  97. # Enable the OpenSSH daemon.
  98. # services.openssh.enable = true;
  99. # Open ports in the firewall.
  100. # networking.firewall.allowedTCPPorts = [ ... ];
  101. # networking.firewall.allowedUDPPorts = [ ... ];
  102. # Or disable the firewall altogether.
  103. # networking.firewall.enable = false;
  104. # This value determines the NixOS release from which the default
  105. # settings for stateful data, like file locations and database versions
  106. # on your system were taken. Its perfectly fine and recommended to leave
  107. # this value at the release version of the first install of this system.
  108. # Before changing this value read the documentation for this option
  109. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  110. system.stateVersion = "unstable"; # Did you read the comment?
  111. # nix.settings.experimental-features = [ "nix-command" "flakes" ];
  112. }

Edit this Snippet