···11+# Edit this configuration file to define what should be installed on
22+# your system. Help is available in the configuration.nix(5) man page
33+# and in the NixOS manual (accessible by running ‘nixos-help’).
44+55+{ config, pkgs, ... }:
66+77+{
88+ imports =
99+ [ # Include the results of the hardware scan.
1010+ ./hardware-configuration.nix
1111+ ];
1212+1313+ # Bootloader.
1414+ boot.loader.systemd-boot.enable = true;
1515+ boot.loader.efi.canTouchEfiVariables = true;
1616+1717+ # Use latest kernel.
1818+ boot.kernelPackages = pkgs.linuxPackages_latest;
1919+2020+ networking.hostName = "nixos"; # Define your hostname.
2121+ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
2222+2323+ # Configure network proxy if necessary
2424+ # networking.proxy.default = "http://user:password@proxy:port/";
2525+ # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
2626+2727+ # Enable networking
2828+ networking.networkmanager.enable = true;
2929+3030+ # Set your time zone.
3131+ time.timeZone = "America/Toronto";
3232+3333+ # Select internationalisation properties.
3434+ i18n.defaultLocale = "en_CA.UTF-8";
3535+3636+ # Enable the X11 windowing system.
3737+ services.xserver.enable = true;
3838+3939+ # Enable the GNOME Desktop Environment.
4040+ services.xserver.displayManager.gdm.enable = true;
4141+ services.xserver.desktopManager.gnome.enable = true;
4242+4343+ # Configure keymap in X11
4444+ services.xserver.xkb = {
4545+ layout = "us";
4646+ variant = "";
4747+ };
4848+4949+ # Enable CUPS to print documents.
5050+ services.printing.enable = true;
5151+5252+ # Enable sound with pipewire.
5353+ services.pulseaudio.enable = false;
5454+ security.rtkit.enable = true;
5555+ services.pipewire = {
5656+ enable = true;
5757+ alsa.enable = true;
5858+ alsa.support32Bit = true;
5959+ pulse.enable = true;
6060+ # If you want to use JACK applications, uncomment this
6161+ #jack.enable = true;
6262+6363+ # use the example session manager (no others are packaged yet so this is enabled by default,
6464+ # no need to redefine it in your config for now)
6565+ #media-session.enable = true;
6666+ };
6767+6868+ # Enable touchpad support (enabled default in most desktopManager).
6969+ # services.xserver.libinput.enable = true;
7070+7171+ # Define a user account. Don't forget to set a password with ‘passwd’.
7272+ users.users.mofin = {
7373+ isNormalUser = true;
7474+ description = "Cameron";
7575+ extraGroups = [ "networkmanager" "wheel" ];
7676+ packages = with pkgs; [
7777+ # thunderbird
7878+ ];
7979+ };
8080+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
8181+8282+ # Enable automatic login for the user.
8383+ services.displayManager.autoLogin.enable = true;
8484+ services.displayManager.autoLogin.user = "mofin";
8585+8686+ # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
8787+ systemd.services."getty@tty1".enable = false;
8888+ systemd.services."autovt@tty1".enable = false;
8989+9090+ # Install firefox.
9191+ programs.firefox.enable = true;
9292+9393+ # Allow unfree packages
9494+ nixpkgs.config.allowUnfree = true;
9595+9696+ # List packages installed in system profile. To search, run:
9797+ # $ nix search wget
9898+ environment.systemPackages = with pkgs; [
9999+ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
100100+ # wget
101101+ git
102102+ ];
103103+104104+ # Some programs need SUID wrappers, can be configured further or are
105105+ # started in user sessions.
106106+ # programs.mtr.enable = true;
107107+ # programs.gnupg.agent = {
108108+ # enable = true;
109109+ # enableSSHSupport = true;
110110+ # };
111111+112112+ # List services that you want to enable:
113113+114114+ # Enable the OpenSSH daemon.
115115+ # services.openssh.enable = true;
116116+117117+ # Open ports in the firewall.
118118+ # networking.firewall.allowedTCPPorts = [ ... ];
119119+ # networking.firewall.allowedUDPPorts = [ ... ];
120120+ # Or disable the firewall altogether.
121121+ # networking.firewall.enable = false;
122122+123123+ # This value determines the NixOS release from which the default
124124+ # settings for stateful data, like file locations and database versions
125125+ # on your system were taken. It‘s perfectly fine and recommended to leave
126126+ # this value at the release version of the first install of this system.
127127+ # Before changing this value read the documentation for this option
128128+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
129129+ system.stateVersion = "25.05"; # Did you read the comment?
130130+131131+}
···2020 boot.loader.grub.efiInstallAsRemovable = true;
2121 boot.loader.grub.extraEntries = ''
22222323- menuentry "Windows" {
2424- search --fs-uuid --no-floppy --set=root D6E4-28CA
2525- chainloader (''${root})/EFI/Microsoft/Boot/bootmgfw.efi
2626- }
2727-2828- '';
2929-2323+3024 networking.hostName = "nixos"; # Define your hostname.
3125 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
3226···221215 # Before changing this value read the documentation for this option
222216 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
223217 system.stateVersion = "24.05"; # Did you read the comment?
224224-}218218+}