···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, inputs, ... }:
66-77-{
88- imports =
99- [ # Include the results of the hardware scan.
1010- ./hardware-configuration.nix
1111- ];
1212-1313- # Bootloader.
1414- boot.loader.grub.enable = true;
1515- boot.loader.grub.device = "/dev/sda";
1616- boot.loader.grub.useOSProber = true;
1717-1818- networking.hostName = "magames-desktop"; # Define your hostname.
1919-2020- programs.adb.enable = true;
2121-2222- # Enable the X11 windowing system.
2323- # You can disable this if you're only using the Wayland session.
2424- services.xserver.enable = true;
2525-2626- # Configure keymap in X11
2727- services.xserver.xkb = {
2828- layout = "us";
2929- variant = "";
3030- };
3131-3232- # Enable OpenGL
3333- hardware.graphics = {
3434- enable = true;
3535- };
3636-3737- # Enable sound with pipewire.
3838- services.pulseaudio.enable = false;
3939- security.rtkit.enable = true;
4040- services.pipewire = {
4141- enable = true;
4242- alsa.enable = true;
4343- alsa.support32Bit = true;
4444- pulse.enable = true;
4545- # If you want to use JACK applications, uncomment this
4646- #jack.enable = true;
4747-4848- # use the example session manager (no others are packaged yet so this is enabled by default,
4949- # no need to redefine it in your config for now)
5050- #media-session.enable = true;
5151- };
5252-5353- # Enable touchpad support (enabled default in most desktopManager).
5454- # services.xserver.libinput.enable = true;
5555-5656- # Allow unfree packages and accept Android SDK License
5757- nixpkgs.config = {
5858- allowUnfree = true;
5959- android_sdk.accept_license = true;
6060- };
6161-6262- # Enable Flapak
6363- services.flatpak.enable = true;
6464-6565- security.polkit.enable = true;
6666-6767- xdg.portal.enable = true;
6868-6969- # Codeium Support
7070- programs.nix-ld.enable = true;
7171- programs.nix-ld.libraries = [];
7272-7373- virtualisation.virtualbox.host.enable = true;
7474- users.extraGroups.vboxusers.members = [ "magames" ];
7575-7676- # This value determines the NixOS release from which the default
7777- # settings for stateful data, like file locations and database versions
7878- # on your system were taken. It‘s perfectly fine and recommended to leave
7979- # this value at the release version of the first install of this system.
8080- # Before changing this value read the documentation for this option
8181- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
8282- system.stateVersion = "24.11"; # Did you read the comment?
8383-8484-}
···11-# Do not modify this file! It was generated by ‘nixos-generate-config’
22-# and may be overwritten by future invocations. Please make changes
33-# to /etc/nixos/configuration.nix instead.
44-{ config, lib, pkgs, modulesPath, ... }:
55-66-{
77- imports =
88- [ (modulesPath + "/installer/scan/not-detected.nix")
99- ];
1010-1111- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
1212- boot.initrd.kernelModules = [ ];
1313- boot.kernelModules = [ "kvm-amd" ];
1414- boot.extraModulePackages = [ ];
1515-1616- fileSystems."/" =
1717- { device = "/dev/disk/by-uuid/20b2b4d9-9bcd-4f6b-8d83-27af3b0ec85a";
1818- fsType = "ext4";
1919- };
2020-2121- swapDevices =
2222- [ { device = "/dev/disk/by-uuid/d38eafd7-b856-4386-ae03-298db50fb91f"; }
2323- ];
2424-2525- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
2626- # (the default) this is the recommended approach. When using systemd-networkd it's
2727- # still possible to use this option, but it's recommended to use it in conjunction
2828- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
2929- networking.useDHCP = lib.mkDefault true;
3030- # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
3131- # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
3232-3333- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
3434- hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
3535-}
···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- /* Maybe someday we can grub...
1818- boot.loader.grub.enable = true;
1919- boot.loader.grub.device = "/dev/sda";
2020- boot.loader.grub.useOSProber = true;
2121- */
2222-2323- networking.hostName = "magames-lappy"; # Define your hostname.
2424-2525- # Enable the X11 windowing system.
2626- # You can disable this if you're only using the Wayland session.
2727- services.xserver.enable = true;
2828-2929- # services.xserver.desktopManager.cinnamon.enable = true;
3030-3131- # Configure keymap in X11
3232- services.xserver.xkb = {
3333- layout = "us";
3434- variant = "";
3535- };
3636-3737- # Enable OpenGL
3838- hardware.graphics = {
3939- enable = true;
4040- };
4141-4242- # Enable sound with pipewire.
4343- services.pulseaudio.enable = false;
4444- security.rtkit.enable = true;
4545- services.pipewire = {
4646- enable = true;
4747- alsa.enable = true;
4848- alsa.support32Bit = true;
4949- pulse.enable = true;
5050- # If you want to use JACK applications, uncomment this
5151- #jack.enable = true;
5252-5353- # use the example session manager (no others are packaged yet so this is enabled by default,
5454- # no need to redefine it in your config for now)
5555- #media-session.enable = true;
5656- };
5757-5858-5959- # Zed Editor Support
6060- programs.nix-ld.enable = true;
6161- programs.nix-ld.libraries = [];
6262-6363- # Enable touchpad support (enabled default in most desktopManager).
6464- # services.xserver.libinput.enable = true;
6565-6666- # Allow unfree packages
6767- nixpkgs.config.allowUnfree = true;
6868-6969- # This value determines the NixOS release from which the default
7070- # settings for stateful data, like file locations and database versions
7171- # on your system were taken. It‘s perfectly fine and recommended to leave
7272- # this value at the release version of the first install of this system.
7373- # Before changing this value read the documentation for this option
7474- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
7575- system.stateVersion = "25.11"; # Did you read the comment?
7676-7777-}
···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, inputs, ... }:
66+77+{
88+ imports =
99+ [ # Include the results of the hardware scan.
1010+ ./hardware-configuration.nix
1111+ ];
1212+1313+ # Bootloader.
1414+ boot.loader.grub.enable = true;
1515+ boot.loader.grub.device = "/dev/sda";
1616+ boot.loader.grub.useOSProber = true;
1717+1818+ networking.hostName = "prism"; # Define your hostname.
1919+2020+ programs.adb.enable = true;
2121+2222+ # Enable the X11 windowing system.
2323+ # You can disable this if you're only using the Wayland session.
2424+ services.xserver.enable = true;
2525+2626+ # Configure keymap in X11
2727+ services.xserver.xkb = {
2828+ layout = "us";
2929+ variant = "";
3030+ };
3131+3232+ # Enable OpenGL
3333+ hardware.graphics = {
3434+ enable = true;
3535+ };
3636+3737+ # Enable sound with pipewire.
3838+ services.pulseaudio.enable = false;
3939+ security.rtkit.enable = true;
4040+ services.pipewire = {
4141+ enable = true;
4242+ alsa.enable = true;
4343+ alsa.support32Bit = true;
4444+ pulse.enable = true;
4545+ # If you want to use JACK applications, uncomment this
4646+ #jack.enable = true;
4747+4848+ # use the example session manager (no others are packaged yet so this is enabled by default,
4949+ # no need to redefine it in your config for now)
5050+ #media-session.enable = true;
5151+ };
5252+5353+ # Enable touchpad support (enabled default in most desktopManager).
5454+ # services.xserver.libinput.enable = true;
5555+5656+ # Allow unfree packages and accept Android SDK License
5757+ nixpkgs.config = {
5858+ allowUnfree = true;
5959+ android_sdk.accept_license = true;
6060+ };
6161+6262+ # Enable Flapak
6363+ services.flatpak.enable = true;
6464+6565+ security.polkit.enable = true;
6666+6767+ xdg.portal.enable = true;
6868+6969+ # Codeium Support
7070+ programs.nix-ld.enable = true;
7171+ programs.nix-ld.libraries = [];
7272+7373+ virtualisation.virtualbox.host.enable = true;
7474+ users.extraGroups.vboxusers.members = [ "magames" ];
7575+7676+ # This value determines the NixOS release from which the default
7777+ # settings for stateful data, like file locations and database versions
7878+ # on your system were taken. It‘s perfectly fine and recommended to leave
7979+ # this value at the release version of the first install of this system.
8080+ # Before changing this value read the documentation for this option
8181+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
8282+ system.stateVersion = "24.11"; # Did you read the comment?
8383+8484+}
···11+# Do not modify this file! It was generated by ‘nixos-generate-config’
22+# and may be overwritten by future invocations. Please make changes
33+# to /etc/nixos/configuration.nix instead.
44+{ config, lib, pkgs, modulesPath, ... }:
55+66+{
77+ imports =
88+ [ (modulesPath + "/installer/scan/not-detected.nix")
99+ ];
1010+1111+ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
1212+ boot.initrd.kernelModules = [ ];
1313+ boot.kernelModules = [ "kvm-amd" ];
1414+ boot.extraModulePackages = [ ];
1515+1616+ fileSystems."/" =
1717+ { device = "/dev/disk/by-uuid/20b2b4d9-9bcd-4f6b-8d83-27af3b0ec85a";
1818+ fsType = "ext4";
1919+ };
2020+2121+ swapDevices =
2222+ [ { device = "/dev/disk/by-uuid/d38eafd7-b856-4386-ae03-298db50fb91f"; }
2323+ ];
2424+2525+ # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
2626+ # (the default) this is the recommended approach. When using systemd-networkd it's
2727+ # still possible to use this option, but it's recommended to use it in conjunction
2828+ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
2929+ networking.useDHCP = lib.mkDefault true;
3030+ # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
3131+ # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
3232+3333+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
3434+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
3535+}
+77
configurations/hosts/slate/configuration.nix
···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+ /* Maybe someday we can grub...
1818+ boot.loader.grub.enable = true;
1919+ boot.loader.grub.device = "/dev/sda";
2020+ boot.loader.grub.useOSProber = true;
2121+ */
2222+2323+ networking.hostName = "slate"; # Define your hostname.
2424+2525+ # Enable the X11 windowing system.
2626+ # You can disable this if you're only using the Wayland session.
2727+ services.xserver.enable = true;
2828+2929+ # services.xserver.desktopManager.cinnamon.enable = true;
3030+3131+ # Configure keymap in X11
3232+ services.xserver.xkb = {
3333+ layout = "us";
3434+ variant = "";
3535+ };
3636+3737+ # Enable OpenGL
3838+ hardware.graphics = {
3939+ enable = true;
4040+ };
4141+4242+ # Enable sound with pipewire.
4343+ services.pulseaudio.enable = false;
4444+ security.rtkit.enable = true;
4545+ services.pipewire = {
4646+ enable = true;
4747+ alsa.enable = true;
4848+ alsa.support32Bit = true;
4949+ pulse.enable = true;
5050+ # If you want to use JACK applications, uncomment this
5151+ #jack.enable = true;
5252+5353+ # use the example session manager (no others are packaged yet so this is enabled by default,
5454+ # no need to redefine it in your config for now)
5555+ #media-session.enable = true;
5656+ };
5757+5858+5959+ # Zed Editor Support
6060+ programs.nix-ld.enable = true;
6161+ programs.nix-ld.libraries = [];
6262+6363+ # Enable touchpad support (enabled default in most desktopManager).
6464+ # services.xserver.libinput.enable = true;
6565+6666+ # Allow unfree packages
6767+ nixpkgs.config.allowUnfree = true;
6868+6969+ # This value determines the NixOS release from which the default
7070+ # settings for stateful data, like file locations and database versions
7171+ # on your system were taken. It‘s perfectly fine and recommended to leave
7272+ # this value at the release version of the first install of this system.
7373+ # Before changing this value read the documentation for this option
7474+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
7575+ system.stateVersion = "25.11"; # Did you read the comment?
7676+7777+}