Configuration is more flexible
Add new host must be easier
This commit is contained in:
parent
431c99a58e
commit
51fdbb4a87
16 changed files with 91 additions and 79 deletions
|
@ -1,74 +0,0 @@
|
|||
{ config, pkgs, lib, stateVersion, hostname, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../common/locales.nix
|
||||
../../common/flakes.nix
|
||||
../../common/user.nix
|
||||
../../modules/nixos/pipewire.nix
|
||||
../../modules/nixos/steam.nix
|
||||
../../modules/nixos/xdg-portal.nix
|
||||
../../modules/nixos/doas.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
#CPU
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
# GPU
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
# Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.xpadneo.enable = true;
|
||||
networking.hostName = hostname;
|
||||
|
||||
console = {
|
||||
earlySetup = true;
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
||||
packages = with pkgs; [terminus_font];
|
||||
# keyMap = "us";
|
||||
useXkbConfig = true; # use xkbOptions in tty.
|
||||
};
|
||||
|
||||
security.rtkit.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
services.udisks2.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
zsh
|
||||
lvm2_dmeventd
|
||||
];
|
||||
|
||||
services.lvm.enable = true;
|
||||
services.lvm.dmeventd.enable = true;
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.ephase = {
|
||||
home.stateVersion = stateVersion;
|
||||
programs.home-manager.enable = true;
|
||||
imports = [
|
||||
../../modules/home/desktop
|
||||
../../modules/home/webcord.nix
|
||||
../../modules/home/cli
|
||||
../../modules/home/firefox
|
||||
../../modules/home/foot.nix
|
||||
../../modules/home/lutris.nix
|
||||
../../modules/home/zathura.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
|
@ -61,7 +61,11 @@
|
|||
# networking.interfaces.enp34s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp37s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
services.lvm.boot.thin.enable = true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
hardware.opengl.driSupport = true;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.xpadneo.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue