Add firmware-manager and keyboard-configurator for garrus

This commit is contained in:
Aaron Honeycutt 2024-09-14 16:39:16 -06:00
parent ab83d55352
commit 45762681d9
4 changed files with 17 additions and 20 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports =
@ -45,13 +45,13 @@
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx."; hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
}; };
# Allow Unfree # Allow Unfree
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Install some packages # Install some packages
environment.systemPackages = environment.systemPackages =
with pkgs; with pkgs;
[ [
# Packages from nixpkgs # Packages from nixpkgs
avahi avahi
@ -59,7 +59,7 @@
dmidecode dmidecode
fira fira
git git
git-lfs git-lfs
libcamera libcamera
lshw lshw
restic restic
@ -71,17 +71,16 @@
zlib zlib
# Packages from Flake Inputs # Packages from Flake Inputs
inputs.system76-keyboard-configurator.packages.${system}.system76-keyboard-configurator
inputs.nix-software-center.packages.${system}.nix-software-center inputs.nix-software-center.packages.${system}.nix-software-center
]; ];
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [ programs.nix-ld.libraries = with pkgs; [
# Add any missing dynamic libraries for unpackaged programs # Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages # here, NOT in environment.systemPackages
]; ];
# Enable/Disable hardware # Enable/Disable hardware
## Turn off PulseAudio ## Turn off PulseAudio
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
@ -129,7 +128,7 @@
''; '';
}; };
# System # System
system.stateVersion = "24.05"; system.stateVersion = "24.05";
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
} }

View file

@ -8,7 +8,6 @@
url = github:nix-community/disko; url = github:nix-community/disko;
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
system76-keyboard-configurator.url = "github:pop-os/keyboard-configurator/fix-flake-input";
nix-software-center.url = "github:snowfallorg/nix-software-center"; nix-software-center.url = "github:snowfallorg/nix-software-center";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
@ -99,7 +98,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
}; };
}; };
}; };
} }

View file

@ -1,9 +0,0 @@
{ config, pkgs, ... }:
{
# Name your host machine
networking.hostName = "galp4";
# System76
hardware.system76.enableAll = true;
}

View file

@ -8,6 +8,14 @@
hardware.system76.enableAll = true; hardware.system76.enableAll = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
system76-keyboard-configurator system76-keyboard-configurator
firmware-manager
]; ];
# NVIDIA
# services.xserver.videoDrivers = [ "nvidia" ];
# hardware.opengl.enable = true;
# hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
# Allow Unfree
nixpkgs.config.allowUnfree = true;
} }