68 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # 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’).
 | ||
| {
 | ||
|   pkgs,
 | ||
|   inputs,
 | ||
|   ...
 | ||
| }: {
 | ||
|   imports = [
 | ||
|     inputs.home-manager.nixosModules.home-manager
 | ||
| 
 | ||
|     ../common/global
 | ||
|     ../common/users/luna
 | ||
| 
 | ||
|     # optional stuff
 | ||
|     ../common/optional/gnome.nix
 | ||
|     ../common/optional/pipewire.nix
 | ||
|     ../common/optional/flatpak.nix
 | ||
| 
 | ||
|     # thinkpad-related
 | ||
|     ../common/optional/thinkpad.nix
 | ||
|     ../common/optional/fingerprint.nix
 | ||
| 
 | ||
|     # Include the results of the hardware scan.
 | ||
|     ./hardware-configuration.nix
 | ||
|   ];
 | ||
| 
 | ||
|   # Bootloader.
 | ||
|   boot.loader.systemd-boot.enable = true;
 | ||
|   boot.loader.efi.canTouchEfiVariables = true;
 | ||
| 
 | ||
|   networking.hostName = "spider"; # Define your hostname.
 | ||
| 
 | ||
|   # Enable networking
 | ||
|   networking.networkmanager.enable = true;
 | ||
| 
 | ||
|   # Configure keymap in X11
 | ||
|   services.xserver.xkb = {
 | ||
|     layout = "de";
 | ||
|     variant = "";
 | ||
|   };
 | ||
| 
 | ||
|   # Configure console keymap
 | ||
|   console.keyMap = "de";
 | ||
| 
 | ||
|   # Enable CUPS to print documents.
 | ||
|   services.printing.enable = true;
 | ||
| 
 | ||
|   # 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
 | ||
|     gnome-menus
 | ||
|   ];
 | ||
| 
 | ||
|   # ssh agent
 | ||
|   programs.ssh.startAgent = true;
 | ||
| 
 | ||
|   programs.steam = {
 | ||
|     enable = true;
 | ||
|     remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
 | ||
|     dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
 | ||
|   };
 | ||
| }
 |