-
Notifications
You must be signed in to change notification settings - Fork 1
Add user dumbitch to users
#9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Abbigator
wants to merge
1
commit into
master
Choose a base branch
from
abbigator/add-user
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,168 @@ | ||
| # 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 | ||
| ]; | ||
|
|
||
| # Bootloader. | ||
| boot.loader.systemd-boot.enable = true; | ||
| boot.loader.efi.canTouchEfiVariables = true; | ||
|
|
||
| networking.hostName = "nixos"; # Define your hostname. | ||
| # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | ||
|
|
||
| # Configure network proxy if necessary | ||
| # networking.proxy.default = "http://user:password@proxy:port/"; | ||
| # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | ||
|
|
||
| # Enable networking | ||
| networking.networkmanager.enable = true; | ||
|
|
||
| # Set your time zone. | ||
| time.timeZone = "America/Chicago"; | ||
|
|
||
| # Select internationalisation properties. | ||
| i18n.defaultLocale = "en_US.UTF-8"; | ||
|
|
||
| i18n.extraLocaleSettings = { | ||
| LC_ADDRESS = "en_US.UTF-8"; | ||
| LC_IDENTIFICATION = "en_US.UTF-8"; | ||
| LC_MEASUREMENT = "en_US.UTF-8"; | ||
| LC_MONETARY = "en_US.UTF-8"; | ||
| LC_NAME = "en_US.UTF-8"; | ||
| LC_NUMERIC = "en_US.UTF-8"; | ||
| LC_PAPER = "en_US.UTF-8"; | ||
| LC_TELEPHONE = "en_US.UTF-8"; | ||
| LC_TIME = "en_US.UTF-8"; | ||
| }; | ||
|
|
||
| # Enable the X11 windowing system. | ||
| services.xserver.enable = true; | ||
|
|
||
| # Enable the Deepin Desktop Environment. | ||
| services.xserver.displayManager.gdm.enable = true; | ||
| services.xserver.desktopManager.gnome.enable = true; | ||
|
|
||
| # Configure keymap in X11 | ||
| services.xserver = { | ||
| layout = "us"; | ||
| xkbVariant = ""; | ||
| }; | ||
|
|
||
| # Enable CUPS to print documents. | ||
| services.printing.enable = true; | ||
|
|
||
| # Enable sound with pipewire. | ||
| sound.enable = true; | ||
| hardware.pulseaudio.enable = false; | ||
| security.rtkit.enable = true; | ||
| services.pipewire = { | ||
| enable = true; | ||
| alsa.enable = true; | ||
| alsa.support32Bit = true; | ||
| pulse.enable = true; | ||
| # If you want to use JACK applications, uncomment this | ||
| #jack.enable = true; | ||
|
|
||
| # use the example session manager (no others are packaged yet so this is enabled by default, | ||
| # no need to redefine it in your config for now) | ||
| #media-session.enable = true; | ||
| }; | ||
|
|
||
| # Enable touchpad support (enabled default in most desktopManager). | ||
| # services.xserver.libinput.enable = true; | ||
|
|
||
| # Define a user account. Don't forget to set a password with ‘passwd’. | ||
| users.users.dumbitch = { | ||
| isNormalUser = true; | ||
| description = "Abbigale Caldero"; | ||
| extraGroups = [ "networkmanager" "wheel" ]; | ||
| packages = with pkgs; [ | ||
| brave | ||
| discord | ||
| git | ||
| ]; | ||
| }; | ||
|
|
||
| # Allow unfree packages | ||
| nixpkgs.config.allowUnfree = true; | ||
|
|
||
| # List packages installed in system profile. To search, run: | ||
| # $ nix search wget | ||
| environment.systemPackages = with pkgs; [ | ||
| # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. | ||
| # wget | ||
| (vscode-with-extensions.override { | ||
| vscodeExtensions = with vscode-extensions; [ | ||
| bbenoist.nix # nix syntax highlighting | ||
| matklad.rust-analyzer | ||
| vadimcn.vscode-lldb # lldb for rust | ||
| pkief.material-product-icons | ||
| tamasfe.even-better-toml | ||
| esbenp.prettier-vscode | ||
| ms-vsliveshare.vsliveshare | ||
| vscodevim.vim | ||
| piousdeer.adwaita-theme | ||
| dracula-theme.theme-dracula | ||
| zhuangtongfa.material-theme | ||
| file-icons.file-icons | ||
| eamodio.gitlens # git lens | ||
| ]; | ||
| }) | ||
|
|
||
| ]; | ||
|
|
||
| environment.gnome.excludePackages = (with pkgs; [ | ||
| gnome-photos | ||
| gnome-tour | ||
| ]) ++ (with pkgs.gnome; [ | ||
| cheese # webcam tool | ||
| gnome-music | ||
| gnome-terminal | ||
| gedit # text editor | ||
| epiphany # web browser | ||
| geary # email reader | ||
| evince # document viewer | ||
| gnome-characters | ||
| totem # video player | ||
| tali # poker game | ||
| iagno # go game | ||
| hitori # sudoku game | ||
| atomix # puzzle game | ||
| ]); | ||
|
|
||
| # 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; | ||
| # }; | ||
|
|
||
| # List services that you want to enable: | ||
|
|
||
| # Enable the OpenSSH daemon. | ||
| # services.openssh.enable = true; | ||
|
|
||
| # Open ports in the firewall. | ||
| # networking.firewall.allowedTCPPorts = [ ... ]; | ||
| # networking.firewall.allowedUDPPorts = [ ... ]; | ||
| # Or disable the firewall altogether. | ||
| # networking.firewall.enable = false; | ||
|
|
||
| nix.settings.experimental-features = ["nix-command" "flakes"]; | ||
| # This value determines the NixOS release from which the default | ||
| # settings for stateful data, like file locations and database versions | ||
| # on your system were taken. It‘s perfectly fine and recommended to leave | ||
| # this value at the release version of the first install of this system. | ||
| # Before changing this value read the documentation for this option | ||
| # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | ||
| system.stateVersion = "23.05"; # Did you read the comment? | ||
|
|
||
| } | ||
40 changes: 40 additions & 0 deletions
40
users/dumbitch/systems/rog-strix/hardware-configuration.nix
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
| # and may be overwritten by future invocations. Please make changes | ||
| # to /etc/nixos/configuration.nix instead. | ||
| { config, lib, pkgs, modulesPath, ... }: | ||
|
|
||
| { | ||
| imports = | ||
| [ (modulesPath + "/installer/scan/not-detected.nix") | ||
| ]; | ||
|
|
||
| boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; | ||
| boot.initrd.kernelModules = [ ]; | ||
| boot.kernelModules = [ "kvm-amd" ]; | ||
| boot.extraModulePackages = [ ]; | ||
|
|
||
| fileSystems."/" = | ||
| { device = "/dev/disk/by-uuid/cf7faaf1-c2f5-42a4-b230-3167624ba3f1"; | ||
| fsType = "ext4"; | ||
| }; | ||
|
|
||
| fileSystems."/boot" = | ||
| { device = "/dev/disk/by-uuid/E55B-F50C"; | ||
| fsType = "vfat"; | ||
| }; | ||
|
|
||
| swapDevices = | ||
| [ { device = "/dev/disk/by-uuid/4ce467f4-f18d-4387-81c9-d4767d32c4d7"; } | ||
| ]; | ||
|
|
||
| # Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||
| # (the default) this is the recommended approach. When using systemd-networkd it's | ||
| # still possible to use this option, but it's recommended to use it in conjunction | ||
| # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
| networking.useDHCP = lib.mkDefault true; | ||
| # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; | ||
| # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true; | ||
|
|
||
| nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
| hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
| } |
Empty file.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since your hostname is listed as
"rog-strix"you'll need to update this for it to work