Compare commits

...

8 commits

2 changed files with 36 additions and 14 deletions

View file

@ -6,8 +6,10 @@
{ {
imports = imports =
[ # Include the results of the hardware scan. [
<nixos-hardware/framework/13-inch/7040-amd>
./hardware-configuration.nix ./hardware-configuration.nix
<home-manager/nixos>
]; ];
# https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983/14 # https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983/14
@ -50,14 +52,10 @@
LC_TIME = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8";
}; };
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true; services.displayManager.sddm.enable = true;
services.xserver.displayManager.sddm.wayland.enable = true; services.displayManager.sddm.wayland.enable = true;
services.xserver.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
#services.xserver.desktopManager.plasma5.enable = false;
# Configure keymap in X11 # Configure keymap in X11
services.xserver.xkb = { services.xserver.xkb = {
@ -65,9 +63,17 @@
variant = ""; variant = "";
}; };
services.fwupd.enable = true;
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
services.hardware.bolt.enable = true;
virtualisation.docker.enable = true;
hardware.bluetooth.enable = true;
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
@ -89,16 +95,31 @@
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.chandler = { users.users.chandler.isNormalUser = true;
isNormalUser = true; users.users.chandler.description = "Chandler Swift";
description = "Chandler Swift"; users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" ];
extraGroups = [ "networkmanager" "wheel" ]; home-manager.users.chandler = { pkgs, ... }: {
packages = with pkgs; [ home.packages = with pkgs; [
firefox firefox
kate kate
git git
prismlauncher
libreoffice-qt
# thunderbird # thunderbird
]; ];
programs.bash.enable = true;
programs.emacs = {
enable = true;
extraPackages = epkgs: [
epkgs.nix-mode
epkgs.magit
epkgs.rust-mode
];
};
home.stateVersion = "23.11";
}; };
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -129,7 +150,7 @@
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; networking.firewall.enable = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions

View file

@ -11,6 +11,7 @@
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =